Commit d25dedb9 authored by Lluis Gifre Renom's avatar Lluis Gifre Renom
Browse files

Bug resolution related to integration tester

parent ae69e845
Loading
Loading
Loading
Loading
+0 −7
Original line number Diff line number Diff line
@@ -6,12 +6,5 @@ dependencies all:
    - kubectl version
    - kubectl get all
    - kubectl apply -f "manifests/prometheus.yaml"
    - kubectl get all

dependencies context_device:
  stage: dependencies
  script:
    - kubectl version
    - kubectl get all
    - kubectl apply -f "manifests/redis.yaml"
    - kubectl get all
+0 −1
Original line number Diff line number Diff line
@@ -51,7 +51,6 @@ deploy context:
    - build context
    - test context
    - dependencies all
    - dependencies context_device
  script:
    - kubectl version
    - kubectl get all
+0 −1
Original line number Diff line number Diff line
@@ -51,7 +51,6 @@ deploy device:
    - build device
    - test device
    - dependencies all
    - dependencies context_device
  script:
    - kubectl version
    - kubectl get all
+6 −3
Original line number Diff line number Diff line
@@ -51,10 +51,13 @@ integration_test integration_tester:
    - deploy device
    - dependencies all
    - dependencies context_device
  before_script:
    - docker login -u "$CI_REGISTRY_USER" -p "$CI_REGISTRY_PASSWORD" $CI_REGISTRY
  script:
    - kubectl version
    - kubectl get all
    - kubectl run $(echo $IMAGE_NAME | sed -r 's/[^a-zA-Z0-9\.\-]/-/g') --image "$IMAGE_NAME:$IMAGE_TAG" --restart=Never --rm -i --tty
    # --rm to remove tester when it finishes
    - kubectl run $(echo $IMAGE_NAME | sed -r 's/[^a-zA-Z0-9\.\-]/-/g') --image "$CI_REGISTRY_IMAGE/$IMAGE_NAME:$IMAGE_TAG" --restart=Never -i --tty
    - kubectl get all
  when: manual
  allow_failure: false
  #when: manual
  #allow_failure: false
+1 −0
Original line number Diff line number Diff line
@@ -26,6 +26,7 @@ RUN python3 -m pip install -r integration_tester/requirements.in
COPY common/. common
COPY context/. context
COPY device/. device
COPY integration_tester/. integration_tester

# Run integration tester
ENTRYPOINT ["pytest", "-v", "--log-level=DEBUG", \