Integrating Functest Patrole test case 39/56939/1
authorGeorg Kunz <georg.kunz@ericsson.com>
Tue, 1 May 2018 22:08:15 +0000 (22:08 +0000)
committerGeorg Kunz <georg.kunz@ericsson.com>
Tue, 1 May 2018 22:08:15 +0000 (22:08 +0000)
Adding the new Patrole test case of Functest to Dovetail and to the
proposed_tests test suite.

JIRA: DOVETAIL-649

Change-Id: I2c3f583cdbd3af75cec020b0fe97f287d23498a5
Signed-off-by: Georg Kunz <georg.kunz@ericsson.com>
dovetail/test_runner.py
etc/compliance/proposed_tests.yml
etc/conf/dovetail_config.yml
etc/conf/functest_config.yml
etc/testcase/security.patrole.yml [new file with mode: 0644]
etc/userconfig/testcases.yaml

index 6ecbda9..28988de 100644 (file)
@@ -137,6 +137,8 @@ class FunctestRunner(DockerRunner):
             source_file = os.path.join(result_path, 'refstack', 'tempest.log')
         elif validate_testcase == 'bgpvpn':
             source_file = os.path.join(result_path, 'bgpvpn.log')
+        elif validate_testcase == 'patrole':
+            source_file = os.path.join(result_path, 'patrole', 'tempest.log')
         else:
             source_file = None
         if source_file:
index 692ffed..3612930 100644 (file)
@@ -16,3 +16,5 @@ proposed_tests:
     - dovetail.stress.tc001
     # sdnvpn
     - dovetail.sdnvpn.tc000
+    # patrole
+    - dovetail.security.patrole
index f4e0d03..49ccae6 100644 (file)
@@ -54,6 +54,7 @@ testarea_supported:
   - healthcheck
   - vnf
   - lifecycle
+  - security
 
 functest_testsuite:
   - refstack_defcore
@@ -62,6 +63,7 @@ functest_testsuite:
   - tempest_custom
   - rally_sanity
   - promise
+  - patrole
 
 functest_testcase:
   - bgpvpn
index 0251b73..537a3d3 100644 (file)
@@ -1,7 +1,7 @@
 ---
 functest:
   image_name: opnfv/functest-smoke
-  docker_tag: fraser
+  docker_tag: opnfv-6.0.0
   opts: '-id --privileged=true'
   envs: '-e INSTALLER_TYPE=unknown -e DEPLOY_SCENARIO=unknown -e NODE_NAME=unknown
          -e TEST_DB_URL=file:///home/opnfv/functest/results/functest_results.txt'
diff --git a/etc/testcase/security.patrole.yml b/etc/testcase/security.patrole.yml
new file mode 100644 (file)
index 0000000..354f2fe
--- /dev/null
@@ -0,0 +1,9 @@
+---
+dovetail.security.patrole:
+  name: dovetail.security.patrole
+  objective: Run Patrole to perform RBAC tests of the image and networking services
+  validate:
+    type: functest
+    testcase: patrole
+  report:
+    sub_testcase_list:
index 571ae7b..5e6a6c7 100644 (file)
@@ -171,6 +171,26 @@ tiers:
                 run:
                     module: 'functest.opnfv_tests.openstack.tempest.tempest'
                     class: 'TempestCustom'
+            -
+                case_name: patrole
+                project_name: functest
+                criteria: 100
+                blocking: false
+                description: >-
+                    Test suite from Patrole project.
+                dependencies:
+                    installer: ''
+                    scenario: ''
+                run:
+                    module: 'functest.opnfv_tests.openstack.patrole.patrole'
+                    class: 'Patrole'
+                    args:
+                        role: 'admin'
+                        services:
+                            - 'image'
+                            - 'network'
+                        exclude:
+                            - 'test_networks_multiprovider_rbac'
 
     -
         name: features