[XTESTING] Fix opnfv/xtesting version to wallaby 11/123311/1
authormorganrol <morgan.richomme@orange.com>
Wed, 18 Aug 2021 14:42:58 +0000 (16:42 +0200)
committerMorgan Richomme <morgan.richomme@orange.com>
Thu, 19 Aug 2021 12:14:24 +0000 (12:14 +0000)
opnfv/xtesting master triggered a change in the alpine baseline image (3.14)
As a consequence the xtesting docker relying on master were broken, as the
list of testcases was not overwrittent in pytho3.9 lib folder

2 options were possible:
- fix the version (wallaby)
- align the xtesting dockers and change the path to use 3.9

option1 is more secured.
For the moment python3.8 is enough for the SDK.
If needed we could upgrade later.

Issue-ID: TEST-359

Signed-off-by: morganrol <morgan.richomme@orange.com>
Change-Id: Iaeada26416e0929a11c17f5c2803448c5a23888c
(cherry picked from commit 2e7b7aa9773c4aa8e0334a1398bb12171e6b53d8)

benchmarking/docker/Dockerfile
candidate-usecases/docker/Dockerfile
infra-healthcheck/docker/Dockerfile
security/docker/Dockerfile
security/requirements.txt
smoke-usecases-pythonsdk/docker/Dockerfile

index 8e856f2..2e5f653 100644 (file)
@@ -1,4 +1,4 @@
-FROM opnfv/xtesting
+FROM opnfv/xtesting:wallaby
 ARG OPENSTACK_TAG=master
 ARG OPNFV_TAG=master
 ARG ONAP_TAG=master
index b6dae67..a8af59e 100644 (file)
@@ -1,4 +1,4 @@
-FROM opnfv/xtesting
+FROM opnfv/xtesting:wallaby
 
 MAINTAINER Morgan Richomme <morgan.richomme@orange.com>
 
index 771b999..bfa8690 100644 (file)
@@ -1,4 +1,4 @@
-FROM opnfv/xtesting
+FROM opnfv/xtesting:wallaby
 
 ARG KUBERNETES_VERSION="v1.19.9"
 ARG HELM_VERSION="v2.16.6"
@@ -22,11 +22,12 @@ RUN set -x && \
         gcc python3-dev musl-dev openssl-dev libffi-dev && \
     chmod +x /usr/local/bin/kubectl && \
     adduser kubectl -Du 2342 -h /config && \
-    wget https://storage.googleapis.com/kubernetes-helm/helm-${HELM_VERSION}-linux-amd64.tar.gz -O - | tar -xzO linux-amd64/helm > /usr/local/bin/helm && \
+    wget https://get.helm.sh/helm-${HELM_VERSION}-linux-amd64.tar.gz -O - | tar -xzO linux-amd64/helm > /usr/local/bin/helm && \
     wget https://get.helm.sh/helm-${HELM3_VERSION}-linux-amd64.tar.gz -O - | tar -xzO linux-amd64/helm > /usr/local/bin/helm3 && \
     wget -O /check_for_ingress_and_nodeports.py https://git.onap.org/integration/plain/test/security/check_for_ingress_and_nodeports.py?h=$ONAP_TAG &&\
     chmod +x /usr/local/bin/helm && \
     chmod +x /usr/local/bin/helm3 && \
+    rm -rf /usr/lib/python3.8/site-packages/PyYAML* && \
     pip3 install --upgrade pip && \
     pip3 install --no-cache-dir -r upper-constraints.txt && \
     pip3 install --no-cache-dir \
index 47e8349..2f97139 100644 (file)
@@ -16,7 +16,7 @@ RUN git clone https://git.onap.org/integration --depth 1
 WORKDIR /opt/onap/integration/test/security/sslendpoints
 RUN CGO_ENABLED=0 go install -a -ldflags '-w -s -extldflags "-static"'
 
-FROM opnfv/xtesting AS run
+FROM opnfv/xtesting:wallaby AS run
 
 ARG KUBERNETES_VERSION="v1.19.9"
 ARG ONAP_TAG=honolulu
@@ -58,6 +58,7 @@ RUN set -x && \
     chmod +x /usr/local/bin/kube-bench && \
     chmod +x /usr/local/bin/sslendpoints && \
     chmod +x /check_*.sh && \
+    rm -rf /usr/lib/python3.8/site-packages/PyYAML* && \
     pip3 install --upgrade pip && \
     pip3 install --no-cache-dir \
         git+https://git.onap.org/integration/xtesting.git@$ONAP_TESTS_TAG#subdirectory=security && \
index 6e8b944..58ac315 100644 (file)
@@ -2,12 +2,12 @@
 # of appearance. Changing the order has an impact on the overall integration
 # process, which may cause wedges in the gate later.
 coverage!=4.4 # Apache-2.0
-mock # BSD
+mock # BSD
 nose # LGPL
-flake8>=2.5.4 # MIT
-pylint>=2.1 # GPLv2
-yamllint
-bashate # Apache-2.0
+flake8>=2.5.4 # MIT
+pylint>=2.1 # GPLv2
+yamllint
+bashate # Apache-2.0
 xtesting
 Kubernetes
 colorama
index 2b40588..61ddd9d 100644 (file)
@@ -1,4 +1,4 @@
-FROM opnfv/xtesting
+FROM opnfv/xtesting:wallaby
 
 MAINTAINER Morgan Richomme <morgan.richomme@orange.com>