From 87442ec2d047b6db0132e681ded1ed469f0eadfd Mon Sep 17 00:00:00 2001 From: Rocky Date: Tue, 10 Apr 2018 17:37:16 +1000 Subject: [PATCH] Fix python3 dict values breakage Change-Id: I18c4a12388639d222557d07f8095c3555c29eaa3 --- neutron_fwaas/tests/tempest_plugin/tests/scenario/test_fwaas.py | 2 +- .../tests/tempest_plugin/tests/scenario/test_fwaas_v2.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/neutron_fwaas/tests/tempest_plugin/tests/scenario/test_fwaas.py b/neutron_fwaas/tests/tempest_plugin/tests/scenario/test_fwaas.py index 8e99753db..9d3a4d42c 100644 --- a/neutron_fwaas/tests/tempest_plugin/tests/scenario/test_fwaas.py +++ b/neutron_fwaas/tests/tempest_plugin/tests/scenario/test_fwaas.py @@ -267,7 +267,7 @@ class TestFWaaS(base.FWaaSScenarioTest): security_group=security_group) private_key = keys['private_key'] server_floating_ip = self.create_floating_ip(server, public_network_id) - fixed_ip = server['addresses'].values()[0][0]['addr'] + fixed_ip = list(server['addresses'].values())[0][0]['addr'] floating_ip = server_floating_ip['floating_ip_address'] return fixed_ip, floating_ip, private_key, router diff --git a/neutron_fwaas/tests/tempest_plugin/tests/scenario/test_fwaas_v2.py b/neutron_fwaas/tests/tempest_plugin/tests/scenario/test_fwaas_v2.py index 9bd9373e1..ad43a07c2 100644 --- a/neutron_fwaas/tests/tempest_plugin/tests/scenario/test_fwaas_v2.py +++ b/neutron_fwaas/tests/tempest_plugin/tests/scenario/test_fwaas_v2.py @@ -140,7 +140,7 @@ class TestFWaaS_v2(base.FWaaSScenarioTest_V2): network, security_group=security_group) private_key = keys['private_key'] server_floating_ip = self.create_floating_ip(server, pub_network_id) - fixed_ip = server['addresses'].values()[0][0]['addr'] + fixed_ip = list(server['addresses'].values())[0][0]['addr'] return server, private_key, fixed_ip, server_floating_ip def _create_topology(self):