Add support for ONAP testing in verify jobs 66/7166/3
authoreprasad <prasad.mukhedkar@est.tech>
Fri, 22 Jan 2021 07:21:44 +0000 (07:21 +0000)
committerPrasad Mukhedkar <prasad.mukhedkar@est.tech>
Fri, 22 Jan 2021 09:48:32 +0000 (09:48 +0000)
This change request adds support for ONAP testing in verify jobs.

 -  xTesting framework is used for executing tests

 -  Healthcheck and Infra-healthcheck testsuites added

Change-Id: I1b59afc7ebdaa7d4682355dce7eff5f993539362
Signed-off-by: eprasad <prasad.mukhedkar@est.tech>
jjb/cloud-infra/onap-jobs/onap-verify-deploy-test.yaml

index 33efaaa18ac03d845f2cfa7eeb423e94f6aefafa..8ecf96e16366348a53cc53aa6a29f4c7f3d83410 100644 (file)
@@ -30,7 +30,7 @@
       - 'guilin':
           branch: '{stream}'
           k8s-version: '1.15'
-          deploy-scenario: 'onap-full-nofeature'          
+          deploy-scenario: 'onap-full-nofeature'
       - 'frankfurt':
           branch: '{stream}'
           k8s-version: '1.15'
           failed: false
           unstable: false
           notbuilt: false
-    # just deploy phase for now and ONAP testing isn't defined yet
+
     phase:
       - deploy
+      - test
 
 
     type:
@@ -83,6 +84,9 @@
       - 'onap-verify-{environment-type}-deploy-test-{distro}-{cloud}-{type}-{stream}'
       - 'onap-verify-{environment-type}-deploy-{distro}-{cloud}-{type}-{stream}'
       - 'onap-verify-{environment-type}-deployk8s-{distro}-{cloud}-{type}-{stream}'
+      - 'onap-verify-{environment-type}-xtesting-infra-healthcheck-{distro}-{cloud}-{type}-{stream}'
+      - 'onap-verify-{environment-type}-xtesting-healthcheck-{distro}-{cloud}-{type}-{stream}'
+
 
 - job-template:
     name: 'onap-verify-{environment-type}-deploy-test-{distro}-{cloud}-{type}-{stream}'
           name: USE_PREBUILT_DEPLOYMENT_IMAGE
           default: 'true'
           description: 'Use prebuilt deployment image while running as part of CI/CD'
-      - string:
-          name: TEST_REPO_URL
-          default: 'https://gerrit.nordix.org/infra/test.git'
-          description: 'URL to clone the test repo from'
-      - string:
-          name: TEST_FW
-          default: 'functest'
-          description: 'Test framework to use'
-      - string:
-          name: TEST_SUITE
-          default: 'healthcheck'
-          description: 'Test suite to run'
-      - string:
-          name: YARDSTICK_DISPATCHER
-          default: 'file'
-          description: 'Dispatcher to use for Yardstick reporting'
       - string:
           name: DELETE_STACK
           default: 'false'
               kill-phase-on: FAILURE
               abort-all-job: false
               property-file: $WORKSPACE/change.properties
+      - multijob:
+          name: xTesting for infra-healthcheck and healthcheck
+          condition: ALWAYS
+          projects:
+            - name: 'onap-verify-{environment-type}-xtesting-infra-healthcheck-{distro}-{cloud}-{type}-{stream}'
+              current-parameters: true
+              git-revision: true
+              node-parameters: true
+              kill-phase-on: FAILURE
+              abort-all-job: false
+            - name: 'onap-verify-{environment-type}-xtesting-healthcheck-{distro}-{cloud}-{type}-{stream}'
+              current-parameters: true
+              git-revision: true
+              node-parameters: true
+              kill-phase-on: FAILURE
+              abort-all-job: false
     publishers:
       - postbuildscript:
           builders:
       - 'wait-pkg-mgr-macro'
       - 'download-deploy-artifact-macro'
       - 'deploy-macro'
+- job-template:
+    name: 'onap-verify-{environment-type}-xtesting-infra-healthcheck-{distro}-{cloud}-{type}-{stream}'
+
+    disabled: '{obj:disabled}'
+
+    parameters:
+      - string:
+          name: EXECUTION_MODE
+          default: '{execution-mode}'
+          description: 'Execution mode'
+      - string:
+          name: TEST_REPO_URL
+          default: 'https://gerrit.nordix.org/infra/test.git'
+          description: 'URL to clone the test repo from'
+      - string:
+          name: TEST_FW
+          default: 'xtesting'
+          description: 'Test framework to use'
+      - string:
+          name: TEST_SUITE
+          default: 'infra-healthcheck'
+          description: 'Test suite to run'
+
+    properties:
+      - logrotate
+      - throttle:
+          max-per-node: 1
+          max-total: 3
+          option: project
+    wrappers:
+      - build-timeout:
+          timeout: 600
+      - mask-passwords
+      - fix-workspace-permissions
+
+    builders:
+      - 'xtesting-infra-healthcheck-macro'
+
+- job-template:
+    name: 'onap-verify-{environment-type}-xtesting-healthcheck-{distro}-{cloud}-{type}-{stream}'
+
+    disabled: '{obj:disabled}'
+
+    parameters:
+      - string:
+          name: EXECUTION_MODE
+          default: '{execution-mode}'
+          description: 'Execution mode'
+      - string:
+          name: TEST_REPO_URL
+          default: 'https://gerrit.nordix.org/infra/test.git'
+          description: 'URL to clone the test repo from'
+      - string:
+          name: TEST_FW
+          default: 'xtesting'
+          description: 'Test framework to use'
+      - string:
+          name: TEST_SUITE
+          default: 'healthcheck'
+          description: 'Test suite to run'
+
+    properties:
+      - logrotate
+      - throttle:
+          max-per-node: 1
+          max-total: 3
+          option: project
+    wrappers:
+      - build-timeout:
+          timeout: 600
+      - mask-passwords
+      - fix-workspace-permissions
+
+    builders:
+      - 'xtesting-healthcheck-macro'
+