Kenia 1507dd8ab3
ui: Auth Methods List view (#9617)
* Create mock-api endpoints for auth-methods

* Implement auth-method endpoints and model with tests

* Create route and tab for auth-methods

* Create auth-method list and type components with styles

* Add JWT and OIDC svg logos to codebase

* Add brand translations

* Add SearchBar to Auth Methods

* Add acceptance test for Auth Methods UI

* Skip auth method repo test

* Changes from review notes

* Fixup auth-method modela and mock-data

* Update SearhBar with rebased changes

* Add filterBy source and sortBy max token ttl

* Update to SortBy MethodName

* Update UI acceptance tests

* Update mock data DisplayNames

* Skip repo test

* Fix to breaking serializer test

* Implement auth-method endpoints and model with tests

* Add acceptance test for Auth Methods UI

* Update SearhBar with rebased changes

* Add filterBy source and sortBy max token ttl

* Update to SortBy MethodName

* Update UI acceptance tests

* Update mock data DisplayNames

* Fix to breaking serializer test

* Update class for search

* Add auth-methods link to sidebar

* Fixup PR review notes

* Fixup review notes

* Only show OIDC filter with enterprise

* Update conditionals for MaxTokenTTL & TokenLocality

* Refactor
2021-02-17 13:56:56 -05:00

49 lines
1.3 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"