Merge "1) Cleanup floating IPs that are assigned through Juju Deployment. 2) Add...
[functest.git] / functest / opnfv_tests / openstack / snaps / snaps_suite_builder.py
index c3d8c2d..0e9c41a 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
 
@@ -31,8 +37,9 @@ from snaps.openstack.tests.create_project_tests import (
     CreateProjectSuccessTests, CreateProjectUserTests)
 from snaps.openstack.tests.create_qos_tests import (
     CreateQoSTests)
-from snaps.openstack.tests.create_router_tests import (
-    CreateRouterSuccessTests, CreateRouterNegativeTests)
+# from snaps.openstack.tests.create_router_tests import
+# CreateRouterSuccessTests
+from snaps.openstack.tests.create_router_tests import CreateRouterNegativeTests
 from snaps.openstack.tests.create_security_group_tests import (
     CreateSecurityGroupTests)
 from snaps.openstack.tests.create_stack_tests import (
@@ -78,6 +85,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 +132,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 +249,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
@@ -301,11 +311,13 @@ def add_openstack_integration_tests(suite, os_creds, ext_net_name,
         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(
-        CreateRouterSuccessTests, 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-320
+    # suite.addTest(OSIntegrationTestCase.parameterize(
+    #     CreateRouterSuccessTests, 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(
         CreateRouterNegativeTests, os_creds=os_creds,
         ext_net_name=ext_net_name, use_keystone=use_keystone,