Topoprocessing - fixed "expected string or buffer" error 44/43944/2
authorSamuel Kontriš <samuel.kontris@pantheon.tech>
Mon, 15 Aug 2016 08:12:55 +0000 (10:12 +0200)
committerJamo Luhrsen <jluhrsen@redhat.com>
Wed, 17 Aug 2016 15:33:23 +0000 (15:33 +0000)
Change-Id: Ic9db9f701df09527b3efebade17b9a2162b2b2fc
Signed-off-by: Samuel Kontriš <samuel.kontris@pantheon.tech>
csit/libraries/TopoprocessingKeywords.robot

index 99a63b3ceaa73db1f021f172d350e3e1e2f79d0d..f72afbbee1df57f93e0623ee52e13719640bf30e 100644 (file)
@@ -21,7 +21,7 @@ Basic Request Put
     [Documentation]    Send a simple HTTP PUT request to Configurational datastore
     ${resp}    Put Request    session    ${CONFIG_API}/${overlay_topology_url}    data=${request}
     Log    ${CONFIG_API}/${overlay_topology_url}
-    Should Match    ${resp.status_code}    "20?"
+    Should Match    "${resp.status_code}"    "20?"
     Wait For Karaf Log    Correlation configuration successfully read
     Wait For Karaf Log    Transaction successfully written
 
@@ -117,16 +117,16 @@ Insert Underlay Topologies
     : FOR    ${index}    IN RANGE    1    7
     \    ${resp}    Put Request    session    ${CONFIG_API}/${TOPOLOGY_URL}/network-topo:${index}    data=${NETWORK_UNDERLAY_TOPOLOGY_${index}}
     \    Log    ${resp.content}
-    \    Should Match    ${resp.status_code}    "20?"
+    \    Should Match    "${resp.status_code}"    "20?"
     # Openflow underlay nodes
     ${resp}    Put Request    session    ${CONFIG_API}/opendaylight-inventory:nodes    data=${OPENFLOW_UNDERLAY_NODES}
     Log    ${resp.content}
-    Should Match    ${resp.status_code}    "20?"
+    Should Match    "${resp.status_code}"    "20?"
     # Openflow underlay topologies
     : FOR    ${index}    IN RANGE    1    7
     \    ${resp}    Put Request    session    ${CONFIG_API}/${TOPOLOGY_URL}/openflow-topo:${index}    data=${OPENFLOW_UNDERLAY_TOPOLOGY_${index}}
     \    Log    ${resp.content}
-    \    Should Match    ${resp.status_code}    "20?"
+    \    Should Match    "${resp.status_code}"    "20?"
     Issue Command On Karaf Console    log:clear
     Log    ${resp.content}