Updated from global requirements
This change introduces new requirements and fixes new checks by the `hacking` module. Change-Id: I3b98d5038c516b3115d7247fa0f4ea1189b33dff Co-Authored-By: Victoria Martinez de la Cruz <victoria@redhat.com>
This commit is contained in:
parent
e5b14c463a
commit
8a81c44f14
@ -19,7 +19,9 @@ URL = 'http://localhost:8888'
|
||||
|
||||
|
||||
def create_post_delete(queue_name, messages):
|
||||
"""Creates a queue, posts messages to it and finally deletes it with
|
||||
"""Auth example
|
||||
|
||||
Creates a queue, posts messages to it and finally deletes it with
|
||||
keystone auth strategy enabled on Zaqar server side.
|
||||
|
||||
:params queue_name: The name of the queue
|
||||
|
@ -20,7 +20,9 @@ URL = 'http://localhost:8888'
|
||||
|
||||
|
||||
def create_post_delete(queue_name, messages):
|
||||
"""Creates a queue, posts messages to it
|
||||
"""Simple example
|
||||
|
||||
Creates a queue, posts messages to it
|
||||
and finally deletes it.
|
||||
|
||||
:params queue_name: The name of the queue
|
||||
|
@ -1,13 +1,13 @@
|
||||
# The order of packages is significant, because pip processes them in the order
|
||||
# of appearance. Changing the order has an impact on the overall integration
|
||||
# process, which may cause wedges in the gate later.
|
||||
pbr>=0.6,!=0.7,<1.0
|
||||
requests>=2.2.0,!=2.4.0
|
||||
six>=1.7.0
|
||||
stevedore>=1.1.0 # Apache-2.0
|
||||
jsonschema>=2.0.0,<3.0.0
|
||||
pbr<2.0,>=1.6
|
||||
requests>=2.5.2
|
||||
six>=1.9.0
|
||||
stevedore>=1.5.0 # Apache-2.0
|
||||
jsonschema!=2.5.0,<3.0.0,>=2.0.0
|
||||
|
||||
# Oslo Packages
|
||||
oslo.i18n>=1.0.0 # Apache-2.0
|
||||
oslo.i18n>=1.5.0 # Apache-2.0
|
||||
|
||||
python-keystoneclient>=0.11.1
|
||||
python-keystoneclient>=1.6.0
|
||||
|
3
setup.py
3
setup.py
@ -1,4 +1,3 @@
|
||||
#!/usr/bin/env python
|
||||
# Copyright (c) 2013 Hewlett-Packard Development Company, L.P.
|
||||
#
|
||||
# Licensed under the Apache License, Version 2.0 (the "License");
|
||||
@ -26,5 +25,5 @@ except ImportError:
|
||||
pass
|
||||
|
||||
setuptools.setup(
|
||||
setup_requires=['pbr'],
|
||||
setup_requires=['pbr>=1.3'],
|
||||
pbr=True)
|
||||
|
@ -2,27 +2,27 @@
|
||||
# of appearance. Changing the order has an impact on the overall integration
|
||||
# process, which may cause wedges in the gate later.
|
||||
# Hacking already pins down pep8, pyflakes and flake8
|
||||
hacking>=0.8.0,<0.9
|
||||
hacking>=0.10.2,<0.11
|
||||
|
||||
# Unit testing
|
||||
discover
|
||||
fixtures>=0.3.14
|
||||
mock>=1.0
|
||||
fixtures>=1.3.1
|
||||
mock>=1.2
|
||||
python-subunit>=0.0.18
|
||||
testrepository>=0.0.18
|
||||
testtools>=0.9.36,!=1.2.0,!=1.4.0
|
||||
testtools>=1.4.0
|
||||
|
||||
# Test runner
|
||||
nose
|
||||
nose-exclude
|
||||
openstack.nose_plugin>=0.7
|
||||
openstack.nose-plugin>=0.7
|
||||
|
||||
# Metrics and style
|
||||
coverage>=3.6
|
||||
|
||||
ddt>=0.4.0
|
||||
ddt>=0.7.0
|
||||
|
||||
# Documentation
|
||||
sphinx>=1.1.2,!=1.2.0,!=1.3b1,<1.3
|
||||
oslosphinx>=2.2.0 # Apache-2.0
|
||||
openstack-doc-tools>=0.20
|
||||
sphinx!=1.2.0,!=1.3b1,<1.3,>=1.1.2
|
||||
oslosphinx>=2.5.0 # Apache-2.0
|
||||
openstack-doc-tools>=0.23
|
||||
|
@ -1,14 +0,0 @@
|
||||
# Copyright (c) 2013 Red Hat, Inc.
|
||||
#
|
||||
# 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.
|
@ -1,14 +0,0 @@
|
||||
# Copyright (c) 2013 Rackspace, Inc.
|
||||
#
|
||||
# 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.
|
@ -1,14 +0,0 @@
|
||||
# Copyright (c) 2013 Rackspace, Inc.
|
||||
#
|
||||
# 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.
|
@ -1,14 +0,0 @@
|
||||
# Copyright (c) 2013 Rackspace, Inc.
|
||||
#
|
||||
# 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.
|
@ -1,14 +0,0 @@
|
||||
# Copyright (c) 2013 Rackspace, Inc.
|
||||
#
|
||||
# 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.
|
@ -1,14 +0,0 @@
|
||||
# Copyright (c) 2013 Rackspace, Inc.
|
||||
#
|
||||
# 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.
|
@ -1,14 +0,0 @@
|
||||
# Copyright (c) 2013 Rackspace, Inc.
|
||||
#
|
||||
# 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.
|
@ -33,7 +33,7 @@ class TestMessageIterator(base.QueuesTestBase):
|
||||
'ttl': 800,
|
||||
'age': 790,
|
||||
'body': {'event': 'ActivateAccount',
|
||||
'mode': 'active'}
|
||||
'mode': 'active'}
|
||||
}]
|
||||
}
|
||||
|
||||
@ -51,7 +51,7 @@ class TestMessageIterator(base.QueuesTestBase):
|
||||
'ttl': 800,
|
||||
'age': 790,
|
||||
'body': {'event': 'ActivateAccount',
|
||||
'mode': 'active'}
|
||||
'mode': 'active'}
|
||||
}]
|
||||
}
|
||||
|
||||
@ -82,7 +82,7 @@ class TestMessageIterator(base.QueuesTestBase):
|
||||
'ttl': 800,
|
||||
'age': 790,
|
||||
'body': {'event': 'ActivateAccount',
|
||||
'mode': 'active'}
|
||||
'mode': 'active'}
|
||||
}]
|
||||
}
|
||||
|
||||
|
@ -55,8 +55,7 @@ class KeystoneAuth(base.AuthBackend):
|
||||
return client.service_catalog.url_for(**extra)
|
||||
|
||||
def authenticate(self, api_version, request):
|
||||
"""Get an authtenticated client, based on the credentials
|
||||
in the keyword args.
|
||||
"""Get an authtenticated client using credentials in the keyword args.
|
||||
|
||||
:param api_version: the API version to use ('1' or '2')
|
||||
:param request: The request spec instance to modify with
|
||||
|
@ -19,6 +19,7 @@ from zaqarclient.queues.v1 import core
|
||||
|
||||
class Message(object):
|
||||
"""A handler for Zaqar server Message resources.
|
||||
|
||||
Attributes are only downloaded once - at creation time.
|
||||
"""
|
||||
def __init__(self, queue, ttl, age, body, href=None, id=None,
|
||||
|
@ -1,14 +0,0 @@
|
||||
# Copyright (c) 2013 Rackspace, Inc.
|
||||
#
|
||||
# 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.
|
@ -1,14 +0,0 @@
|
||||
# Copyright (c) 2013 Rackspace, Inc.
|
||||
#
|
||||
# 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.
|
@ -53,24 +53,21 @@ class UnauthorizedError(TransportError):
|
||||
|
||||
|
||||
class ForbiddenError(TransportError):
|
||||
"""Indicates that a request is forbidden
|
||||
to access the particular resource
|
||||
"""Indicates that a request is forbidden to access the particular resource
|
||||
|
||||
This error maps to HTTP's 403
|
||||
"""
|
||||
|
||||
|
||||
class InternalServerError(TransportError):
|
||||
"""Indicates that the server encountered
|
||||
an unexpected situation
|
||||
"""Indicates that the server encountered an unexpected situation
|
||||
|
||||
This error maps to HTTP's 500
|
||||
"""
|
||||
|
||||
|
||||
class ServiceUnavailableError(TransportError):
|
||||
"""Indicates that the server was unable
|
||||
to service the request
|
||||
"""Indicates that the server was unable to service the request
|
||||
|
||||
This error maps to HTTP's 503
|
||||
"""
|
||||
|
Loading…
Reference in New Issue
Block a user