James Valleroy 1e2ee690d7
backups: Add functional test to disable schedule backups
This test is at the end so that it leaves scheduled backups disabled
while other tests are running.

Helps #2058.

Tests:

- Ran functional tests for backups. All tests passed.

- Confirmed that scheduled backups are disabled after backup tests are
  complete.

Signed-off-by: James Valleroy <jvalleroy@mailbox.org>
Reviewed-by: Sunil Mohan Adapa <sunil@medhas.org>
2021-09-05 17:54:42 -07:00

37 lines
1.6 KiB
Gherkin

# SPDX-License-Identifier: AGPL-3.0-or-later
@backups @system
Feature: Backups module
Create and restore backups.
Background:
Given I'm a logged in user
Given the bind application is installed
Scenario: Browser waits for redirect after restoring a backup
Given the bind application is enabled
When I create a backup of the bind app data with name test_backups
And I restore the bind app data backup with name test_backups
And I open the main page
And I wait for 5 seconds
Then the main page should be shown
Scenario: Download, upload and restore a backup
Given the bind application is enabled
When I set bind forwarders to 1.1.1.1
And I create a backup of the bind app data with name test_backups
And I set bind forwarders to 1.0.0.1
And I download the app data backup with name test_backups
And I restore the downloaded app data backup
Then bind forwarders should be 1.1.1.1
Scenario: Set a schedule for a repository
Given the backup schedule is set to disable for 1 daily, 2 weekly and 3 monthly at 2:00 without app names
When I set the backup schedule to enable for 10 daily, 20 weekly and 30 monthly at 15:00 without app firewall
Then the schedule should be set to enable for 10 daily, 20 weekly and 30 monthly at 15:00 without app firewall
Scenario: Disable schedule for a repository
Given the backup schedule is set to enable for 10 daily, 20 weekly and 30 monthly at 15:00 without app firewall
When I set the backup schedule to disable for 1 daily, 2 weekly and 3 monthly at 2:00 without app names
Then the schedule should be set to disable for 1 daily, 2 weekly and 3 monthly at 2:00 without app names