Use CirrosImageFixture in existing stacks

Change-Id: I0fc085a6c5320458c29c48a1cdf04a562e6f0a60
changes/29/666229/2
Federico Ressi 4 years ago
parent c82bc00ce6
commit 7668c64bbc

@ -21,6 +21,7 @@ import tobiko
from tobiko import config
from tobiko.openstack import heat
from tobiko.openstack import neutron
from tobiko.openstack import images
from tobiko.openstack.stacks import _hot
from tobiko.openstack.stacks import _nova
from tobiko.shell import ssh
@ -164,16 +165,24 @@ class FloatingIpServerStackFixture(heat.HeatStackFixture):
network_stack = tobiko.required_setup_fixture(NetworkStackFixture)
#: Glance image used to create a Nova server instance
image = CONF.tobiko.nova.image
image_fixture = tobiko.required_setup_fixture(images.CirrosImageFixture)
#: Nova flavor used to create a Nova server instance
flavor = CONF.tobiko.nova.flavor
@property
def image(self):
return self.image_fixture.image_id
@property
def username(self):
"""username used to login to a Nova server instance"""
return self.image_fixture.username
#: username used to login to a Nova server instance
username = CONF.tobiko.nova.username
@property
def password(self):
"""password used to login to a Nova server instance"""
return self.image_fixture.password
#: password used to login to a Nova server instance
password = CONF.tobiko.nova.password
#: Nova flavor used to create a Nova server instance
flavor = CONF.tobiko.nova.flavor
#: Whenever port security on internal network is enable
port_security_enabled = False

Loading…
Cancel
Save