John Cowen 2e4c9f5330
ui: Support Route optional parameters/segments (#10212)
Moves our URLs with 'optional namespace segment' into a separately abstracted 'optional URL segment' feature
2021-05-26 17:43:46 +01:00

49 lines
1.2 KiB
Gherkin

@setupApplicationTest
Feature: dc / acls / auth-methods / index: ACL Auth Methods List
Scenario:
Given 1 datacenter model with the value "dc-1"
And 3 authMethod models
When I visit the authMethods page for yaml
---
dc: dc-1
---
Then the url should be /dc-1/acls/auth-methods
Then I see 3 authMethod models
And the title should be "Auth Methods - Consul"
Scenario: Searching the Auth Methods
Given 1 datacenter model with the value "dc-1"
And 3 authMethod models from yaml
---
- Name: kube
DisplayName: minikube
- Name: agent
DisplayName: ''
- Name: node
DisplayName: mininode
---
When I visit the authMethods page for yaml
---
dc: dc-1
---
Then the url should be /dc-1/acls/auth-methods
Then I see 3 authMethod models
Then I fill in with yaml
---
s: kube
---
And I see 1 authMethod model
And I see 1 authMethod model with the name "minikube"
Then I fill in with yaml
---
s: agent
---
And I see 1 authMethod model
And I see 1 authMethod model with the name "agent"
Then I fill in with yaml
---
s: ode
---
And I see 1 authMethod model
And I see 1 authMethod model with the name "mininode"