| 1 |
Feature: User group manipulation |
| 2 |
Create, and delete user groups |
| 3 |
|
| 4 |
@test |
| 5 |
Scenario: Add a new POSIX group |
| 6 |
Given I am logged in as admin |
| 7 |
And I am on "user-groups" page |
| 8 |
|
| 9 |
When I click on the "user-groups-button-add" button |
| 10 |
Then I should see "add-user-group-modal" modal |
| 11 |
|
| 12 |
When I type in the "modal-textbox-group-name" textbox text "a_posix_group" |
| 13 |
Then I should see "a_posix_group" in the "modal-textbox-group-name" textbox |
| 14 |
|
| 15 |
When I type in the "modal-textbox-group-gid" textbox text "77777" |
| 16 |
Then I should see "77777" in the "modal-textbox-group-gid" textbox |
| 17 |
|
| 18 |
When I click on the "modal-button-add" button |
| 19 |
Then I should not see "add-user-group-modal" modal |
| 20 |
And I should see "add-group-success" alert |
| 21 |
|
| 22 |
When I search for "a_posix_group" in the data table |
| 23 |
Then I should see "a_posix_group" entry in the data table with attribute "GID" set to "77777" |
| 24 |
|
| 25 |
@cleanup |
| 26 |
Scenario: Delete a group |
| 27 |
Given I delete user group "a_posix_group" |
| 28 |
|
| 29 |
@test |
| 30 |
Scenario: Add a new non-POSIX group |
| 31 |
Given I am logged in as admin |
| 32 |
And I am on "user-groups" page |
| 33 |
|
| 34 |
When I click on the "user-groups-button-add" button |
| 35 |
Then I should see "add-user-group-modal" modal |
| 36 |
|
| 37 |
When I type in the "modal-textbox-group-name" textbox text "a_non_posix_group" |
| 38 |
Then I should see "a_non_posix_group" in the "modal-textbox-group-name" textbox |
| 39 |
|
| 40 |
When I select "non-posix" option in the "modal-group-type-select" selector |
| 41 |
Then I should see "non-posix" option in the "modal-group-type-select" selector |
| 42 |
|
| 43 |
When I click on the "modal-button-add" button |
| 44 |
Then I should not see "add-user-group-modal" modal |
| 45 |
And I should see "add-group-success" alert |
| 46 |
|
| 47 |
When I search for "a_non_posix_group" in the data table |
| 48 |
Then I should see "a_non_posix_group" entry in the data table |
| 49 |
|
| 50 |
@cleanup |
| 51 |
Scenario: Delete a group |
| 52 |
Given I delete user group "a_non_posix_group" |
| 53 |
|
| 54 |
@test |
| 55 |
Scenario: Add a new external group |
| 56 |
Given I am logged in as admin |
| 57 |
And I am on "user-groups" page |
| 58 |
|
| 59 |
When I click on the "user-groups-button-add" button |
| 60 |
Then I should see "add-user-group-modal" modal |
| 61 |
|
| 62 |
When I type in the "modal-textbox-group-name" textbox text "a_external_group" |
| 63 |
Then I should see "a_external_group" in the "modal-textbox-group-name" textbox |
| 64 |
|
| 65 |
When I click on the "modal-button-add" button |
| 66 |
Then I should not see "add-user-group-modal" modal |
| 67 |
And I should see "add-group-success" alert |
| 68 |
|
| 69 |
When I search for "a_external_group" in the data table |
| 70 |
Then I should see "a_external_group" entry in the data table |
| 71 |
|
| 72 |
@cleanup |
| 73 |
Scenario: Delete a group |
| 74 |
Given I delete user group "a_external_group" |
| 75 |
|
| 76 |
@seed |
| 77 |
Scenario: Create a group |
| 78 |
Given user group "a_posix_group" exists |
| 79 |
|
| 80 |
@test |
| 81 |
Scenario: Delete a group |
| 82 |
Given I am logged in as admin |
| 83 |
And I am on "user-groups" page |
| 84 |
|
| 85 |
When I search for "a_posix_group" in the data table |
| 86 |
Then I should see "a_posix_group" entry in the data table |
| 87 |
|
| 88 |
When I select entry "a_posix_group" in the data table |
| 89 |
Then I should see "a_posix_group" entry selected in the data table |
| 90 |
|
| 91 |
When I click on the "user-groups-button-delete" button |
| 92 |
Then I should see "delete-user-groups-modal" modal |
| 93 |
|
| 94 |
When I click on the "modal-button-delete" button |
| 95 |
Then I should not see "delete-user-groups-modal" modal |
| 96 |
And I should see "remove-user-groups-success" alert |
| 97 |
|
| 98 |
When I search for "a_posix_group" in the data table |
| 99 |
Then I should not see "a_posix_group" entry in the data table |
| 100 |
|
| 101 |
@seed |
| 102 |
Scenario: Create groups |
| 103 |
Given user group "group1" exists |
| 104 |
And user group "group2" exists |
| 105 |
|
| 106 |
@test |
| 107 |
Scenario: Delete many groups |
| 108 |
Given I am logged in as admin |
| 109 |
And I am on "user-groups" page |
| 110 |
|
| 111 |
When I search for "group1" in the data table |
| 112 |
Then I should see "group1" entry in the data table |
| 113 |
When I select entry "group1" in the data table |
| 114 |
Then I should see "group1" entry selected in the data table |
| 115 |
|
| 116 |
When I search for "group2" in the data table |
| 117 |
Then I should see "group2" entry in the data table |
| 118 |
When I select entry "group2" in the data table |
| 119 |
Then I should see "group2" entry selected in the data table |
| 120 |
|
| 121 |
When I click on the "user-groups-button-delete" button |
| 122 |
Then I should see "delete-user-groups-modal" modal |
| 123 |
|
| 124 |
When I click on the "modal-button-delete" button |
| 125 |
Then I should not see "delete-user-groups-modal" modal |
| 126 |
And I should see "remove-user-groups-success" alert |
| 127 |
|
| 128 |
When I search for "group1" in the data table |
| 129 |
Then I should not see "group1" entry in the data table |
| 130 |
|
| 131 |
When I search for "group2" in the data table |
| 132 |
Then I should not see "group2" entry in the data table |
| 133 |
|
| 134 |
@test |
| 135 |
Scenario: Cancel creation of a group |
| 136 |
Given I am logged in as admin |
| 137 |
And I am on "user-groups" page |
| 138 |
|
| 139 |
When I search for "cancelgroup" in the data table |
| 140 |
Then I should not see "cancelgroup" entry in the data table |
| 141 |
|
| 142 |
When I click on the "user-groups-button-add" button |
| 143 |
Then I should see "add-user-group-modal" modal |
| 144 |
|
| 145 |
When I type in the "modal-textbox-group-name" textbox text "cancelgroup" |
| 146 |
Then I should see "cancelgroup" in the "modal-textbox-group-name" textbox |
| 147 |
|
| 148 |
When I click on the "modal-button-cancel" button |
| 149 |
Then I should not see "add-user-group-modal" modal |
| 150 |
|
| 151 |
When I search for "cancelgroup" in the data table |
| 152 |
Then I should not see "cancelgroup" entry in the data table |