Organize file structure for tests 87/887/2
authorCristina Pauna <cristina.pauna@enea.com>
Wed, 29 May 2019 12:13:52 +0000 (15:13 +0300)
committerCristina Pauna <cristina.pauna@enea.com>
Thu, 30 May 2019 13:02:48 +0000 (16:02 +0300)
Reorganized the tests following these rules
- all tests have been put under *tests* folder
- all tests are organised under folders named
  by their correspondent layer

bluval.py was modified to reflect the changes

TODO: each layer under *tests* folder should have a correspondent
layer in the *docker* folder

Signed-off-by: Cristina Pauna <cristina.pauna@enea.com>
Change-Id: Ifdd46ee22b6d009eb17475c5e2efd8bd9f37c3ad

13 files changed:
.coafile
bluval/bluval.py
tests/hardware/bios_version/bios_version_dell.robot [moved from bios_version/bios_version_dell.robot with 100% similarity]
tests/k8s/conformance/conformance.robot [moved from conformance/conformance.robot with 100% similarity]
tests/k8s/conformance/sonobuoy.yaml [moved from conformance/sonobuoy.yaml with 100% similarity]
tests/k8s/ha/ha_calico_dns_proxy.robot [moved from ha/ha_calico_dns_proxy.robot with 100% similarity]
tests/k8s/ha/ha_etcd_api_ctl_sch.robot [moved from ha/ha_etcd_api_ctl_sch.robot with 100% similarity]
tests/k8s/ha/ha_services.robot [moved from ha/ha_services.robot with 100% similarity]
tests/k8s/ha/ha_worker.robot [moved from ha/ha_worker.robot with 100% similarity]
tests/networking/helloworld/helloworld.robot [moved from helloworld/helloworld.robot with 100% similarity]
tests/openstack/ceph_service/ceph_service.resource [moved from ceph/ceph_service.resource with 100% similarity]
tests/openstack/ceph_service/ceph_service.robot [moved from ceph/ceph_service.robot with 100% similarity]
tests/openstack/ceph_service/variables.resource [moved from ceph/variables.resource with 100% similarity]

index 37ab105..6896103 100644 (file)
--- a/.coafile
+++ b/.coafile
@@ -33,7 +33,7 @@ bears = YAMLLintBear
 files = **.yaml, **.yml
 use_spaces = true
 max_line_length = 120
-ignore = conformance/sonobuoy.yaml
+ignore = tests/k8s/conformance/sonobuoy.yaml
 
 [all.Python]
 bears = PyLintBear
index 4a01a92..01b402a 100644 (file)
@@ -28,8 +28,9 @@ def run_testcase(testcase):
     """
     show_stopper = testcase.get('show_stopper', False)
     what = testcase.get('what')
-    results = "results/"+what
-    command = '{} {} {} {}'.format("robot", "-d", results, what)
+    results = "results/"+testcase.get('layer')+"/"+what
+    test_path = "tests/"+testcase.get('layer')+"/"+what
+    command = '{} {} {} {}'.format("robot", "-d", results, test_path)
 
     print('Executing testcase {}'.format(testcase['name']))
     print('          show_stopper {}'.format(show_stopper))
@@ -50,6 +51,7 @@ def validate_layer(blueprint, layer):
     """
     print('## Layer {}'.format(layer))
     for testcase in blueprint[layer]:
+        testcase['layer'] = layer
         run_testcase(testcase)