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

     1  @setupApplicationTest
     2  Feature: dc / acls / tokens / policies: Remove
     3    Scenario:
     4      Given 1 datacenter model with the value "datacenter"
     5      And 1 token model from yaml
     6      ---
     7        AccessorID: key
     8        Policies:
     9          - Name: Policy
    10            ID: 00000000-0000-0000-0000-000000000001
    11      ---
    12      When I visit the token page for yaml
    13      ---
    14        dc: datacenter
    15        token: key
    16      ---
    17      Then the url should be /datacenter/acls/tokens/key
    18      And I see 1 policy model
    19      And I click expand on the policies
    20      And the last GET request was made to "/v1/acl/policy/00000000-0000-0000-0000-000000000001?dc=datacenter"
    21      And I click delete on the policies
    22      And I click confirmDelete on the policies
    23      And I see 0 policy models
    24      And I submit
    25      Then a PUT request is made to "/v1/acl/token/key?dc=datacenter" with the body from yaml
    26      ---
    27        Policies: []
    28      ---
    29      Then the url should be /datacenter/acls/tokens