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

     1  @setupApplicationTest
     2  Feature: dc / acls / tokens / index: ACL Login Errors
     3  
     4    Scenario: I get any 500 error that is not the specific legacy token cluster one
     5      Given 1 datacenter model with the value "dc-1"
     6      Given the url "/v1/acl/tokens" responds with a 500 status
     7      When I visit the tokens page for yaml
     8      ---
     9        dc: dc-1
    10      ---
    11      Then the url should be /dc-1/acls/tokens
    12      Then I see the text "500 (The backend responded with an error)" in "[data-test-error]"
    13    Scenario: I get a 500 error from acl/tokens that is the specific legacy one
    14      Given 1 datacenter model with the value "dc-1"
    15      And the url "/v1/acl/tokens" responds with from yaml
    16      ---
    17      status: 500
    18      body: "rpc error making call: rpc: can't find method ACL.TokenRead"
    19      ---
    20      When I visit the tokens page for yaml
    21      ---
    22        dc: dc-1
    23      ---
    24      Then the url should be /dc-1/acls/tokens
    25      Then ".app-view" has the "unauthorized" class
    26    Scenario: I get a 500 error from acl/token/self that is the specific legacy one
    27      Given 1 datacenter model with the value "dc-1"
    28      Given the url "/v1/acl/tokens" responds with from yaml
    29      ---
    30      status: 500
    31      body: "rpc error making call: rpc: can't find method ACL.TokenRead"
    32      ---
    33      And the url "/v1/acl/token/self" responds with from yaml
    34      ---
    35      status: 500
    36      body: "rpc error making call: rpc: can't find method ACL.TokenRead"
    37      ---
    38      And the url "/v1/acl/list" responds with a 403 status
    39      When I visit the tokens page for yaml
    40      ---
    41        dc: dc-1
    42      ---
    43      Then the url should be /dc-1/acls/tokens
    44      Then ".app-view" has the "unauthorized" class
    45      Then I fill in with yaml
    46      ---
    47      secret: something
    48      ---
    49      And I submit
    50      Then ".app-view" has the "unauthorized" class
    51      And "[data-notification]" has the "error" class
    52