Abort operation as per Section 5.2.8 of RFC 7047
[ovsdb.git] / library / src / test / java / org / opendaylight / ovsdb / lib / OvsDBClientTestIT.java
index a5999ecf65370c731752fd1d58dcacf5514ad075..db69e1522c9ac5905871eaa65dc270778403c2da 100644 (file)
@@ -85,6 +85,21 @@ public class OvsDBClientTestIT extends OvsdbTestBase {
         Assert.assertFalse(operationResults.isEmpty());
         System.out.println("Delete operation results = " + operationResults);
 
+        /*
+         * Adding a separate Abort operation in a transaction. Lets not mix this with other
+         * valid transactions as above.
+         */
+        results = ovs.transactBuilder()
+                .add(op.delete(bridge)
+                        .where(name.opEqual("br-int"))
+                        .operation())
+                .add(op.abort())
+                .execute();
+
+        operationResults = results.get();
+        Assert.assertFalse(operationResults.isEmpty());
+        System.out.println("Abort operation results = " + operationResults);
+
     }
 
     @Test