Merge "update check_os.sh admin port seds to match public"
[functest.git] / functest / opnfv_tests / openstack / snaps / connection_check.py
1 # Copyright (c) 2015 All rights reserved
2 # This program and the accompanying materials
3 # are made available under the terms of the Apache License, Version 2.0
4 # which accompanies this distribution, and is available at
5 #
6 # http://www.apache.org/licenses/LICENSE-2.0
7
8 import unittest
9
10 from snaps import test_suite_builder
11
12 from functest.opnfv_tests.openstack.snaps.snaps_test_runner import \
13     SnapsTestRunner
14 from functest.utils.constants import CONST
15
16
17 class ConnectionCheck(SnapsTestRunner):
18     """
19     This test executes the Python Tests included with the SNAPS libraries
20     that simply obtain the different OpenStack clients and may perform
21     simple queries
22     """
23     def __init__(self, **kwargs):
24         if "case_name" not in kwargs:
25             kwargs["case_name"] = "connection_check"
26         super(ConnectionCheck, self).__init__(**kwargs)
27
28         self.suite = unittest.TestSuite()
29
30         test_suite_builder.add_openstack_client_tests(
31             self.suite,
32             CONST.openstack_creds,
33             self.ext_net_name,
34             use_keystone=CONST.snaps_use_keystone)