fix of bug 6377 - change of expected PUT status
[integration/test.git] / csit / libraries / TopoprocessingKeywords.robot
index 6e8fa2e923255f3e3f7c975d3b67e248387ee3cd..99a63b3ceaa73db1f021f172d350e3e1e2f79d0d 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 Be Equal As Strings    ${resp.status_code}    200
+    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 Be Equal As Strings    ${resp.status_code}    200
+    \    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 Be Equal As Strings    ${resp.status_code}    200
+    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 Be Equal As Strings    ${resp.status_code}    200
+    \    Should Match    ${resp.status_code}    "20?"
     Issue Command On Karaf Console    log:clear
     Log    ${resp.content}