-echo "Starting the full testing deployment of airflows example."
-echo "Starting the full testing deployment of airflows example."
-pip install python-openstackclient
-pip install python-openstackclient
...
@@ -52,17 +57,42 @@ full-deploy-test:
...
@@ -52,17 +57,42 @@ full-deploy-test:
-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 $FLOATING_IP
-openstack server add floating ip $INSTANCE_ID $TEST_IP
-echo "Done"
-echo "Done"
test-testing_webserver:
cache:{}
stage:test-deployment
# only:
# - master
except:
-tags
script:
-apt update && apt -y install curl
-echo "For now, this will be a basic health check i.e. GET / and check for 2xx code."
-sleep 150# ensure that the docker containers are up and running before testing the airflow installation