-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathsetup-e2e-tests
executable file
·19 lines (15 loc) · 1.08 KB
/
setup-e2e-tests
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#!/bin/bash
# Copyright 2021 Adevinta
set -e
# run test SAML IdP container
docker run -q --name=testsamlidp_idp \
-p 8083:8080 \
-e SIMPLESAMLPHP_SP_ENTITY_ID=http://app.example.com \
-e SIMPLESAMLPHP_SP_ASSERTION_CONSUMER_SERVICE=http://localhost/simplesaml/module.php/saml/sp/saml2-acs.php/test-sp \
-e SIMPLESAMLPHP_SP_SINGLE_LOGOUT_SERVICE=http://localhost/simplesaml/module.php/saml/sp/saml2-logout.php/test-sp \
-d kristophjunge/test-saml-idp
# clean database and apply migrations
docker run -q --net=host --rm -v "$PWD"/db:/scripts flyway/flyway:"${FLYWAY_VERSION:-10}-alpine" -user=vulcanito_test -password=vulcanito_test \
-url=jdbc:postgresql://localhost:5432/vulcanito_test -locations=filesystem:/scripts/sql,filesystem:/scripts/test-sql -baselineOnMigrate=true -cleanDisabled=false clean
docker run -q --net=host --rm -v "$PWD"/db:/scripts flyway/flyway:"${FLYWAY_VERSION:-10}-alpine" -user=vulcanito_test -password=vulcanito_test \
-url=jdbc:postgresql://localhost:5432/vulcanito_test -locations=filesystem:/scripts/sql,filesystem:/scripts/test-sql -baselineOnMigrate=true migrate