jclouds-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Adrian Cole <notificati...@github.com>
Subject Re: [jclouds-labs-google] Loadbalancer Live Test Improvements (#71)
Date Fri, 31 Oct 2014 22:24:45 GMT
> +      assertNotNull(targetPool);
> +      assertEquals(targetPool.getName(), THIRD_TARGETPOOL_NAME);
> +      assertEquals(targetPool.getBackupPool(), fromNullable(null));
> +
> +      URI selfLink = api().get(TARGETPOOL_NAME).getSelfLink();
> +
> +      Float failoverRatio = Float.valueOf((float) 0.5);
> +      assertRegionOperationDoneSucessfully(api().setBackup(THIRD_TARGETPOOL_NAME, failoverRatio,
selfLink), TIME_WAIT);
> +
> +      TargetPool targetPoolUpdated = api().get(THIRD_TARGETPOOL_NAME);
> +      assertNotNull(targetPoolUpdated);
> +      assertEquals(targetPoolUpdated.getName(), THIRD_TARGETPOOL_NAME);
> +      assertEquals(targetPoolUpdated.getBackupPool(), fromNullable(selfLink));
> +   }
> +
> +   @Test(groups = "live", dependsOnMethods = {"testListTargetPool",

hmmm :)

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