mirror of
https://github.com/datahub-project/datahub.git
synced 2025-08-24 00:57:59 +00:00
feat(build): env variable for creds pass to cypress (#6367)
This commit is contained in:
parent
07a0e86470
commit
9a687caae4
@ -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
|
||||
|
@ -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,
|
||||
});
|
||||
|
Loading…
x
Reference in New Issue
Block a user