public function testNewFromIdentity()
 {
     $ident = $this->identity();
     $region = self::$settings['openstack.swift.region'];
     $client = $this->getTransportClient();
     $ostore = \OpenStack\ObjectStore\v1\ObjectStorage::newFromIdentity($ident, $region, $client);
     $this->assertInstanceOf('\\OpenStack\\ObjectStore\\v1\\ObjectStorage', $ostore);
     $this->assertTrue(strlen($ostore->token()) > 0);
 }
Esempio n. 2
0
 protected static function createObjectStoreService()
 {
     return ObjectStorage::newFromIdentity(self::createIdentityService(), self::$settings['openstack.swift.region'], self::getTransportClient());
 }