nextcloudpi/tests/nc_backup_test.robot
Tobias K b69ad71507
Add basic integration test for nc-backup
Signed-off-by: Tobias K <6317548+theCalcaholic@users.noreply.github.com>
Signed-off-by: Tobias Knöppler <6317548+theCalcaholic@users.noreply.github.com>
2023-01-08 21:16:35 +01:00

24 lines
1.1 KiB
Plaintext

#!/usr/bin/env python
*** Settings ***
Library NcpRobotLib.py 8080 8443 4443
Suite Setup Setup Ncp docker latest
Suite Teardown Destroy Ncp
Test Teardown Run on Ncp rm -rf /opt/ncp-backups/*.tar
*** Test Cases ***
Create dataless Backup
#[Documentation] Creates and validates a backup using nc-backup
Create Backup in /opt/ncp-backups dataless
Assert file exists in archive /opt/ncp-backups/*.tar nextcloud/config/config.php
Assert file exists in archive /opt/ncp-backups/*.tar nextcloud-sqlbkp_.*.bak
Assert file exists not in archive /opt/ncp-backups/*.tar ncdata/files/ncp
Create Backup with data
#[Documentation] Creates and validates a backup using nc-backup
Create Backup in /opt/ncp-backups
Assert file exists in archive /opt/ncp-backups/*.tar nextcloud/config/config.php
Assert file exists in archive /opt/ncp-backups/*.tar nextcloud-sqlbkp_.*.bak
Assert file exists in archive /opt/ncp-backups/*.tar data/ncp/files/Nextcloud.png