Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,6 @@ public function testRequestSharedSecret($token, $localToken, $isTrustedServer, $

try {
$this->ocsAuthApi->requestSharedSecret($url, $token);
$this->assertTrue($ok);
} catch (OCSForbiddenException $e) {
$this->assertFalse($ok);
}
Expand Down
10 changes: 5 additions & 5 deletions build/integration/composer.json
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
{
"require-dev": {
"phpunit/phpunit": "~6.5",
"behat/behat": "~3.11.0",
"guzzlehttp/guzzle": "6.5.8",
"phpunit/phpunit": "^8.5",
"behat/behat": "^3.12.0",
"guzzlehttp/guzzle": "^7.6.0",
"jarnaiz/behat-junit-formatter": "^1.3",
"sabre/dav": "4.4.0",
"symfony/event-dispatcher": "~5.3"
"sabre/dav": "^4.4.0",
"symfony/event-dispatcher": "^5.3"
}
}
2 changes: 1 addition & 1 deletion build/integration/features/bootstrap/Avatar.php
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ public function loggedInUserGetsTemporaryAvatarWith(string $statusCode) {
* @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',
[
Expand Down
2 changes: 1 addition & 1 deletion build/integration/features/bootstrap/ChecksumsContext.php
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ private function getPasswordForUser($userName) {
* @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,
Expand Down
2 changes: 1 addition & 1 deletion build/integration/features/bootstrap/FilesDropContext.php
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ public function droppingFileWith($path, $content) {
$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);
Expand Down
8 changes: 4 additions & 4 deletions build/integration/features/bootstrap/WebDav.php
Original file line number Diff line number Diff line change
Expand Up @@ -454,7 +454,7 @@ public function checkElementList($user, $expectedElements) {
* @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) {
Expand Down Expand Up @@ -486,7 +486,7 @@ public function userAddsAFileTo($user, $bytes, $destination) {
* @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) {
Expand Down Expand Up @@ -544,7 +544,7 @@ public function userCreatedAFolder($user, $destination) {
*/
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");
}
Expand All @@ -561,7 +561,7 @@ public function userCreatesANewChunkingUploadWithId($user, $id) {
* @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");
}
Expand Down
2 changes: 1 addition & 1 deletion build/integration/run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ else
fi
NC_DATADIR=$($OCC config:system:get datadirectory)

composer install --no-audit
composer install

# avoid port collision on jenkins - use $EXECUTOR_NUMBER
if [ -z "$EXECUTOR_NUMBER" ]; then
Expand Down
Loading