mirror of
https://github.com/status-im/consul.git
synced 2025-01-09 13:26:07 +00:00
8263879e6f
This commit use the internal authorize endpoint along wiht ember-can to further restrict user access to certain UI features and navigational elements depending on the users ACL token
34 lines
825 B
Gherkin
34 lines
825 B
Gherkin
@setupApplicationTest
|
|
Feature: navigation-links: Main Navigation link visibility
|
|
Scenario: No read access to Key/Values
|
|
Given 1 datacenter model with the value "dc-1"
|
|
And the url "/v1/internal/acl/authorize" responds with from yaml
|
|
---
|
|
body:
|
|
- Resource: operator
|
|
Access: write
|
|
Allow: true
|
|
- Resource: service
|
|
Access: read
|
|
Allow: true
|
|
- Resource: node
|
|
Access: read
|
|
Allow: true
|
|
- Resource: key
|
|
Access: read
|
|
Allow: false
|
|
- Resource: intention
|
|
Access: read
|
|
Allow: true
|
|
- Resource: acl
|
|
Access: read
|
|
Allow: true
|
|
---
|
|
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
|
|
|