From da3d65299bc168ca86bfb4055d08556715149e0f Mon Sep 17 00:00:00 2001 From: Tang Chen Date: Tue, 16 Feb 2016 15:11:19 +0800 Subject: Define FakeFloatingIP class in tests/compute for nova network commands "ip floating list" command is not available for Neutron now because the implementation is incorrect. The FloatingIP objects returned from Nova and Neutron network are quite different. So they need different FakeFloatingIP class to do the tests. This patch copies class FakeFloatingIP in tests/network to tests/compute for Nova network tests. Will fix the problem in "ip floating list" command and change FakeFloatingIP in tests/network to fit Neutron network tests. Change-Id: Ia29d257868e0f1dc6cd7cfe3819875e5913f76ec Partial-Bug: 1519502 Partially implements: blueprint neutron-client --- openstackclient/tests/network/v2/test_floating_ip.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'openstackclient/tests/network') diff --git a/openstackclient/tests/network/v2/test_floating_ip.py b/openstackclient/tests/network/v2/test_floating_ip.py index cfe3d11d..031dcdac 100644 --- a/openstackclient/tests/network/v2/test_floating_ip.py +++ b/openstackclient/tests/network/v2/test_floating_ip.py @@ -110,7 +110,7 @@ class TestFloatingIPCompute(compute_fakes.TestComputev2): class TestDeleteFloatingIPCompute(TestFloatingIPCompute): # The floating ip to be deleted. - floating_ip = network_fakes.FakeFloatingIP.create_one_floating_ip() + floating_ip = compute_fakes.FakeFloatingIP.create_one_floating_ip() def setUp(self): super(TestDeleteFloatingIPCompute, self).setUp() @@ -145,7 +145,7 @@ class TestDeleteFloatingIPCompute(TestFloatingIPCompute): class TestListFloatingIPCompute(TestFloatingIPCompute): # The floating ips to be list up - floating_ips = network_fakes.FakeFloatingIP.create_floating_ips(count=3) + floating_ips = compute_fakes.FakeFloatingIP.create_floating_ips(count=3) columns = ('ID', 'Floating IP', 'Fixed IP', 'Server ID', 'Pool') -- cgit v1.2.1