| 1 |
Feature: HBAC service groups manipulation |
| 2 |
Create and delete HBAC service groups |
| 3 |
|
| 4 |
@test |
| 5 |
Scenario: Add a new service group |
| 6 |
Given I am logged in as admin |
| 7 |
And I am on "hbac-service-groups" page |
| 8 |
|
| 9 |
When I click on the "hbac-service-groups-button-add" button |
| 10 |
Then I should see "add-hbac-service-group-modal" modal |
| 11 |
|
| 12 |
When I type in the "modal-textbox-service-group-name" textbox text "a_service_group1" |
| 13 |
Then I should see "a_service_group1" in the "modal-textbox-service-group-name" textbox |
| 14 |
|
| 15 |
When I type in the "modal-textbox-description" textbox text "my description" |
| 16 |
Then I should see "my description" in the "modal-textbox-description" textbox |
| 17 |
|
| 18 |
When I click on the "modal-button-add" button |
| 19 |
Then I should not see "add-hbac-service-group-modal" modal |
| 20 |
And I should see "add-hbacservicegroup-success" alert |
| 21 |
|
| 22 |
When I search for "a_service_group1" in the data table |
| 23 |
Then I should see "a_service_group1" entry in the data table |
| 24 |
And I should see "a_service_group1" entry in the data table with attribute "Description" set to "my description" |
| 25 |
|
| 26 |
@cleanup |
| 27 |
Scenario: Cleanup: Delete a service group |
| 28 |
Given I delete service group "a_service_group1" |
| 29 |
|
| 30 |
@seed |
| 31 |
Scenario: Seed: Ensure service group exists |
| 32 |
Given HBAC service group "a_service_group2" exists |
| 33 |
|
| 34 |
@test |
| 35 |
Scenario: Search for a service group |
| 36 |
Given I am logged in as admin |
| 37 |
And I am on "hbac-service-groups" page |
| 38 |
|
| 39 |
When I search for "a_service_group2" in the data table |
| 40 |
Then I should see "a_service_group2" entry in the data table |
| 41 |
And I should not see "a_service_group1" entry in the data table |
| 42 |
|
| 43 |
@cleanup |
| 44 |
Scenario: Cleanup: Delete a service group |
| 45 |
Given I delete service group "a_service_group2" |
| 46 |
|
| 47 |
@seed |
| 48 |
Scenario: Seed: Ensure service group exists |
| 49 |
Given HBAC service group "a_service_group2" exists |
| 50 |
And HBAC service group "a_service_group3" exists |
| 51 |
|
| 52 |
@test |
| 53 |
Scenario: Delete many service groups |
| 54 |
Given I am logged in as admin |
| 55 |
And I am on "hbac-service-groups" page |
| 56 |
|
| 57 |
When I search for "a_service_group2" in the data table |
| 58 |
Then I should see "a_service_group2" entry in the data table |
| 59 |
When I select entry "a_service_group2" in the data table |
| 60 |
Then I should see "a_service_group2" entry selected in the data table |
| 61 |
|
| 62 |
When I search for "a_service_group3" in the data table |
| 63 |
Then I should see "a_service_group3" entry in the data table |
| 64 |
When I select entry "a_service_group3" in the data table |
| 65 |
Then I should see "a_service_group3" entry selected in the data table |
| 66 |
|
| 67 |
When I click on the "hbac-service-groups-button-delete" button |
| 68 |
Then I should see "delete-hbac-service-groups-modal" modal |
| 69 |
And I should see "a_service_group2" entry in the data table |
| 70 |
And I should see "a_service_group3" entry in the data table |
| 71 |
|
| 72 |
When I click on the "modal-button-delete" button |
| 73 |
Then I should see "remove-hbacservicegroups-success" alert |
| 74 |
And I should not see "a_service_group2" entry in the data table |
| 75 |
And I should not see "a_service_group3" entry in the data table |
| 76 |
|
| 77 |
@test |
| 78 |
Scenario: Cancel creation of a service group |
| 79 |
Given I am logged in as admin |
| 80 |
And I am on "hbac-service-groups" page |
| 81 |
|
| 82 |
When I click on the "hbac-service-groups-button-add" button |
| 83 |
Then I should see "add-hbac-service-group-modal" modal |
| 84 |
|
| 85 |
When I type in the "modal-textbox-service-group-name" textbox text "a_service_group_cancel" |
| 86 |
Then I should see "a_service_group_cancel" in the "modal-textbox-service-group-name" textbox |
| 87 |
|
| 88 |
When I click on the "modal-button-cancel" button |
| 89 |
Then I should not see "add-hbac-service-group-modal" modal |
| 90 |
And I should not see "a_service_group_cancel" entry in the data table |