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
This commit is contained in:
lianghao 2017-11-07 17:19:35 +08:00
parent 93a42fd79d
commit b61314dec0

View File

@ -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):