Skip to content

Commit

Permalink
OZ-453: Keycloak admin credentials obfuscated. (#66)
Browse files Browse the repository at this point in the history
  • Loading branch information
kdaud authored Dec 14, 2023
1 parent 1232a73 commit dd00cad
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
2 changes: 2 additions & 0 deletions .env
Original file line number Diff line number Diff line change
Expand Up @@ -18,5 +18,7 @@ E2E_USER_ADMIN_USERNAME=jdoe
E2E_USER_ADMIN_PASSWORD=password
FOSS_E2E_USER_ADMIN_USERNAME=admin
FOSS_E2E_USER_ADMIN_PASSWORD=Admin123
E2E_KEYCLOAK_USERNAME=
E2E_KEYCLOAK_PASSWORD=
E2E_RUNNING_ON_OZONE_PRO=true
E2E_TEST_ENVIRONMENT=dev
2 changes: 2 additions & 0 deletions .github/workflows/pro.yml
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,8 @@ jobs:
id: jobStatusPretty
env:
E2E_TEST_ENVIRONMENT: '${{ github.event.inputs.environment }}'
E2E_KEYCLOAK_USERNAME: '${{ secrets.KEYCLOAK_USERNAME }}'
E2E_KEYCLOAK_PASSWORD: '${{ secrets.KEYCLOAK_PASSWORD }}'
run: |
npm run proE2ETests
Expand Down
4 changes: 2 additions & 2 deletions e2e/utils/functions/testBase.ts
Original file line number Diff line number Diff line change
Expand Up @@ -67,8 +67,8 @@ export class HomePage {

async goToKeycloak() {
await this.page.goto(`${E2E_KEYCLOAK_URL}/admin/master/console`);
await this.page.getByLabel('Username or email').fill('admin');
await this.page.getByLabel('Password').fill('password');
await this.page.getByLabel('Username or email').fill(`${process.env.E2E_KEYCLOAK_USERNAME}`);
await this.page.getByLabel('Password').fill(`${process.env.E2E_KEYCLOAK_PASSWORD}`);
await this.page.getByRole('button', { name: 'Sign In' }).click();
await delay(8000);
}
Expand Down

0 comments on commit dd00cad

Please sign in to comment.