2020-09-18 10:14:06 +00:00
|
|
|
@setupApplicationTest
|
|
|
|
Feature: dc / intentions / navigation
|
|
|
|
Background:
|
|
|
|
Given 1 datacenter model with the value "dc-1"
|
|
|
|
And 3 intention models from yaml
|
|
|
|
---
|
|
|
|
- ID: 755b72bd-f5ab-4c92-90cc-bed0e7d8e9f0
|
|
|
|
Action: allow
|
|
|
|
Meta: ~
|
|
|
|
- ID: 755b72bd-f5ab-4c92-90cc-bed0e7d8e9f1
|
|
|
|
Action: deny
|
|
|
|
Meta: ~
|
|
|
|
- ID: 0755b72bd-f5ab-4c92-90cc-bed0e7d8e9f2
|
|
|
|
Action: deny
|
|
|
|
Meta: ~
|
|
|
|
---
|
|
|
|
Scenario: Clicking a intention in the listing and back again
|
|
|
|
When I visit the intentions page for yaml
|
|
|
|
---
|
|
|
|
dc: dc-1
|
|
|
|
---
|
|
|
|
Then the url should be /dc-1/intentions
|
|
|
|
And the title should be "Intentions - Consul"
|
2020-10-26 09:30:07 +00:00
|
|
|
Then I see 3 intention models on the intentionList component
|
2020-09-18 10:14:06 +00:00
|
|
|
Given 1 intention model from yaml
|
|
|
|
---
|
|
|
|
ID: 755b72bd-f5ab-4c92-90cc-bed0e7d8e9f0
|
|
|
|
---
|
2020-10-26 09:30:07 +00:00
|
|
|
When I click intention on the intentionList.intentions component
|
2020-09-18 10:14:06 +00:00
|
|
|
Then a GET request was made to "/v1/internal/ui/services?dc=dc-1&ns=*"
|
|
|
|
And I click "[data-test-back]"
|
|
|
|
Then the url should be /dc-1/intentions
|
|
|
|
Scenario: Clicking the create button and back again
|
|
|
|
When I visit the intentions page for yaml
|
|
|
|
---
|
|
|
|
dc: dc-1
|
|
|
|
---
|
|
|
|
Then the url should be /dc-1/intentions
|
|
|
|
And the title should be "Intentions - Consul"
|
2020-10-26 09:30:07 +00:00
|
|
|
Then I see 3 intention models on the intentionList component
|
2020-09-18 10:14:06 +00:00
|
|
|
When I click create
|
|
|
|
Then the url should be /dc-1/intentions/create
|
|
|
|
And I click "[data-test-back]"
|
|
|
|
Then the url should be /dc-1/intentions
|