loosen the PUT response from 200 to ${ALLOWED_STATUS_CODES} 02/44702/1
authorJamo Luhrsen <jluhrsen@redhat.com>
Fri, 26 Aug 2016 05:54:31 +0000 (22:54 -0700)
committerJamo Luhrsen <jluhrsen@redhat.com>
Fri, 26 Aug 2016 05:54:31 +0000 (22:54 -0700)
Change-Id: Ia674795ef1133dc913d624824d1b7f1998e22001
Signed-off-by: Jamo Luhrsen <jluhrsen@redhat.com>
csit/suites/nemo/engine/NEMO_ENGINE.robot

index 3b3eb6aa1bcb614aa514db3bbc5db7110e63f2f6..3efc1ec6cc9de5012a5a03e41e649cfe2b1b3f81 100644 (file)
@@ -7,6 +7,7 @@ Library           OperatingSystem
 Library           ../../../libraries/Common.py
 Variables         ../../../variables/Variables.py
 Resource          ../../../libraries/Utils.robot
+Resource          ${CURDIR}/../../../libraries/TemplatedRequests.robot
 
 *** Variables ***
 ${REGISTER_TENANT_FILE}    ${CURDIR}/../../../variables/nemo/register-user.json
@@ -22,21 +23,21 @@ Add Pre-define Role
     [Tags]    Put
     ${body}    OperatingSystem.Get File    ${PREDEFINE_ROLE_FILE}
     ${resp}    RequestsLibrary.Put Request    session    ${PREDEFINE_ROLE_URI}    data=${body}    headers=${HEADERS_YANG_JSON}
-    Should Be Equal As Strings    ${resp.status_code}    200
+    Should Contain    ${ALLOWED_STATUS_CODES}    ${resp.status_code}
 
 Add Pre-define Node
     [Documentation]    Add Pre-define Node
     [Tags]    Put
     ${body}    OperatingSystem.Get File    ${PREDEFINE_NODE_FILE}
     ${resp}    RequestsLibrary.Put Request    session    ${PREDEFINE_NODE_URI}    data=${body}    headers=${HEADERS_YANG_JSON}
-    Should Be Equal As Strings    ${resp.status_code}    200
+    Should Contain    ${ALLOWED_STATUS_CODES}    ${resp.status_code}
 
 Add Pre-define Connection
     [Documentation]    Add Pre-define Connection
     [Tags]    Put
     ${body}    OperatingSystem.Get File    ${PREDEFINE_CONNECTION_FILE}
     ${resp}    RequestsLibrary.Put Request    session    ${PREDEFINE_CONNECTION_URI}    data=${body}    headers=${HEADERS_YANG_JSON}
-    Should Be Equal As Strings    ${resp.status_code}    200
+    Should Contain    ${ALLOWED_STATUS_CODES}    ${resp.status_code}
 
 Register Tenant
     [Documentation]    Register Tenant