Package org.jclouds.openstack.swift.options

Examples of org.jclouds.openstack.swift.options.CreateContainerOptions$Builder


      assertEquals(ImmutableList.of(".r:*,.rlistings"),
               options.buildRequestHeaders().get("X-Container-Read"));
   }

   public void testMetadata() {
      CreateContainerOptions options = new CreateContainerOptions().withMetadata(ImmutableMap
               .of("test", "foo"));
      assertEquals(ImmutableList.of("foo"), options.buildRequestHeaders().get(
               SwiftHeaders.CONTAINER_METADATA_PREFIX + "test"));
   }
View Full Code Here


      assertEquals(ImmutableList.of("foo"), options.buildRequestHeaders().get(
               SwiftHeaders.CONTAINER_METADATA_PREFIX + "test"));
   }

   public void testMetadataAlreadyPrefixed() {
      CreateContainerOptions options = new CreateContainerOptions().withMetadata(ImmutableMap
               .of(SwiftHeaders.CONTAINER_METADATA_PREFIX + "test", "foo"));
      assertEquals(ImmutableList.of("foo"), options.buildRequestHeaders().get(
          SwiftHeaders.CONTAINER_METADATA_PREFIX + "test"));
   }
View Full Code Here

      assertEquals(ImmutableList.of("foo"), options.buildRequestHeaders().get(
          SwiftHeaders.CONTAINER_METADATA_PREFIX + "test"));
   }

   public void testMetadataStatic() {
      CreateContainerOptions options = CreateContainerOptions.Builder
               .withMetadata(ImmutableMap.of("test", "foo"));
      assertEquals(ImmutableList.of("foo"), options.buildRequestHeaders().get(
          SwiftHeaders.CONTAINER_METADATA_PREFIX + "test"));
   }
View Full Code Here

   @Test(groups = "live")
   public void testCreateDeleteContainerMetadata() throws InterruptedException {
      CommonSwiftClient swift = view.utils().injector().getInstance(CommonSwiftClient.class);

      String containerName = getContainerName();
      CreateContainerOptions options = CreateContainerOptions.Builder
         .withPublicAccess()
         .withMetadata(ImmutableMap.<String, String> of(
            "key1", "value1",
            "key2", "value2",
            "key3", "value3"));
View Full Code Here

   @Test(groups = "live")
   public void testCreateDeleteContainerMetadata() throws InterruptedException {
      CommonSwiftClient swift = view.utils().injector().getInstance(CommonSwiftClient.class);

      CreateContainerOptions options = CreateContainerOptions.Builder
         .withPublicAccess()
         .withMetadata(ImmutableMap.<String, String> of(
            "key1", "value1",
            "key2", "value2",
            "key3", "value3"));
View Full Code Here

TOP

Related Classes of org.jclouds.openstack.swift.options.CreateContainerOptions$Builder

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.