Skip to content

Commit

Permalink
Move acceptance tests to use ACLs perms
Browse files Browse the repository at this point in the history
  • Loading branch information
John Cowen committed Sep 22, 2021
1 parent 246e45a commit 7b0c3aa
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,21 @@ Feature: dc / acls / tokens / index: ACL Token List
Then the url should be /dc-1/acls/tokens
And the title should be "Tokens - Consul"
Then I see 3 token models
Scenario: Viewing tokens with no write access
Given 1 datacenter model with the value "dc-1"
And 3 token models
And permissions from yaml
---
acl:
write: false
---
When I visit the tokens page for yaml
---
dc: dc-1
---
Then the url should be /dc-1/acls/tokens
And I don't see create

Scenario: Searching the tokens
Given 1 datacenter model with the value "dc-1"
And 4 token models from yaml
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ Feature: dc / kvs / index
Then the url should be /dc-1/kv
And the title should be "Key/Value - Consul"
Then I see 3 kv models
@ignore
Scenario: Viewing kvs with no write access
Given 1 datacenter model with the value "dc-1"
And 3 kv models
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,18 +16,18 @@ Feature: navigation-links: Main Navigation link visibility
Allow: true
- Resource: key
Access: read
Allow: false
Allow: true
- Resource: intention
Access: read
Allow: true
- Resource: acl
Access: read
Allow: true
Allow: false
---
When I visit the services page for yaml
---
dc: dc-1
---
Then I see services on the navigation
Then I don't see kvs on the navigation
Then I don't see roles on the navigation

0 comments on commit 7b0c3aa

Please sign in to comment.