@@ -5,22 +5,21 @@ Feature: Restore a version
55
66 Background :
77 Given that I am logged in as "testuser"
8- And the "session_data .xml" fixtures are loaded
8+ And the "versionable .xml" fixtures are loaded
99
1010 Scenario : Restore node version
11- Given there exists a node version "asd" for node "/tests_general_base"
12- And I execute the "version:restore --version=asd" command
11+ Given I execute the following commands:
12+ | cd /tests_version_base /versioned |
13+ | node :set foo initalbar |
14+ | session :save |
15+ | version :checkpoint /tests_version_base /versioned |
16+ | node :set foo baz |
17+ | session :save |
18+ | version :checkpoint /tests_version_base /versioned |
19+ And I execute the "version:restore /tests_version_base/versioned 1.0" command
1320 Then the command should not fail
14- And the version of "/tests_general_base" should be "asd"
15-
16- Scenario : Restore node version by label
17- Given there exists a node version "asd" for node "/tests_general_base"
18- And I execute the "version:restore --label=asd" command
19- Then the command should not fail
20- And the version of "/tests_general_base" should be "asd"
21-
22- Scenario : Restore multiple node versions
23- Given there exists a node version "asd" for node "/tests_general_base"
24- And I execute the "version:restore --version=asd --version=dsa" command
25- Then the command should not fail
26- And the version of "/tests_general_base" should be "asd"
21+ And I execute the "ls" command
22+ Then I should see the following:
23+ """
24+ | foo | STRING | inital
25+ """
0 commit comments