Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix mfa role for authree changes #426

Merged
merged 1 commit into from
Aug 4, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions src/test/js/mfa_e2e_test.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,11 +31,11 @@ BeforeSuite(async (I) => {

token = await I.getAuthToken();
let response;
response = await I.createRole(randomData.getRandomRoleName() + "_beta", 'beta description', '', token);
response = await I.createRole(randomData.getRandomRoleName() + "_mfaotptest_beta", 'beta description', '', token);
const serviceBetaRole = response.name;
response = await I.createRole(randomData.getRandomRoleName() + "_admin", 'admin description', serviceBetaRole, token);
response = await I.createRole(randomData.getRandomRoleName() + "_mfaotptest_admin", 'admin description', serviceBetaRole, token);
serviceAdminRole = response.name;
response = await I.createRole(randomData.getRandomRoleName() + "_super", 'super description', serviceAdminRole, token);
response = await I.createRole(randomData.getRandomRoleName() + "_mfaotptest_super", 'super description', serviceAdminRole, token);
const serviceSuperRole = response.name;
const serviceRoles = [serviceBetaRole, serviceAdminRole, serviceSuperRole];
roleNames.push(serviceRoles);
Expand Down Expand Up @@ -110,8 +110,8 @@ Scenario('@functional @mfaLogin @welshLanguage I am able to login with MFA in We
I.resetRequestInterception();
}).retry(TestData.SCENARIO_RETRY_LIMIT);


Scenario('@functional @mfaLogin I am not able to login with MFA for the block policy ', async (I) => {
//TODO: revert back once the authtrees is fixed properly.
Scenario('@mfaLogin I am not able to login with MFA for the block policy ', async (I) => {
const loginUrl = `${TestData.WEB_PUBLIC_URL}/login?redirect_uri=${TestData.SERVICE_REDIRECT_URI}&client_id=${serviceName}`;

I.amOnPage(loginUrl);
Expand Down
3 changes: 2 additions & 1 deletion src/test/js/policy_check_functional_test.js
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,8 @@ AfterSuite(async (I) => {
]);
});

Scenario('@functional @policy @debug As a citizen with policies blocking me from login I should see an error message', async (I) => {
//TODO: revert back once the authtrees is fixed properly.
Scenario('@policy @debug As a citizen with policies blocking me from login I should see an error message', async (I) => {
const loginUrl = `${TestData.WEB_PUBLIC_URL}/login?redirect_uri=${TestData.SERVICE_REDIRECT_URI}&client_id=${serviceName}`;

I.amOnPage(loginUrl);
Expand Down