Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Obs s3 container #367

Open
wants to merge 23 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .stestr.blacklist.functional
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ otcextensions.tests.functional.sdk.dds.v3.test_instance*
otcextensions.tests.functional.sdk.elb*
otcextensions.tests.functional.sdk.vlb*
otcextensions.tests.functional.sdk.obs*
otcextensions.tests.functional.sdk.s3*
otcextensions.tests.functional.sdk.cts.v1.test_tracker*
otcextensions.tests.functional.sdk.auto_scaling.v1.test_group*
otcextensions.tests.functional.sdk.sfsturbo*
Expand Down
5 changes: 5 additions & 0 deletions otcextensions/sdk/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -205,6 +205,11 @@
'service_type': 'swr',
'endpoint_service_type': 'swrv2'
},
's3': {
'service_type': 's3',
'endpoint_service_type': 'object',
'set_endpoint_override': True
},
'tms': {
'service_type': 'tms'
},
Expand Down
4 changes: 2 additions & 2 deletions otcextensions/sdk/obs/v1/container.py
Original file line number Diff line number Diff line change
Expand Up @@ -134,8 +134,8 @@ def list(cls, session, paginated=False,

return

def create(self, session, prepend_key=True,
endpoint_override=None, headers=None, requests_auth=None):
def create(self, session, prepend_key=True, endpoint_override=None,
headers=None, requests_auth=None):

if not self.allow_create:
raise exceptions.MethodNotSupported(self, "create")
Expand Down
Empty file.
23 changes: 23 additions & 0 deletions otcextensions/sdk/s3/s3_service.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
# Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. You may obtain
# a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
# License for the specific language governing permissions and limitations
# under the License.

from openstack import service_description

from otcextensions.sdk.s3.v1 import _proxy as _proxy_v1


class S3Service(service_description.ServiceDescription):
"""The S3 service."""

supported_versions = {
'1': _proxy_v1.Proxy
}
Empty file.
Loading