fixing failing ovsdb cluster test suite 50/32250/3
authorJamo Luhrsen <jluhrsen@redhat.com>
Fri, 8 Jan 2016 02:19:31 +0000 (18:19 -0800)
committerGerrit Code Review <gerrit@opendaylight.org>
Fri, 8 Jan 2016 19:26:59 +0000 (19:26 +0000)
-  successful PUT requests now return 201, instead of 200
-  the UUID was hardcoded, and it will never be the same so
   using regexp to replace the UUID with ${EMPTY}

Change-Id: I509e5f8d6ff6d3ad5da1a3fc6381d7c3c79cd385
Signed-off-by: Jamo Luhrsen <jluhrsen@redhat.com>
csit/libraries/ClusterOvsdb.robot
csit/libraries/Utils.robot

index 1df0c263e32c1d9182674d357f49cb117b59df53..ff7ecae896881d797bee000090e3e73469bea3fb 100644 (file)
@@ -33,7 +33,9 @@ Get Cluster Entity Owner For Ovsdb
     ${data}=    Get Data From URI    controller@{controller_index_list}[0]    /restconf/operational/entity-owners:entity-owners
     Log    ${data}
     ${data}=    Replace String    ${data}    /network-topology:network-topology/network-topology:topology[network-topology:topology-id='    ${EMPTY}
-    ${data}=    Replace String    ${data}    /network-topology:node[network-topology:node-id='ovsdb://uuid/a96ec4e2-c457-4a2c-963c-1e6300210032    ${EMPTY}
+    # the UUID will not always be the same so need to use regexp to remove this string
+    ${data}=    Replace String Using Regexp    ${data}    \/network-topology:node\\[network-topology:node-id='ovsdb://uuid/........-....-....-....-............    ${EMPTY}
+    Log    ${data}
     ${clear_data}=    Replace String    ${data}    ']    ${EMPTY}
     Log    ${clear_data}
     ${json}=    To Json    ${clear_data}
index 4707b6add9ce45949f9025e3887a54ffc351c98d..87d8d7aa2d50f7d3de4c6957fc61396c649887c6 100644 (file)
@@ -19,7 +19,7 @@ Start Suite
     ...    is run.
     Log    Start the test on the base edition
     Clean Mininet System
-    ${mininet_conn_id}=    Open Connection    ${system}    prompt=${DEFAULT_LINUX_PROMPT}    timeout=${timeout}
+    ${mininet_conn_id}=    Open Connection    ${system}    prompt=${prompt}    timeout=${timeout}
     Set Suite Variable    ${mininet_conn_id}
     Flexible Mininet Login    user=${user}    password=${password}
     Execute Command    sudo ovs-vsctl set-manager ptcp:6644