From c7455209933d6ee8ff9e21e1fa2ee1501ee75996 Mon Sep 17 00:00:00 2001 From: Sean Mooney Date: Mon, 15 Jan 2018 19:07:22 +0000 Subject: [PATCH] make unit tests compatible with os-vif 1.8.0 - This change modifies the unit tests to account for the new datapath_type field introduced in os_vif 1.8.0 Change-Id: Id05ed5dced8ca26800585b98d65c0a12570773e2 --- nova/tests/unit/network/test_os_vif_util.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/nova/tests/unit/network/test_os_vif_util.py b/nova/tests/unit/network/test_os_vif_util.py index 416ad10a75..8ae338d76b 100644 --- a/nova/tests/unit/network/test_os_vif_util.py +++ b/nova/tests/unit/network/test_os_vif_util.py @@ -499,7 +499,8 @@ class OSVIFUtilTestCase(test.NoDBTestCase): has_traffic_filtering=True, plugin="ovs", port_profile=osv_objects.vif.VIFPortProfileOpenVSwitch( - interface_id="dc065497-3c8d-4f44-8fb4-e1d33c16a536"), + interface_id="dc065497-3c8d-4f44-8fb4-e1d33c16a536", + datapath_type=None), preserve_on_delete=False, vif_name="nicdc065497-3c", network=osv_objects.network.Network( @@ -661,7 +662,8 @@ class OSVIFUtilTestCase(test.NoDBTestCase): plugin="ovs", bridge_name="qbrdc065497-3c", port_profile=osv_objects.vif.VIFPortProfileOpenVSwitch( - interface_id="dc065497-3c8d-4f44-8fb4-e1d33c16a536"), + interface_id="dc065497-3c8d-4f44-8fb4-e1d33c16a536", + datapath_type="system"), preserve_on_delete=False, vif_name="nicdc065497-3c", network=osv_objects.network.Network(