open-consul/ui-v2/tests/acceptance/dc/acls/tokens/login.feature

21 lines
547 B
Gherkin

@setupApplicationTest
Feature: dc / acls / tokens / login
Scenario: Logging into the ACLs login page
Given 1 datacenter model with the value "dc-1"
And the url "/v1/acl/tokens" responds with a 403 status
When I visit the tokens page for yaml
---
dc: dc-1
---
Then the url should be /dc-1/acls/tokens
And I fill in with yaml
---
secret: something
---
And I submit
Then a GET request is made to "/v1/acl/token/self?dc=dc-1" from yaml
---
headers:
X-Consul-Token: something
---