Skip to content
Snippets Groups Projects
Commit d25dedb9 authored by Lluis Gifre Renom's avatar Lluis Gifre Renom
Browse files

Bug resolution related to integration tester

parent ae69e845
No related branches found
No related tags found
1 merge request!54Release 2.0.0
...@@ -6,12 +6,5 @@ dependencies all: ...@@ -6,12 +6,5 @@ dependencies all:
- kubectl version - kubectl version
- kubectl get all - kubectl get all
- kubectl apply -f "manifests/prometheus.yaml" - 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 apply -f "manifests/redis.yaml"
- kubectl get all - kubectl get all
...@@ -51,7 +51,6 @@ deploy context: ...@@ -51,7 +51,6 @@ deploy context:
- build context - build context
- test context - test context
- dependencies all - dependencies all
- dependencies context_device
script: script:
- kubectl version - kubectl version
- kubectl get all - kubectl get all
......
...@@ -51,7 +51,6 @@ deploy device: ...@@ -51,7 +51,6 @@ deploy device:
- build device - build device
- test device - test device
- dependencies all - dependencies all
- dependencies context_device
script: script:
- kubectl version - kubectl version
- kubectl get all - kubectl get all
......
...@@ -51,10 +51,13 @@ integration_test integration_tester: ...@@ -51,10 +51,13 @@ integration_test integration_tester:
- deploy device - deploy device
- dependencies all - dependencies all
- dependencies context_device - dependencies context_device
before_script:
- docker login -u "$CI_REGISTRY_USER" -p "$CI_REGISTRY_PASSWORD" $CI_REGISTRY
script: script:
- kubectl version - kubectl version
- kubectl get all - 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 - kubectl get all
when: manual #when: manual
allow_failure: false #allow_failure: false
...@@ -26,6 +26,7 @@ RUN python3 -m pip install -r integration_tester/requirements.in ...@@ -26,6 +26,7 @@ RUN python3 -m pip install -r integration_tester/requirements.in
COPY common/. common COPY common/. common
COPY context/. context COPY context/. context
COPY device/. device COPY device/. device
COPY integration_tester/. integration_tester
# Run integration tester # Run integration tester
ENTRYPOINT ["pytest", "-v", "--log-level=DEBUG", \ ENTRYPOINT ["pytest", "-v", "--log-level=DEBUG", \
......
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