> +
> +import org.jclouds.ContextBuilder;
> +import org.jclouds.glacier.domain.PaginatedVaultCollection;
> +import org.jclouds.glacier.domain.VaultMetadata;
> +import org.testng.annotations.Test;
> +
> +/**
> +*
> +* @author Roman Coedo
> +*/
> +@Test(groups = { "integration", "live" })
> +public class GlacierClientLiveTest {
> +
> + static GlacierClient getGlacierClient() {
> + return ContextBuilder.newBuilder("glacier").credentials("ADDME",
> "ADDME").buildApi(GlacierClient.class);
> + }
This test should extend the
[BaseApiLiveTest](https://github.com/jclouds/jclouds/blob/master/core/src/test/java/org/jclouds/apis/BaseApiLiveTest.java).
This way the glacier client will be automatically created using the
credentials and configuration passed as system properties, and you'll have it
accessible in the `api` protected variable.
---
Reply to this email directly or view it on GitHub:
https://github.com/jclouds/jclouds-labs-aws/pull/4/files#r12843782