Skip to content

Commit 6cba7a6

Browse files
authored
Adapt recent changes in the security plugin to pass integ test (#995)
Signed-off-by: Derek Ho <[email protected]>
1 parent 8391566 commit 6cba7a6

File tree

3 files changed

+5
-3
lines changed

3 files changed

+5
-3
lines changed

cypress/integration/plugins/security/internalusers_spec.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ if (Cypress.env('SECURITY_ENABLED')) {
5757
}
5858
);
5959

60-
cy.contains('span', 'Create internal user');
60+
cy.contains('span', 'Create user account');
6161

6262
cy.url().should((url) => {
6363
expect(url).to.not.contain('/users/create');

cypress/utils/plugins/security/commands.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
import {
77
SEC_API_CONFIG_PATH,
88
SEC_API_ROLES_PATH,
9-
SEC_API_INTERNAL_USERS_PATH,
9+
SEC_API_INTERNAL_ACCOUNTS_PATH,
1010
SEC_API_ACTIONGROUPS_PATH,
1111
SEC_API_TENANTS_PATH,
1212
SEC_API_AUDIT_PATH,
@@ -48,7 +48,7 @@ Cypress.Commands.add(
4848
Cypress.Commands.add(
4949
'mockInternalUsersAction',
5050
function (fixtureFileName, funcMockedOn) {
51-
cy.intercept(SEC_API_INTERNAL_USERS_PATH, {
51+
cy.intercept(SEC_API_INTERNAL_ACCOUNTS_PATH, {
5252
fixture: fixtureFileName,
5353
}).as('getInternalUsersDetails');
5454

cypress/utils/plugins/security/constants.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,8 @@ export const SEC_API_ACTIONGROUPS_PATH = BASE_SEC_API_PATH + '/actiongroups';
5555
export const SEC_API_TENANTS_PATH = BASE_SEC_API_PATH + '/tenants';
5656

5757
export const SEC_API_INTERNAL_USERS_PATH = BASE_SEC_API_PATH + '/internalusers';
58+
export const SEC_API_INTERNAL_ACCOUNTS_PATH =
59+
BASE_SEC_API_PATH + '/internalaccounts';
5860

5961
export const SEC_API_ACCOUNT_PATH = BASE_SEC_API_PATH + '/account';
6062

0 commit comments

Comments
 (0)