Add name arguments to keystone command.

This patch adds name arguments to the following subcommands:
  * role-delete
  * role-get
  * service-delete
  * service-get
  * tenant-delete
  * tenant-get
  * tenant-update
  * user-delete
  * user-get
  * user-password-update
  * user-role-add
  * user-role-list
  * user-role-remove
  * user-update

Fixes bug 1100648

Change-Id: I73c08c0ba553a72ec57ff3a684a00be4ef1294a6
Remove useless import

Change-Id: I5925021c69883c4086e552389e987c7052ccb1cd
Signed-off-by: Julien Danjou <julien@danjou.info>
If you specify the --debug argument, it doesn't show the body of a POST request. The
body (string rep) is at 'data' in the kwargs dict. 'body' was deleted prior to this call.

Change-Id: Ieea3d11f5246ee785e41df3bc54ac61200808354
Fixes: bug #1104313
Fix how python 2.6 doesn't have assertDictEqual

Change-Id: I2e3a3dcc173bb5eae0b3e19f1c0eadc496a17e73
Implements token expiration handling

This implements handling of token expiration. Once the token is expired,
this will request automatically for a new one.

A special case is introduced if the user specified a token when the client
is initialized: this is the auth_token_from_user. In this case, we can't
know the expiration date, so we just assume it will never expire and don't
handle it ourself.

Change-Id: I3771ff5d669da015d4aa259de422c5d81aed3eb4
Signed-off-by: Julien Danjou <julien@danjou.info>
Mark password config options with secret

Config object supports masking values when writing out if the secret
flag is set on the option definition.  This change flags all
python-keystoneclient options containing a password.

Change-Id: I1ffc9727ab66c7acc6d4cf8e5870bb32f5e68b67
Update requests requirements

Bump the version requirements for requests so it does
not conflict with the version of requests required
for glance (unpinned).

Change-Id: I06479b8ceb04df749a6d7f7dc584892a688cd449
Signed-off-by: Chuck Short <chuck.short@canonical.com>
Treat HTTP code 400 and above as error.

Fixes bug 1116559.

Change-Id: I4b12176599686f7e545b63c8e54cf9da6a1f963e
Pin requests module more strictly.

requests.request() does not accept the keyword argument 'config'
(used on keystoneclient/client.py:339) after version 1.0.0.

Fixes bug #1116740

Change-Id: I0a778849ff44a76a2647aa46057fdb35401fae5f
Update .coveragerc

Set up proper source and omit options.

Change-Id: Ieb6e514849e6fc054ce563806243d29f4ff2075c
Implements: blueprint update-coveragerc
Fix incomplete sentence in help

`keystone help` only pulls a one line summary from docstrings, so this
summary needed to be condensed.

Change-Id: I9b08c6a8153101b1cc338955078d0d3b6a0aa02e
Use install_venv_common.py from oslo.

This syncs install_venv_common.py from oslo and reworks the
tools/install_venv.py script to use the new library.

Change-Id: Ia8c2674b4abed8de754e92ea795130cdb065a720
Merge "Treat HTTP code 400 and above as error."
Merge "Fix incomplete sentence in help"
sync README with "keystone help"

There are few new options and --no-cache was renamed to --os-cache in
commit d734821c99aade7cd4285a5fd51736c475707dcd

Change-Id: Ibbc7fab2033d8f037262b465b98d1713579adfc2
Allow requests up to 0.8 and greater

The requests module dropped all configuration with the 1.0.0 release.
There's no danger_mode and no 'verbose'' mode. The former
shouldn't be necessary anymore and the latter can be done by setting
a different log handler for the request.logging root logger.

Change-Id: I41bfaf2574f6d7fc21f86e0124ceae7df6481eee
Signed-off-by: Chuck Short <chuck.short@canonical.com>
Merge "Add name arguments to keystone command."
Fix debug with requests.

- From http://docs.python.org/2/library/functions.html#hasattr :
   hasattr(object, name) -- The arguments are an object and a string.
- Fixes bug 1124084.

Change-Id: I47283abff440abdf827598c2497519f3de510baf
Allow configure auth_token http connect timeout.

- Fixes bug 939613.

Change-Id: Ic8cfc36e02212eeb987e509893369c0a47d9209a
Added missing unit tests for shell.py

blueprint python-keystoneclient-unittests

Change-Id: I47a205c027251c5282522ea73ee79c937383dc94