Verify Functest on functest-virtual 61/64461/5
authorCédric Ollivier <cedric.ollivier@orange.com>
Sat, 3 Nov 2018 11:51:06 +0000 (12:51 +0100)
committerCédric Ollivier <cedric.ollivier@orange.com>
Mon, 12 Nov 2018 16:26:23 +0000 (17:26 +0100)
It runs most of healthcheck and tempest-based test cases as a first
step. All benchmarking tools and all vnfs are not executed yet.

All active Functest versions are verified thanks to backward
compatibility ensured by Tempest and then by Functest.

The jobs are designed to be run in parallel (we could also run all
Functest versions in parallel instead of separated steps).

It will be switched to a verify gate in a second step.

Change-Id: I07cada848dd90f70da8741269692de8646813bdb
Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
jjb/functest/functest-virtual.yaml [new file with mode: 0644]
jjb/global/slave-params.yaml

diff --git a/jjb/functest/functest-virtual.yaml b/jjb/functest/functest-virtual.yaml
new file mode 100644 (file)
index 0000000..a25f980
--- /dev/null
@@ -0,0 +1,123 @@
+---
+- job-template:
+    name: '{repo}-functest-{container}-{tag}-{test}'
+    parameters:
+      - functest-virtual-defaults
+    builders:
+      - shell: |
+          sudo docker run \
+            -e EXTERNAL_NETWORK=public1 \
+            -v /home/opnfv/functest/results/$JOB_NAME-$BUILD_ID:\
+          /home/opnfv/functest/results \
+            -v /home/opnfv/functest/openstack.creds:\
+          /home/opnfv/functest/conf/env_file \
+            -v /home/opnfv/functest/images:/home/opnfv/functest/images \
+            {repo}/functest-{container}:{tag} run_tests -t {test}
+
+- project:
+    name: 'opnfv-functest-healthcheck'
+    container: healthcheck
+    repo: opnfv
+    tag:
+      - gambia
+      - hunter
+      - latest
+    test:
+      - connection_check
+      - tenantnetwork1
+      - tenantnetwork2
+      - vmready1
+      - vmready2
+      - singlevm1
+      - singlevm2
+      - vping_ssh
+      - vping_userdata
+      - cinder_test
+      - odl
+      - api_check
+      - snaps_health_check
+    jobs:
+      - '{repo}-functest-{container}-{tag}-{test}'
+
+- project:
+    name: 'opnfv-functest-smoke'
+    container: smoke
+    repo: opnfv
+    tag:
+      - gambia
+      - hunter
+      - latest
+    test:
+      - tempest_smoke
+      - refstack_defcore
+      - patrole
+    jobs:
+      - '{repo}-functest-{container}-{tag}-{test}'
+
+- job-template:
+    name: 'functest-virtual'
+    project-type: multijob
+    node: 'functest-virtual'
+    builders:
+      - multijob:
+          name: functest gambia
+          projects:
+            - name: 'opnfv-functest-healthcheck-gambia-connection_check'
+            - name: 'opnfv-functest-healthcheck-gambia-tenantnetwork1'
+            - name: 'opnfv-functest-healthcheck-gambia-tenantnetwork2'
+            - name: 'opnfv-functest-healthcheck-gambia-vmready1'
+            - name: 'opnfv-functest-healthcheck-gambia-vmready2'
+            - name: 'opnfv-functest-healthcheck-gambia-singlevm1'
+            - name: 'opnfv-functest-healthcheck-gambia-singlevm2'
+            - name: 'opnfv-functest-healthcheck-gambia-vping_ssh'
+            - name: 'opnfv-functest-healthcheck-gambia-vping_userdata'
+            - name: 'opnfv-functest-healthcheck-gambia-cinder_test'
+            - name: 'opnfv-functest-healthcheck-gambia-odl'
+            - name: 'opnfv-functest-healthcheck-gambia-api_check'
+            - name: 'opnfv-functest-healthcheck-gambia-snaps_health_check'
+            - name: 'opnfv-functest-smoke-gambia-tempest_smoke'
+            - name: 'opnfv-functest-smoke-gambia-refstack_defcore'
+            - name: 'opnfv-functest-smoke-gambia-patrole'
+      - multijob:
+          name: functest hunter
+          projects:
+            - name: 'opnfv-functest-healthcheck-hunter-connection_check'
+            - name: 'opnfv-functest-healthcheck-hunter-tenantnetwork1'
+            - name: 'opnfv-functest-healthcheck-hunter-tenantnetwork2'
+            - name: 'opnfv-functest-healthcheck-hunter-vmready1'
+            - name: 'opnfv-functest-healthcheck-hunter-vmready2'
+            - name: 'opnfv-functest-healthcheck-hunter-singlevm1'
+            - name: 'opnfv-functest-healthcheck-hunter-singlevm2'
+            - name: 'opnfv-functest-healthcheck-hunter-vping_ssh'
+            - name: 'opnfv-functest-healthcheck-hunter-vping_userdata'
+            - name: 'opnfv-functest-healthcheck-hunter-cinder_test'
+            - name: 'opnfv-functest-healthcheck-hunter-odl'
+            - name: 'opnfv-functest-healthcheck-hunter-api_check'
+            - name: 'opnfv-functest-healthcheck-hunter-snaps_health_check'
+            - name: 'opnfv-functest-smoke-hunter-tempest_smoke'
+            - name: 'opnfv-functest-smoke-hunter-refstack_defcore'
+            - name: 'opnfv-functest-smoke-hunter-patrole'
+      - multijob:
+          name: functest latest
+          projects:
+            - name: 'opnfv-functest-healthcheck-latest-connection_check'
+            - name: 'opnfv-functest-healthcheck-latest-tenantnetwork1'
+            - name: 'opnfv-functest-healthcheck-latest-tenantnetwork2'
+            - name: 'opnfv-functest-healthcheck-latest-vmready1'
+            - name: 'opnfv-functest-healthcheck-latest-vmready2'
+            - name: 'opnfv-functest-healthcheck-latest-singlevm1'
+            - name: 'opnfv-functest-healthcheck-latest-singlevm2'
+            - name: 'opnfv-functest-healthcheck-latest-vping_ssh'
+            - name: 'opnfv-functest-healthcheck-latest-vping_userdata'
+            - name: 'opnfv-functest-healthcheck-hunter-cinder_test'
+            - name: 'opnfv-functest-healthcheck-latest-odl'
+            - name: 'opnfv-functest-healthcheck-hunter-api_check'
+            - name: 'opnfv-functest-healthcheck-latest-snaps_health_check'
+            - name: 'opnfv-functest-smoke-latest-tempest_smoke'
+            - name: 'opnfv-functest-smoke-latest-refstack_defcore'
+            - name: 'opnfv-functest-smoke-latest-patrole'
+
+- project:
+    name: 'functest-virtual'
+    jobs:
+      - 'functest-virtual'
index 1d8654c..30ecd2a 100644 (file)
           default: https://gerrit.opnfv.org/gerrit/$PROJECT
           description: 'Git URL to use on this Jenkins Slave'
 
+- parameter:
+    name: 'functest-virtual-defaults'
+    parameters:
+      - label:
+          name: SLAVE_LABEL
+          default: 'functest-virtual'
+          all-nodes: false
+          node-eligibility: 'ignore-offline'
+
 #####################################################
 # Parameters for build slaves
 #####################################################