fix incorrect paths in postman bundle upload causing async timing issue
spbolton opened this issue · comments
The bundle API allows for asynchronous upload and if upload has started but not finished it can return a status of RECEIVED_BUNDLE. We have postman tests that are uploading using the path {{serverURL}}/api/bundle?sync=true and expecting the status to be SUCCESS. This path is incorrect though and the html parameter sync is being ignored. This means that depending on timing sometimes a response of RECEIVED_BUNDLE is being returned and the assertion on SUCCESS status is failing. The path paramter should be the following using the path rather than a html parameter. {{serverURL}}/api/bundle/sync
Example failure
[INFO] 1. AssertionError Bundle uploaded sucessfully
[INFO] expected 'RECEIVED_BUNDLE' to deeply equal 'SUCCESS'
[INFO] at assertion:0 in test-script
[INFO] inside "Preconditions / pre_ImportBundleWithPage"