2018-07-04 15:37:41 +00:00
|
|
|
@setupApplicationTest
|
|
|
|
Feature: dc / acls / use: Using an ACL token
|
|
|
|
Background:
|
|
|
|
Given 1 datacenter model with the value "datacenter"
|
2018-11-02 14:44:36 +00:00
|
|
|
And I'm using a legacy token
|
2018-07-04 15:37:41 +00:00
|
|
|
And 1 acl model from yaml
|
|
|
|
---
|
|
|
|
ID: token
|
|
|
|
---
|
|
|
|
Scenario: Using an ACL token from the listing page
|
|
|
|
When I visit the acls page for yaml
|
|
|
|
---
|
|
|
|
dc: datacenter
|
|
|
|
---
|
|
|
|
Then I have settings like yaml
|
|
|
|
---
|
2018-11-02 14:44:36 +00:00
|
|
|
consul:token: '{"AccessorID":null,"SecretID":"id"}'
|
2018-07-04 15:37:41 +00:00
|
|
|
---
|
|
|
|
And I click actions on the acls
|
|
|
|
And I click use on the acls
|
|
|
|
And I click confirmUse on the acls
|
2018-08-29 18:14:31 +00:00
|
|
|
Then "[data-notification]" has the "notification-use" class
|
|
|
|
And "[data-notification]" has the "success" class
|
2018-07-04 15:37:41 +00:00
|
|
|
Then I have settings like yaml
|
|
|
|
---
|
2018-11-02 14:44:36 +00:00
|
|
|
consul:token: '{"AccessorID":null,"SecretID":"token"}'
|
2018-07-04 15:37:41 +00:00
|
|
|
---
|
|
|
|
Scenario: Using an ACL token from the detail page
|
|
|
|
When I visit the acl page for yaml
|
|
|
|
---
|
|
|
|
dc: datacenter
|
|
|
|
acl: token
|
|
|
|
---
|
|
|
|
Then I have settings like yaml
|
|
|
|
---
|
2018-11-02 14:44:36 +00:00
|
|
|
consul:token: '{"AccessorID":null,"SecretID":"id"}'
|
2018-07-04 15:37:41 +00:00
|
|
|
---
|
|
|
|
And I click use
|
|
|
|
And I click confirmUse
|
2018-08-29 18:14:31 +00:00
|
|
|
Then "[data-notification]" has the "notification-use" class
|
|
|
|
And "[data-notification]" has the "success" class
|
2018-07-04 15:37:41 +00:00
|
|
|
Then I have settings like yaml
|
|
|
|
---
|
2018-11-02 14:44:36 +00:00
|
|
|
consul:token: '{"AccessorID":null,"SecretID":"token"}'
|
2018-07-04 15:37:41 +00:00
|
|
|
---
|