SouthboundIT: Test to check ovs version for node. 65/18965/1
authorSharad Mishra <sharad.d.mishra@intel.com>
Thu, 23 Apr 2015 15:16:37 +0000 (08:16 -0700)
committerSharad Mishra <sharad.d.mishra@intel.com>
Thu, 23 Apr 2015 15:22:33 +0000 (08:22 -0700)
Starting small ... this patch checks ovs version attribute
of ovs node.

I could have added this check to "testAddDeleteOvsdbNode', but decided
that it could lead to minor confusion.

Change-Id: Iab4bf14215a2ced55f3c05be5f5a083db190f286
Signed-off-by: Sharad Mishra <sharad.d.mishra@intel.com>
southbound/southbound-it/src/test/java/org/opendaylight/ovsdb/southbound/it/SouthboundIT.java

index 97329cdc0e158257a76b2b9d0a3f1fbb23ac913a..2718f845e2315344a7a018c7ad94156ff73f87de 100644 (file)
@@ -373,6 +373,15 @@ public class SouthboundIT extends AbstractMdsalTestBase {
         Assume.assumeTrue(disconnectOvsdbNode(connectionInfo));
     }
 
+    @Test
+    public void testOvsdbNodeOvsVersion() throws InterruptedException {
+        ConnectionInfo connectionInfo = getConnectionInfo(addressStr, portStr);
+        Node ovsdbNode = connectOvsdbNode(connectionInfo);
+        OvsdbNodeAugmentation augment = ovsdbNode.getAugmentation(OvsdbNodeAugmentation.class);
+        assertNotNull(augment.getOvsVersion());
+        Assume.assumeTrue(disconnectOvsdbNode(connectionInfo));
+    }
+
     @Test
     public void testOpenVSwitchOtherConfig() throws InterruptedException {
         ConnectionInfo connectionInfo = getConnectionInfo(addressStr, portStr);