Publish a new Barometer testing container 55/69955/1
authorCédric Ollivier <cedric.ollivier@orange.com>
Wed, 15 Apr 2020 11:38:00 +0000 (13:38 +0200)
committerCédric Ollivier <cedric.ollivier@orange.com>
Wed, 15 Apr 2020 11:40:55 +0000 (13:40 +0200)
It's widely based on the former Functest features container.
As barometer seems leveraging on python2.7 and depends on Functest, it
inherits from opnfv/functest-core:hunter (latest py2 release).

pika seems missing in requirements.

INSTALLER_IP should be protected (it raises exceptions to the upper
program).

Change-Id: I50d1cf0a7a1233447245d852f79775c8e9fa8c99
Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
docker/barometer-tests/Dockerfile [new file with mode: 0644]
docker/barometer-tests/testcases.yaml [new file with mode: 0644]
requirements.txt

diff --git a/docker/barometer-tests/Dockerfile b/docker/barometer-tests/Dockerfile
new file mode 100644 (file)
index 0000000..6b5d3f1
--- /dev/null
@@ -0,0 +1,18 @@
+FROM opnfv/functest-core:hunter
+
+ARG BRANCH=master
+ARG OPNFV_BRANCH=stable/hunter
+ARG OPENSTACK_TAG=stable/rocky
+
+RUN apk --no-cache add --virtual .build-deps --update \
+        python-dev build-base linux-headers libffi-dev \
+        openssl-dev libjpeg-turbo-dev && \
+    wget -q -O- https://opendev.org/openstack/requirements/raw/branch/$OPENSTACK_TAG/upper-constraints.txt > upper-constraints.txt && \
+    wget -q -O- https://git.opnfv.org/functest/plain/upper-constraints.txt?h=$OPNFV_BRANCH > upper-constraints.opnfv.txt && \
+    sed -i -E /#egg=baro_tests/d upper-constraints.opnfv.txt && \
+    pip install --no-cache-dir --src /src -cupper-constraints.txt -cupper-constraints.opnfv.txt \
+        git+https://gerrit.opnfv.org/gerrit/barometer@$BRANCH#egg=baro_tests && \
+    rm -r upper-constraints.txt upper-constraints.opnfv.txt && \
+    apk del .build-deps
+COPY testcases.yaml /usr/lib/python2.7/site-packages/xtesting/ci/testcases.yaml
+CMD ["run_tests", "-t", "all"]
diff --git a/docker/barometer-tests/testcases.yaml b/docker/barometer-tests/testcases.yaml
new file mode 100644 (file)
index 0000000..a8c0a4f
--- /dev/null
@@ -0,0 +1,21 @@
+---
+tiers:
+    -
+        name: barometer
+        order: 0
+        description: >-
+            Test suites from the Barometer project
+        testcases:
+            -
+                case_name: barometercollectd
+                project_name: barometer
+                criteria: 100
+                blocking: false
+                description: >-
+                    Test suite for the Barometer project. Separate tests verify
+                    the proper configuration and basic functionality of all the
+                    collectd plugins as described in the Project Release Plan
+                dependencies:
+                    - DEPLOY_SCENARIO: 'bar'
+                run:
+                    name: barometercollectd
index 57a2f51..0c4b10c 100644 (file)
@@ -8,3 +8,4 @@ toml # MIT
 opnfv # Apache-2.0
 functest # Apache-2.0
 xtesting # Apache-2.0
+pika  # BSD