mirror of
https://github.com/status-im/consul.git
synced 2025-01-11 14:24:39 +00:00
6589cbbd0d
* ui: Add the most basic workspace root in /ui * We already have a LICENSE file in the repository root * Change directory path in build scripts ui-v2 -> ui * Make yarn install flags configurable from elsewhere * Minimal workspace root makefile * Call the new docker specific target * Update yarn in the docker build image * Reconfigure the netlify target and move to the higher makefile * Move ui-v2 -> ui/packages/consul-ui * Change repo root to refleect new folder structure * Temporarily don't hoist consul-api-double * Fixup CI configuration * Fixup lint errors * Fixup Netlify target
111 lines
2.9 KiB
Gherkin
111 lines
2.9 KiB
Gherkin
@setupApplicationTest
|
|
Feature: dc / acls / tokens / index: ACL Token List
|
|
|
|
Scenario: I see the tokens
|
|
Given 1 datacenter model with the value "dc-1"
|
|
And 3 token models
|
|
When I visit the tokens page for yaml
|
|
---
|
|
dc: dc-1
|
|
---
|
|
Then the url should be /dc-1/acls/tokens
|
|
And the title should be "Tokens - Consul"
|
|
Then I see 3 token models
|
|
Scenario: Searching the tokens
|
|
Given 1 datacenter model with the value "dc-1"
|
|
And 4 token models from yaml
|
|
---
|
|
- Description: Description Search
|
|
Legacy: false
|
|
ServiceIdentities:
|
|
- ServiceName: not-in-sisearch
|
|
Policies:
|
|
- Name: not-in-Polsearch
|
|
Roles:
|
|
- Name: not-in-rolesearch
|
|
- Description: Not in descsearch
|
|
Legacy: false
|
|
ServiceIdentities:
|
|
- ServiceName: not-in-sisearch
|
|
Policies:
|
|
- Name: Policy-Search
|
|
Roles:
|
|
- Name: not-in-rolesearch-either
|
|
- Description: Not in descsearch either
|
|
Legacy: false
|
|
ServiceIdentities:
|
|
- ServiceName: not-in-sisearch
|
|
Policies:
|
|
- Name: not-int-Polsearch-either
|
|
Roles:
|
|
- Name: Role-Search
|
|
- Description: Not in descsearch either
|
|
Legacy: false
|
|
ServiceIdentities:
|
|
- ServiceName: Si-Search
|
|
Policies:
|
|
- Name: not-int-Polsearch-either
|
|
Roles:
|
|
- Name: not-in-rolesearch-either
|
|
---
|
|
When I visit the tokens page for yaml
|
|
---
|
|
dc: dc-1
|
|
---
|
|
Then the url should be /dc-1/acls/tokens
|
|
Then I see 4 token models
|
|
Then I fill in with yaml
|
|
---
|
|
s: Description
|
|
---
|
|
And I see 1 token model
|
|
And I see 1 token model with the description "Description Search"
|
|
Then I fill in with yaml
|
|
---
|
|
s: Policy-Search
|
|
---
|
|
And I see 1 token model
|
|
And I see 1 token model with the policy "Policy-Search"
|
|
Then I fill in with yaml
|
|
---
|
|
s: Role-Search
|
|
---
|
|
And I see 1 token model
|
|
And I see 1 token model with the role "Role-Search"
|
|
Then I fill in with yaml
|
|
---
|
|
s: Si-Search
|
|
---
|
|
And I see 1 token model
|
|
And I see 1 token model with the serviceIdentity "Si-Search"
|
|
Scenario: I see the legacy message if I have one legacy token
|
|
Given 1 datacenter model with the value "dc-1"
|
|
And 3 token models from yaml
|
|
---
|
|
- Legacy: true
|
|
- Legacy: false
|
|
- Legacy: false
|
|
---
|
|
When I visit the tokens page for yaml
|
|
---
|
|
dc: dc-1
|
|
---
|
|
Then the url should be /dc-1/acls/tokens
|
|
And I see update
|
|
And I see 3 token models
|
|
Scenario: I don't see the legacy message if I have no legacy tokens
|
|
Given 1 datacenter model with the value "dc-1"
|
|
And 3 token models from yaml
|
|
---
|
|
- Legacy: false
|
|
- Legacy: false
|
|
- Legacy: false
|
|
---
|
|
When I visit the tokens page for yaml
|
|
---
|
|
dc: dc-1
|
|
---
|
|
Then the url should be /dc-1/acls/tokens
|
|
And I don't see update
|
|
And I see 3 token models
|