[functional] Fix db_set use in test_cascading_del_in_txn

With ovsdbapp-2.3.0 release 'db_set' method excepts
if_exists(defaults to True) option.

The default behavior made the test to fail
as it was expecting transaction to fail.
Adding if_exists=False so it persists the
old behavior.

Closes-Bug: #2018130
Change-Id: I3dfdb0cce89cb860991a731b9a03313402956ddf
This commit is contained in:
2023-04-29 12:34:33 +05:30
parent 5c45b1ee29
commit 2be53b1719

View File

@@ -489,7 +489,7 @@ class OVSBridgeTestCase(OVSBridgeTestBase):
txn.add(ovsdb.del_port(port_name, self.br.br_name,
if_exists=False))
txn.add(ovsdb.db_set('Interface', port_name,
('type', 'internal')))
('type', 'internal'), if_exists=False))
self.assertRaises((RuntimeError, idlutils.RowNotFound),
del_port_mod_iface)