[CLAMP] Include schema_details.json for clamp test 10/120110/4
authormorganrol <morgan.richomme@orange.com>
Thu, 1 Apr 2021 15:02:26 +0000 (17:02 +0200)
committerMorgan Richomme <morgan.richomme@orange.com>
Fri, 2 Apr 2021 12:37:10 +0000 (12:37 +0000)
This file is required by onapsdk clamp module
The alternative could be to modify directly in SDK to avoid this change...

Issue-ID: INT-1819

Signed-off-by: morganrol <morgan.richomme@orange.com>
Change-Id: I54ab1f8bb48a3a76689f1f27374d898d66dabc56

smoke-usecases-pythonsdk/docker/Dockerfile
smoke-usecases-pythonsdk/docker/testcases.yaml

index 8e01e03..f6b6c96 100644 (file)
@@ -3,6 +3,8 @@ FROM opnfv/xtesting
 MAINTAINER Morgan Richomme <morgan.richomme@orange.com>
 
 ARG ONAP_TESTS_TAG=master
+ARG ONAPSDK_PYTHON_PATH=/src/onapsdk
+
 ENV CRYPTOGRAPHY_DONT_BUILD_RUST=1
 
 RUN apk add --no-cache python3 git && \
@@ -11,6 +13,8 @@ RUN apk add --no-cache python3 git && \
     pip3 install --upgrade pip && \
     pip3 install --editable \
         git+https://gerrit.onap.org/r/testsuite/pythonsdk-tests@$ONAP_TESTS_TAG#egg=onaptests && \
+    mkdir -p $ONAPSDK_PYTHON_PATH/clamp && \
+    wget -O $ONAPSDK_PYTHON_PATH/clamp/schema_details.json https://gitlab.com/Orange-OpenSource/lfn/onap/python-onapsdk/-/raw/develop/src/onapsdk/clamp/schema_details.json && \
     apk del .build-deps
 
 COPY docker/testcases.yaml /usr/lib/python3.8/site-packages/xtesting/ci/testcases.yaml
index 2a94ef5..0aace6b 100644 (file)
@@ -88,3 +88,15 @@ tiers:
                 dependencies:
                 run:
                     name: pnf_macro
+            -
+                case_name: basic_clamp
+                project_name: integration
+                enabled: true
+                criteria: 100
+                blocking: false
+                description: >-
+                    Onboard and enrich a model with TCA. Create a loop using
+                    clamp. Distribute the loop to Policy and DCAE.
+                dependencies:
+                run:
+                    name: basic_clamp