1 # Copyright (c) 2017 Cable Television Laboratories, Inc. and others.
3 # This program and the accompanying materials
4 # are made available under the terms of the Apache License, Version 2.0
5 # which accompanies this distribution, and is available at
7 # http://www.apache.org/licenses/LICENSE-2.0
11 from snaps import test_suite_builder
13 from functest.opnfv_tests.openstack.snaps.snaps_test_runner import \
17 class ConnectionCheck(SnapsTestRunner):
19 This test executes the Python Tests included with the SNAPS libraries
20 that simply obtain the different OpenStack clients and may perform
23 def __init__(self, **kwargs):
24 if "case_name" not in kwargs:
25 kwargs["case_name"] = "connection_check"
26 super(ConnectionCheck, self).__init__(**kwargs)
28 self.suite = unittest.TestSuite()
30 def run(self, **kwargs):
32 Builds the test suite then calls super.run()
33 :param kwargs: the arguments to pass on
36 test_suite_builder.add_openstack_client_tests(
38 os_creds=self.os_creds,
39 ext_net_name=self.ext_net_name,
40 use_keystone=self.use_keystone)
41 return super(self.__class__, self).run()