예제 #1
0
 /**
  * Sets up this test case
  *
  * @return void
  */
 public function setUp()
 {
     if (!constant('TESTS_ZEND_SERVICE_RACKSPACE_ONLINE_ENABLED')) {
         $this->markTestSkipped('Rackspace online tests are not enabled');
     }
     parent::setUp();
     $this->_waitPeriod = 5;
     // Create the container here
     $rackspace = new RackspaceService($this->_config->get(\Zend\Cloud\StorageService\Adapter\Rackspace::USER), $this->_config->get(\Zend\Cloud\StorageService\Adapter\Rackspace::API_KEY));
     $rackspace->createContainer($this->_config->get(\Zend\Cloud\StorageService\Adapter\Rackspace::REMOTE_CONTAINER));
 }
예제 #2
0
 public function testCreateContainer()
 {
     $container = $this->rackspace->createContainer(TESTS_ZEND_SERVICE_RACKSPACE_CONTAINER_NAME, $this->metadata);
     $this->assertTrue($container !== false);
     $this->assertEquals($container->getName(), TESTS_ZEND_SERVICE_RACKSPACE_CONTAINER_NAME);
 }