2020-01-24 12:26:28 +00:00
|
|
|
@setupApplicationTest
|
2020-02-07 11:02:53 +00:00
|
|
|
@onlyNamespaceable
|
2020-01-24 12:26:28 +00:00
|
|
|
Feature: dc / nspaces / index: Nspaces List
|
|
|
|
Background:
|
|
|
|
Given settings from yaml
|
|
|
|
---
|
|
|
|
consul:token:
|
|
|
|
SecretID: secret
|
|
|
|
AccessorID: accessor
|
|
|
|
Namespace: default
|
|
|
|
---
|
|
|
|
And 1 datacenter model with the value "dc-1"
|
2020-08-10 14:54:51 +00:00
|
|
|
And 3 nspace models from yaml
|
|
|
|
---
|
|
|
|
- Name: a-namespace
|
|
|
|
Description: a namespace
|
|
|
|
- Name: default
|
|
|
|
Description: The default namespace
|
|
|
|
- Name: z-namespace
|
|
|
|
Description: z namespace
|
|
|
|
---
|
2020-01-24 12:26:28 +00:00
|
|
|
When I visit the nspaces page for yaml
|
|
|
|
---
|
|
|
|
dc: dc-1
|
|
|
|
---
|
|
|
|
Then the url should be /dc-1/namespaces
|
2020-01-28 14:25:52 +00:00
|
|
|
And the title should be "Namespaces - Consul"
|
2020-01-24 12:26:28 +00:00
|
|
|
Scenario:
|
|
|
|
Then I see 3 nspace models
|
|
|
|
Scenario: Searching the nspaces
|
|
|
|
Then I see 3 nspace models
|
|
|
|
Then I fill in with yaml
|
|
|
|
---
|
|
|
|
s: default
|
|
|
|
---
|
|
|
|
And I see 1 nspace model
|
|
|
|
And I see 1 nspace model with the description "The default namespace"
|
|
|
|
Scenario: The default namespace can't be deleted
|
|
|
|
Then I see 3 nspace models
|
2020-08-10 14:54:51 +00:00
|
|
|
And I click nspaces.1.actions
|
|
|
|
Then I don't see nspaces.1.delete
|