Skip to content
Snippets Groups Projects
Commit e156962c authored by Maria Petrova-El Sayed's avatar Maria Petrova-El Sayed
Browse files

Test deployment via REST API

parent 9b241d90
No related branches found
No related tags found
No related merge requests found
Pipeline #85666 failed
...@@ -80,12 +80,12 @@ test-testing_dags: ...@@ -80,12 +80,12 @@ test-testing_dags:
# - master # - master
except: except:
- tags - tags
<<: *ssh_setup
script: script:
- echo "This is a simple check if the deploments was successful and dags get executed" - echo "This is a simple check if the deploments was successful and dags get executed"
- sleep 150 # ensure that the docker containers are up and running before testing the airflow installation - sleep 150 # ensure that the docker containers are up and running before testing the airflow installation
- ssh airflow@$TEST_IP "airflow db init && airflow dags list && airflow connections list" - 'curl -X GET -u airflow:airflow -H "Content-Type: application/json" $TEST_IP:7001/api/v1/dags'
- ssh airflow@$TEST_IP "airflow dags test testdag 2021-08-18" - 'curl -X GET -u airflow:airflow -H "Content-Type: application/json" $TEST_IP:7001/api/v1/connections'
- 'curl -X POST -u airflow:airflow -H "Content-Type: application/json" --data {} $TEST_IP:7001/api/v1/dags/testdag/dagRuns'
cleanup-successful-full-deployment: cleanup-successful-full-deployment:
# check if there is an old prod or test instance, and delete it if present # check if there is an old prod or test instance, and delete it if present
......
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