Test to upload object in segments and download it
Adds test case to "test_object_services.py" so as to check the
upload segmented objects support into a container and download
those segments into a collected data. And also a method
"create_object_segments" in object_client.py
Change-Id: I798fe73509f7504fc5fe4aa7c7c3e37799cbfe6e
implements: blueprint add-some-functional-swift-tests
diff --git a/tempest/services/object_storage/object_client.py b/tempest/services/object_storage/object_client.py
index 2256170..056dcec 100644
--- a/tempest/services/object_storage/object_client.py
+++ b/tempest/services/object_storage/object_client.py
@@ -138,6 +138,11 @@
sig, expires)
resp, body = self.get(url)
+
+ def create_object_segments(self, container, object_name, segment, data):
+ """Creates object segments."""
+ url = "{0}/{1}/{2}".format(container, object_name, segment)
+ resp, body = self.put(url, data, self.headers)
return resp, body