Skip to content

← All questions

A cleanup DELETE returned 404 and the scenario still passed — is that intended?

Example threads. These questions and answers were written by the SDODS team to document real problems and how to fix them. The people named are illustrative, not real users. Questions asked on this site are marked new.

We register cleanups the way the guide shows:

gherkin
Given I register cleanup DELETE "/posts/{{postId}}"

The records are not being deleted. Looking at the run detail, the cleanup ran and the request 404'd, and the scenario is green.

Two things I would like to understand. Why does a failed cleanup not fail the scenario — I can see arguments both ways. And is there something that would have told me, short of noticing the sandbox filling up three weeks later?

2 answers

Know the answer?

Wrap commands and output in triple backticks and they will render as a code block.

Checking whether you’re signed in…

Have a different question? Ask it.

Related