diff --git a/test/TestCase.php b/test/TestCase.php index 5d27f87..51e1f65 100644 --- a/test/TestCase.php +++ b/test/TestCase.php @@ -102,8 +102,8 @@ class TestCase extends \PHPUnit_Framework_TestCase { $user = self::$settings['hpcloud.swift.account']; $key = self::$settings['hpcloud.swift.key']; - // $url = self::$settings['hpcloud.swift.url']; - $url = self::$settings['hpcloud.identity.url']; + $url = self::$settings['hpcloud.swift.url']; + //$url = self::$settings['hpcloud.identity.url']; return \HPCloud\Storage\ObjectStorage::newFromSwiftAuth($user, $key, $url); diff --git a/test/example.settings.ini b/test/example.settings.ini index 344b992..5072b11 100644 --- a/test/example.settings.ini +++ b/test/example.settings.ini @@ -4,9 +4,13 @@ ;;;;;;;;;;;;;;;;;; ; Settings to work with swift: +; Account is the tenandId:console username. hpcloud.swift.account = 12345678:87654321 +; Key is the console account password. hpcloud.swift.key = abcdef123456 -hpcloud.swift.url = https://region-a.geo-1.objects.hpcloudsvc.com/auth/v1.0/ +; URL is the same as used for identity services calls (including port) except +; with /auth/v1.0/ appended to the end. +hpcloud.swift.url = https://region-a.geo-1.identity.hpcloudsvc.com:35357/auth/v1.0/ ; Container used for testing. hpcloud.swift.container = "I♡HPCloud"