]> source.dussan.org Git - nextcloud-server.git/commitdiff
Make sure to login at least once for the intergration tests
authorRoeland Jago Douma <rullzer@owncloud.com>
Tue, 15 Dec 2015 08:55:25 +0000 (09:55 +0100)
committerRoeland Jago Douma <rullzer@owncloud.com>
Wed, 6 Jan 2016 13:53:43 +0000 (14:53 +0100)
Else we run into race conditions with the skeleton code

build/integration/features/bootstrap/Provisioning.php

index 9a21c0bb1d47712cdf89b20d7f7e97b03d13c760..65a6611b06c3527b7a8431d06255b95797fa74f0 100644 (file)
@@ -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) {