Behavior tempurl constant change

* removed two unused constants from the behaviors.
* removed VALID_TEMPURL_KEY from behaviors.
* added BASE_TEMPURL_KEY to Constants

Change-Id: I06462cecc6a5a2dc6a2362c53b965080a87947f1
This commit is contained in:
Carlos 'Legionarius' Martinez 2016-02-23 15:59:44 -06:00
parent f3c212fe19
commit ff4d69a523
2 changed files with 2 additions and 6 deletions

View File

@ -43,15 +43,9 @@ class ObjectStorageAPIBehaviorException(Exception):
class ObjectStorageAPI_Behaviors(BaseBehavior):
HEADERS_AUTH_TOKEN = 'X-Auth-Token'
PATH_TYPES_ACCOUNT = 'account'
PATH_TYPES_CONTAINER = 'container'
PATH_TYPES_OBJECT = 'object'
ERROR_INVALID_PATH = 'path must be supplied as a string.'
ERROR_INVALID_METHOD = 'method must be supplied as a string.'
VALID_TEMPURL_KEY = 'qe-tempurl-key'
def __init__(self, client=None, config=None):
super(ObjectStorageAPI_Behaviors, self).__init__()
self.client = client

View File

@ -23,3 +23,5 @@ class Constants(object):
VALID_OBJECT_DATA = 'object data.'
VALID_OBJECT_NAME_WITH_UNICODE = u'object_{0}'.format(
unicode(u'\u262D\u2622')).encode('utf-8')
BASE_TEMPURL_KEY = 'qe-tempurl-key'