swift3/swift3/test/unit/exceptions.py
Kota Tsuyuzaki 7fd58f9bfd Draft: s3acl decorator
Current swift3 has a couple of ways for acl handling.
To simplify test code, this introduces s3acl decorator
which suggests which way the test method will check.

In default, swift3 do the native acl testing.
If needed, we can add the s3acl decorater and an argument
like as follows:

No decorator -> test only native acl
@s3acl -> test both of native acl and s3acl
@s3acl(s3acl_only=True) -> test only s3acl

This is still a draft version and most of tests should
be fixed.

TODO:
- keeping sysmeta for s3acl when the test override
  backend swift by register.

Change-Id: I17a423b5c655a670a4304d47ff927df28ac0a37f
2014-12-08 22:11:24 -08:00

19 lines
637 B
Python

# Copyright (c) 2013 OpenStack Foundation
#
# 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.
class NotMethodException(Exception):
pass