2018-10-19 15:17:02 +00:00
|
|
|
@setupApplicationTest
|
|
|
|
Feature: dc / acls / tokens / index: ACL Token List
|
|
|
|
|
2018-11-02 14:44:36 +00:00
|
|
|
Scenario: I see the tokens
|
2018-10-19 15:17:02 +00:00
|
|
|
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
|
|
|
|
Then I see 3 token models
|
2018-11-02 14:44:36 +00:00
|
|
|
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
|