Skip to content
Snippets Groups Projects
Verified Commit 5a5d9376 authored by Varac's avatar Varac
Browse files

Wait for LE cert in e2e CI stage

By this we can run tests with testinfra while waiting for
LE certs to get served.

Closes: #53
parent bc4c6c68
No related branches found
No related tags found
No related merge requests found
......@@ -34,8 +34,6 @@ bootstrap:
- eval $(ssh-agent -s)
- echo "$SSH_PRIVATE_KEY" | tr -d '\r' | ssh-add - > /dev/null
- ANSIBLE_HOST_KEY_CHECKING=False python3 -u ./ci-bootstrap.py --create_droplet
# Wait for proper LE cert to get served
- timeout -t 1200 sh -c 'while ! curl --cacert ./letsencrypt_staging_bundle.pem -s https://auth.ci-${CI_PIPELINE_IID}.ci.openappstack.net/auth/ > /dev/null; do date; echo "Waiting for LE cert..."; sleep 5; done'
cache:
key: "$CI_PIPELINE_ID"
paths:
......@@ -68,7 +66,8 @@ behave:
stage: e2e-test
image: ${CI_REGISTRY_IMAGE}/bootstrap-ci
script:
# Run behave tests
# Wait for proper LE cert to get served
- timeout -t 1200 sh -c 'while ! curl --cacert ./test/letsencrypt_staging_bundle.pem -s https://auth.ci-${CI_PIPELINE_ID}.ci.openappstack.net/auth/ > /dev/null; do date; echo "Waiting for LE cert..."; sleep 5; done'
- cd test/behave/
- ls -al
- cat behave.ini | grep -v 'keycloak.admin.password'
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment