Skip to content

Commit

Permalink
Change the testuser's password in some integration test cases into a …
Browse files Browse the repository at this point in the history
…stronger password (#1428)

* Change the testuser's password into a stronger password

Signed-off-by: Ryan Liang <[email protected]>
  • Loading branch information
RyanL1997 authored May 18, 2023
1 parent c4e6c37 commit e628c81
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion test/jest_integration/multi_tenancy.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
6 changes: 3 additions & 3 deletions test/jest_integration/security_entity_api.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down Expand Up @@ -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',
Expand All @@ -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, {
Expand Down

0 comments on commit e628c81

Please sign in to comment.