mirror of
https://github.com/status-im/consul.git
synced 2025-02-08 11:54:12 +00:00
4c58f9402e
* 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
49 lines
1.5 KiB
Gherkin
49 lines
1.5 KiB
Gherkin
@setupApplicationTest
|
|
Feature: dc / acls / policies / as many / add existing: Add existing policy
|
|
Scenario: Adding an existing policy as a child of [Model]
|
|
Given 1 datacenter model with the value "datacenter"
|
|
And 1 [Model] model from yaml
|
|
---
|
|
Policies: ~
|
|
ServiceIdentities: ~
|
|
NodeIdentities: ~
|
|
---
|
|
And 2 policy models from yaml
|
|
---
|
|
- ID: policy-1
|
|
Name: Policy 1
|
|
- ID: policy-2
|
|
Name: Policy 2
|
|
---
|
|
When I visit the [Model] page for yaml
|
|
---
|
|
dc: datacenter
|
|
[Model]: key
|
|
---
|
|
Then the url should be /datacenter/acls/[Model]s/key
|
|
And I click "form > #policies .ember-power-select-trigger"
|
|
And I click ".ember-power-select-option:first-child"
|
|
And I see 1 policy model on the policies component
|
|
And I click "form > #policies .ember-power-select-trigger"
|
|
And I click ".ember-power-select-option:nth-child(1)"
|
|
And I see 2 policy models on the policies component
|
|
And I submit
|
|
Then a PUT request was made to "/v1/acl/[Model]/key?dc=datacenter" with the body from yaml
|
|
---
|
|
Namespace: @namespace
|
|
Policies:
|
|
- ID: policy-1
|
|
Name: Policy 1
|
|
- ID: policy-2
|
|
Name: Policy 2
|
|
---
|
|
Then the url should be /datacenter/acls/[Model]s
|
|
And "[data-notification]" has the "notification-update" class
|
|
And "[data-notification]" has the "success" class
|
|
Where:
|
|
-------------
|
|
| Model |
|
|
| token |
|
|
| role |
|
|
-------------
|