github.com/sl1pm4t/consul@v1.4.5-0.20190325224627-74c31c540f9c/ui-v2/tests/acceptance/dc/acls/tokens/update.feature (about)

     1  @setupApplicationTest
     2  Feature: dc / acls / tokens / update: ACL Token Update
     3    Background:
     4      Given 1 datacenter model with the value "datacenter"
     5      And 1 token model from yaml
     6      ---
     7        AccessorID: key
     8        Policies: ~
     9      ---
    10      When I visit the token page for yaml
    11      ---
    12        dc: datacenter
    13        token: key
    14      ---
    15      Then the url should be /datacenter/acls/tokens/key
    16    Scenario: Update to [Name]
    17      Then I fill in with yaml
    18      ---
    19        Description: [Description]
    20      ---
    21      And I submit
    22      Then a PUT request is made to "/v1/acl/token/key?dc=datacenter" with the body from yaml
    23      ---
    24        Description: [Description]
    25      ---
    26      Then the url should be /datacenter/acls/tokens
    27      And "[data-notification]" has the "notification-update" class
    28      And "[data-notification]" has the "success" class
    29      Where:
    30        ---------------------------
    31        | Description             |
    32        | description             |
    33        | description with spaces |
    34        ---------------------------
    35    Scenario: There was an error saving the key
    36      Given the url "/v1/acl/token/key" responds with a 500 status
    37      And I submit
    38      Then the url should be /datacenter/acls/tokens/key
    39      Then "[data-notification]" has the "notification-update" class
    40      And "[data-notification]" has the "error" class