3 # Copyright (c) 2017 Cable Television Laboratories, Inc. and others.
5 # This program and the accompanying materials
6 # are made available under the terms of the Apache License, Version 2.0
7 # which accompanies this distribution, and is available at
9 # http://www.apache.org/licenses/LICENSE-2.0
11 """snaps_smoke test case implementation"""
15 from functest.opnfv_tests.openstack.snaps import snaps_suite_builder
16 from functest.opnfv_tests.openstack.snaps.snaps_test_runner import (
20 class SnapsSmoke(SnapsTestRunner):
22 This test executes the Python Tests included with the SNAPS libraries
23 that exercise many of the OpenStack APIs within Keystone, Glance, Neutron,
26 def __init__(self, **kwargs):
27 if "case_name" not in kwargs:
28 kwargs["case_name"] = "snaps_smoke"
29 super(SnapsSmoke, self).__init__(**kwargs)
31 self.suite = unittest.TestSuite()
33 def run(self, **kwargs):
35 Builds the test suite then calls super.run()
36 :param kwargs: the arguments to pass on
39 snaps_suite_builder.add_openstack_integration_tests(
41 os_creds=self.os_creds,
42 ext_net_name=self.ext_net_name,
43 use_keystone=self.use_keystone,
44 flavor_metadata=self.flavor_metadata,
45 image_metadata=self.image_metadata,
46 use_floating_ips=self.use_fip,
47 netconf_override=self.netconf_override)
48 return super(SnapsSmoke, self).run()