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
8 from functest.core.pytest_suite_runner import PyTestSuiteRunner
9 from functest.opnfv_tests.openstack.snaps import snaps_utils
10 from functest.utils import functest_utils
12 from snaps.openstack import create_flavor
15 class SnapsTestRunner(PyTestSuiteRunner):
17 This test executes the SNAPS Python Test case SimpleHealthCheck which
18 creates a VM with a single port with an IPv4 address that is assigned by
19 DHCP. This test then validates the expected IP with the actual
22 super(SnapsTestRunner, self).__init__()
24 self.ext_net_name = snaps_utils.get_ext_net_name()
26 scenario = functest_utils.get_scenario()
28 self.flavor_metadata = create_flavor.MEM_PAGE_SIZE_ANY
29 if 'ovs' in scenario or 'fdio' in scenario:
30 self.flavor_metadata = create_flavor.MEM_PAGE_SIZE_LARGE