From 5b7f6b9205aeb7dec0cb776dd68faca1cf1b3cb6 Mon Sep 17 00:00:00 2001 From: ghanshyam Date: Tue, 25 Jul 2017 00:33:58 +0000 Subject: [PATCH] Move object storage bulk_middleware_client to lib interface object storage bulk_middleware_client is stable now and good to be moved as stable library interface. Partially implements blueprint consistent-service-method-names Change-Id: I6b44fb9a692b947baadbe049b2f7d31e4ab51035 --- ...ject-storage-as-stable-interface-42014c7b43ecb254.yaml | 8 ++++++++ tempest/lib/services/object_storage/__init__.py | 0 .../services/object_storage/bulk_middleware_client.py | 0 tempest/services/object_storage/__init__.py | 4 ++-- tempest/tests/lib/services/object_storage/__init__.py | 0 .../object_storage/test_bulk_middleware_client.py | 2 +- 6 files changed, 11 insertions(+), 3 deletions(-) create mode 100644 releasenotes/notes/migrate-object-storage-as-stable-interface-42014c7b43ecb254.yaml create mode 100644 tempest/lib/services/object_storage/__init__.py rename tempest/{ => lib}/services/object_storage/bulk_middleware_client.py (100%) create mode 100644 tempest/tests/lib/services/object_storage/__init__.py rename tempest/tests/{ => lib}/services/object_storage/test_bulk_middleware_client.py (97%) diff --git a/releasenotes/notes/migrate-object-storage-as-stable-interface-42014c7b43ecb254.yaml b/releasenotes/notes/migrate-object-storage-as-stable-interface-42014c7b43ecb254.yaml new file mode 100644 index 0000000000..d38f562705 --- /dev/null +++ b/releasenotes/notes/migrate-object-storage-as-stable-interface-42014c7b43ecb254.yaml @@ -0,0 +1,8 @@ +--- +features: + - | + Define object storage service clients as libraries + Add new service clients to the library interface so the other projects can use these modules as stable libraries without + any maintenance changes. + + * bulk_middleware_client diff --git a/tempest/lib/services/object_storage/__init__.py b/tempest/lib/services/object_storage/__init__.py new file mode 100644 index 0000000000..e69de29bb2 diff --git a/tempest/services/object_storage/bulk_middleware_client.py b/tempest/lib/services/object_storage/bulk_middleware_client.py similarity index 100% rename from tempest/services/object_storage/bulk_middleware_client.py rename to tempest/lib/services/object_storage/bulk_middleware_client.py diff --git a/tempest/services/object_storage/__init__.py b/tempest/services/object_storage/__init__.py index 17385664b6..f272378f7b 100644 --- a/tempest/services/object_storage/__init__.py +++ b/tempest/services/object_storage/__init__.py @@ -12,9 +12,9 @@ # License for the specific language governing permissions and limitations under # the License. -from tempest.services.object_storage.account_client import AccountClient -from tempest.services.object_storage.bulk_middleware_client import \ +from tempest.lib.services.object_storage.bulk_middleware_client import \ BulkMiddlewareClient +from tempest.services.object_storage.account_client import AccountClient from tempest.services.object_storage.capabilities_client import \ CapabilitiesClient from tempest.services.object_storage.container_client import ContainerClient diff --git a/tempest/tests/lib/services/object_storage/__init__.py b/tempest/tests/lib/services/object_storage/__init__.py new file mode 100644 index 0000000000..e69de29bb2 diff --git a/tempest/tests/services/object_storage/test_bulk_middleware_client.py b/tempest/tests/lib/services/object_storage/test_bulk_middleware_client.py similarity index 97% rename from tempest/tests/services/object_storage/test_bulk_middleware_client.py rename to tempest/tests/lib/services/object_storage/test_bulk_middleware_client.py index 163b48e6f4..08028c367d 100644 --- a/tempest/tests/services/object_storage/test_bulk_middleware_client.py +++ b/tempest/tests/lib/services/object_storage/test_bulk_middleware_client.py @@ -12,7 +12,7 @@ # License for the specific language governing permissions and limitations # under the License. -from tempest.services.object_storage import bulk_middleware_client +from tempest.lib.services.object_storage import bulk_middleware_client from tempest.tests.lib import fake_auth_provider from tempest.tests.lib.services import base