Enhance scenario test to cover network dns_domain
Co-Authored-By: Slawek Kaplonski <skaplons@redhat.com>
Depends-On: I6120d504959631f084d63458f6e9dada0dc5cbdf
Depends-On: https://review.openstack.org/615556
Change-Id: Iaef52f9c43498c1748da14cd5ce72635bd31892d
diff --git a/neutron_tempest_plugin/scenario/base.py b/neutron_tempest_plugin/scenario/base.py
index a2c5c72..32c5db8 100644
--- a/neutron_tempest_plugin/scenario/base.py
+++ b/neutron_tempest_plugin/scenario/base.py
@@ -176,13 +176,13 @@
client.delete_interface(server_id, port_id=port_id)
def setup_network_and_server(
- self, router=None, server_name=None, **kwargs):
+ self, router=None, server_name=None, network=None, **kwargs):
"""Create network resources and a server.
Creating a network, subnet, router, keypair, security group
and a server.
"""
- self.network = self.create_network()
+ self.network = network or self.create_network()
LOG.debug("Created network %s", self.network['name'])
self.subnet = self.create_subnet(self.network)
LOG.debug("Created subnet %s", self.subnet['id'])