From b99997569552f0b3858993961b01d4c8a7cab6eb Mon Sep 17 00:00:00 2001 From: KKlochko Date: Sun, 26 Jan 2025 15:36:50 +0200 Subject: [PATCH] Add the tests for the read query. --- features/backup_plan_cli_show.feature | 18 ++++++++++++++++ features/backup_plan_model.feature | 18 ---------------- features/backup_plan_model_read.feature | 14 +++++++++++++ features/steps/backup_plan_model_steps.py | 25 +++++++++-------------- 4 files changed, 42 insertions(+), 33 deletions(-) create mode 100644 features/backup_plan_cli_show.feature create mode 100644 features/backup_plan_model_read.feature diff --git a/features/backup_plan_cli_show.feature b/features/backup_plan_cli_show.feature new file mode 100644 index 0000000..f56dfa1 --- /dev/null +++ b/features/backup_plan_cli_show.feature @@ -0,0 +1,18 @@ +Feature: Deleting a backup plan with the CLI + + @fixture.injector + @fixture.in_memory_database + @fixture.seeds + @fixture.cli + Scenario Outline: Deleting a backup plan with the CLI + Given the CLI arguments are "" + And I have a backup plan with id="" + When I run the CLI + Then the CLI executed with "" + + Examples: + | arguments | existing_backup_plan_id | result | description | + | plans show one -i 8aa59e7e-dc75-459b-beb5-b710b39be583 | 8aa59e7e-dc75-459b-beb5-b710b39be583 | success | delete an existing plan | + | plans show one -i 8aa59e7e-dc75-459b-aeb5-b710b39be583 | 8aa59e7e-dc75-459b-beb5-b710b39be512 | error | delete a non-existing plan | + + diff --git a/features/backup_plan_model.feature b/features/backup_plan_model.feature index 8b2b774..cc8b75e 100644 --- a/features/backup_plan_model.feature +++ b/features/backup_plan_model.feature @@ -15,21 +15,3 @@ Feature: Creating a backup plan | usb | /mnt/usb | [] | | db | /db | ["/backup/db"] | | temp | /tmp | ["/backup/tmp1", "/backup/tmp2"] | - - @fixture.injector - @fixture.in_memory_database - @fixture.backup_plan_service - Scenario Outline: Create an new unique backup plan - Given the label "