summaryrefslogtreecommitdiffstats
path: root/build/integration/features/bootstrap
diff options
context:
space:
mode:
authorThomas Müller <thomas.mueller@tmit.eu>2016-03-09 15:06:44 +0100
committerThomas Müller <thomas.mueller@tmit.eu>2016-03-09 15:06:44 +0100
commit0cc53ee06dafbd3984bbf1d554585a5731b500a9 (patch)
treec44b12dae00330edac5367c9159fef5a8ce06b85 /build/integration/features/bootstrap
parent42bcea1ef0f902e1b54e2a0ac23ca21840da88d6 (diff)
parent7301b43eb6a806f62897223db57f9ff51cb1afb5 (diff)
downloadnextcloud-server-0cc53ee06dafbd3984bbf1d554585a5731b500a9.tar.gz
nextcloud-server-0cc53ee06dafbd3984bbf1d554585a5731b500a9.zip
Merge pull request #22602 from owncloud/fix_slow_chunkcheck
Do not check all chunks of a chunked upload if we do not need to
Diffstat (limited to 'build/integration/features/bootstrap')
-rw-r--r--build/integration/features/bootstrap/WebDav.php11
1 files changed, 11 insertions, 0 deletions
diff --git a/build/integration/features/bootstrap/WebDav.php b/build/integration/features/bootstrap/WebDav.php
index fa6761d9f71..0430768022c 100644
--- a/build/integration/features/bootstrap/WebDav.php
+++ b/build/integration/features/bootstrap/WebDav.php
@@ -262,5 +262,16 @@ trait WebDav {
}
}
+ /**
+ * @Given user :user uploads chunk file :num of :total with :data to :destination
+ */
+ public function userUploadsChunkFileOfWithToWithChecksum($user, $num, $total, $data, $destination)
+ {
+ $num -= 1;
+ $data = \GuzzleHttp\Stream\Stream::factory($data);
+ $file = $destination . '-chunking-42-'.$total.'-'.$num;
+ $this->makeDavRequest($user, 'PUT', $file, ['OC-Chunked' => '1'], $data);
+ }
+
}