From b61314dec000f492c24f27db668304880244e749 Mon Sep 17 00:00:00 2001 From: lianghao Date: Tue, 7 Nov 2017 17:19:35 +0800 Subject: [PATCH] Add the verify of network_id in _test_create_interface_by_port_id When create interface by port_id, not only iface['port_id'] is equal to port_id, but also iface['net_id'] should be same with network_id. I think only check iface['port_id'] is not enough. Change-Id: I82b53a996e8a3c1945fd16a7cf10ee85850be60d --- tempest/api/compute/servers/test_attach_interfaces.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tempest/api/compute/servers/test_attach_interfaces.py b/tempest/api/compute/servers/test_attach_interfaces.py index 0248c65afb..3c057aceba 100644 --- a/tempest/api/compute/servers/test_attach_interfaces.py +++ b/tempest/api/compute/servers/test_attach_interfaces.py @@ -123,7 +123,7 @@ class AttachInterfacesTestJSON(base.BaseV2ComputeTest): server['id'], port_id=port_id)['interfaceAttachment'] iface = waiters.wait_for_interface_status( self.interfaces_client, server['id'], iface['port_id'], 'ACTIVE') - self._check_interface(iface, port_id=port_id) + self._check_interface(iface, port_id=port_id, network_id=network_id) return iface def _test_create_interface_by_fixed_ips(self, server, ifs):