Service client modules in object-storage __init__
Import the object-storage service client classes in the __init__ of the
object-storage module, and define __all__, so that service client classes
may be accessed by importing the object-storage module only.
Change-Id: Ie0d13548d12e0ace4bb611470849d7ddcb23cbcb
Partially-implements: bp client-manager-refactor
diff --git a/tempest/clients.py b/tempest/clients.py
index a5a3b19..2398d3e 100644
--- a/tempest/clients.py
+++ b/tempest/clients.py
@@ -35,9 +35,7 @@
DatabaseVersionsClient
from tempest.services import identity
from tempest.services import image
-from tempest.services.object_storage.account_client import AccountClient
-from tempest.services.object_storage.container_client import ContainerClient
-from tempest.services.object_storage.object_client import ObjectClient
+from tempest.services import object_storage
from tempest.services.orchestration.json.orchestration_client import \
OrchestrationClient
from tempest.services import volume
@@ -413,6 +411,9 @@
}
params.update(self.default_params_with_timeout_values)
- self.account_client = AccountClient(self.auth_provider, **params)
- self.container_client = ContainerClient(self.auth_provider, **params)
- self.object_client = ObjectClient(self.auth_provider, **params)
+ self.account_client = object_storage.AccountClient(self.auth_provider,
+ **params)
+ self.container_client = object_storage.ContainerClient(
+ self.auth_provider, **params)
+ self.object_client = object_storage.ObjectClient(self.auth_provider,
+ **params)