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
6 # http://www.apache.org/licenses/LICENSE-2.0
11 from snaps import test_suite_builder
13 from functest.core.pytest_suite_runner import PyTestSuiteRunner
14 from functest.opnfv_tests.openstack.snaps import snaps_utils
15 from functest.utils.constants import CONST
18 class SnapsSmoke(PyTestSuiteRunner):
20 This test executes the Python Tests included with the SNAPS libraries
21 that exercise many of the OpenStack APIs within Keystone, Glance, Neutron,
25 super(SnapsSmoke, self).__init__()
27 self.suite = unittest.TestSuite()
28 self.case_name = "snaps_smoke"
29 use_fip = CONST.snaps_use_floating_ips
30 ext_net_name = snaps_utils.get_ext_net_name()
32 # Tests requiring floating IPs leverage files contained within the
33 # SNAPS repository and are found relative to that path
35 snaps_dir = CONST.dir_repo_snaps + '/snaps'
38 test_suite_builder.add_openstack_integration_tests(
40 CONST.openstack_creds,
42 use_keystone=CONST.snaps_use_keystone,
43 use_floating_ips=use_fip)