[ROBOT] ADD BULKPM testsuite to use helm based component services 45/124645/2
authorKrzysztof Kuzmicki <krzysztof.kuzmicki@nokia.com>
Fri, 1 Oct 2021 12:12:43 +0000 (14:12 +0200)
committerKrzysztof Kuzmicki <krzysztof.kuzmicki@nokia.com>
Tue, 5 Oct 2021 07:43:35 +0000 (09:43 +0200)
Changes required in XTESTING image before adding BULKPM test cases that use
helm based component services

Signed-off-by: Krzysztof Kuzmicki <krzysztof.kuzmicki@nokia.com>
Issue-ID: INT-1895
Change-Id: I48adc9e326371163d9f5bd96fe42341f505cfbf0

smoke-usecases-robot/docker/Dockerfile

index 4ec003a..6ed527d 100644 (file)
@@ -7,6 +7,7 @@ ARG OPNFV_TAG=master
 ARG ONAP_TAG=master
 ARG PIP_TAG=20.1
 ARG KUBERNETES_VERSION="v1.19.9"
+ARG HELM_VERSION="v3.3.4"
 
 ENV TAG all
 ENV CRYPTOGRAPHY_DONT_BUILD_RUST=1
@@ -16,6 +17,7 @@ ENV CRYPTOGRAPHY_DONT_BUILD_RUST=1
 # https://aur.archlinux.org/packages/kubectl-bin/
 
 ADD https://storage.googleapis.com/kubernetes-release/release/${KUBERNETES_VERSION}/bin/linux/amd64/kubectl /usr/local/bin/kubectl
+ADD https://raw.githubusercontent.com/helm/helm/main/scripts/get-helm-3 get_helm.sh
 
 COPY requirements.txt requirements.txt
 RUN apk --no-cache add --update openssl chromium chromium-chromedriver && \
@@ -45,7 +47,9 @@ RUN apk --no-cache add --update openssl chromium chromium-chromedriver && \
     ln -s /usr/lib/python3.7/site-packages/heatbridge /usr/lib/python3.7/site-packages/HeatBridge && \
     rm -r requirements.txt /var/opt/ONAP/.git /src/demo && \
     cd / && ln -s /var/opt/ONAP/robot/ /robot && \
-    apk del .build-deps
+    apk del .build-deps && \
+    chmod 700 get_helm.sh && \
+    ./get_helm.sh --version $HELM_VERSION
 
 COPY docker/testcases.yaml /usr/lib/python3.7/site-packages/xtesting/ci/testcases.yaml
 COPY scripts/cmd.sh /