Allow keystoneclient to work with older keystone installs

Older keystone installs may return 501 for GET / instead of 300
like today. We should be able to assume that if 501 is returned the
server will support v2.0 only.

Fixes bug 1159911

Change-Id: If264840d8678a490264f1bdb62f1b51c362619e1
Restrict prettytable to >=0.6,<0.8.

Match the openstack/requirements version of prettytable in pip-requires
to avoid version conflicts.

Change-Id: I78f3c6ef9a9a8d35939eb100827e429c12a0a60d
Convert requests.ConnectionError to ClientException

Fixes bug 1163678

Change-Id: I16201eda29a56e3c1e6008989260425ddc124ea6
Fix v3 with UUID and memcache expiring.

- Regenerate tokens to change expires in expires_at.

Change-Id: Iaa62dca50d34a228e4850b59d263b807c5ee3549
adding notes about dealing with exceptions in the client

Change-Id: I661b10414e0281bc695236bb32f985b0ef5b7600
Merge "Restrict prettytable to >=0.6,<0.8."
Ec2Signer: Initial support for v4 signature verification

Adds initial support for verifying AWS v4 signatures, tested with
the latest boto trunk (which now uses v4 signatures by default)

Change-Id: Id163363e259cf08aa251a7a00ff4293b742cbef6
blueprint: ec2signer-v4signatures
modify mistake in comment

init should be v3.0 rather than 2.0 in keystoneclient/v3/client.py

Change-Id: I54bcbaed38edcc9c0fb0a0138c1ee38492fd933d
Pass json object when invoking exception handler.

Fixes bug 1154753.

Change-Id: I6ca7c758d42e8586c8adf2529ce5362108a57a56
Merge "Convert requests.ConnectionError to ClientException"
Merge "Pass json object when invoking exception handler."
Use TokenManager to get token

Instead of implementing token retrieval twice, let's use the code provided
by the TokenManger to get a token in raw format from Keystone.

Change-Id: I769be118ee137580cabd5cabcf7843e7afe1e456
Signed-off-by: Julien Danjou <julien@danjou.info>
Remove duplicate test definitions

A few functions were duplicate, apparently merge errors.
Remove them.

Change-Id: Ifa23eb1fe5a5782101491be6b90ee9bed1e41b1b
Restore compatibility with PrettyTable < 0.7.2

PrettyTable 0.7.2 defaults to print a table even if
the resultset is empty. Restore previous behavior
to be in line with older prettytable releases.

Change-Id: Idd1d0c2c2f41966076517cbc8819ba9a5e097306
Revert "Use TokenManager to get token"

This reverts commit 22228f526d6ea08b7006be1287afe959b93c23db which appears to be breaking the keystone gating
Merge "adding notes about dealing with exceptions in the client"
Refactor v3 API to support filtering

Fixes: bug #1175356

Future implementations of keystone API v3 will support server-side
filtering using key/value attributes. See additional details:
https://github.com/openstack/identity-api/blob/master/openstack-identity-api/src/markdown/identity-api-v3.md#list-entities-filtered-by-attribute

To support this functionality **kwargs need to be passed from the
v3 API classes to keystoneclient.base.CrudManager.list.

This is not fully implemented server-side for all attributes so it's difficult to
document exactly which attributes will work. An example of a working attribute is:
keystone.users.list(name="someone")

Change-Id: I148093fbe37700f890ed44148aa3f63f34ee5ff5
Added Conflict Exception to the exception code map

The Conflict Exception is added for HTTP error code 409.
However this exception is never raised as this class is not added to
the error_code map and always raises the ClientException whenever a
409 code is returned.

Fixes bug #1168826

Change-Id: I7045eae33533ff603f4aab61ea988264b46f0d09
Securely create signing_dir (bug 1174608)

Also verifies the security of an existing signing_dir.

Change-Id: I0685b4274a94ad3974a2b2a7ab3f45830d3934bb
Merge "Remove duplicate test definitions"