You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@jclouds.apache.org by Ignasi Barrera <no...@github.com> on 2015/01/05 14:10:37 UTC
Re: [jclouds-labs-google] Added Project:setUsageExportBucket and
ProjectApiMockTest (#112)
> @@ -66,4 +67,14 @@ public void testDeleteItemFromMetadata() {
> assertEquals(project.commonInstanceMetadata().size(), initialMetadataSize);
> assertEquals(project.commonInstanceMetadata().fingerprint(), initialFingerprint);
> }
> +
> + @Test(groups = "live", dependsOnMethods = "getProject")
> + public void testSetUsageExportBucket() {
> + Operation o = api.project().setUsageExportBucket("test-bucket", "test-");
> + while (o.error().errors().isEmpty()) {
> + o = api.operations().get(o.selfLink());
> + }
Just to make sure I understand this test. Is its purpose to test that operation errors are reported properly? In other words, can we properly live test the `setUsageExportBucket` without having that loop?
---
Reply to this email directly or view it on GitHub:
https://github.com/jclouds/jclouds-labs-google/pull/112/files#r22459731