github.com/rposudnevskiy/consul@v1.4.5/ui-v2/tests/acceptance/dc/nodes/sessions/invalidate.feature (about)

     1  @setupApplicationTest
     2  Feature: dc / nodes / sessions / invalidate: Invalidate Lock Sessions
     3    In order to invalidate a lock session
     4    As a user
     5    I should be able to invalidate a lock session by clicking a button and confirming
     6    Background:
     7      Given 1 datacenter model with the value "dc1"
     8      And 1 node model from yaml
     9      ---
    10      ID: node-0
    11      ---
    12      And 2 session models from yaml
    13      ---
    14      - ID: 7bbbd8bb-fff3-4292-b6e3-cfedd788546a
    15      - ID: 7ccd0bd7-a5e0-41ae-a33e-ed3793d803b2
    16      ---
    17      When I visit the node page for yaml
    18      ---
    19        dc: dc1
    20        node: node-0
    21      ---
    22      Then the url should be /dc1/nodes/node-0
    23      And I click lockSessions on the tabs
    24      Then I see lockSessionsIsSelected on the tabs
    25    Scenario: Invalidating the lock session
    26      And I click delete on the sessions
    27      And I click confirmDelete on the sessions
    28      Then a PUT request is made to "/v1/session/destroy/7bbbd8bb-fff3-4292-b6e3-cfedd788546a?dc=dc1"
    29      Then the url should be /dc1/nodes/node-0
    30      And "[data-notification]" has the "notification-delete" class
    31      And "[data-notification]" has the "success" class
    32    Scenario: Invalidating a lock session and receiving an error
    33      Given the url "/v1/session/destroy/7bbbd8bb-fff3-4292-b6e3-cfedd788546a?dc=dc1" responds with a 500 status
    34      And I click delete on the sessions
    35      And I click confirmDelete on the sessions
    36      Then the url should be /dc1/nodes/node-0
    37      And "[data-notification]" has the "notification-delete" class
    38      And "[data-notification]" has the "error" class