diff options
author | Michal Jagiello <michal.jagiello@t-mobile.pl> | 2023-05-11 14:32:52 +0000 |
---|---|---|
committer | Lukasz Rajewski <lukasz.rajewski@t-mobile.pl> | 2023-05-17 07:53:48 +0000 |
commit | 05a15ef4d6a4e2b2b25f18fb84aa0447019bf228 (patch) | |
tree | 55d0e5eeb2d9f7c6f05f39cc3f395ab718acbfca /infra-healthcheck/docker | |
parent | 379be6ef16ba5f69b9df76e7ff149ee9efb21a99 (diff) |
[INFRA] Use integraion script to run onap-k8s test
Instead of Orange use ONAP script to run that test
Refactor docker image build to not clone that repo
Issue-ID: INT-2226
Signed-off-by: Michal Jagiello <michal.jagiello@t-mobile.pl>
Change-Id: I280b344630860caac96f95b77f76c95db5be32db
Diffstat (limited to 'infra-healthcheck/docker')
-rw-r--r-- | infra-healthcheck/docker/Dockerfile | 10 | ||||
-rw-r--r-- | infra-healthcheck/docker/testcases.yaml | 2 |
2 files changed, 7 insertions, 5 deletions
diff --git a/infra-healthcheck/docker/Dockerfile b/infra-healthcheck/docker/Dockerfile index 24fa61d..9cab01d 100644 --- a/infra-healthcheck/docker/Dockerfile +++ b/infra-healthcheck/docker/Dockerfile @@ -14,7 +14,8 @@ ENV CRYPTOGRAPHY_DONT_BUILD_RUST=1 ADD https://storage.googleapis.com/kubernetes-release/release/${KUBERNETES_VERSION}/bin/linux/amd64/kubectl /usr/local/bin/kubectl -COPY upper-constraints.txt . +# COPY upper-constraints.txt . +COPY . . RUN set -x && \ apk --no-cache add --update curl ca-certificates && \ @@ -29,11 +30,12 @@ RUN set -x && \ 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 \ - git+https://git.onap.org/integration/xtesting.git@$ONAP_TESTS_TAG#subdirectory=infra-healthcheck && \ + pip3 install --no-cache-dir -r requirements.txt -c upper-constraints.txt && \ + pip3 install --no-cache-dir -e . && \ pip3 install --no-cache-dir \ git+https://git.onap.org/integration.git@$ONAP_TESTS_TAG#subdirectory=test/security/check_certificates && \ + pip3 install --ignore-installed --no-cache-dir \ + git+https://git.onap.org/testsuite/pythonsdk-tests.git@$ONAP_TESTS_TAG && \ apk del .build-deps COPY docker/testcases.yaml /usr/lib/python3.8/site-packages/xtesting/ci/testcases.yaml diff --git a/infra-healthcheck/docker/testcases.yaml b/infra-healthcheck/docker/testcases.yaml index 0cd8fe8..287b64e 100644 --- a/infra-healthcheck/docker/testcases.yaml +++ b/infra-healthcheck/docker/testcases.yaml @@ -16,7 +16,7 @@ tiers: This test case verifies that the ONAP pods are all Running and shows the pods, deployments, svc and events run: - name: 'onap_k8s' + name: 'namespace_status' - case_name: onap-helm project_name: integration |