Fixed the swift v1.0 auth tests.
This commit is contained in:
parent
3299840a14
commit
0d8c38ef7a
@ -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);
|
||||
|
||||
|
@ -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"
|
||||
|
Loading…
x
Reference in New Issue
Block a user