da36c2a0f9
- Maintain http headers as JSON-API meta for all API requests (#4946) - Add EventSource ready for implementing blocking queries - EventSource project implementation to enable blocking queries for service and node listings (#5267) - Add setting to enable/disable blocking queries (#5352)
35 lines
1.1 KiB
Gherkin
35 lines
1.1 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"
|
|
And settings from yaml
|
|
---
|
|
consul:client:
|
|
blocking: 1
|
|
throttle: 200
|
|
---
|
|
Scenario:
|
|
And 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 |
|
|
--------------------------------------------
|