robotframework - REST Api usage in Robot framework -


i have rest delete call done. after deleting , verifying same url rest call.

expected result : should throw - 404 err valid data dosent exists . current result- 200 - after delete , data exists !!!

please let me know , rest delete api uses delay reflected ?

the specification delete @ https://www.w3.org/protocols/rfc2616/rfc2616-sec9.html states:


9.7 delete

the delete method requests origin server delete resource identified request-uri. method may overridden human intervention (or other means) on origin server. client cannot guaranteed operation has been carried out, if status code returned origin server indicates action has been completed successfully. however, server should not indicate success unless, @ time response given, intends delete resource or move inaccessible location.

a successful response should 200 (ok) if response includes entity describing status, 202 (accepted) if action has not yet been enacted, or 204 (no content) if action has been enacted response not include entity.

if request passes through cache , request-uri identifies 1 or more cached entities, entries should treated stale. responses method not cacheable.


so says server under no obligation delete resource, indicate intent. though "nice" server return 202 (accepted) indicate delay. did chance?


Comments

Popular posts from this blog

Hatching array of circles in AutoCAD using c# -

ios - UITEXTFIELD InputView Uipicker not working in swift -

Python Pig Latin Translator -