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

Adapt recent changes in the security plugin to pass integ test #995

Merged
merged 1 commit into from
Jan 12, 2024
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
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ if (Cypress.env('SECURITY_ENABLED')) {
}
);

cy.contains('span', 'Create internal user');
cy.contains('span', 'Create user account');

cy.url().should((url) => {
expect(url).to.not.contain('/users/create');
Expand Down
4 changes: 2 additions & 2 deletions cypress/utils/plugins/security/commands.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
import {
SEC_API_CONFIG_PATH,
SEC_API_ROLES_PATH,
SEC_API_INTERNAL_USERS_PATH,
SEC_API_INTERNAL_ACCOUNTS_PATH,
SEC_API_ACTIONGROUPS_PATH,
SEC_API_TENANTS_PATH,
SEC_API_AUDIT_PATH,
Expand Down Expand Up @@ -48,7 +48,7 @@ Cypress.Commands.add(
Cypress.Commands.add(
'mockInternalUsersAction',
function (fixtureFileName, funcMockedOn) {
cy.intercept(SEC_API_INTERNAL_USERS_PATH, {
cy.intercept(SEC_API_INTERNAL_ACCOUNTS_PATH, {
fixture: fixtureFileName,
}).as('getInternalUsersDetails');

Expand Down
2 changes: 2 additions & 0 deletions cypress/utils/plugins/security/constants.js
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,8 @@ export const SEC_API_ACTIONGROUPS_PATH = BASE_SEC_API_PATH + '/actiongroups';
export const SEC_API_TENANTS_PATH = BASE_SEC_API_PATH + '/tenants';

export const SEC_API_INTERNAL_USERS_PATH = BASE_SEC_API_PATH + '/internalusers';
export const SEC_API_INTERNAL_ACCOUNTS_PATH =
BASE_SEC_API_PATH + '/internalaccounts';

export const SEC_API_ACCOUNT_PATH = BASE_SEC_API_PATH + '/account';

Expand Down
Loading