Update offloading modes for fake nodes
It's impossible to test offloading modes with Web UI functional tests. Nailgun fixtures contains sample of nodes with offloading modes. However, they is not updated while loading. Change-Id: Idd3bdf08dfae109c4a7973d83e939e590a1ef8db Closes-Bug: #1598182
This commit is contained in:
parent
edc9446e12
commit
9dba32b174
|
@ -199,6 +199,7 @@ def upload_fixture(fileobj, loader=None):
|
|||
# UGLY HACK for testing
|
||||
if new_obj.__class__.__name__ == 'Node':
|
||||
objects.Node.update_interfaces(new_obj)
|
||||
objects.Node.update_interfaces_offloading_modes(new_obj)
|
||||
fire_callback_on_node_create(new_obj)
|
||||
db().commit()
|
||||
|
||||
|
|
Loading…
Reference in New Issue