Fix 200 code when adding configuration in OF tests
[integration/test.git] / csit / suites / openflowplugin / Groups_Meters_OF13 / 010__openflow_meter.robot
index bbb6bfe530328864758cb9e483212bebdba65e9b..0726eac85d0f0945223b6b33017ea65e3e1d6199 100644 (file)
@@ -32,7 +32,7 @@ Add a meter
     Set Suite Variable    ${body}
     ${resp}    RequestsLibrary.Put Request    session    ${REST_CONTEXT_CF}/meter/1    headers=${HEADERS_XML}    data=${body}
     Log    ${resp.content}
-    Should Be Equal As Strings    ${resp.status_code}    200
+    BuiltIn.Should_Match    "${resp.status_code}"    "20?"
 
 Verify after adding meter config
     [Documentation]    Get the meter stat in config
@@ -54,7 +54,7 @@ Add a flow that includes a meter
     Set Suite Variable    ${body}
     ${resp}    RequestsLibrary.Put Request    session    ${REST_CONTEXT_CF}/table/0/flow/2    headers=${HEADERS_XML}    data=${body}
     Log    ${resp.content}
-    Should Be Equal As Strings    ${resp.status_code}    200
+    BuiltIn.Should_Match    "${resp.status_code}"    "20?"
 
 Verify after adding flow config
     [Documentation]    Verify the flow