2018-08-29 18:14:31 +00:00
|
|
|
@setupApplicationTest
|
|
|
|
Feature: dc / kvs / sessions / invalidate: Invalidate Lock Sessions
|
|
|
|
In order to invalidate a lock session
|
|
|
|
As a user
|
|
|
|
I should be able to invalidate a lock session by clicking a button and confirming
|
|
|
|
Background:
|
|
|
|
Given 1 datacenter model with the value "datacenter"
|
|
|
|
And 1 kv model from yaml
|
|
|
|
---
|
|
|
|
Key: key
|
|
|
|
---
|
|
|
|
When I visit the kv page for yaml
|
|
|
|
---
|
|
|
|
dc: datacenter
|
|
|
|
kv: key
|
|
|
|
---
|
|
|
|
Then the url should be /datacenter/kv/key/edit
|
|
|
|
|
|
|
|
Scenario: Invalidating the lock session
|
|
|
|
And I click delete on the session
|
|
|
|
And I click confirmDelete on the session
|
2020-01-24 12:26:28 +00:00
|
|
|
Then a PUT request was made to "/v1/session/destroy/ee52203d-989f-4f7a-ab5a-2bef004164ca?dc=datacenter&ns=@!namespace"
|
2018-08-29 18:14:31 +00:00
|
|
|
Then the url should be /datacenter/kv/key/edit
|
2019-07-18 13:29:30 +00:00
|
|
|
And "[data-notification]" has the "notification-deletesession" class
|
2018-08-29 18:14:31 +00:00
|
|
|
And "[data-notification]" has the "success" class
|
|
|
|
Scenario: Invalidating a lock session and receiving an error
|
2020-01-24 12:26:28 +00:00
|
|
|
Given the url "/v1/session/destroy/ee52203d-989f-4f7a-ab5a-2bef004164ca?dc=datacenter&ns=@!namespace" responds with a 500 status
|
2018-08-29 18:14:31 +00:00
|
|
|
And I click delete on the session
|
|
|
|
And I click confirmDelete on the session
|
|
|
|
Then the url should be /datacenter/kv/key/edit
|
2019-07-18 13:29:30 +00:00
|
|
|
And "[data-notification]" has the "notification-deletesession" class
|
2018-08-29 18:14:31 +00:00
|
|
|
And "[data-notification]" has the "error" class
|