mirror of
https://github.com/nextcloud/server.git
synced 2026-06-18 21:21:48 -04:00
Merge pull request #30210 from nextcloud/dependabot/composer/build/integration/guzzlehttp/guzzle-7.4.1
Update guzzlehttp/guzzle requirement from 6.5.2 to 7.4.1 in /build/integration
This commit is contained in:
commit
56d75b87ef
5 changed files with 8 additions and 8 deletions
|
|
@ -2,7 +2,7 @@
|
|||
"require-dev": {
|
||||
"phpunit/phpunit": "~6.5",
|
||||
"behat/behat": "~3.10.0",
|
||||
"guzzlehttp/guzzle": "6.5.2",
|
||||
"guzzlehttp/guzzle": "7.4.1",
|
||||
"jarnaiz/behat-junit-formatter": "^1.3",
|
||||
"sabre/dav": "4.3.1",
|
||||
"symfony/event-dispatcher": "~5.3"
|
||||
|
|
|
|||
|
|
@ -109,7 +109,7 @@ trait Avatar {
|
|||
* @param string $source
|
||||
*/
|
||||
public function loggedInUserPostsTemporaryAvatarFromFile(string $source) {
|
||||
$file = \GuzzleHttp\Psr7\stream_for(fopen($source, 'r'));
|
||||
$file = \GuzzleHttp\Psr7\Utils::streamFor(fopen($source, 'r'));
|
||||
|
||||
$this->sendingAToWithRequesttoken('POST', '/index.php/avatar',
|
||||
[
|
||||
|
|
|
|||
|
|
@ -79,7 +79,7 @@ class ChecksumsContext implements \Behat\Behat\Context\Context {
|
|||
* @param string $checksum
|
||||
*/
|
||||
public function userUploadsFileToWithChecksum($user, $source, $destination, $checksum) {
|
||||
$file = \GuzzleHttp\Psr7\stream_for(fopen($source, 'r'));
|
||||
$file = \GuzzleHttp\Psr7\Utils::streamFor(fopen($source, 'r'));
|
||||
try {
|
||||
$this->response = $this->client->put(
|
||||
$this->baseUrl . '/remote.php/webdav' . $destination,
|
||||
|
|
|
|||
|
|
@ -51,7 +51,7 @@ class FilesDropContext implements Context, SnippetAcceptingContext {
|
|||
$options['headers'] = [
|
||||
'X-REQUESTED-WITH' => 'XMLHttpRequest'
|
||||
];
|
||||
$options['body'] = \GuzzleHttp\Psr7\stream_for($content);
|
||||
$options['body'] = \GuzzleHttp\Psr7\Utils::streamFor($content);
|
||||
|
||||
try {
|
||||
$this->response = $client->request('PUT', $fullUrl, $options);
|
||||
|
|
|
|||
|
|
@ -493,7 +493,7 @@ trait WebDav {
|
|||
* @param string $destination
|
||||
*/
|
||||
public function userUploadsAFileTo($user, $source, $destination) {
|
||||
$file = \GuzzleHttp\Psr7\stream_for(fopen($source, 'r'));
|
||||
$file = \GuzzleHttp\Psr7\Utils::streamFor(fopen($source, 'r'));
|
||||
try {
|
||||
$this->response = $this->makeDavRequest($user, "PUT", $destination, [], $file);
|
||||
} catch (\GuzzleHttp\Exception\ServerException $e) {
|
||||
|
|
@ -525,7 +525,7 @@ trait WebDav {
|
|||
* @When User :user uploads file with content :content to :destination
|
||||
*/
|
||||
public function userUploadsAFileWithContentTo($user, $content, $destination) {
|
||||
$file = \GuzzleHttp\Psr7\stream_for($content);
|
||||
$file = \GuzzleHttp\Psr7\Utils::streamFor($content);
|
||||
try {
|
||||
$this->response = $this->makeDavRequest($user, "PUT", $destination, [], $file);
|
||||
} catch (\GuzzleHttp\Exception\ServerException $e) {
|
||||
|
|
@ -583,7 +583,7 @@ trait WebDav {
|
|||
*/
|
||||
public function userUploadsChunkFileOfWithToWithChecksum($user, $num, $total, $data, $destination) {
|
||||
$num -= 1;
|
||||
$data = \GuzzleHttp\Psr7\stream_for($data);
|
||||
$data = \GuzzleHttp\Psr7\Utils::streamFor($data);
|
||||
$file = $destination . '-chunking-42-' . $total . '-' . $num;
|
||||
$this->makeDavRequest($user, 'PUT', $file, ['OC-Chunked' => '1'], $data, "uploads");
|
||||
}
|
||||
|
|
@ -654,7 +654,7 @@ trait WebDav {
|
|||
* @Given user :user uploads new chunk file :num with :data to id :id
|
||||
*/
|
||||
public function userUploadsNewChunkFileOfWithToId($user, $num, $data, $id) {
|
||||
$data = \GuzzleHttp\Psr7\stream_for($data);
|
||||
$data = \GuzzleHttp\Psr7\Utils::streamFor($data);
|
||||
$destination = '/uploads/' . $user . '/' . $id . '/' . $num;
|
||||
$this->makeDavRequest($user, 'PUT', $destination, [], $data, "uploads");
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue