mirror of
https://github.com/status-im/consul.git
synced 2025-01-09 21:35:52 +00:00
482426b13e
Adds support for ACL Roles and Service Identities CRUD, along with necessary changes to Tokens, and the CSS improvements required. Also includes refinements/improvements for easier testing of deeply nested components. 1. ember-data adapter/serializer/model triplet for Roles 2. repository, form/validations and searching filter for Roles 3. Moves potentially, repeated, or soon to to repeated functionality into a mixin (mainly for 'many policy' relationships) 4. A few styling tweaks for little edge cases around roles 5. Router additions, Route, Controller and templates for Roles Also see: * UI: ACL Roles cont. plus Service Identities (#5661 and #5720)
47 lines
2.0 KiB
Gherkin
47 lines
2.0 KiB
Gherkin
@setupApplicationTest
|
|
Feature: dc / acls / policies / delete: Policy Delete
|
|
Background:
|
|
Given 1 datacenter model with the value "datacenter"
|
|
Scenario: Deleting a policy model from the policies listing page
|
|
Given 1 policy model from yaml
|
|
---
|
|
ID: 1981f51d-301a-497b-89a0-05112ef02b4b
|
|
---
|
|
When I visit the policies page for yaml
|
|
---
|
|
dc: datacenter
|
|
---
|
|
And I click actions on the policies
|
|
And I click delete on the policies
|
|
And I click confirmDelete on the policies
|
|
Then a DELETE request is made to "/v1/acl/policy/1981f51d-301a-497b-89a0-05112ef02b4b?dc=datacenter"
|
|
And "[data-notification]" has the "notification-delete" class
|
|
And "[data-notification]" has the "success" class
|
|
Given the url "/v1/acl/policy/1981f51d-301a-497b-89a0-05112ef02b4b?dc=datacenter" responds with a 500 status
|
|
And I click actions on the policies
|
|
And I click delete on the policies
|
|
And I click confirmDelete on the policies
|
|
And "[data-notification]" has the "notification-delete" class
|
|
And "[data-notification]" has the "error" class
|
|
Scenario: Deleting a policy from the policy detail page
|
|
When I visit the policy page for yaml
|
|
---
|
|
dc: datacenter
|
|
policy: 1981f51d-301a-497b-89a0-05112ef02b4b
|
|
---
|
|
And I click delete
|
|
And I click confirmDelete on the deleteModal
|
|
Then a DELETE request is made to "/v1/acl/policy/1981f51d-301a-497b-89a0-05112ef02b4b?dc=datacenter"
|
|
And "[data-notification]" has the "notification-delete" class
|
|
And "[data-notification]" has the "success" class
|
|
When I visit the policy page for yaml
|
|
---
|
|
dc: datacenter
|
|
policy: 1981f51d-301a-497b-89a0-05112ef02b4b
|
|
---
|
|
Given the url "/v1/acl/policy/1981f51d-301a-497b-89a0-05112ef02b4b?dc=datacenter" responds with a 500 status
|
|
And I click delete
|
|
And I click confirmDelete on the deleteModal
|
|
And "[data-notification]" has the "notification-delete" class
|
|
And "[data-notification]" has the "error" class
|