2018-05-11 12:47:21 +00:00
|
|
|
@setupApplicationTest
|
|
|
|
Feature: Page Navigation
|
2018-10-19 15:17:02 +00:00
|
|
|
In order to view all the data in consul
|
|
|
|
As a user
|
|
|
|
I should be able to visit every page and view data in a HTML from the API
|
2018-05-11 12:47:21 +00:00
|
|
|
Background:
|
|
|
|
Given 1 datacenter model with the value "dc-1"
|
|
|
|
Scenario: Visiting the index page
|
|
|
|
When I visit the index page for yaml
|
|
|
|
---
|
|
|
|
dc: dc-1
|
|
|
|
---
|
|
|
|
Then the url should be /dc-1/services
|
2018-07-30 16:55:44 +00:00
|
|
|
Then the last GET request was made to "/v1/internal/ui/services?dc=dc-1"
|
2018-07-04 16:23:33 +00:00
|
|
|
Scenario: Clicking [Link] in the navigation takes me to [URL]
|
2018-05-11 12:47:21 +00:00
|
|
|
When I visit the services page for yaml
|
|
|
|
---
|
|
|
|
dc: dc-1
|
|
|
|
---
|
|
|
|
When I click [Link] on the navigation
|
2018-07-04 16:23:33 +00:00
|
|
|
Then the url should be [URL]
|
2018-07-30 16:55:44 +00:00
|
|
|
Then the last GET request was made to "[Endpoint]"
|
2018-05-11 12:47:21 +00:00
|
|
|
Where:
|
2018-10-19 15:17:02 +00:00
|
|
|
-----------------------------------------------------------------------
|
|
|
|
| Link | URL | Endpoint |
|
|
|
|
| nodes | /dc-1/nodes | /v1/internal/ui/nodes?dc=dc-1 |
|
|
|
|
| kvs | /dc-1/kv | /v1/kv/?keys&dc=dc-1&separator=%2F |
|
|
|
|
| acls | /dc-1/acls/tokens | /v1/acl/tokens?dc=dc-1 |
|
|
|
|
| intentions | /dc-1/intentions | /v1/connect/intentions?dc=dc-1 |
|
|
|
|
# | settings | /settings | /v1/catalog/datacenters |
|
|
|
|
-----------------------------------------------------------------------
|
2018-07-04 16:23:33 +00:00
|
|
|
Scenario: Clicking a [Item] in the [Model] listing and back again
|
2018-05-11 12:47:21 +00:00
|
|
|
When I visit the [Model] page for yaml
|
|
|
|
---
|
|
|
|
dc: dc-1
|
|
|
|
---
|
|
|
|
When I click [Item] on the [Model]
|
2018-07-04 16:23:33 +00:00
|
|
|
Then the url should be [URL]
|
2018-07-30 16:55:44 +00:00
|
|
|
Then the last GET request was made to "[Endpoint]"
|
2018-07-04 16:23:33 +00:00
|
|
|
And I click "[data-test-back]"
|
|
|
|
Then the url should be [Back]
|
2018-05-11 12:47:21 +00:00
|
|
|
Where:
|
2018-10-19 15:17:02 +00:00
|
|
|
--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
|
|
|
|
| Item | Model | URL | Endpoint | Back |
|
|
|
|
| service | services | /dc-1/services/service-0 | /v1/health/service/service-0?dc=dc-1 | /dc-1/services |
|
|
|
|
| node | nodes | /dc-1/nodes/node-0 | /v1/session/node/node-0?dc=dc-1 | /dc-1/nodes |
|
|
|
|
| kv | kvs | /dc-1/kv/necessitatibus-0/edit | /v1/session/info/ee52203d-989f-4f7a-ab5a-2bef004164ca?dc=dc-1 | /dc-1/kv |
|
|
|
|
# | acl | acls | /dc-1/acls/anonymous | /v1/acl/info/anonymous?dc=dc-1 | /dc-1/acls |
|
|
|
|
| intention | intentions | /dc-1/intentions/ee52203d-989f-4f7a-ab5a-2bef004164ca | /v1/internal/ui/services?dc=dc-1 | /dc-1/intentions |
|
|
|
|
| token | tokens | /dc-1/acls/tokens/7ca5cd4d-4a7e-459d-b812-bb4078cecbd4 | /v1/acl/policies?dc=dc-1 | /dc-1/acls/tokens |
|
|
|
|
| policy | policies | /dc-1/acls/policies/ee52203d-989f-4f7a-ab5a-2bef004164ca | /v1/acl/tokens?policy=ee52203d-989f-4f7a-ab5a-2bef004164ca&dc=dc-1 | /dc-1/acls/policies |
|
|
|
|
# | token | tokens | /dc-1/acls/tokens/00000000-0000-0000-0000-000000000000 | /v1/acl/token/00000000-0000-0000-0000-000000000000?dc=dc-1 | /dc-1/acls/tokens |
|
|
|
|
# | policy | policies | /dc-1/acls/policies/ee52203d-989f-4f7a-ab5a-2bef004164ca | /v1/acl/policy/ee52203d-989f-4f7a-ab5a-2bef004164ca?dc=dc-1 | /dc-1/acls/policies |
|
|
|
|
--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
|
2018-07-30 16:55:44 +00:00
|
|
|
Scenario: The node detail page calls the correct API endpoints
|
|
|
|
When I visit the node page for yaml
|
|
|
|
---
|
|
|
|
dc: dc-1
|
|
|
|
node: node-0
|
|
|
|
---
|
2018-10-19 15:17:02 +00:00
|
|
|
Then the url should be /dc-1/nodes/node-0
|
2018-07-30 16:55:44 +00:00
|
|
|
Then the last GET requests were like yaml
|
|
|
|
---
|
|
|
|
- /v1/catalog/datacenters
|
|
|
|
- /v1/internal/ui/node/node-0?dc=dc-1
|
|
|
|
- /v1/coordinate/nodes?dc=dc-1
|
|
|
|
- /v1/session/node/node-0?dc=dc-1
|
|
|
|
---
|
|
|
|
Scenario: The kv detail page calls the correct API endpoints
|
|
|
|
When I visit the kv page for yaml
|
|
|
|
---
|
|
|
|
dc: dc-1
|
|
|
|
kv: keyname
|
|
|
|
---
|
2018-10-19 15:17:02 +00:00
|
|
|
Then the url should be /dc-1/kv/keyname/edit
|
2018-07-30 16:55:44 +00:00
|
|
|
Then the last GET requests were like yaml
|
|
|
|
---
|
|
|
|
- /v1/catalog/datacenters
|
|
|
|
- /v1/kv/keyname?dc=dc-1
|
|
|
|
- /v1/session/info/ee52203d-989f-4f7a-ab5a-2bef004164ca?dc=dc-1
|
|
|
|
---
|
2018-10-19 15:17:02 +00:00
|
|
|
Scenario: The policies page/tab calls the correct API endpoints
|
|
|
|
When I visit the policies page for yaml
|
|
|
|
---
|
|
|
|
dc: dc-1
|
|
|
|
---
|
|
|
|
Then the url should be /dc-1/acls/policies
|
|
|
|
Then the last GET requests were like yaml
|
|
|
|
---
|
|
|
|
- /v1/catalog/datacenters
|
|
|
|
- /v1/acl/policies?dc=dc-1
|
|
|
|
---
|
2018-07-30 16:55:44 +00:00
|
|
|
Scenario: The intention detail page calls the correct API endpoints
|
|
|
|
When I visit the intention page for yaml
|
|
|
|
---
|
|
|
|
dc: dc-1
|
|
|
|
intention: intention
|
2018-10-19 15:17:02 +00:00
|
|
|
---
|
|
|
|
Then the url should be /dc-1/intentions/intention
|
2018-07-30 16:55:44 +00:00
|
|
|
Then the last GET requests were like yaml
|
|
|
|
---
|
|
|
|
- /v1/catalog/datacenters
|
|
|
|
- /v1/connect/intentions/intention?dc=dc-1
|
|
|
|
- /v1/internal/ui/services?dc=dc-1
|
|
|
|
---
|
|
|
|
|
2018-10-19 15:17:02 +00:00
|
|
|
Scenario: Clicking a [Item] in the [Model] listing and cancelling
|
2018-07-04 17:39:15 +00:00
|
|
|
When I visit the [Model] page for yaml
|
|
|
|
---
|
|
|
|
dc: dc-1
|
|
|
|
---
|
|
|
|
When I click [Item] on the [Model]
|
|
|
|
Then the url should be [URL]
|
|
|
|
And I click "[type=reset]"
|
|
|
|
Then the url should be [Back]
|
|
|
|
Where:
|
|
|
|
--------------------------------------------------------------------------------------------------------
|
|
|
|
| Item | Model | URL | Back |
|
|
|
|
| kv | kvs | /dc-1/kv/necessitatibus-0/edit | /dc-1/kv |
|
2018-10-19 15:17:02 +00:00
|
|
|
# | acl | acls | /dc-1/acls/anonymous | /dc-1/acls |
|
2018-07-04 17:39:15 +00:00
|
|
|
| intention | intentions | /dc-1/intentions/ee52203d-989f-4f7a-ab5a-2bef004164ca | /dc-1/intentions |
|
|
|
|
--------------------------------------------------------------------------------------------------------
|
2018-05-11 12:47:21 +00:00
|
|
|
@ignore
|
2018-07-04 12:21:30 +00:00
|
|
|
Scenario: Clicking items in the listings, without depending on the salt ^
|
2018-05-11 12:47:21 +00:00
|
|
|
Then ok
|
2018-07-04 16:23:33 +00:00
|
|
|
Scenario: Clicking create in the [Model] listing
|
|
|
|
When I visit the [Model] page for yaml
|
|
|
|
---
|
|
|
|
dc: dc-1
|
|
|
|
---
|
|
|
|
When I click create
|
|
|
|
Then the url should be [URL]
|
|
|
|
And I click "[data-test-back]"
|
|
|
|
Then the url should be [Back]
|
|
|
|
Where:
|
2018-10-19 15:17:02 +00:00
|
|
|
-----------------------------------------------------------------------------
|
|
|
|
| Item | Model | URL | Back |
|
|
|
|
| kv | kvs | /dc-1/kv/create | /dc-1/kv |
|
|
|
|
# | acl | acls | /dc-1/acls/create | /dc-1/acls |
|
|
|
|
| intention | intentions | /dc-1/intentions/create | /dc-1/intentions |
|
|
|
|
| token | tokens | /dc-1/acls/tokens/create | /dc-1/acls/tokens |
|
|
|
|
| policy | policies | /dc-1/acls/policies/create | /dc-1/acls/policies |
|
|
|
|
-----------------------------------------------------------------------------
|
2018-07-30 16:55:44 +00:00
|
|
|
@ignore
|
2018-07-04 17:39:15 +00:00
|
|
|
Scenario: Using I click on should change the currentPage ^
|
|
|
|
Then ok
|