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

Wait for proper LE cert to get served

See #53
parent c2c7bebd
No related branches found
No related tags found
No related merge requests found
......@@ -5,6 +5,7 @@
# Ignore files created by ansible-playbook
*.retry
/ansible/secrets/
ansible/rke.log
# Ignore files created during CI using test/ci-bootstrap.py
/test/group_vars/
......
......@@ -45,10 +45,12 @@ bootstrap:
- ANSIBLE_HOST_KEY_CHECKING=False python3 -u ./ci-bootstrap.py --create_droplet
# Run testinfra tests
- py.test -v --ansible-inventory=./inventory.yml --connection=ssh --hosts='ansible://*'
# Wait for proper LE cert to get served
# - sh -c 'while curl -s https://auth.ci-${CI_JOB_ID}.ci.openappstack.net/auth/>/dev/null ; do echo "$(date): Waiting for LE cert..."; sleep 5 ; done'
- sh -c 'while curl -s https://auth.ci-${CI_JOB_ID}.ci.openappstack.net/auth/>/dev/null; do date; echo "Waiting for LE cert..."; sleep 5; done'
# Run behave tests
- cd behave/
- behave -D keycloak.admin.url=https://auth.ci-${CI_JOB_ID}.ci.openappstack.net/auth/admin/master/console/
-D keycloak.admin.password=$(cat ../secrets/keycloak_admin_password)
- behave -D keycloak.admin.url=https://auth.ci-${CI_JOB_ID}.ci.openappstack.net/auth/admin/master/console/ -D keycloak.admin.password=$(cat ../secrets/keycloak_admin_password)
# Remove droplet after successful tests
- cd ..
- python3 -c "import cosmos; cosmos.terminate_droplets_by_name(\"^ci-${CI_JOB_ID}\$\")"
......
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