2019-01-23 13:51:36 +00:00
|
|
|
@setupApplicationTest
|
2020-01-24 12:26:28 +00:00
|
|
|
Feature: dc / acls / tokens / own-no-delete: The your current token has no delete buttons
|
2019-01-23 13:51:36 +00:00
|
|
|
Background:
|
|
|
|
Given 1 datacenter model with the value "dc-1"
|
|
|
|
And 1 token model from yaml
|
|
|
|
---
|
|
|
|
AccessorID: token
|
|
|
|
SecretID: ee52203d-989f-4f7a-ab5a-2bef004164ca
|
|
|
|
---
|
|
|
|
Scenario: On the listing page
|
2020-04-08 17:03:18 +00:00
|
|
|
Given settings from yaml
|
2019-01-23 13:51:36 +00:00
|
|
|
---
|
2020-04-08 17:03:18 +00:00
|
|
|
consul:token:
|
|
|
|
SecretID: secret
|
|
|
|
AccessorID: accessor
|
|
|
|
Namespace: default
|
2019-01-23 13:51:36 +00:00
|
|
|
---
|
|
|
|
When I visit the tokens page for yaml
|
|
|
|
---
|
|
|
|
dc: dc-1
|
|
|
|
---
|
|
|
|
Then the url should be /dc-1/acls/tokens
|
|
|
|
And I click actions on the tokens
|
|
|
|
And I click use on the tokens
|
|
|
|
And I click confirmUse on the tokens
|
|
|
|
Then "[data-notification]" has the "notification-use" class
|
|
|
|
And "[data-notification]" has the "success" class
|
|
|
|
Then I have settings like yaml
|
|
|
|
---
|
2020-01-24 12:26:28 +00:00
|
|
|
consul:token: "{\"AccessorID\":\"token\",\"SecretID\":\"ee52203d-989f-4f7a-ab5a-2bef004164ca\",\"Namespace\":\"@namespace\"}"
|
2019-01-23 13:51:36 +00:00
|
|
|
---
|
|
|
|
And I click actions on the tokens
|
|
|
|
Then I don't see delete on the tokens
|
|
|
|
And I visit the token page for yaml
|
|
|
|
---
|
|
|
|
dc: dc-1
|
|
|
|
token: ee52203d-989f-4f7a-ab5a-2bef004164ca
|
|
|
|
---
|
|
|
|
Then the url should be /dc-1/acls/tokens/ee52203d-989f-4f7a-ab5a-2bef004164ca
|
|
|
|
Then I don't see confirmDelete
|