github.com/DerekStrickland/consul@v1.4.5/ui-v2/tests/acceptance/dc/acls/tokens/use.feature (about)

     1  @setupApplicationTest
     2  Feature: dc / acls / tokens / use: Using an ACL token
     3    Background:
     4      Given 1 datacenter model with the value "datacenter"
     5      And 1 token model from yaml
     6      ---
     7        AccessorID: token
     8        SecretID: ee52203d-989f-4f7a-ab5a-2bef004164ca
     9      ---
    10    Scenario: Using an ACL token from the listing page
    11      When I visit the tokens page for yaml
    12      ---
    13        dc: datacenter
    14      ---
    15      Then I have settings like yaml
    16      ---
    17      consul:token: ~
    18      ---
    19      And I click actions on the tokens
    20      And I click use on the tokens
    21      And I click confirmUse on the tokens
    22      Then "[data-notification]" has the "notification-use" class
    23      And "[data-notification]" has the "success" class
    24      Then I have settings like yaml
    25      ---
    26      consul:token: "{\"AccessorID\":\"token\",\"SecretID\":\"ee52203d-989f-4f7a-ab5a-2bef004164ca\"}"
    27      ---
    28    Scenario: Using an ACL token from the detail page
    29      When I visit the token page for yaml
    30      ---
    31        dc: datacenter
    32        token: token
    33      ---
    34      Then I have settings like yaml
    35      ---
    36      consul:token: ~
    37      ---
    38      And I click use
    39      And I click confirmUse
    40      Then "[data-notification]" has the "notification-use" class
    41      And "[data-notification]" has the "success" class
    42      Then I have settings like yaml
    43      ---
    44      consul:token: "{\"AccessorID\":\"token\",\"SecretID\":\"ee52203d-989f-4f7a-ab5a-2bef004164ca\"}"
    45      ---