> + assertNodeAvailable(currentServer);
> + currentImage = imageApi().createImage(CreateImage.builder()
> + .name("jcloudsimage")
> + .numImages(1)
> + .frequency(Types.ImageFrequency.WEEKLY)
> + .serverId(currentServer.id())
> + .build());
> + }
> +
> + @Test
> + public void testList() {
> + images = imageApi().list();
> +
> + assertNotNull(images);
> + assertFalse(images.isEmpty());
> + Assert.assertTrue(images.size() > 0);
Better assert that the image we created exists, to make tests more robust.
---
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/jclouds/jclouds-labs/pull/299/files/16efc99645240d8683449a3f2f77254ad0e91a1b#r70531543