Package org.jclouds.glacier.domain

Examples of org.jclouds.glacier.domain.VaultMetadata


      assertThat(inventoryRetrievalJob).isNotNull();
   }

   @Test(groups = {"live", "livelong", "longtest"}, dependsOnMethods = {"testInitiateJob"})
   public void testDescribeJob() {
      VaultMetadata vaultMetadata = api.describeVault(VAULT_NAME);

      JobMetadata archiveRetrievalMetadata = api.describeJob(VAULT_NAME, archiveRetrievalJob);
      assertThat(archiveRetrievalMetadata.getArchiveId()).isEqualTo(archiveId);
      assertThat(archiveRetrievalMetadata.getJobId()).isEqualTo(archiveRetrievalJob);
      assertThat(archiveRetrievalMetadata.getVaultArn()).isEqualTo(vaultMetadata.getVaultARN());

      JobMetadata inventoryRetrievalMetadata = api.describeJob(VAULT_NAME, inventoryRetrievalJob);
      assertThat(inventoryRetrievalMetadata.getJobId()).isEqualTo(inventoryRetrievalJob);
      assertThat(inventoryRetrievalMetadata.getVaultArn()).isEqualTo(vaultMetadata.getVaultARN());
   }
View Full Code Here


      mr.addHeader(HttpHeaders.CONTENT_TYPE, MediaType.JSON_UTF_8);
      mr.setBody(getResponseBody("/json/describeVaultResponseBody.json"));
      mr.addHeader(HttpHeaders.CONTENT_LENGTH, mr.getBody().length);
      server.enqueue(mr);

      VaultMetadata vault = client.describeVault(VAULT_NAME);
      assertThat(vault.getVaultName()).isEqualTo(VAULT_NAME);
      assertThat(vault.getVaultARN()).isEqualTo(VAULT_ARN);
      assertThat(vault.getSizeInBytes()).isEqualTo(78088912);
      assertThat(vault.getNumberOfArchives()).isEqualTo(192);

      assertEquals(server.takeRequest().getRequestLine(), "GET /-/vaults/" + VAULT_NAME + " " + HTTP);
   }
View Full Code Here

TOP

Related Classes of org.jclouds.glacier.domain.VaultMetadata

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.