archupsg03 commented on this pull request.
> +
+ awaitConsistency();
+
+ SwiftObject bigObject = getApi().getObjectApi(regionId,
containerName).get(name);
+ assertThat(bigObject.getETag().equals(etagOfEtags));
+
assertThat(bigObject.getPayload().getContentMetadata().getContentLength().equals(Long.valueOf(2
* 1024 * 1024)));
+ assertThat(bigObject.getMetadata().equals(ImmutableMap.of("myfoo",
"Bar")));
+
+ // segments are visible
+
assertThat(getApi().getContainerApi(regionId).get(containerName).getObjectCount().equals(Long.valueOf(3)));
+ }
+
+ protected void assertMegabyteAndETagMatches(String regionId, String
containerName, String name, String etag1s) {
+ SwiftObject object1s = getApi().getObjectApi(regionId,
containerName).get(name);
+ assertThat(object1s.getETag().equals(etag1s));
+
assertThat(object1s.getPayload().getContentMetadata().getContentLength().equals(Long.valueOf(1024
* 1024)));
Done
--
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/jclouds/jclouds/pull/1105#discussion_r118908231