mirror of
https://github.com/datahub-project/datahub.git
synced 2025-08-24 09:08:17 +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)
|
(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
|
pytest -rP --durations=20 -vv --continue-on-collection-errors --junit-xml=junit.smoke.xml
|
||||||
|
@ -15,8 +15,8 @@ Cypress.Commands.add('login', () => {
|
|||||||
method: 'POST',
|
method: 'POST',
|
||||||
url: '/logIn',
|
url: '/logIn',
|
||||||
body: {
|
body: {
|
||||||
username: 'datahub',
|
username: Cypress.env('ADMIN_USERNAME'),
|
||||||
password: 'datahub',
|
password: Cypress.env('ADMIN_PASSWORD'),
|
||||||
},
|
},
|
||||||
retryOnStatusCodeFailure: true,
|
retryOnStatusCodeFailure: true,
|
||||||
});
|
});
|
||||||
|
Loading…
x
Reference in New Issue
Block a user