Commit 4ef92be5 authored by harshit aggarwal's avatar harshit aggarwal Committed by Kishore Battula
Browse files

Azure - Adding Test Stage for DAG pipeline

parent d733156d
...@@ -351,3 +351,33 @@ azure_register_dag: ...@@ -351,3 +351,33 @@ azure_register_dag:
- $AZURE == 'true' - $AZURE == 'true'
azure_dag_end_to_end_test:
tags: ["osdu-medium"]
image: danielscholl/azure-build-image
stage: testDag
variables:
IMAGE_NAME: ${CI_PROJECT_NAME}-${CI_COMMIT_REF_SLUG}:${CI_COMMIT_SHA}
script:
- |
# Generating environment file to be passed while running the docker container
cat > .env << EOF
AZURE_TEST_CSV_FILE_PATH=${AZURE_TEST_CSV_FILE_PATH}
AZURE_POSTMAN_ENVIRONMENT_FILE_URL=${AZURE_POSTMAN_ENVIRONMENT_FILE_URL}
AZURE_TENANT_ID=${AZURE_TENANT_ID}
CLIENT_ID=${CLIENT_ID}
CLIENT_SECRET=${CLIENT_SECRET}
AZURE_DNS_NAME=${AZURE_DNS_NAME}
AZURE_REFRESH_TOKEN=${AZURE_REFRESH_TOKEN}
AZURE_POSTMAN_COLLECTION_FILE_URL=${AZURE_POSTMAN_COLLECTION_FILE_URL}
AZURE_TEST_SCHEMA_FILE_PATH=${AZURE_TEST_SCHEMA_FILE_PATH}
EOF
docker build -t $IMAGE_NAME-run-tests --file $AZURE_DEPLOYMENTS_SCRIPTS_SUBDIR/dockerFolder/end_to_end_tests_dockerfile .
docker run --env-file .env $IMAGE_NAME-run-tests
only:
variables:
- $AZURE == 'true'
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment