2021-02-19 16:42:16 +00:00
|
|
|
@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
|
2021-09-22 17:23:59 +00:00
|
|
|
Allow: true
|
2021-02-19 16:42:16 +00:00
|
|
|
- Resource: intention
|
|
|
|
Access: read
|
|
|
|
Allow: true
|
|
|
|
- Resource: acl
|
|
|
|
Access: read
|
2021-09-22 17:23:59 +00:00
|
|
|
Allow: false
|
2021-02-19 16:42:16 +00:00
|
|
|
---
|
|
|
|
When I visit the services page for yaml
|
|
|
|
---
|
|
|
|
dc: dc-1
|
|
|
|
---
|
|
|
|
Then I see services on the navigation
|
2021-09-22 17:23:59 +00:00
|
|
|
Then I don't see roles on the navigation
|
2021-02-19 16:42:16 +00:00
|
|
|
|
2022-01-12 11:05:24 +00:00
|
|
|
Scenario: Empty state login button is shown
|
|
|
|
Given 1 datacenter model with the value "dc-1"
|
|
|
|
And 0 service models
|
|
|
|
When I visit the services page for yaml
|
|
|
|
---
|
|
|
|
dc: dc-1
|
|
|
|
---
|
|
|
|
Then the url should be /dc-1/services
|
|
|
|
And I see login on the emptystate
|