429e27aaee
-Enable blocking queries by default -Change assertion to check for the last PUT request, not just any request for session destruction from a node page. Since we've now turned on blocking queries by default this means that a second GET request is made after the PUT request that we are asserting for but before the assertion itself, this meant the assertion failed. We double checked this by turning off blocking queries for this test using ``` And settings from yaml --- consul:client: blocking: 0 --- ``` which made the test pass again. As moving forwards blocking queries will be on by default, we didn't want to disable blocking queries for this test, so we now assert the last PUT request specifically. This means we continue to assert that the session has been destroyed but means we don't get into problems of ordering of requests here
50 lines
1.8 KiB
Gherkin
50 lines
1.8 KiB
Gherkin
@setupApplicationTest
|
|
Feature: dc / list-blocking
|
|
In order to see updates without refreshing the page
|
|
As a user
|
|
I want to see changes if I change consul externally
|
|
Background:
|
|
Given 1 datacenter model with the value "dc-1"
|
|
Scenario: Viewing the listing pages
|
|
Given 3 [Model] models
|
|
And a network latency of 100
|
|
When I visit the [Page] page for yaml
|
|
---
|
|
dc: dc-1
|
|
---
|
|
Then the url should be /dc-1/[Url]
|
|
And pause until I see 3 [Model] models
|
|
And an external edit results in 5 [Model] models
|
|
And pause until I see 5 [Model] models
|
|
And an external edit results in 1 [Model] model
|
|
And pause until I see 1 [Model] model
|
|
And an external edit results in 0 [Model] models
|
|
And pause until I see 0 [Model] models
|
|
Where:
|
|
------------------------------------------------
|
|
| Page | Model | Url |
|
|
| services | service | services |
|
|
| nodes | node | nodes |
|
|
------------------------------------------------
|
|
Scenario: Viewing detail pages with a listing
|
|
Given 3 [Model] models
|
|
And a network latency of 100
|
|
When I visit the [Page] page for yaml
|
|
---
|
|
dc: dc-1
|
|
service: service-0
|
|
---
|
|
Then the url should be /dc-1/[Url]
|
|
And pause until I see 3 [Model] models
|
|
And an external edit results in 5 [Model] models
|
|
And pause until I see 5 [Model] models
|
|
And an external edit results in 1 [Model] model
|
|
And pause until I see 1 [Model] model
|
|
And an external edit results in 0 [Model] models
|
|
And pause until I see the text "deregistered" in "[data-notification]"
|
|
Where:
|
|
-------------------------------------------------
|
|
| Page | Model | Url |
|
|
| service | instance | services/service-0 |
|
|
-------------------------------------------------
|