Package com.rackspacecloud.client.cloudfiles

Examples of com.rackspacecloud.client.cloudfiles.FilesCDNContainer


        // logger.warn(container);
        if (containerName.equals(container)) found = true;
      }
      assertTrue(found);
     
      FilesCDNContainer info = client.getCDNContainerInfo(containerName);
      assertTrue(info.isEnabled());
//      assertEquals("", info.getUserAgentACL());
//      assertEquals("", info.getReferrerACL());
      String cdnUrl = info.getCdnURL();
      assertNotNull(cdnUrl);
     
      client.cdnUpdateContainer(containerName, 31415, false, true);
      assertFalse(client.isCDNEnabled(containerName));
      info = client.getCDNContainerInfo(containerName);
      assertFalse(info.isEnabled());
      assertTrue(info.getRetainLogs());
      assertEquals(31415, info.getTtl());
      assertEquals(cdnUrl, info.getCdnURL());
     
      //client.cdnUpdateContainer(containerName, 54321, true, "Referrer Test", "User Agent Acl Test");
      client.cdnUpdateContainer(containerName, 54321, true, false);
      assertTrue(client.isCDNEnabled(containerName));
      info = client.getCDNContainerInfo(containerName);
      assertTrue(info.isEnabled());
      assertFalse(info.getRetainLogs());
      assertEquals(54321, info.getTtl());
      assertEquals(cdnUrl, info.getCdnURL());
//      assertEquals("Referrer Test", info.getReferrerACL());
//      assertEquals("User Agent Acl Test", info.getUserAgentACL());
     

    } catch (Exception e) {
View Full Code Here


        // logger.warn(container);
        if (containerName.equals(container)) found = true;
      }
      assertTrue(found);
     
      FilesCDNContainer info = client.getCDNContainerInfo(containerName);
      assertTrue(info.isEnabled());
//      assertEquals("", info.getUserAgentACL());
//      assertEquals("", info.getReferrerACL());
      String cdnUrl = info.getCdnURL();
      assertNotNull(cdnUrl);
      assertNotNull(info.getSSLURL());
      assertNotNull(info.getStreamingURL());
     
      client.cdnUpdateContainer(containerName, 31415, false, true);
      assertFalse(client.isCDNEnabled(containerName));
      info = client.getCDNContainerInfo(containerName);
      assertFalse(info.isEnabled());
      assertTrue(info.getRetainLogs());
      assertEquals(31415, info.getTtl());
      assertEquals(cdnUrl, info.getCdnURL());
     
      //client.cdnUpdateContainer(containerName, 54321, true, "Referrer Test", "User Agent Acl Test");
      client.cdnUpdateContainer(containerName, 54321, true, false);
      assertTrue(client.isCDNEnabled(containerName));
      info = client.getCDNContainerInfo(containerName);
      assertTrue(info.isEnabled());
      assertFalse(info.getRetainLogs());
      assertEquals(54321, info.getTtl());
      assertEquals(cdnUrl, info.getCdnURL());
//      assertEquals("Referrer Test", info.getReferrerACL());
//      assertEquals("User Agent Acl Test", info.getUserAgentACL());
     

    } catch (Exception e) {
View Full Code Here

TOP

Related Classes of com.rackspacecloud.client.cloudfiles.FilesCDNContainer

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.