summaryrefslogtreecommitdiffstats
path: root/build/integration
diff options
context:
space:
mode:
authorRoeland Jago Douma <rullzer@owncloud.com>2015-12-15 09:55:25 +0100
committerRoeland Jago Douma <rullzer@owncloud.com>2016-01-06 14:53:43 +0100
commit0f6d55063d3ba6f1c6f0cf5f8e9c99341ee24926 (patch)
tree72f0ce7e8bfb2dcd70dede586645f4d6a205097a /build/integration
parent38d3a638ed2ec055ddf4a09da682961b6976bc4d (diff)
downloadnextcloud-server-0f6d55063d3ba6f1c6f0cf5f8e9c99341ee24926.tar.gz
nextcloud-server-0f6d55063d3ba6f1c6f0cf5f8e9c99341ee24926.zip
Make sure to login at least once for the intergration tests
Else we run into race conditions with the skeleton code
Diffstat (limited to 'build/integration')
-rw-r--r--build/integration/features/bootstrap/Provisioning.php8
1 files changed, 7 insertions, 1 deletions
diff --git a/build/integration/features/bootstrap/Provisioning.php b/build/integration/features/bootstrap/Provisioning.php
index 9a21c0bb1d4..65a6611b06c 100644
--- a/build/integration/features/bootstrap/Provisioning.php
+++ b/build/integration/features/bootstrap/Provisioning.php
@@ -90,7 +90,13 @@ trait Provisioning {
} elseif ($this->currentServer === 'REMOTE') {
$this->createdRemoteUsers[$user] = $user;
}
-
+
+ //Quick hack to login once with the current user
+ $options2 = [
+ 'auth' => [$user, '123456'],
+ ];
+ $url = $fullUrl.'/'.$user;
+ $client->send($client->createRequest('GET', $url, $options2));
}
public function createUser($user) {