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

     1  @setupApplicationTest
     2  Feature: dc / acls / update: ACL Update
     3    Background:
     4      Given 1 datacenter model with the value "datacenter"
     5      And I'm using a legacy token
     6      And 1 acl model from yaml
     7      ---
     8        ID: key
     9      ---
    10      When I visit the acl page for yaml
    11      ---
    12        dc: datacenter
    13        acl: key
    14      ---
    15      Then the url should be /datacenter/acls/key
    16    Scenario: Update to [Name], [Type], [Rules]
    17      Then I fill in with yaml
    18      ---
    19        name: [Name]
    20      ---
    21      And I click "[value=[Type]]"
    22      And I submit
    23      Then a PUT request is made to "/v1/acl/update?dc=datacenter" with the body from yaml
    24      ---
    25        Name: [Name]
    26        Type: [Type]
    27      ---
    28      Then the url should be /datacenter/acls
    29      And "[data-notification]" has the "notification-update" class
    30      And "[data-notification]" has the "success" class
    31      Where:
    32        ----------------------------------------------------------
    33        | Name       | Type       |  Rules                       |
    34        | key-name   | client     |  node "0" {policy = "read"}  |
    35        | key name   | management |  node "0" {policy = "write"} |
    36        | key%20name | client     |  node "0" {policy = "read"}  |
    37        | utf8?      | management |  node "0" {policy = "write"} |
    38        ----------------------------------------------------------
    39    Scenario: There was an error saving the key
    40      Given the url "/v1/acl/update" responds with a 500 status
    41      And I submit
    42      Then the url should be /datacenter/acls/key
    43      Then "[data-notification]" has the "notification-update" class
    44      And "[data-notification]" has the "error" class
    45  # @ignore
    46    # Scenario: Rules can be edited/updated
    47    #   Then ok