Fixed the swift v1.0 auth tests.

This commit is contained in:
Matt Farina 2012-06-11 17:58:32 -04:00
parent 3299840a14
commit 0d8c38ef7a
2 changed files with 7 additions and 3 deletions

View File

@ -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);

View File

@ -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"