-
Notifications
You must be signed in to change notification settings - Fork 2.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Test-only] reva now returns 404 when trying to delete a nonexisting file #37149
Conversation
Signed-off-by: Jörn Friedrich Dreyer <[email protected]>
Codecov Report
@@ Coverage Diff @@
## master #37149 +/- ##
=========================================
Coverage 64.85% 64.85%
Complexity 19136 19136
=========================================
Files 1267 1267
Lines 74895 74895
Branches 1331 1331
=========================================
Hits 48575 48575
Misses 25928 25928
Partials 392 392
Continue to review full report at Codecov.
|
You may want to change the title to |
Signed-off-by: Jörn Friedrich Dreyer <[email protected]>
if ($response->getStatusCode() < 401 || $response->getStatusCode() > 404) { | ||
throw new \Exception( | ||
"$entry '$path' expected to not exist " . | ||
"(status code {$response->getStatusCode()}, expected 401 - 404)" | ||
); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We like to use Assert
where we can in Then
steps - it provides a nicer output on failure than a long traceback. But that sort of stuff has been refactored more recently, so I guess the revert has done this.
We can adjust that later, since it will be better to get this PR merged so that OCIS-related tests can pass.
I reverted these changes:
12752e7#diff-76a3f5f23003d99750d877daa045562aL1239-L1243
see cs3org/reva#588
and owncloud/ocis-reva#113