Commit 5d24da9d authored by Sergio Gonzalez Diaz's avatar Sergio Gonzalez Diaz
Browse files

modify monitoring test for uploading junit xml to gitlab

parent 8996954c
Loading
Loading
Loading
Loading
+3 −2
Original line number Diff line number Diff line
@@ -74,7 +74,8 @@ test monitoring pytest:
  needs:
    - build monitoring
  script:
    - docker build -t "$IMAGE_NAME_TEST:$IMAGE_TAG" -f ./src/$IMAGE_NAME/tests/Dockerfile ./src/ > pytest_report.xml
    - docker build -t "$IMAGE_NAME_TEST:$IMAGE_TAG" -f ./src/$IMAGE_NAME/tests/Dockerfile ./src/
    - docker run -v "$PWD/src/monitoring/tests:/opt/results" monitoring-test:latest
  rules:
    - changes:
      - src/$IMAGE_NAME/*.{py,in,yml}
@@ -85,7 +86,7 @@ test monitoring pytest:
  artifacts:
      when: always
      reports:
        junit: pytest_report.xml
        junit: src/monitoring/test/pytest_report.xml

# Deployment of the monitoring service in Kubernetes Cluster
#deploy monitoring development:
+2 −1
Original line number Diff line number Diff line
@@ -27,4 +27,5 @@ COPY common/logger.py .
ENV PORT=7070
EXPOSE 7070

RUN pytest --junitxml=report.xml
#RUN pytest --junitxml=report.xml
ENTRYPOINT ["pytest", "--junitxml=/opt/results/report.xml"]