Skip to content

Commit

Permalink
Merge pull request #579 from KnpLabs/fix/tests
Browse files Browse the repository at this point in the history
[RFR] fix opencloud tests
  • Loading branch information
nicolasmure authored Sep 7, 2018
2 parents a0627e9 + a244edd commit 34da54d
Showing 1 changed file with 16 additions and 4 deletions.
20 changes: 16 additions & 4 deletions tests/Gaufrette/Functional/Adapter/OpenCloudTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,10 +24,22 @@ public function setUp()
$this->markTestSkipped('Either RACKSPACE_USER, RACKSPACE_APIKEY and/or RACKSPACE_CONTAINER env vars are missing.');
}

$connection = new Rackspace('https://identity.api.rackspacecloud.com/v2.0/', [
'username' => $username,
'apiKey' => $apiKey,
]);
$connection = new Rackspace(
'https://identity.api.rackspacecloud.com/v2.0/',
[
'username' => $username,
'apiKey' => $apiKey,
],
[
// Guzzle ships with outdated certs
// @see https://github.com/rackspace/php-opencloud/issues/727
Rackspace::SSL_CERT_AUTHORITY => 'system',
Rackspace::CURL_OPTIONS => [
CURLOPT_SSL_VERIFYPEER => true,
CURLOPT_SSL_VERIFYHOST => 2,
],
]
);

$this->container = uniqid($container);
$this->objectStore = $connection->objectStoreService('cloudFiles', 'IAD', 'publicURL');
Expand Down

0 comments on commit 34da54d

Please sign in to comment.