open-consul/ui/packages/consul-ui/tests/acceptance/dc/acls/policies/index.feature

38 lines
1.0 KiB
Gherkin
Raw Normal View History

@setupApplicationTest
Feature: dc / acls / policies / index: ACL Policy List
Scenario:
Given 1 datacenter model with the value "dc-1"
And 3 policy models
When I visit the policies page for yaml
---
dc: dc-1
---
Then the url should be /dc-1/acls/policies
Then I see 3 policy models
And the title should be "Policies - Consul"
Scenario: Searching the policies
Given 1 datacenter model with the value "dc-1"
And 3 policy models from yaml
---
- Description: Find me
- Description: Not in search
- Description: Not in search either
---
When I visit the policies page for yaml
---
dc: dc-1
---
Then the url should be /dc-1/acls/policies
Then I see 3 policy models
Then I fill in with yaml
---
s: Find me
---
And I see 1 policy model
And I see 1 policy model with the description "Find me"
@ignore
Scenario: The global-managment policy can't be deleted
And I click actions on the policies
Then I don't see delete on the policies