Add e2e-interface testing in the pipeline

This commit is contained in:
Santiago Lo Coco 2023-12-03 21:16:06 -03:00
parent ae0e57ec07
commit 7070995900
4 changed files with 32 additions and 0 deletions

View File

@ -146,6 +146,15 @@ build-gateway:
- export TEST_IMAGE=${GATEWAY_TEST_IMAGE_NAME} - export TEST_IMAGE=${GATEWAY_TEST_IMAGE_NAME}
- *build-and-push-script - *build-and-push-script
build-e2e-interface:
extends:
- .build
script:
- export FOLDER=testing/catcher
- export API_IMAGE=${E2E_TEST_IMAGE_NAME}
- docker build ${FOLDER} -f ${FOLDER}/Dockerfile -t ${API_IMAGE}
- docker push ${API_IMAGE}
.test-script: &test-script .test-script: &test-script
- docker compose -f ${FOLDER}/docker-compose.dev.yml --env-file $ENV_DEV_FILE down - docker compose -f ${FOLDER}/docker-compose.dev.yml --env-file $ENV_DEV_FILE down
- docker compose -f ${FOLDER}/docker-compose.dev.yml --env-file $ENV_DEV_FILE pull - docker compose -f ${FOLDER}/docker-compose.dev.yml --env-file $ENV_DEV_FILE pull
@ -390,6 +399,29 @@ test-screen-integration:
artifacts: false artifacts: false
- job: test-browser-integration - job: test-browser-integration
optional: true optional: true
artifacts: false
- *needs-backend-tests
test-e2e-interface:
stage: test
tags:
- dev
rules:
- *changes-frontend
- *changes-backend
script:
- export API_IMAGE=${E2E_TEST_IMAGE_NAME}
- export FOLDER=testing/catcher
- *test-integration
after_script:
- *test-integration-clean
needs:
- job: test-browser-integration
optional: true
artifacts: false
- job: test-screen-integration
optional: true
artifacts: false
- *needs-backend-tests - *needs-backend-tests
deliver-dockerhub: deliver-dockerhub: