test_azure_object_store_service.py 1.1 KB

12345678910111213141516171819202122232425262728293031323334
  1. import json
  2. import unittest
  3. import uuid
  4. from cloudbridge.cloud.interfaces import TestMockHelperMixin
  5. from test.helpers import ProviderTestBase
  6. import test.helpers as helpers
  7. class AzureObjectStoreServiceTestCase(ProviderTestBase):
  8. def __init__(self, methodName, provider):
  9. super(AzureObjectStoreServiceTestCase, self).__init__(
  10. methodName=methodName, provider=provider)
  11. @helpers.skipIfNoService(['object_store'])
  12. def test_azure_bucket_create(self):
  13. container = self.provider.object_store.create("container3")
  14. print(container)
  15. self.assertTrue(
  16. container == None,
  17. "Object create returned value should be None")
  18. @helpers.skipIfNoService(['object_store'])
  19. def test_azure_bucket_find(self):
  20. container = self.provider.object_store.find("container1")
  21. print(str(container))
  22. self.assertTrue(
  23. str(container) == "[<CB-AzureBucket: container1>]",
  24. "Object find returned value should be container1")
  25. @helpers.skipIfNoService(['object_store'])
  26. def test_azure_bucket_get(self):
  27. pass