From eb7f84e5c857321a6c7777d86e25eae603614372 Mon Sep 17 00:00:00 2001 From: Ryan Liang <109499885+RyanL1997@users.noreply.github.com> Date: Thu, 18 May 2023 11:37:03 -0700 Subject: [PATCH] Change the testuser's password in some integration test cases into a stronger password (#1428) * Change the testuser's password into a stronger password Signed-off-by: Ryan Liang Signed-off-by: leanneeliatra --- test/jest_integration/multi_tenancy.test.ts | 2 +- test/jest_integration/security_entity_api.test.ts | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/test/jest_integration/multi_tenancy.test.ts b/test/jest_integration/multi_tenancy.test.ts index adeccda15..684d55294 100644 --- a/test/jest_integration/multi_tenancy.test.ts +++ b/test/jest_integration/multi_tenancy.test.ts @@ -67,7 +67,7 @@ describe('start OpenSearch Dashboards server', () => { async function createTestUser(username: string = undefined, password: string = undefined) { const testUserName = username || `test_user_${Date.now()}`; - const testUserPassword = password || 'Test_123'; + const testUserPassword = password || 'testUserPassword123'; await createOrUpdateEntityAsAdmin(root, 'internalusers', testUserName, { password: testUserPassword, diff --git a/test/jest_integration/security_entity_api.test.ts b/test/jest_integration/security_entity_api.test.ts index 6b89d081c..f28817798 100644 --- a/test/jest_integration/security_entity_api.test.ts +++ b/test/jest_integration/security_entity_api.test.ts @@ -68,7 +68,7 @@ describe('start OpenSearch Dashboards server', () => { it('create/get/update/list/delete internal user', async () => { const testUsername = `test_user_${Date.now()}`; - const testUserPassword = 'Test_123'; + const testUserPassword = 'testUserPassword123'; const createUserResponse = await createOrUpdateEntityAsAdmin( root, @@ -270,7 +270,7 @@ describe('start OpenSearch Dashboards server', () => { it('get account info', async () => { const testUsername = `test_user_${Date.now()}`; - const testUserPassword = 'Test_123'; + const testUserPassword = 'testUserPassword123'; await createOrUpdateEntityAsAdmin(root, 'internalusers', testUsername, { description: 'test user description', @@ -297,7 +297,7 @@ describe('start OpenSearch Dashboards server', () => { it('self reset password as non-admin', async () => { const testUsername = `test_user_${Date.now()}`; - const testUserPassword = 'Test_123'; + const testUserPassword = 'testUserPassword123'; const readAllRole = 'read_all'; // use predefined "read_all" role await createOrUpdateEntityAsAdmin(root, 'internalusers', testUsername, {