jclouds-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ignasi Barrera <notificati...@github.com>
Subject Re: [jclouds-labs] [JCLOUDS-1010] use a lightweight image as a base for Docker build test (#208)
Date Wed, 21 Oct 2015 09:26:43 GMT
> +      try {
> +         buildImageStream = api().getMiscApi().build(BaseDockerApiLiveTest.tarredDockerfile(),
options);
> +         consumeStreamSilently(buildImageStream);
> +      } catch (IOException e) {
> +         e.printStackTrace();
> +      }
> +      image = api().getImageApi().inspectImage(tag);
> +      api().getImageApi().tagImage(image.id(), IMAGE_REPOSITORY, IMAGE_TAG_2, true);
> +   }
> +
> +   /**
> +    * After the test remove created image (with all tags).
> +    * 
> +    * @see #setupContext()
> +    */
> +   @AfterClass

Use `@AfterClass(alwaysRun = true)` to make sure the cleanup is executed even if some tests
fail.

---
Reply to this email directly or view it on GitHub:
https://github.com/jclouds/jclouds-labs/pull/208/files#r42601236
Mime
View raw message