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
This commit is contained in:
Sean Mooney 2018-01-15 19:07:22 +00:00
parent 3875eaae73
commit c745520993
1 changed files with 4 additions and 2 deletions

View File

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