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:
Artur Svechnikov 2016-07-01 17:38:15 +03:00
parent edc9446e12
commit 9dba32b174
1 changed files with 1 additions and 0 deletions

View File

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