Merge "Create new project/user for snaps tests"
[functest.git] / functest / opnfv_tests / openstack / snaps / snaps_suite_builder.py
index c3d8c2d..34a4396 100644 (file)
@@ -8,7 +8,13 @@
 #
 # http://www.apache.org/licenses/LICENSE-2.0
 
-# pylint: disable=missing-docstring
+"""
+Snaps test suite including openstack client tests, api tests and
+integration tests.
+add_openstack_client_tests: for connection_check
+add_openstack_api_tests: for api_check
+add_openstack_integration_tests: for snaps_smoke
+"""
 
 import logging
 
@@ -18,7 +24,7 @@ from snaps.openstack.tests.create_image_tests import (
     CreateImageSuccessTests, CreateImageNegativeTests,
     CreateMultiPartImageTests)
 from snaps.openstack.tests.create_instance_tests import (
-    CreateInstanceSingleNetworkTests, CreateInstanceOnComputeHost,
+    CreateInstanceOnComputeHost,
     CreateInstanceSimpleTests, InstanceSecurityGroupTests,
     CreateInstancePortManipulationTests, SimpleHealthCheck,
     CreateInstanceFromThreePartImage, CreateInstanceTwoNetTests,
@@ -78,6 +84,7 @@ def add_openstack_client_tests(suite, os_creds, ext_net_name,
                                use_keystone=True, log_level=logging.INFO):
     """
     Adds tests written to exercise OpenStack client retrieval
+
     :param suite: the unittest.TestSuite object to which to add the tests
     :param os_creds: and instance of OSCreds that holds the credentials
                      required by OpenStack
@@ -124,6 +131,7 @@ def add_openstack_api_tests(suite, os_creds, ext_net_name, use_keystone=True,
     # pylint: disable=too-many-arguments
     """
     Adds tests written to exercise all existing OpenStack APIs
+
     :param suite: the unittest.TestSuite object to which to add the tests
     :param os_creds: Instance of OSCreds that holds the credentials
                      required by OpenStack
@@ -240,6 +248,7 @@ def add_openstack_integration_tests(suite, os_creds, ext_net_name,
     Adds tests written to exercise all long-running OpenStack integration tests
     meaning they will be creating VM instances and potentially performing some
     SSH functions through floatingIPs
+
     :param suite: the unittest.TestSuite object to which to add the tests
     :param os_creds: and instance of OSCreds that holds the credentials
                      required by OpenStack
@@ -420,11 +429,12 @@ def add_openstack_integration_tests(suite, os_creds, ext_net_name,
         log_level=log_level))
 
     if use_floating_ips:
-        suite.addTest(OSIntegrationTestCase.parameterize(
-            CreateInstanceSingleNetworkTests, os_creds=os_creds,
-            ext_net_name=ext_net_name, use_keystone=use_keystone,
-            flavor_metadata=flavor_metadata, image_metadata=image_metadata,
-            log_level=log_level))
+        # https://jira.opnfv.org/browse/SNAPS-322
+        # suite.addTest(OSIntegrationTestCase.parameterize(
+        #     CreateInstanceSingleNetworkTests, os_creds=os_creds,
+        #     ext_net_name=ext_net_name, use_keystone=use_keystone,
+        #     flavor_metadata=flavor_metadata, image_metadata=image_metadata,
+        #     log_level=log_level))
         suite.addTest(OSIntegrationTestCase.parameterize(
             CreateStackFloatingIpTests, os_creds=os_creds,
             ext_net_name=ext_net_name, use_keystone=use_keystone,