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:25:18 GMT
> +    * 
> +    * @see org.jclouds.apis.BaseContextLiveTest#setupContext()
> +    */
> +   @Override
> +   @BeforeClass(groups = { "integration", "live" })
> +   public void setupContext() {
> +      super.setupContext();
> +
> +      final String tag = toTag(IMAGE_REPOSITORY, IMAGE_TAG_1);
> +      BuildOptions options = BuildOptions.Builder.tag(tag).verbose(false).nocache(false);
> +      InputStream buildImageStream;
> +      try {
> +         buildImageStream = api().getMiscApi().build(BaseDockerApiLiveTest.tarredDockerfile(),
options);
> +         consumeStreamSilently(buildImageStream);
> +      } catch (IOException e) {
> +         e.printStackTrace();

Should the exception be propagated instead, to avoid executing the tests?

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