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:38:06 GMT
>     public void testListImages() {
> -      assertNotNull(api().listImages());
> +      List<ImageSummary> listImages = api().listImages();
> +      assertNotNull(listImages);
> +
> +      ImageSummary taggedImage = Iterables.find(listImages, new Predicate<ImageSummary>()
{
> +         @Override
> +         public boolean apply(ImageSummary input) {
> +            return input.repoTags().contains("jclouds:testTag");
> +         }
> +      });
> +      assertNotNull(taggedImage);
>     }
>  
>     @Test(dependsOnMethods = "testListImages")

Use `alwaysRun = true` to remove the images even if the "listImages" test fails?

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