2018-11-07 15:57:41 +00:00
|
|
|
@setupApplicationTest
|
2020-05-11 15:37:11 +00:00
|
|
|
Feature: login-errors: Login Errors
|
2018-11-07 15:57:41 +00:00
|
|
|
|
|
|
|
Scenario: I get any 500 error that is not the specific legacy token cluster one
|
|
|
|
Given 1 datacenter model with the value "dc-1"
|
2020-01-24 12:26:28 +00:00
|
|
|
Given the url "/v1/acl/tokens?ns=@namespace" responds with a 500 status
|
2018-11-07 15:57:41 +00:00
|
|
|
When I visit the tokens page for yaml
|
|
|
|
---
|
|
|
|
dc: dc-1
|
|
|
|
---
|
|
|
|
Then the url should be /dc-1/acls/tokens
|
2020-05-11 15:37:11 +00:00
|
|
|
Then I see status on the error like "500"
|
2018-11-07 15:57:41 +00:00
|
|
|
Scenario: I get a 500 error from acl/tokens that is the specific legacy one
|
|
|
|
Given 1 datacenter model with the value "dc-1"
|
2020-01-24 12:26:28 +00:00
|
|
|
And the url "/v1/acl/tokens?ns=@namespace" responds with from yaml
|
2018-11-07 15:57:41 +00:00
|
|
|
---
|
|
|
|
status: 500
|
|
|
|
body: "rpc error making call: rpc: can't find method ACL.TokenRead"
|
|
|
|
---
|
|
|
|
When I visit the tokens page for yaml
|
|
|
|
---
|
|
|
|
dc: dc-1
|
|
|
|
---
|
|
|
|
Then the url should be /dc-1/acls/tokens
|
|
|
|
Then ".app-view" has the "unauthorized" class
|
2020-01-24 12:26:28 +00:00
|
|
|
@notNamespaceable
|
2018-11-07 15:57:41 +00:00
|
|
|
Scenario: I get a 500 error from acl/token/self that is the specific legacy one
|
|
|
|
Given 1 datacenter model with the value "dc-1"
|
2020-01-24 12:26:28 +00:00
|
|
|
Given the url "/v1/acl/tokens?ns=@namespace" responds with from yaml
|
2018-11-07 15:57:41 +00:00
|
|
|
---
|
|
|
|
status: 500
|
|
|
|
body: "rpc error making call: rpc: can't find method ACL.TokenRead"
|
|
|
|
---
|
|
|
|
And the url "/v1/acl/token/self" responds with from yaml
|
|
|
|
---
|
|
|
|
status: 500
|
|
|
|
body: "rpc error making call: rpc: can't find method ACL.TokenRead"
|
|
|
|
---
|
|
|
|
And the url "/v1/acl/list" responds with a 403 status
|
|
|
|
When I visit the tokens page for yaml
|
|
|
|
---
|
|
|
|
dc: dc-1
|
|
|
|
---
|
|
|
|
Then the url should be /dc-1/acls/tokens
|
|
|
|
Then ".app-view" has the "unauthorized" class
|
2020-05-11 15:37:11 +00:00
|
|
|
And I click login on the navigation
|
|
|
|
And I fill in the auth form with yaml
|
2018-11-07 15:57:41 +00:00
|
|
|
---
|
2020-05-11 15:37:11 +00:00
|
|
|
SecretID: something
|
2018-11-07 15:57:41 +00:00
|
|
|
---
|
2020-05-11 15:37:11 +00:00
|
|
|
And I click submit on the authdialog.form
|
|
|
|
Then I see status on the error like "403"
|
2018-11-07 15:57:41 +00:00
|
|
|
|