-openstack server set --name $OLD_TEST_NAME $OLD_ID
-openstack server set --name $OLD_TEST_NAME $OLD_ID
-INSTANCE_ID=`openstack server create -f value -c id --prefix IMAGE_ --flavor m4 --image 149a65b5-aeb8-499f-aaa6-ec966bd28dd6 --user-data scripts/cloudinit.yml --security-group ssh --security-group airflows --security-group www --security-group https $TESTING_NAME`
-INSTANCE_ID=`openstack server create -f value -c id --prefix IMAGE_ --flavor m4 --image 149a65b5-aeb8-499f-aaa6-ec966bd28dd6 --user-data scripts/cloudinit.yml --security-group ssh --security-group airflows --security-group www --security-group https $TESTING_NAME`
-while [ "`openstack server show $INSTANCE_ID -c addresses -f value`" = "{}" ]; do sleep 5; done# wait until an address is available to attach the floating ip
-while [ "`openstack server show $INSTANCE_ID -c addresses -f value`" = "{}" ]; do sleep 5; done# wait until an address is available to attach the floating ip
-openstack server add floating ip $INSTANCE_ID $TEST_IP
-openstack server add floating ip $INSTANCE_ID $TESTING_IP
-echo "Done"
-echo "Done"
test-testing_dags:
test-testing_dags:
...
@@ -69,12 +69,14 @@ test-testing_dags:
...
@@ -69,12 +69,14 @@ test-testing_dags:
-tags
-tags
script:
script:
-apt update && apt -y install curl
-apt update && apt -y install curl
-echo "This is a simple check if the deploments was successful and dags get executed"
-echo "This is a simple check if the deployment was successful and dags get executed"
-sleep 60# ensure that the docker containers are up and running before testing the airflow installation
# ensure that the docker containers are up and running before testing the airflow installation; it should take no longer than about 16 minutes for the containers to be up and running
-SECONDS=0
-while [ $SECONDS -le 1000 ] ; do if output=$(curl --insecure -I -H "Accept:application/json" $TESTING_URL) ; then break; else sleep 30; fi ; done