open-consul/ui-v2/tests/acceptance/dc/nodes/sessions/list.feature

52 lines
1.3 KiB
Gherkin
Raw Normal View History

@setupApplicationTest
Feature: dc / nodes / sessions / list: List Lock Sessions
In order to get information regarding lock sessions
As a user
I should be able to see a listing of lock sessions with necessary information under the lock sessions tab for a node
Scenario: Given 2 session with string TTLs
Given 1 datacenter model with the value "dc1"
And 1 node model from yaml
---
ID: node-0
---
And 2 session models from yaml
---
- TTL: 30s
- TTL: 60m
---
When I visit the node page for yaml
---
dc: dc1
node: node-0
---
And I click lockSessions on the tabs
Then I see lockSessionsIsSelected on the tabs
Then I see TTL on the sessions like yaml
---
- 30s
- 60m
---
Scenario: Given 2 session with LockDelay in milliseconds
Given 1 datacenter model with the value "dc1"
And 1 node model from yaml
---
ID: node-0
---
And 2 session models from yaml
---
- LockDelay: 120000
- LockDelay: 18000000
---
When I visit the node page for yaml
---
dc: dc1
node: node-0
---
And I click lockSessions on the tabs
Then I see lockSessionsIsSelected on the tabs
Then I see delay on the sessions like yaml
---
- 2m
- 5h
---