> - CDNContainer cdnContainer = api.cdnApiInRegion(regionId).get(name);
> - assertNotNull(cdnContainer);
> + CDNContainer container = api.cdnApiInRegion(regionId).get(name);
> + assertCDNContainerNotNull(container);
> + assertTrue(container.isEnabled());
> + }
> + }
> +
> + public void testPurgeObject() throws Exception {
> + for (String regionId : regions) {
> + String objectName = "testPurge";
> + Payload payload = Payloads.newByteSourcePayload(ByteSource.wrap(new
> byte[] {1,2,3}));
> + ObjectApi objectApi = api.objectApiInRegionForContainer(regionId,
> name);
> +
> + // create a new object
> + assertNotNull(objectApi.replace(objectName, payload,
> ImmutableMap.<String, String>of()));
What is `replace` supposed to return? The old content? If we are trying to test
`replace`, verify the expected return value here? Otherwise, if this is just
part of the "test setup", remove the assertion?
---
Reply to this email directly or view it on GitHub:
https://github.com/jclouds/jclouds-labs-openstack/pull/85/files#r11156492