mirror of https://github.com/status-im/consul.git
Remove extra partition test
This commit is contained in:
parent
f0cdbb00b3
commit
88670b2a12
|
@ -51,7 +51,6 @@
|
||||||
/>
|
/>
|
||||||
{{#if (can "use SSO")}}
|
{{#if (can "use SSO")}}
|
||||||
<authForm.Method @matches="sso">
|
<authForm.Method @matches="sso">
|
||||||
{{log (concat "Partition Parent: " @partition)}}
|
|
||||||
<OidcSelect
|
<OidcSelect
|
||||||
@dc={{@dc.Name}}
|
@dc={{@dc.Name}}
|
||||||
@partition={{@partition}}
|
@partition={{@partition}}
|
||||||
|
|
|
@ -50,36 +50,3 @@ Feature: login
|
||||||
And a POST request was made to "/v1/acl/oidc/callback?dc=dc-1&ns=@!namespace&partition=partition"
|
And a POST request was made to "/v1/acl/oidc/callback?dc=dc-1&ns=@!namespace&partition=partition"
|
||||||
And "[data-notification]" has the "notification-authorize" class
|
And "[data-notification]" has the "notification-authorize" class
|
||||||
And "[data-notification]" has the "success" class
|
And "[data-notification]" has the "success" class
|
||||||
Scenario: Logging in via SSO with a partition chosen
|
|
||||||
Given 1 datacenter model with the value "dc-1"
|
|
||||||
And SSO is enabled
|
|
||||||
And partitions are enabled
|
|
||||||
And 1 partition model with the value "_example-partition"
|
|
||||||
And 1 oidcProvider model from yaml
|
|
||||||
---
|
|
||||||
- DisplayName: Okta
|
|
||||||
Name: okta
|
|
||||||
Kind: okta
|
|
||||||
---
|
|
||||||
When I visit the services page for yaml
|
|
||||||
---
|
|
||||||
dc: dc-1
|
|
||||||
partition: example-partition
|
|
||||||
---
|
|
||||||
And the "okta" oidcProvider responds with from yaml
|
|
||||||
---
|
|
||||||
state: state-123456789/abcdefghijklmnopqrstuvwxyz
|
|
||||||
code: code-abcdefghijklmnopqrstuvwxyz/123456789
|
|
||||||
---
|
|
||||||
And I click login on the navigation
|
|
||||||
And I click "[data-test-tab=tab_sso] button"
|
|
||||||
Then the "[name='partition']" input should have the value "example-partition"
|
|
||||||
And I type "partition" into "[name=partition]"
|
|
||||||
And I click ".oidc-select button"
|
|
||||||
Then a GET request was made to "/v1/internal/ui/oidc-auth-methods?dc=dc-1&ns=@namespace&partition=partition"
|
|
||||||
And I click ".okta-oidc-provider"
|
|
||||||
Then a POST request was made to "/v1/acl/oidc/auth-url?dc=dc-1&ns=@!namespace&partition=partition"
|
|
||||||
And a POST request was made to "/v1/acl/oidc/callback?dc=dc-1&ns=@!namespace&partition=partition"
|
|
||||||
And "[data-notification]" has the "notification-authorize" class
|
|
||||||
And "[data-notification]" has the "success" class
|
|
||||||
|
|
||||||
|
|
|
@ -66,8 +66,6 @@ export function visitable(path, encoder = encodeURIComponent) {
|
||||||
let path = paths.shift();
|
let path = paths.shift();
|
||||||
if (typeof dynamicSegmentsAndQueryParams.nspace !== 'undefined') {
|
if (typeof dynamicSegmentsAndQueryParams.nspace !== 'undefined') {
|
||||||
path = `/:nspace${path}`;
|
path = `/:nspace${path}`;
|
||||||
} else if (typeof dynamicSegmentsAndQueryParams.partition !== 'undefined') {
|
|
||||||
path = `/:partition${path}`;
|
|
||||||
}
|
}
|
||||||
params = assign({}, dynamicSegmentsAndQueryParams);
|
params = assign({}, dynamicSegmentsAndQueryParams);
|
||||||
let fullPath;
|
let fullPath;
|
||||||
|
|
Loading…
Reference in New Issue