2021-02-19 16:42:16 +00:00
|
|
|
@setupApplicationTest
|
|
|
|
Feature: dc / kvs / index
|
|
|
|
Scenario: Viewing kvs in the listing
|
|
|
|
Given 1 datacenter model with the value "dc-1"
|
|
|
|
And 3 kv models
|
|
|
|
When I visit the kvs page for yaml
|
|
|
|
---
|
|
|
|
dc: dc-1
|
|
|
|
---
|
|
|
|
Then the url should be /dc-1/kv
|
2021-09-15 18:50:11 +00:00
|
|
|
And the title should be "Key / Value - Consul"
|
2021-02-19 16:42:16 +00:00
|
|
|
Then I see 3 kv models
|
|
|
|
Scenario: Viewing kvs with no write access
|
|
|
|
Given 1 datacenter model with the value "dc-1"
|
|
|
|
And 3 kv models
|
|
|
|
And permissions from yaml
|
|
|
|
---
|
|
|
|
key:
|
|
|
|
write: false
|
|
|
|
---
|
|
|
|
When I visit the kvs page for yaml
|
|
|
|
---
|
|
|
|
dc: dc-1
|
|
|
|
---
|
|
|
|
Then the url should be /dc-1/kv
|
|
|
|
And I don't see create
|
|
|
|
|