Scenario: object_storage_basic_ops: move and update test description
The test description should come with the test case definition, not with the class definition. So move the test description down a bit. Change-Id: I402acaa957a123e397e8003945588db5b788089f
This commit is contained in:
@@ -18,23 +18,21 @@ from tempest import test
|
||||
|
||||
|
||||
class TestObjectStorageBasicOps(manager.ObjectStorageScenarioTest):
|
||||
"""Test swift basic ops.
|
||||
|
||||
* get swift stat.
|
||||
* create container.
|
||||
* upload a file to the created container.
|
||||
* list container's objects and assure that the uploaded file is present.
|
||||
* download the object and check the content
|
||||
* delete object from container.
|
||||
* list container's objects and assure that the deleted file is gone.
|
||||
* delete a container.
|
||||
* list containers and assure that the deleted container is gone.
|
||||
* change ACL of the container and make sure it works successfully
|
||||
"""
|
||||
|
||||
@test.idempotent_id('b920faf1-7b8a-4657-b9fe-9c4512bfb381')
|
||||
@test.services('object_storage')
|
||||
def test_swift_basic_ops(self):
|
||||
"""Test swift basic ops.
|
||||
|
||||
* get swift stat.
|
||||
* create container.
|
||||
* upload a file to the created container.
|
||||
* list container's objects and assure that the uploaded file is
|
||||
present.
|
||||
* download the object and check the content
|
||||
* delete object from container.
|
||||
* list container's objects and assure that the deleted file is gone.
|
||||
* delete a container.
|
||||
"""
|
||||
self.get_swift_stat()
|
||||
container_name = self.create_container()
|
||||
obj_name, obj_data = self.upload_object_to_container(container_name)
|
||||
|
||||
Reference in New Issue
Block a user