mirror of
https://github.com/nextcloud/server.git
synced 2026-06-09 08:44:07 -04:00
tests(integration): Fix catching error only on object store
Signed-off-by: Julius Härtl <jus@bitgrid.net>
This commit is contained in:
parent
a7e5e7e4a1
commit
ae911a21d2
2 changed files with 17 additions and 1 deletions
|
|
@ -1078,4 +1078,20 @@ trait WebDav {
|
|||
public function theSmultipartUploadWasSuccessful($status) {
|
||||
Assert::assertEquals((int)$status, $this->response->getStatusCode());
|
||||
}
|
||||
|
||||
/**
|
||||
* @Then /^the upload should fail on object storage$/
|
||||
*/
|
||||
public function theUploadShouldFailOnObjectStorage() {
|
||||
$descriptor = [
|
||||
0 => ['pipe', 'r'],
|
||||
1 => ['pipe', 'w'],
|
||||
2 => ['pipe', 'w'],
|
||||
];
|
||||
$process = proc_open('php occ config:system:get objectstore --no-ansi', $descriptor, $pipes, '../../');
|
||||
$lastCode = proc_close($process);
|
||||
if ($lastCode === 0) {
|
||||
$this->theHTTPStatusCodeShouldBe(500);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -694,7 +694,7 @@ Feature: webdav-related
|
|||
And user "user0" uploads new chunk v2 file "2" to id "chunking-random"
|
||||
And user "user0" uploads new chunk v2 file "4" to id "chunking-random"
|
||||
And user "user0" moves new chunk v2 file with id "chunking-random"
|
||||
Then the HTTP status code should be "500"
|
||||
Then the upload should fail on object storage
|
||||
|
||||
@s3-multipart
|
||||
Scenario: Upload chunked file with special characters with new chunking v2
|
||||
|
|
|
|||
Loading…
Reference in a new issue