diff --git a/fuelweb_test/__init__.py b/fuelweb_test/__init__.py index b1f52fad0..131811ae8 100644 --- a/fuelweb_test/__init__.py +++ b/fuelweb_test/__init__.py @@ -16,7 +16,6 @@ import logging import os from fuelweb_test.settings import LOGS_DIR - if not os.path.exists(LOGS_DIR): os.makedirs(LOGS_DIR) diff --git a/fuelweb_test/run_tests.py b/fuelweb_test/run_tests.py index bd8502484..29a6f4808 100644 --- a/fuelweb_test/run_tests.py +++ b/fuelweb_test/run_tests.py @@ -18,6 +18,27 @@ import os import re from nose.plugins import Plugin from paramiko.transport import _join_lingering_threads +from proboscis import register + + +def define_custom_groups(): + # Should move to system_test.__init__.py after upgrade devops to 2.9.13 + groups_list = [ + {"groups": ["system_test.ceph_ha"], + "depends": [ + "system_test.deploy_and_check_radosgw." + "3ctrl_3comp_ceph_neutronVLAN"]}, + {"groups": ["system_test.strength"], + "depends": [ + "system_test.failover.destroy_controllers." + "first.3ctrl_2comp_1cndr_neutronVLAN", + "system_test.failover.destroy_controllers." + "second.1ctrl_ceph_2ctrl_1comp_1comp_ceph_neutronVLAN"]} + ] + + for new_group in groups_list: + register(groups=new_group['groups'], + depends_on_groups=new_group['depends']) class CloseSSHConnectionsPlugin(Plugin): @@ -121,6 +142,7 @@ def run_tests(): if __name__ == '__main__': import_tests() + define_custom_groups() from fuelweb_test.helpers.patching import map_test if any(re.search(r'--group=patching_master_tests', arg) for arg in sys.argv): diff --git a/system_test/__init__.py b/system_test/__init__.py index a3b5105ca..a157bf1a2 100644 --- a/system_test/__init__.py +++ b/system_test/__init__.py @@ -12,7 +12,6 @@ # License for the specific language governing permissions and limitations # under the License. - import fuelweb_test logger = fuelweb_test.logger diff --git a/system_test/tests/strength/destroy_controllers.py b/system_test/tests/strength/destroy_controllers.py index c64557390..fc5f29503 100644 --- a/system_test/tests/strength/destroy_controllers.py +++ b/system_test/tests/strength/destroy_controllers.py @@ -42,7 +42,7 @@ class StrenghtDestroyFirstContorller(strength_base.StrenghtBaseActions): base_group = ['system_test', 'system_test.failover', 'system_test.failover.destroy_controllers', - 'system_test.failover.destroy_controllers.second'] + 'system_test.failover.destroy_controllers.first'] actions_order = [ 'setup_master', @@ -90,10 +90,10 @@ class StrenghtDestroySecondContorller(strength_base.StrenghtBaseActions): """ - base_group = ['actions_tests', - 'actions_tests.failover', - 'actions_tests.failover.destroy_controllers', - 'actions_tests.failover.destroy_controllers.second'] + base_group = ['system_test', + 'system_test.failover', + 'system_test.failover.destroy_controllers', + 'system_test.failover.destroy_controllers.second'] actions_order = [ 'setup_master', diff --git a/system_test/tests_templates/cluster_configs/settings/cephVolImg_wo_components.yaml b/system_test/tests_templates/cluster_configs/settings/cephVolImg_wo_components.yaml new file mode 100644 index 000000000..8ef04ebfe --- /dev/null +++ b/system_test/tests_templates/cluster_configs/settings/cephVolImg_wo_components.yaml @@ -0,0 +1,5 @@ +--- +storages: + !include storages/cephImgVol.yaml +components: + !include components/wo_components.yaml diff --git a/system_test/tests_templates/tests_configs/ha/pairwise/1ctrl_ceph_1ctrl_1comp_1comp_ceph_neutronVLAN.yaml b/system_test/tests_templates/tests_configs/ha/pairwise/1ctrl_ceph_1ctrl_1comp_1comp_ceph_neutronVLAN.yaml new file mode 100644 index 000000000..a486d2b87 --- /dev/null +++ b/system_test/tests_templates/tests_configs/ha/pairwise/1ctrl_ceph_1ctrl_1comp_1comp_ceph_neutronVLAN.yaml @@ -0,0 +1,14 @@ +--- +template: + name: 1 Controller + Ceph, 2 Controller, 1 Compute, 1 Compute + Ceph on Neutron/VLAN + group-name: 1ctrl_ceph_2ctrl_1comp_1comp_ceph_neutronVLAN + slaves: 5 + cluster-template: + name: HAwithCinderNeutronVLAN + release: ubuntu + network: + !include ../../../cluster_configs/networks/neutron_vlan.yaml + settings: + !include ../../../cluster_configs/settings/cephVolImg_wo_components.yaml + nodes: + !include ../../../cluster_configs/nodes/single/3ctrl_2comp_1cndr.yaml diff --git a/system_test/tests_templates/tests_configs/ha/3ctrl_2comp_1cndr_neutronVLAN.yaml b/system_test/tests_templates/tests_configs/ha/single/3ctrl_2comp_1cndr_neutronVLAN.yaml similarity index 51% rename from system_test/tests_templates/tests_configs/ha/3ctrl_2comp_1cndr_neutronVLAN.yaml rename to system_test/tests_templates/tests_configs/ha/single/3ctrl_2comp_1cndr_neutronVLAN.yaml index ef387facd..b6da4406b 100644 --- a/system_test/tests_templates/tests_configs/ha/3ctrl_2comp_1cndr_neutronVLAN.yaml +++ b/system_test/tests_templates/tests_configs/ha/single/3ctrl_2comp_1cndr_neutronVLAN.yaml @@ -7,8 +7,8 @@ template: name: HAwithCinderNeutronVLAN release: ubuntu network: - !include ../../cluster_configs/networks/neutron_vlan.yaml + !include ../../../cluster_configs/networks/neutron_vlan.yaml settings: - !include ../../cluster_configs/settings/cinder_wo_componets.yaml + !include ../../../cluster_configs/settings/cinder_wo_componets.yaml nodes: - !include ../../cluster_configs/nodes/single/3ctrl_2comp_1cndr.yaml + !include ../../../cluster_configs/nodes/single/3ctrl_2comp_1cndr.yaml