Enable robot sample in the container 83/65683/1
authorCédric Ollivier <cedric.ollivier@orange.com>
Sun, 9 Dec 2018 08:55:56 +0000 (09:55 +0100)
committerCédric Ollivier <cedric.ollivier@orange.com>
Sun, 9 Dec 2018 09:00:54 +0000 (10:00 +0100)
The testcase is disabled by default in package as the location
depends on OS. But it can be safely enabled in the Alpine container.

Change-Id: I8d1befd09b8d823010dfce7fbb18eddb864fd6e6
Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
(cherry picked from commit 49575b34b9b3ed410c8da635eacdd64bb28c6d2a)

docker/Dockerfile
docker/testcases.yaml [new file with mode: 0644]

index c74c986..9502742 100644 (file)
@@ -13,4 +13,5 @@ RUN apk --no-cache add --update python py-pip bash git && \
         -chttps://git.opnfv.org/functest-xtesting/plain/upper-constraints.txt?h=$BRANCH \
         /src/functest-xtesting && \
     rm -r /src/functest-xtesting
+COPY testcases.yaml /usr/lib/python2.7/site-packages/xtesting/ci/testcases.yaml
 CMD ["run_tests", "-t", "all"]
diff --git a/docker/testcases.yaml b/docker/testcases.yaml
new file mode 100644 (file)
index 0000000..6b787d2
--- /dev/null
@@ -0,0 +1,66 @@
+---
+tiers:
+    -
+        name: samples
+        order: 1
+        description: ''
+        testcases:
+            -
+                case_name: first
+                project_name: xtesting
+                criteria: 100
+                blocking: true
+                clean_flag: false
+                description: ''
+                run:
+                    name: 'first'
+
+            -
+                case_name: second
+                project_name: xtesting
+                criteria: 100
+                blocking: true
+                clean_flag: false
+                description: ''
+                run:
+                    name: 'second'
+
+            -
+                case_name: third
+                project_name: xtesting
+                criteria: 100
+                blocking: true
+                clean_flag: false
+                description: ''
+                run:
+                    name: 'bashfeature'
+                    args:
+                        cmd: 'echo -n Hello World; exit 0'
+
+            -
+                case_name: fourth
+                project_name: xtesting
+                criteria: 100
+                blocking: true
+                clean_flag: false
+                description: ''
+                run:
+                    name: 'unit'
+                    args:
+                        name: 'xtesting.samples.fourth'
+
+            -
+                case_name: fifth
+                project_name: xtesting
+                criteria: 100
+                blocking: true
+                clean_flag: false
+                description: ''
+                run:
+                    name: 'robotframework'
+                    args:
+                        suites:
+                            - /usr/lib/python2.7/site-packages/xtesting/samples/HelloWorld.txt
+                        variable:
+                            - 'var01:foo'
+                            - 'var02:bar'