open-consul/ui/packages/consul-ui/tests/acceptance/dc/acls/tokens/own-no-delete.feature

43 lines
1.3 KiB
Gherkin

@setupApplicationTest
Feature: dc / acls / tokens / own-no-delete: Your current token has no delete buttons
Background:
Given 1 datacenter model with the value "dc-1"
And 1 token model from yaml
---
AccessorID: token
SecretID: ee52203d-989f-4f7a-ab5a-2bef004164ca
Namespace: @!namespace
---
Scenario: On the listing page
Given settings from yaml
---
consul:token:
SecretID: secret
AccessorID: accessor
Namespace: default
Partition: default
---
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
---
consul:token: "{\"AccessorID\":\"token\",\"SecretID\":\"ee52203d-989f-4f7a-ab5a-2bef004164ca\",\"Namespace\":\"@namespace\",\"Partition\":\"default\"}"
---
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: token
---
Then the url should be /dc-1/acls/tokens/token
Then I don't see confirmDelete