feat(build): env variable for creds pass to cypress (#6367)

This commit is contained in:
Aseem Bansal 2022-11-05 03:08:51 +05:30 committed by GitHub
parent 07a0e86470
commit 9a687caae4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 5 additions and 2 deletions

View File

@ -27,4 +27,7 @@ DATAHUB_TELEMETRY_ENABLED=false datahub docker quickstart --standalone_consumers
(cd ..; ./gradlew :smoke-test:yarnInstall)
export CYPRESS_ADMIN_USERNAME=${ADMIN_USERNAME:-datahub}
export CYPRESS_ADMIN_PASSWORD=${ADMIN_PASSWORD:-datahub}
pytest -rP --durations=20 -vv --continue-on-collection-errors --junit-xml=junit.smoke.xml

View File

@ -15,8 +15,8 @@ Cypress.Commands.add('login', () => {
method: 'POST',
url: '/logIn',
body: {
username: 'datahub',
password: 'datahub',
username: Cypress.env('ADMIN_USERNAME'),
password: Cypress.env('ADMIN_PASSWORD'),
},
retryOnStatusCodeFailure: true,
});