bulk add returns 201 now 49/1649/1
authorDR695H <dr695h@att.com>
Fri, 3 Mar 2017 22:02:45 +0000 (17:02 -0500)
committerDR695H <dr695h@att.com>
Fri, 3 Mar 2017 22:03:16 +0000 (17:03 -0500)
before bulk add used to always return 200, not bulk add returns 201.
This means that existing put doesnt work

Change-Id: Ib883f6fc7dc832ba3bd73f5465c97b70669917f9
Signed-off-by: DR695H <dr695h@att.com>
robot/resources/heatbridge.robot

index 972c59d..c93692e 100644 (file)
@@ -41,8 +41,8 @@ Execute Heatbridge
     Init Bridge    ${openstack_identity_url}    ${GLOBAL_VM_PROPERTIES['openstack_username']}    ${GLOBAL_VM_PROPERTIES['openstack_password']}    ${tenant_id}    ${GLOBAL_OPENSTACK_SERVICE_REGION}    ${GLOBAL_AAI_CLOUD_OWNER}    
     ${request}=    Bridge Data    ${stack_id}
     Log    ${request}
-    ${resp}=    Run A&AI Put Request    ${VERSIONED_INDEX_PATH}${MULTIPART_PATH}    ${request} 
-    Should Be Equal As Strings    ${resp.status_code}     200
+    ${resp}=    Run A&AI Put Request    ${VERSIONED_INDEX_PATH}${MULTIPART_PATH}    ${request}
+    Should Match Regexp    ${resp.status_code}         ^(201|200)$
     ${reverse_heatbridge}=   Generate Reverse Heatbridge From Stack Info   ${stack_info}
     Set Test Variable   ${REVERSE_HEATBRIDGE}   ${reverse_heatbridge}
     Run Validation Query    ${stack_info}    ${service}