2018-05-11 12:47:21 +00:00
|
|
|
@setupApplicationTest
|
2020-01-24 12:26:28 +00:00
|
|
|
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:
|
2021-09-15 18:50:11 +00:00
|
|
|
Given 1 datacenter model with the value "dc1"
|
2018-05-11 12:47:21 +00:00
|
|
|
Scenario: Visiting the index page
|
|
|
|
When I visit the index page for yaml
|
|
|
|
---
|
2021-09-15 18:50:11 +00:00
|
|
|
dc: dc1
|
2018-05-11 12:47:21 +00:00
|
|
|
---
|
2021-09-15 18:50:11 +00:00
|
|
|
Then the url should be /dc1/services
|
|
|
|
Then a GET request was made to "/v1/internal/ui/services?dc=dc1&ns=@namespace"
|
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
|
|
|
|
---
|
2021-09-15 18:50:11 +00:00
|
|
|
dc: dc1
|
2018-05-11 12:47:21 +00:00
|
|
|
---
|
|
|
|
When I click [Link] on the navigation
|
2018-07-04 16:23:33 +00:00
|
|
|
Then the url should be [URL]
|
2020-01-24 12:26:28 +00:00
|
|
|
Then a GET request was made to "[Endpoint]"
|
2018-05-11 12:47:21 +00:00
|
|
|
Where:
|
2020-01-24 12:26:28 +00:00
|
|
|
-------------------------------------------------------------------------------------
|
|
|
|
| Link | URL | Endpoint |
|
2021-09-15 18:50:11 +00:00
|
|
|
| nodes | /dc1/nodes | /v1/internal/ui/nodes?dc=dc1&ns=@namespace |
|
|
|
|
# FIXME
|
|
|
|
# | kvs | /dc1/kv | /v1/kv/?keys&dc=dc1&separator=%2F&ns=@namespace |
|
|
|
|
| tokens | /dc1/acls/tokens | /v1/acl/tokens?dc=dc1&ns=@namespace |
|
2020-01-24 12:26:28 +00:00
|
|
|
# | settings | /settings | /v1/catalog/datacenters |
|
|
|
|
-------------------------------------------------------------------------------------
|
2021-09-15 18:50:11 +00:00
|
|
|
# FIXME
|
|
|
|
@ignore
|
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
|
|
|
|
---
|
2021-09-15 18:50:11 +00:00
|
|
|
dc: dc1
|
2018-05-11 12:47:21 +00:00
|
|
|
---
|
|
|
|
When I click [Item] on the [Model]
|
2018-07-04 16:23:33 +00:00
|
|
|
Then the url should be [URL]
|
2019-12-17 18:47:37 +00:00
|
|
|
Then a 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:
|
2021-01-04 16:42:44 +00:00
|
|
|
-------------------------------------------------------------------------------------------------------------------------------------
|
|
|
|
| Item | Model | URL | Endpoint | Back |
|
2021-09-15 18:50:11 +00:00
|
|
|
| kv | kvs | /dc1/kv/0-key-value/edit | /v1/session/info/ee52203d-989f-4f7a-ab5a-2bef004164ca?dc=dc1&ns=@namespace | /dc1/kv |
|
2021-01-04 16:42:44 +00:00
|
|
|
-------------------------------------------------------------------------------------------------------------------------------------
|
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
|
|
|
|
---
|
2021-09-15 18:50:11 +00:00
|
|
|
dc: dc1
|
2018-07-30 16:55:44 +00:00
|
|
|
node: node-0
|
|
|
|
---
|
2021-09-15 18:50:11 +00:00
|
|
|
Then the url should be /dc1/nodes/node-0/health-checks
|
2019-12-17 18:47:37 +00:00
|
|
|
Then the last GET requests included from yaml
|
2018-07-30 16:55:44 +00:00
|
|
|
---
|
|
|
|
- /v1/catalog/datacenters
|
2021-09-15 18:50:11 +00:00
|
|
|
- /v1/internal/ui/node/node-0?dc=dc1&ns=@namespace
|
|
|
|
- /v1/coordinate/nodes?dc=dc1
|
2018-07-30 16:55:44 +00:00
|
|
|
---
|
2021-09-15 18:50:11 +00:00
|
|
|
# FIXME
|
|
|
|
@ignore
|
2018-07-30 16:55:44 +00:00
|
|
|
Scenario: The kv detail page calls the correct API endpoints
|
|
|
|
When I visit the kv page for yaml
|
|
|
|
---
|
2021-09-15 18:50:11 +00:00
|
|
|
dc: dc1
|
2018-07-30 16:55:44 +00:00
|
|
|
kv: keyname
|
|
|
|
---
|
2021-09-15 18:50:11 +00:00
|
|
|
Then the url should be /dc1/kv/keyname/edit
|
2019-12-17 18:47:37 +00:00
|
|
|
Then the last GET requests included from yaml
|
2018-07-30 16:55:44 +00:00
|
|
|
---
|
|
|
|
- /v1/catalog/datacenters
|
2021-09-15 18:50:11 +00:00
|
|
|
- /v1/kv/keyname?dc=dc1&ns=@namespace
|
|
|
|
- /v1/session/info/ee52203d-989f-4f7a-ab5a-2bef004164ca?dc=dc1&ns=@namespace
|
2018-07-30 16:55:44 +00:00
|
|
|
---
|
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
|
|
|
|
---
|
2021-09-15 18:50:11 +00:00
|
|
|
dc: dc1
|
2018-10-19 15:17:02 +00:00
|
|
|
---
|
2021-09-15 18:50:11 +00:00
|
|
|
Then the url should be /dc1/acls/policies
|
2019-12-17 18:47:37 +00:00
|
|
|
Then the last GET requests included from yaml
|
2018-10-19 15:17:02 +00:00
|
|
|
---
|
|
|
|
- /v1/catalog/datacenters
|
2021-09-15 18:50:11 +00:00
|
|
|
- /v1/acl/policies?dc=dc1&ns=@namespace
|
2018-10-19 15:17:02 +00:00
|
|
|
---
|
2018-07-30 16:55:44 +00:00
|
|
|
|
2021-09-15 18:50:11 +00:00
|
|
|
# FIXME
|
|
|
|
@ignore
|
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
|
|
|
|
---
|
2021-09-15 18:50:11 +00:00
|
|
|
dc: dc1
|
2018-07-04 17:39:15 +00:00
|
|
|
---
|
|
|
|
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:
|
2021-09-15 18:50:11 +00:00
|
|
|
-----------------------------------------------------------------------------------------------
|
|
|
|
| Item | Model | URL | Back |
|
|
|
|
| kv | kvs | /dc1/kv/0-key-value/edit | /dc1/kv |
|
|
|
|
-----------------------------------------------------------------------------------------------
|
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
|
|
|
|
---
|
2021-09-15 18:50:11 +00:00
|
|
|
dc: dc1
|
2018-07-04 16:23:33 +00:00
|
|
|
---
|
|
|
|
When I click create
|
|
|
|
Then the url should be [URL]
|
|
|
|
And I click "[data-test-back]"
|
|
|
|
Then the url should be [Back]
|
|
|
|
Where:
|
2021-09-15 18:50:11 +00:00
|
|
|
---------------------------------------------------------------------------
|
|
|
|
| Item | Model | URL | Back |
|
|
|
|
# FIXME
|
|
|
|
# | kv | kvs | /dc1/kv/create | /dc1/kv |
|
|
|
|
| intention | intentions | /dc1/intentions/create | /dc1/intentions |
|
|
|
|
| token | tokens | /dc1/acls/tokens/create | /dc1/acls/tokens |
|
|
|
|
| policy | policies | /dc1/acls/policies/create | /dc1/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
|