> +
> +      Payload payload = 
> newByteSourcePayload(ByteSource.wrap("swifty".getBytes()));
> +      payload.getContentMetadata().setExpires(expireAt);
> +
> +      for (String regionId : regions) {
> +         String etag = api.getObjectApiForRegionAndContainer(regionId, 
> containerName)
> +               .put(objectName, payload);
> +         assertNotNull(etag);
> +
> +         SwiftObject object = 
> api.getObjectApiForRegionAndContainer(regionId, 
> containerName).get(objectName);
> +         assertEquals(object.getName(), objectName);
> +         checkObject(object);
> +         assertEquals(toStringAndClose(object.getPayload().openStream()), 
> "swifty");
> +
> +         api.getObjectApiForRegionAndContainer(regionId, 
> containerName).delete(objectName);
> +      }

How, if at all, are we actually testing expiration here? From what I can 
understand, we're simply checking whether a call with "expires" set doesn't 
fail..?

---
Reply to this email directly or view it on GitHub:
https://github.com/jclouds/jclouds-labs-openstack/pull/118/files#r17510670

Reply via email to