| 1 |
Feature: HBAC services manipulation |
| 2 |
Create and delete HBAC services |
| 3 |
|
| 4 |
@test |
| 5 |
Scenario: Add a new service |
| 6 |
Given I am logged in as admin |
| 7 |
And I am on "hbac-services" page |
| 8 |
|
| 9 |
When I click on the "hbac-services-button-add" button |
| 10 |
Then I should see "add-hbac-service-modal" modal |
| 11 |
|
| 12 |
When I type in the "modal-textbox-service-name" textbox text "a_service1" |
| 13 |
Then I should see "a_service1" in the "modal-textbox-service-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-modal" modal |
| 20 |
And I should see "add-hbacservice-success" alert |
| 21 |
|
| 22 |
When I search for "a_service1" in the data table |
| 23 |
Then I should see "a_service1" entry in the data table |
| 24 |
And I should see "a_service1" entry in the data table with attribute "Description" set to "my description" |
| 25 |
|
| 26 |
@cleanup |
| 27 |
Scenario: Cleanup: Delete a service |
| 28 |
Given I delete service "a_service1" |
| 29 |
|
| 30 |
@seed |
| 31 |
Scenario: Seed: Create HBAC services used in tests |
| 32 |
Given HBAC service "a_service2" exists |
| 33 |
|
| 34 |
@test |
| 35 |
Scenario: Search for a service |
| 36 |
Given I am logged in as admin |
| 37 |
And I am on "hbac-services" page |
| 38 |
|
| 39 |
When I search for "a_service2" in the data table |
| 40 |
Then I should see "a_service2" entry in the data table |
| 41 |
And I should not see "a_service1" entry in the data table |
| 42 |
|
| 43 |
@cleanup |
| 44 |
Scenario: Cleanup: Delete seeded services |
| 45 |
Given I delete service "a_service2" |
| 46 |
|
| 47 |
@seed |
| 48 |
Scenario: Seed: Create HBAC services used in tests |
| 49 |
Given HBAC service "a_service1" exists |
| 50 |
|
| 51 |
@test |
| 52 |
Scenario: Delete a service |
| 53 |
Given I am logged in as admin |
| 54 |
And I am on "hbac-services" page |
| 55 |
|
| 56 |
When I search for "a_service1" in the data table |
| 57 |
Then I should see "a_service1" entry in the data table |
| 58 |
When I select entry "a_service1" in the data table |
| 59 |
Then I should see "a_service1" entry selected in the data table |
| 60 |
|
| 61 |
|
| 62 |
When I click on the "hbac-services-button-delete" button |
| 63 |
Then I should see "delete-hbac-services-modal" modal |
| 64 |
And I should see "a_service1" entry in the data table |
| 65 |
|
| 66 |
When I click on the "modal-button-delete" button |
| 67 |
Then I should see "remove-hbacservices-success" alert |
| 68 |
And I should not see "delete-hbac-services-modal" modal |
| 69 |
And I should not see "a_service1" entry in the data table |
| 70 |
|
| 71 |
@seed |
| 72 |
Scenario: Seed: Create HBAC services used in tests |
| 73 |
Given HBAC service "a_service2" exists |
| 74 |
And HBAC service "a_service3" exists |
| 75 |
|
| 76 |
@test |
| 77 |
Scenario: Delete many services |
| 78 |
Given I am logged in as admin |
| 79 |
And I am on "hbac-services" page |
| 80 |
|
| 81 |
When I search for "a_service2" in the data table |
| 82 |
Then I should see "a_service2" entry in the data table |
| 83 |
When I select entry "a_service2" in the data table |
| 84 |
Then I should see "a_service2" entry selected in the data table |
| 85 |
|
| 86 |
When I search for "a_service3" in the data table |
| 87 |
Then I should see "a_service3" entry in the data table |
| 88 |
When I select entry "a_service3" in the data table |
| 89 |
Then I should see "a_service3" entry selected in the data table |
| 90 |
|
| 91 |
When I click on the "hbac-services-button-delete" button |
| 92 |
Then I should see "delete-hbac-services-modal" modal |
| 93 |
And I should see "a_service2" entry in the data table |
| 94 |
And I should see "a_service3" entry in the data table |
| 95 |
|
| 96 |
When I click on the "modal-button-delete" button |
| 97 |
Then I should see "remove-hbacservices-success" alert |
| 98 |
And I should not see "delete-hbac-services-modal" modal |
| 99 |
And I should not see "a_service2" entry in the data table |
| 100 |
And I should not see "a_service3" entry in the data table |
| 101 |
|
| 102 |
@test |
| 103 |
Scenario: Cancel creation of a service |
| 104 |
Given I am logged in as admin |
| 105 |
And I am on "hbac-services" page |
| 106 |
|
| 107 |
When I click on the "hbac-services-button-add" button |
| 108 |
Then I should see "add-hbac-service-modal" modal |
| 109 |
|
| 110 |
When I type in the "modal-textbox-service-name" textbox text "a_service_cancel" |
| 111 |
Then I should see "a_service_cancel" in the "modal-textbox-service-name" textbox |
| 112 |
|
| 113 |
When I click on the "modal-button-cancel" button |
| 114 |
Then I should not see "add-hbac-service-modal" modal |
| 115 |
And I should not see "a_service_cancel" entry in the data table |