> + 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);
> + }
> + }
See comments about this test in #118
---
Reply to this email directly or view it on GitHub:
https://github.com/jclouds/jclouds-labs-openstack/pull/142/files#r17510682