Add username in resource_setup
There is a condition when rhel is used as default image in tempest, so default_image_is_advanced set as true and validation.image_ssh_user is set but advanced_image_ssh_user is not set. test_fragmented_traffic_is_accepted was failing because advanced_image_ssh_user was empty. Change-Id: I7fa5b167ba27cc78e017765eca927a1dfb24825e
This commit is contained in:
parent
8f63937f01
commit
7aa02077ac
|
@ -1116,12 +1116,16 @@ class StatelessNetworkSecGroupIPv4Test(BaseNetworkSecGroupTest):
|
||||||
def test_fragmented_traffic_is_accepted(self):
|
def test_fragmented_traffic_is_accepted(self):
|
||||||
ssh_clients, fips, servers, security_groups = (
|
ssh_clients, fips, servers, security_groups = (
|
||||||
self._create_client_and_server_vms(use_advanced_image=True))
|
self._create_client_and_server_vms(use_advanced_image=True))
|
||||||
|
if CONF.neutron_plugin_options.default_image_is_advanced:
|
||||||
|
username = CONF.validation.image_ssh_user
|
||||||
|
else:
|
||||||
|
username = CONF.neutron_plugin_options.advanced_image_ssh_user
|
||||||
|
|
||||||
# make sure tcp connectivity to vms works fine
|
# make sure tcp connectivity to vms works fine
|
||||||
for fip in fips.values():
|
for fip in fips.values():
|
||||||
self.check_connectivity(
|
self.check_connectivity(
|
||||||
fip['floating_ip_address'],
|
fip['floating_ip_address'],
|
||||||
CONF.neutron_plugin_options.advanced_image_ssh_user,
|
username,
|
||||||
self.keypair['private_key'])
|
self.keypair['private_key'])
|
||||||
|
|
||||||
# Check that ICMP packets bigger than MTU aren't working without
|
# Check that ICMP packets bigger than MTU aren't working without
|
||||||
|
|
Loading…
Reference in New Issue