John Cowen 4c58f9402e
ui: Support for Node Identities (#8137)
* Add all the new data required for NodeIdentities

* Add potential NodeIdentity to the token list component

* Amend the policy-form/selector to allow node identity creation

* Fix up CSS for radio buttons and select label

* Add node-identity policy template component

* Fix up and add acceptance tests for NodeIndentities

* Make sure policy previews take node identities into account

* Only show certain policy markup if those we have those policies

* Potentially temporarily hide dt's that don't have icons yet
2020-06-23 09:59:43 +01:00

41 lines
1.4 KiB
Gherkin

@setupApplicationTest
Feature: dc / acls / policies / as many / remove: Remove
Scenario: Removing policies as children of the [Model] page
Given 1 datacenter model with the value "datacenter"
And 1 [Model] model from yaml
---
ServiceIdentities: ~
NodeIdentities: ~
Policies:
- Name: Policy
ID: 00000000-0000-0000-0000-000000000001
---
When I visit the [Model] page for yaml
---
dc: datacenter
[Model]: key
---
Then the url should be /datacenter/acls/[Model]s/key
And I see 1 policy model on the policies component
And I click expand on the policies.selectedOptions
# Until we have a reliable way of mocking out and controlling IntersectionObserver
# this will need to stay commented out
# And a GET request was made to "/v1/acl/policy/00000000-0000-0000-0000-000000000001?dc=datacenter&ns=@namespace"
And I click delete on the policies.selectedOptions
And I click confirmDelete on the policies.selectedOptions
And I see 0 policy models on the policies component
And I submit
Then a PUT request was made to "/v1/acl/[Model]/key?dc=datacenter" from yaml
---
body:
Namespace: @namespace
Policies: [[]]
---
Then the url should be /datacenter/acls/[Model]s
Where:
-------------
| Model |
| token |
| role |
-------------