- """
- Super for test classes requiring a connection to OpenStack
- """
- def __init__(self, method_name='runTest', os_env_file=None, ext_net_name=None, http_proxy_str=None,
- ssh_proxy_cmd=None, use_keystone=False, flavor_metadata=None, log_level=logging.DEBUG):
- super(OSIntegrationTestCase, self).__init__(method_name=method_name, os_env_file=os_env_file,
- ext_net_name=ext_net_name, http_proxy_str=http_proxy_str,
- ssh_proxy_cmd=ssh_proxy_cmd, log_level=log_level)
+ def __init__(self, method_name='runTest', os_creds=None, ext_net_name=None,
+ use_keystone=True, flavor_metadata=None, image_metadata=None,
+ netconf_override=None, log_level=logging.DEBUG):
+ """
+ Super for integration tests requiring a connection to OpenStack
+ :param method_name: default 'runTest'
+ :param os_creds: the OSCreds object, when null it searches for the file
+ in the package snaps.openstack.tests.conf.os_env.yaml
+ :param ext_net_name: the name of the external network that is used for
+ creating routers for floating IPs
+ :param use_keystone: when true, these tests will create a new
+ user/project under which to run the test
+ :param image_metadata: dict() containing the URLs for the disk, kernel,
+ and ramdisk images when multi-part images are
+ required. See below for a simple example
+ image_metadata={'disk_url': '{URI}/cirros-0.3.4-x86_64-disk.img',
+ 'kernel_url': '{URI}/cirros-0.3.4-x86_64-kernel',
+ 'ramdisk_url': '{URI}/cirros-0.3.4-x86_64-initramfs'})
+ :param flavor_metadata: dict() to be sent directly into the Nova client
+ generally used for page sizes
+ :param netconf_override: dict() containing the configured network_type,
+ physical_network and segmentation_id
+ :param log_level: the logging level of your test run (default DEBUG)
+ """
+ super(OSIntegrationTestCase, self).__init__(
+ method_name=method_name, os_creds=os_creds,
+ ext_net_name=ext_net_name, image_metadata=image_metadata,
+ log_level=log_level)
+ self.netconf_override = netconf_override