Преглед изворни кода

Merge r25293 to 1.12 release branch

git-svn-id: http://framework.zend.com/svn/framework/standard/branches/release-1.12@25294 44c647ce-9c0f-0410-b52a-842ac1e357ba
frosch пре 12 година
родитељ
комит
f53c99b1ae

+ 146 - 70
library/Zend/Service/Rackspace/Files/Container.php

@@ -24,36 +24,49 @@ require_once 'Zend/Service/Rackspace/Files.php';
 
 class Zend_Service_Rackspace_Files_Container
 {
-    const ERROR_PARAM_FILE_CONSTRUCT  = 'The Zend_Service_Rackspace_Files passed in construction is not valid';
+    const ERROR_PARAM_FILE_CONSTRUCT = 'The Zend_Service_Rackspace_Files passed in construction is not valid';
+
     const ERROR_PARAM_ARRAY_CONSTRUCT = 'The array passed in construction is not valid';
-    const ERROR_PARAM_NO_NAME         = 'The container name is empty';
+
+    const ERROR_PARAM_NO_NAME = 'The container name is empty';
+
     /**
      * @var string
      */
     protected $name;
+
     /**
      * Construct
      *
      * @param Zend_Service_Rackspace_Files $service
-     * @param string $name
+     * @param                              $data
+     *
+     * @throws Zend_Service_Rackspace_Files_Exception
      */
     public function __construct($service, $data)
     {
         if (!($service instanceof Zend_Service_Rackspace_Files)) {
             require_once 'Zend/Service/Rackspace/Files/Exception.php';
-            throw new Zend_Service_Rackspace_Files_Exception(self::ERROR_PARAM_FILE_CONSTRUCT);
+            throw new Zend_Service_Rackspace_Files_Exception(
+                self::ERROR_PARAM_FILE_CONSTRUCT
+            );
         }
         if (!is_array($data)) {
             require_once 'Zend/Service/Rackspace/Files/Exception.php';
-            throw new Zend_Service_Rackspace_Files_Exception(self::ERROR_PARAM_ARRAY_CONSTRUCT);
+            throw new Zend_Service_Rackspace_Files_Exception(
+                self::ERROR_PARAM_ARRAY_CONSTRUCT
+            );
         }
         if (!array_key_exists('name', $data)) {
             require_once 'Zend/Service/Rackspace/Files/Exception.php';
-            throw new Zend_Service_Rackspace_Files_Exception(self::ERROR_PARAM_NO_NAME);
-        }    
+            throw new Zend_Service_Rackspace_Files_Exception(
+                self::ERROR_PARAM_NO_NAME
+            );
+        }
         $this->service = $service;
-        $this->name = $data['name'];
+        $this->name    = $data['name'];
     }
+
     /**
      * Get the name of the container
      *
@@ -63,10 +76,11 @@ class Zend_Service_Rackspace_Files_Container
     {
         return $this->name;
     }
+
     /**
      * Get the size in bytes of the container
      *
-     * @return integer|boolean
+     * @return integer|bool
      */
     public function getSize()
     {
@@ -74,12 +88,14 @@ class Zend_Service_Rackspace_Files_Container
         if (isset($data['bytes'])) {
             return $data['bytes'];
         }
+
         return false;
     }
+
     /**
      * Get the total count of objects in the container
      *
-     * @return integer|boolean
+     * @return integer|bool
      */
     public function getObjectCount()
     {
@@ -87,12 +103,14 @@ class Zend_Service_Rackspace_Files_Container
         if (isset($data['count'])) {
             return $data['count'];
         }
+
         return false;
     }
+
     /**
      * Return true if the container is CDN enabled
-     * 
-     * @return boolean
+     *
+     * @return bool
      */
     public function isCdnEnabled()
     {
@@ -100,69 +118,80 @@ class Zend_Service_Rackspace_Files_Container
         if (isset($data['cdn_enabled'])) {
             return $data['cdn_enabled'];
         }
+
         return false;
     }
+
     /**
      * Get the TTL of the CDN
-     * 
-     * @return integer|boolean 
+     *
+     * @return integer|bool
      */
-    public function getCdnTtl() 
+    public function getCdnTtl()
     {
         $data = $this->getCdnInfo();
-        if (!isset($data['ttl'])) {
+        if (isset($data['ttl'])) {
             return $data['ttl'];
         }
+
         return false;
     }
+
     /**
      * Return true if the log retention is enabled for the CDN
      *
-     * @return boolean
+     * @return bool
      */
     public function isCdnLogEnabled()
     {
         $data = $this->getCdnInfo();
-        if (!isset($data['log_retention'])) {
+        if (isset($data['log_retention'])) {
             return $data['log_retention'];
         }
+
         return false;
     }
+
     /**
      * Get the CDN URI
-     * 
-     * @return string|boolean
+     *
+     * @return string|bool
      */
     public function getCdnUri()
     {
         $data = $this->getCdnInfo();
-        if (!isset($data['cdn_uri'])) {
+        if (isset($data['cdn_uri'])) {
             return $data['cdn_uri'];
         }
+
         return false;
     }
+
     /**
      * Get the CDN URI SSL
      *
-     * @return string|boolean
+     * @return string|bool
      */
     public function getCdnUriSsl()
     {
         $data = $this->getCdnInfo();
-        if (!isset($data['cdn_uri_ssl'])) {
+        if (isset($data['cdn_uri_ssl'])) {
             return $data['cdn_uri_ssl'];
         }
+
         return false;
     }
+
     /**
      * Get the metadata of the container
      *
      * If $key is empty return the array of metadata
      *
      * @param string $key
-     * @return array|string|boolean
+     *
+     * @return array|string|bool
      */
-    public function getMetadata($key=null)
+    public function getMetadata($key = null)
     {
         $result = $this->service->getMetadataContainer($this->getName());
         if (!empty($result) && is_array($result)) {
@@ -172,23 +201,27 @@ class Zend_Service_Rackspace_Files_Container
                 if (isset ($result['metadata'][$key])) {
                     return $result['metadata'][$key];
                 }
-            }    
-        }    
+            }
+        }
+
         return false;
     }
+
     /**
      * Get the information of the container (total of objects, total size)
-     * 
-     * @return array|boolean 
+     *
+     * @return array|bool
      */
     public function getInfo()
     {
         $result = $this->service->getMetadataContainer($this->getName());
         if (!empty($result) && is_array($result)) {
-           return $result;
+            return $result;
         }
+
         return false;
     }
+
     /**
      * Get all the object of the container
      *
@@ -198,131 +231,174 @@ class Zend_Service_Rackspace_Files_Container
     {
         return $this->service->getObjects($this->getName());
     }
+
     /**
      * Get an object of the container
-     * 
+     *
      * @param string $name
-     * @param array $headers
-     * @return Zend_Service_Rackspace_Files_Object|boolean
+     * @param array  $headers
+     *
+     * @return Zend_Service_Rackspace_Files_Object|bool
      */
-    public function getObject($name, $headers=array())
+    public function getObject($name, $headers = array())
     {
         return $this->service->getObject($this->getName(), $name, $headers);
     }
+
     /**
      * Add an object in the container
      *
      * @param string $name
      * @param string $file the content of the object
-     * @param array $metadata
-     * @return boolen
+     * @param array  $metadata
+     *
+     * @return bool
      */
-    public function addObject($name, $file, $metadata=array())
+    public function addObject($name, $file, $metadata = array())
     {
-        return $this->service->storeObject($this->getName(), $name, $file, $metadata);
+        return $this->service->storeObject(
+            $this->getName(), $name, $file, $metadata
+        );
     }
+
     /**
      * Delete an object in the container
      *
      * @param string $obj
-     * @return boolean
+     *
+     * @return bool
      */
     public function deleteObject($obj)
     {
         return $this->service->deleteObject($this->getName(), $obj);
     }
+
     /**
      * Copy an object to another container
      *
      * @param string $obj_source
      * @param string $container_dest
      * @param string $obj_dest
-     * @param array $metadata
+     * @param array  $metadata
      * @param string $content_type
-     * @return boolean
+     *
+     * @return bool
      */
-    public function copyObject($obj_source, $container_dest, $obj_dest, $metadata=array(), $content_type=null)
+    public function copyObject(
+        $obj_source, $container_dest, $obj_dest, $metadata = array(),
+        $content_type = null
+    )
     {
-        return $this->service->copyObject($this->getName(), $obj_source, $container_dest, $obj_dest, $metadata, $content_type);
+        return $this->service->copyObject(
+            $this->getName(),
+            $obj_source,
+            $container_dest,
+            $obj_dest,
+            $metadata,
+            $content_type
+        );
     }
+
     /**
      * Get the metadata of an object in the container
      *
      * @param string $object
+     *
      * @return array
      */
     public function getMetadataObject($object)
     {
-        return $this->service->getMetadataObject($this->getName(),$object);
+        return $this->service->getMetadataObject($this->getName(), $object);
     }
+
     /**
      * Set the metadata of an object in the container
      *
      * @param string $object
-     * @param array $metadata
-     * @return boolean
+     * @param array  $metadata
+     *
+     * @return bool
      */
-    public function setMetadataObject($object,$metadata=array()) 
+    public function setMetadataObject($object, $metadata = array())
     {
-        return $this->service->setMetadataObject($this->getName(),$object,$metadata);
+        return $this->service->setMetadataObject(
+            $this->getName(), $object, $metadata
+        );
     }
+
     /**
      * Enable the CDN for the container
      *
      * @param integer $ttl
-     * @return array|boolean
+     *
+     * @return array|bool
      */
-    public function enableCdn($ttl=Zend_Service_Rackspace_Files::CDN_TTL_MIN) 
+    public function enableCdn($ttl = Zend_Service_Rackspace_Files::CDN_TTL_MIN)
     {
-        return $this->service->enableCdnContainer($this->getName(),$ttl);
+        return $this->service->enableCdnContainer($this->getName(), $ttl);
     }
+
     /**
      * Disable the CDN for the container
-     * 
-     * @return boolean
+     *
+     * @return bool
      */
-    public function disableCdn() 
+    public function disableCdn()
     {
-        $result = $this->service->updateCdnContainer($this->getName(),null,false);
-        return ($result!==false);
+        $result =
+            $this->service->updateCdnContainer($this->getName(), null, false);
+
+        return ($result !== false);
     }
+
     /**
      * Change the TTL for the CDN container
      *
      * @param integer $ttl
-     * @return boolean
+     *
+     * @return bool
      */
-    public function changeTtlCdn($ttl) 
+    public function changeTtlCdn($ttl)
     {
-        $result =  $this->service->updateCdnContainer($this->getName(),$ttl);
-        return ($result!==false);
+        $result = $this->service->updateCdnContainer($this->getName(), $ttl);
+
+        return ($result !== false);
     }
+
     /**
      * Enable the log retention for the CDN
      *
-     * @return boolean
+     * @return bool
      */
-    public function enableLogCdn() 
+    public function enableLogCdn()
     {
-        $result =  $this->service->updateCdnContainer($this->getName(),null,null,true);
-        return ($result!==false);
+        $result = $this->service->updateCdnContainer(
+            $this->getName(), null, null, true
+        );
+
+        return ($result !== false);
     }
+
     /**
      * Disable the log retention for the CDN
      *
-     * @return boolean
+     * @return bool
      */
-    public function disableLogCdn() 
+    public function disableLogCdn()
     {
-        $result =  $this->service->updateCdnContainer($this->getName(),null,null,false);
-        return ($result!==false);
+        $result = $this->service->updateCdnContainer(
+            $this->getName(), null, null, false
+        );
+
+        return ($result !== false);
     }
+
     /**
      * Get the CDN information
      *
-     * @return array|boolean
+     * @return array|bool
      */
-    public function getCdnInfo() 
+    public function getCdnInfo()
     {
         return $this->service->getInfoCdnContainer($this->getName());
     }

+ 194 - 104
tests/Zend/Service/Rackspace/Files/OfflineTest.php

@@ -34,7 +34,8 @@ require_once 'Zend/Http/Client/Adapter/Test.php';
  * @license    http://framework.zend.com/license/new-bsd     New BSD License
  * @group      Zend_Service_Rackspace_Files
  */
-class Zend_Service_Rackspace_Files_OfflineTest extends PHPUnit_Framework_TestCase
+class Zend_Service_Rackspace_Files_OfflineTest
+    extends PHPUnit_Framework_TestCase
 {
     /**
      * Reference to RackspaceFiles
@@ -42,227 +43,316 @@ class Zend_Service_Rackspace_Files_OfflineTest extends PHPUnit_Framework_TestCas
      * @var Zend_Service_Rackspace_Files
      */
     protected $rackspace;
+
     /**
      * HTTP client adapter for testing
      *
      * @var Zend_Http_Client_Adapter_Test
      */
     protected $httpClientAdapterTest;
+
     /**
      * Metadata for container/object test
-     * 
-     * @var array 
+     *
+     * @var array
      */
     protected $metadata;
+
     /**
      * Another metadata for container/object test
-     * 
-     * @var array 
+     *
+     * @var array
+     */
+    protected $metadata2;
+
+    /**
+     * Reference to Container
+     *
+     * @var Zend_Service_Rackspace_Files_Container
      */
-    protected $metadata2;  
+    protected $container;
+
     /**
      * Set up the test case
      *
      * @return void
      */
     public function setUp()
-    {  
-        $this->rackspace = new Zend_Service_Rackspace_Files('foo','bar');
-        
+    {
+        $this->rackspace = new Zend_Service_Rackspace_Files('foo', 'bar');
+
+        $this->container = new Zend_Service_Rackspace_Files_Container(
+            $this->rackspace,
+            array(
+                 'name' => TESTS_ZEND_SERVICE_RACKSPACE_CONTAINER_NAME
+            )
+        );
+
         $this->httpClientAdapterTest = new Zend_Http_Client_Adapter_Test();
-        
-        $this->rackspace->getHttpClient()->setAdapter($this->httpClientAdapterTest);
-        
+
+        $this->rackspace->getHttpClient()->setAdapter(
+            $this->httpClientAdapterTest
+        );
+
         // authentication (from a file)
-        $this->httpClientAdapterTest->setResponse(self::loadResponse('../../_files/testAuthenticate'));
-        $this->assertTrue($this->rackspace->authenticate(),'Authentication failed'); 
-        
-        $this->metadata =  array (
+        $this->httpClientAdapterTest->setResponse(
+            self::loadResponse('../../_files/testAuthenticate')
+        );
+        $this->assertTrue(
+            $this->rackspace->authenticate(), 'Authentication failed'
+        );
+
+        $this->metadata = array(
             'foo'  => 'bar',
             'foo2' => 'bar2'
         );
-        
-        $this->metadata2 = array (
+
+        $this->metadata2 = array(
             'hello' => 'world'
         );
-        
+
         // load the HTTP response (from a file)
-        $this->httpClientAdapterTest->setResponse($this->loadResponse($this->getName()));    
+        $this->httpClientAdapterTest->setResponse(
+            $this->loadResponse($this->getName())
+        );
     }
-    
+
     /**
      * Utility method for returning a string HTTP response, which is loaded from a file
      *
      * @param  string $name
+     *
      * @return string
      */
     protected function loadResponse($name)
     {
         return file_get_contents(__DIR__ . '/_files/' . $name . '.response');
     }
-    
+
     public function testCreateContainer()
     {
-        $container= $this->rackspace->createContainer('zf-unit-test',$this->metadata);
-        $this->assertTrue($container!==false);
-        $this->assertEquals($container->getName(),'zf-unit-test');
+        $container =
+            $this->rackspace->createContainer('zf-unit-test', $this->metadata);
+        $this->assertTrue($container !== false);
+        $this->assertEquals($container->getName(), 'zf-unit-test');
     }
 
     public function testGetCountContainers()
     {
-        $num= $this->rackspace->getCountContainers();
-        $this->assertTrue($num>0);
+        $num = $this->rackspace->getCountContainers();
+        $this->assertTrue($num > 0);
     }
-    
+
     public function testGetContainer()
     {
-        $container= $this->rackspace->getContainer('zf-unit-test');
-        $this->assertTrue($container!==false);
-        $this->assertEquals($container->getName(),'zf-unit-test');
+        $container = $this->rackspace->getContainer('zf-unit-test');
+        $this->assertTrue($container !== false);
+        $this->assertEquals($container->getName(), 'zf-unit-test');
     }
-    
+
     public function testGetContainers()
     {
-        $containers= $this->rackspace->getContainers();
-        $this->assertTrue($containers!==false);
-        $found=false;
+        $containers = $this->rackspace->getContainers();
+        $this->assertTrue($containers !== false);
+        $found = false;
         foreach ($containers as $container) {
-            if ($container->getName()=='zf-unit-test') {
-                $found=true;
+            if ($container->getName() == 'zf-unit-test') {
+                $found = true;
                 break;
             }
-        } 
+        }
         $this->assertTrue($found);
     }
-    
+
     public function testGetMetadataContainer()
     {
-        $data= $this->rackspace->getMetadataContainer('zf-unit-test');
-        $this->assertTrue($data!==false);
-        $this->assertEquals($data['name'],'zf-unit-test');
-        $this->assertEquals($data['metadata'],$this->metadata);
+        $data = $this->rackspace->getMetadataContainer('zf-unit-test');
+        $this->assertTrue($data !== false);
+        $this->assertEquals($data['name'], 'zf-unit-test');
+        $this->assertEquals($data['metadata'], $this->metadata);
     }
-    
+
     public function testGetInfoAccount()
     {
-        $data= $this->rackspace->getInfoAccount();
-        $this->assertTrue($data!==false);
-        $this->assertTrue($data['tot_containers']>0);
+        $data = $this->rackspace->getInfoAccount();
+        $this->assertTrue($data !== false);
+        $this->assertTrue($data['tot_containers'] > 0);
     }
-    
+
     public function testStoreObject()
     {
-        $content= 'This is a test!';
-        $result= $this->rackspace->storeObject('zf-unit-test', 
-                                               'zf-object-test',
-                                               $content,
-                                               $this->metadata);
+        $content = 'This is a test!';
+        $result  = $this->rackspace->storeObject(
+            'zf-unit-test',
+            'zf-object-test',
+            $content,
+            $this->metadata
+        );
         $this->assertTrue($result);
     }
-    
+
     public function testGetObject()
     {
-        $object= $this->rackspace->getObject('zf-unit-test', 
-                                             'zf-object-test');
-        $this->assertTrue($object!==false);
-        $this->assertEquals($object->getName(),'zf-object-test');
-        $this->assertEquals($object->getSize(),15);
-        $this->assertEquals($object->getMetadata(),$this->metadata);
+        $object = $this->rackspace->getObject(
+            'zf-unit-test',
+            'zf-object-test'
+        );
+        $this->assertTrue($object !== false);
+        $this->assertEquals($object->getName(), 'zf-object-test');
+        $this->assertEquals($object->getSize(), 15);
+        $this->assertEquals($object->getMetadata(), $this->metadata);
     }
 
     public function testCopyObject()
     {
-        $result= $this->rackspace->copyObject('zf-unit-test',
-                                              'zf-object-test',
-                                              'zf-unit-test',
-                                              'zf-object-test'.'-copy');
+        $result = $this->rackspace->copyObject(
+            'zf-unit-test',
+            'zf-object-test',
+            'zf-unit-test',
+            'zf-object-test' . '-copy'
+        );
         $this->assertTrue($result);
     }
 
     public function testGetObjects()
     {
-        $objects= $this->rackspace->getObjects('zf-unit-test');
-        $this->assertTrue($objects!==false);
-        
-        $this->assertEquals($objects[0]->getName(),'zf-object-test');
-        $this->assertEquals($objects[1]->getName(),'zf-object-test'.'-copy');
+        $objects = $this->rackspace->getObjects('zf-unit-test');
+        $this->assertTrue($objects !== false);
+
+        $this->assertEquals($objects[0]->getName(), 'zf-object-test');
+        $this->assertEquals($objects[1]->getName(), 'zf-object-test' . '-copy');
     }
-    
+
     public function testGetSizeContainers()
     {
-        $size= $this->rackspace->getSizeContainers();
-        $this->assertTrue($size!==false);
+        $size = $this->rackspace->getSizeContainers();
+        $this->assertTrue($size !== false);
         $this->assertTrue(is_numeric($size));
     }
-    
+
     public function testGetCountObjects()
     {
-        $count= $this->rackspace->getCountObjects();
-        $this->assertTrue($count!==false);
+        $count = $this->rackspace->getCountObjects();
+        $this->assertTrue($count !== false);
         $this->assertTrue(is_numeric($count));
     }
-    
+
     public function testSetMetadataObject()
     {
-        $result= $this->rackspace->setMetadataObject('zf-unit-test',
-                                                     'zf-object-test',
-                                                     $this->metadata2);
+        $result = $this->rackspace->setMetadataObject(
+            'zf-unit-test',
+            'zf-object-test',
+            $this->metadata2
+        );
         $this->assertTrue($result);
     }
-    
+
     public function testGetMetadataObject()
     {
-        $data= $this->rackspace->getMetadataObject('zf-unit-test',
-                                                   'zf-object-test');
-        $this->assertTrue($data!==false);
-        $this->assertEquals($data['metadata'],$this->metadata2);
+        $data = $this->rackspace->getMetadataObject(
+            'zf-unit-test',
+            'zf-object-test'
+        );
+        $this->assertTrue($data !== false);
+        $this->assertEquals($data['metadata'], $this->metadata2);
     }
-    
+
     public function testEnableCdnContainer()
     {
-        $data= $this->rackspace->enableCdnContainer('zf-unit-test');
-        $this->assertTrue($data!==false);
+        $data = $this->rackspace->enableCdnContainer('zf-unit-test');
+        $this->assertTrue($data !== false);
         $this->assertTrue(is_array($data));
         $this->assertTrue(!empty($data['cdn_uri']));
         $this->assertTrue(!empty($data['cdn_uri_ssl']));
     }
-    
+
     public function testGetCdnContainers()
     {
-        $containers= $this->rackspace->getCdnContainers();
-        $this->assertTrue($containers!==false);
-        $found= false;
+        $containers = $this->rackspace->getCdnContainers();
+        $this->assertTrue($containers !== false);
+        $found = false;
         foreach ($containers as $container) {
-            if ($container->getName()=='zf-unit-test') {
-                $found= true;
+            if ($container->getName() == 'zf-unit-test') {
+                $found = true;
                 break;
             }
         }
         $this->assertTrue($found);
     }
-    
+
     public function testUpdateCdnContainer()
     {
-        $data= $this->rackspace->updateCdnContainer('zf-unit-test',null,false);
-        $this->assertTrue($data!==false);
+        $data =
+            $this->rackspace->updateCdnContainer('zf-unit-test', null, false);
+        $this->assertTrue($data !== false);
     }
 
-    
     public function testDeleteObject()
     {
-        $this->assertTrue($this->rackspace->deleteObject('zf-unit-test',
-                                                         'zf-object-test'));
+        $this->assertTrue(
+            $this->rackspace->deleteObject(
+                'zf-unit-test',
+                'zf-object-test'
+            )
+        );
     }
-    
+
     public function testDeleteObject2()
     {
-        $this->assertTrue($this->rackspace->deleteObject('zf-unit-test',
-                                                         'zf-object-test'.'-copy'));
+        $this->assertTrue(
+            $this->rackspace->deleteObject(
+                'zf-unit-test',
+                'zf-object-test' . '-copy'
+            )
+        );
     }
-    
+
     public function testDeleteContainer()
     {
         $this->assertTrue($this->rackspace->deleteContainer('zf-unit-test'));
     }
-  
+
+    /**
+     * @group ZF-12542
+     */
+    public function testGetInfoCdnContainer()
+    {
+        $info = $this->rackspace->getInfoCdnContainer(
+            TESTS_ZEND_SERVICE_RACKSPACE_CONTAINER_NAME
+        );
+        $this->assertTrue($info !== false);
+        $this->assertTrue(is_array($info));
+        $this->assertTrue(!empty($info['ttl']));
+        $this->assertTrue(!empty($info['cdn_uri']));
+        $this->assertTrue(!empty($info['cdn_uri_ssl']));
+        $this->assertTrue($info['cdn_enabled']);
+        $this->assertTrue($info['log_retention']);
+    }
+
+    /**
+     * @group ZF-12542
+     */
+    public function testGetCdnTtl()
+    {
+        $ttl = $this->container->getCdnTtl();
+        $this->assertTrue($ttl !== false);
+    }
+
+    /**
+     * @group ZF-12542
+     */
+    public function testGetCdnUri()
+    {
+        $uri = $this->container->getCdnUri();
+        $this->assertTrue($uri !== false);
+    }
+
+    /**
+     * @group ZF-12542
+     */
+    public function testGetCdnUriSsl()
+    {
+        $uri = $this->container->getCdnUriSsl();
+        $this->assertTrue($uri !== false);
+    }
 }

+ 13 - 0
tests/Zend/Service/Rackspace/Files/_files/testGetCdnTtl.response

@@ -0,0 +1,13 @@
+HTTP/1.1 204 No Content
+Content-Type: text/html; charset=UTF-8
+X-Log-Retention: False
+Date: Fri, 15 Mar 2013 12:40:32 GMT
+X-Cdn-Uri: http://c754396.r96.cf2.rackcdn.com
+X-Cdn-Ssl-Uri: https://c754396.r96.cf2.rackcdn.com
+X-Cdn-Enabled: True
+X-Cdn-Ios-Uri: http://c754396.r96.cf2.rackcdn.com
+X-Trans-Id: tx6f66c89e78fd4a31b7507bf259c5a79c
+Connection: close
+X-Ttl: 259200
+X-Cdn-Streaming-Uri: http://c754396.r96.cf2.rackcdn.com
+Content-Length: 0

+ 13 - 0
tests/Zend/Service/Rackspace/Files/_files/testGetCdnUri.response

@@ -0,0 +1,13 @@
+HTTP/1.1 204 No Content
+Content-Type: text/html; charset=UTF-8
+X-Log-Retention: False
+Date: Fri, 15 Mar 2013 12:40:32 GMT
+X-Cdn-Uri: http://c754396.r96.cf2.rackcdn.com
+X-Cdn-Ssl-Uri: https://c754396.r96.cf2.rackcdn.com
+X-Cdn-Enabled: True
+X-Cdn-Ios-Uri: http://c754396.r96.cf2.rackcdn.com
+X-Trans-Id: tx6f66c89e78fd4a31b7507bf259c5a79c
+Connection: close
+X-Ttl: 259200
+X-Cdn-Streaming-Uri: http://c754396.r96.cf2.rackcdn.com
+Content-Length: 0

+ 13 - 0
tests/Zend/Service/Rackspace/Files/_files/testGetCdnUriSSl.response

@@ -0,0 +1,13 @@
+HTTP/1.1 204 No Content
+Content-Type: text/html; charset=UTF-8
+X-Log-Retention: False
+Date: Fri, 15 Mar 2013 12:40:32 GMT
+X-Cdn-Uri: http://c754396.r96.cf2.rackcdn.com
+X-Cdn-Ssl-Uri: https://c754396.r96.cf2.rackcdn.com
+X-Cdn-Enabled: True
+X-Cdn-Ios-Uri: http://c754396.r96.cf2.rackcdn.com
+X-Trans-Id: tx6f66c89e78fd4a31b7507bf259c5a79c
+Connection: close
+X-Ttl: 259200
+X-Cdn-Streaming-Uri: http://c754396.r96.cf2.rackcdn.com
+Content-Length: 0

+ 13 - 0
tests/Zend/Service/Rackspace/Files/_files/testGetInfoCdnContainer.response

@@ -0,0 +1,13 @@
+HTTP/1.1 204 No Content
+Content-Type: text/html; charset=UTF-8
+X-Log-Retention: True
+Date: Fri, 15 Mar 2013 12:40:32 GMT
+X-Cdn-Uri: http://c754396.r96.cf2.rackcdn.com
+X-Cdn-Ssl-Uri: https://c754396.r96.cf2.rackcdn.com
+X-Cdn-Enabled: True
+X-Cdn-Ios-Uri: http://c754396.r96.cf2.rackcdn.com
+X-Trans-Id: tx6f66c89e78fd4a31b7507bf259c5a79c
+Connection: close
+X-Ttl: 259200
+X-Cdn-Streaming-Uri: http://c754396.r96.cf2.rackcdn.com
+Content-Length: 0