mirror of
https://gitlab.com/KKlochko/tui-rsync.git
synced 2026-08-12 17:57:43 +00:00
36 lines
1.2 KiB
Gherkin
36 lines
1.2 KiB
Gherkin
Feature: Creating a backup plan
|
|
|
|
@fixture.injector
|
|
@fixture.in_memory_database
|
|
@fixture.backup_plan_service
|
|
Scenario Outline: Create an new unique backup plan
|
|
Given the label "<label>"
|
|
And the path "<source_path>"
|
|
And the destinations <destinations>
|
|
When I create the backup plan
|
|
Then it should be created successfully
|
|
|
|
Examples:
|
|
| label | source_path | destinations |
|
|
| 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 "<label>"
|
|
And the path "<source_path>"
|
|
And the destinations <destinations>
|
|
When I create the backup plan
|
|
When I delete the backup plan
|
|
Then it should be deleted successfully
|
|
|
|
Examples:
|
|
| label | source_path | destinations |
|
|
| usb | /mnt/usb | [] |
|
|
| db | /db | ["/backup/db"] |
|
|
| temp | /tmp | ["/backup/tmp1", "/backup/tmp2"] |
|
|
|