From 1e2ee690d73754aa1df22d614b51f0e48d2d9772 Mon Sep 17 00:00:00 2001 From: James Valleroy Date: Sun, 5 Sep 2021 20:04:26 -0400 Subject: [PATCH] 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 Reviewed-by: Sunil Mohan Adapa --- plinth/modules/backups/tests/backups.feature | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/plinth/modules/backups/tests/backups.feature b/plinth/modules/backups/tests/backups.feature index f27910145..d3695483f 100644 --- a/plinth/modules/backups/tests/backups.feature +++ b/plinth/modules/backups/tests/backups.feature @@ -29,3 +29,8 @@ 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