Skip to content

Commit a74b588

Browse files
committed
TODO:
node:workspace:corresponding workspace_name : Node::getCorrespondingNodePath node:workspace:update workspace_name : Node::update node:shared:show : Node::getSharedSet node:shared:remove : Node::removeSharedSet node:lifecycle:follow-transition <transition> : Node::followLifecycleTransition node:lifecycle:list : Node::getAllowedLifecycleTransitions
1 parent 0d0fee0 commit a74b588

File tree

7 files changed

+106
-0
lines changed

7 files changed

+106
-0
lines changed

features/node_list.feature

Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
Feature: List properites and chidren of current node
2+
In order to list the properties and children of the current node
3+
As a user that is logged into the shell
4+
I should be able to run a command which does that
5+
6+
Background:
7+
Given that I am logged in as "testuser"
8+
And the "session_data.xml" fixtures are loaded
9+
10+
Scenario: List the properties and children of the current node
11+
Given the current node is "/tests_general_base"
12+
And I execute the "node:list --no-ansi" command
13+
Then the command should not fail
14+
And I should see a table with the following rows
15+
| Node / Prop | Type | Value |
16+
| -jcr:createdBy | STRING | admin |
17+
| -jcr:primaryType | NAME | nt:folder |
18+
| index.txt/ | nt:file | |
19+
| idExample/ | nt:file | |
20+
| test:namespacedNode/ | nt:folder | |
21+
| emptyExample/ | nt:folder | |
22+
| multiValueProperty/ | nt:folder | |
23+
| numberPropertyNode/ | nt:file | |
24+
| NumberPropertyNodeToCompare1/ | nt:file | |
25+
| NumberPropertyNodeToCompare2/ | nt:file | |
26+
27+
Scenario: List the properties
28+
Given the current node is "/tests_general_base"
29+
And I execute the "node:list --properties --no-ansi" command
30+
Then the command should not fail
31+
And I should see a table with the following rows
32+
| Property name | Type | Value |
33+
| -jcr:createdBy | STRING | admin |
34+
| -jcr:primaryType | NAME | nt:folder |
35+
36+
Scenario: List the children nodes
37+
Given the current node is "/tests_general_base"
38+
And I execute the "node:list --children --no-ansi" command
39+
Then the command should not fail
40+
And I should see a table with the following rows
41+
| Node name | Node Type | Value |
42+
| index.txt/ | nt:file | |
43+
| idExample/ | nt:file | |
44+
| test:namespacedNode/ | nt:folder | |
45+
| emptyExample/ | nt:folder | |
46+
| multiValueProperty/ | nt:folder | |
47+
| numberPropertyNode/ | nt:file | |
48+
| NumberPropertyNodeToCompare1/ | nt:file | |
49+
| NumberPropertyNodeToCompare2/ | nt:file | |

features/node_mixin_add.feature

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
Feature: Add mixin to the current node
2+
In order to add a mixin to the current node
3+
As a user that is logged into the shell
4+
I should be able to run a command which does that
5+
6+
Background:
7+
Given that I am logged in as "testuser"
8+
And the "session_data.xml" fixtures are loaded
9+
10+
Scenario: Add a mixin to the current node
11+
Given the current node is "/tests_general_base"
12+
And I execute the "node:mixin-add mixin:versionable --no-ansi" command
13+
Then the command should not fail
14+
And the current node should have the mixin "mixin:versionable"

features/node_mixin_remove.feature

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
Feature: Remove mixin to the current node
2+
In order to add a mixin to the current node
3+
As a user that is logged into the shell
4+
I should be able to run a command which does that
5+
6+
Background:
7+
Given that I am logged in as "testuser"
8+
And the "session_data.xml" fixtures are loaded
9+
10+
Scenario: Remove a mixin to the current node
11+
Given the current node is "/tests_general_base"
12+
And I execute the "node:mixin-remove mixin:versionable --no-ansi" command
13+
Then the command should not fail
14+
And the current node should not have the mixin "mixin:versionable"

features/node_references.feature

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
Feature: Show node references
2+
In order to list which nodes reference the current node
3+
As a user that is logged into the shell
4+
I should be able to run a command which does that
5+
6+
Background:
7+
Given that I am logged in as "testuser"
8+
And the "session_data.xml" fixtures are loaded
9+
10+
Scenario: List weak references
11+
Given the current node is "/tests_general_base/idExample/jcr:content/weakreference_target""
12+
And I execute the "node:references --no-ansi" command
13+
Then the command should not fail
14+
And I should see table with the following rows::
15+
| Type | Path |
16+
| weak | /foobar |
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
Feature: Set the nodes primary type
2+
In order to set the primary type of the current node
3+
As a user that is logged into the shell
4+
I should be able to run a command which does that
5+
6+
Background:
7+
Given that I am logged in as "testuser"
8+
And the "session_data.xml" fixtures are loaded
9+
10+
Scenario: List the properties and children of the current node
11+
Given the current node is "/tests_general_base"
12+
And I execute the "node:type:set-primary nt:unstructured --no-ansi" command
13+
Then the command should not fail

features/node_workspace_corresponding.feature

Whitespace-only changes.

features/node_workspace_update.feature

Whitespace-only changes.

0 commit comments

Comments
 (0)