This repository has been archived by the owner on Aug 20, 2018. It is now read-only.
Change expected response code for api delete method to 200 from 204 #159
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This addresses, at least partially, issue #158.
My investigation indicates that the status code returned from a
delete
request against the API is now200
, whereas before it was204
. This fixes all of the errors that stateAssertionError: Deletion of product Test Product xxx failed
.@peterbe or @camd can either of you confirm that this is expected, i.e., it is correct that we should be looking for a 200 response rather than a 204 response from a
delete
request now?This does not address all of the
HTTPError: 400 Client Error: BAD REQUEST
that also showed up in the report [1]. I will need to investigate those separately.[1] https://webqa-ci.mozilla.com/view/MozTrap/job/moztrap.stage.saucelabs/82/HTML_Report/