Skip to content

Commit

Permalink
Adapt recent changes in the security plugin to pass integ test (#995)
Browse files Browse the repository at this point in the history
Signed-off-by: Derek Ho <[email protected]>
  • Loading branch information
derek-ho authored Jan 12, 2024
1 parent 8391566 commit 6cba7a6
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion cypress/integration/plugins/security/internalusers_spec.js
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

0 comments on commit 6cba7a6

Please sign in to comment.