rm improper assert syntax

assert only raise AssertionError when runing python without '-O', so if
we except an Assertionerror in codes, just raise it instead of using
assert syntax instead of different result with or without '-O' flag

Change-Id: I8c1bc2c6849996f0d3f7a4b791671871d79dd939
Client V3 shouldn't inherit V2

Client V3 is a completely different implementation of the API, if we
want to intermix the V2 and V3 APIs then we don't need to version our
client at all.

Change-Id: I80579cd41df73ccfc6c8feb76843772829afac4e
no logging on cms failure

Don't log in the keystoneclient.common.cms as there are some errors
that are expected.  Instead, log in the middleware

bug 1189539

Change-Id: I1e80e2ab35e073d9b8d25fd16b31c64c34cd001d
Drop webob from auth_token.py

This came up as a packaging problem in Fedora. Now that Swift does
not need python-webob RPM, some sites install a proxy node without.
We add the proper webob dependency to the python-keystoneclient.
Still, in the face of parallel installs, and we end patching
setup.py and diverge from upstream, and we do not like it.

It may be better just stick to WSGI protocol by small amount of
hand-rolled code and drop WebOb altogether.

Note that we keep WebOb in the testing code. The fix is purely
about the stuff that runs inside a WSGI server. Therefore,
requirements.txt continues having no WebOb (apparently, was
forgotten before), but test-requirements.txt keeps WebOb in,
and this patch changes nothing.

Initial version of this patch produced an inexplicable drop in
testing coverage and Chmouel put his foot down on it. We were
unable to figure out why the drop happened. Most likely coverage
simply lied about the previous percentages and getting rid of
import webob permitted it a better analysis. So, we add some
unrelated tests to bump coverage percentages up.

Of course we add a targeted test for the new code too. For that
one to work, we change how set_middleware() treats its fake_http
argument.

This version also adds comments rather than docstrings, because
they need to source as context.

Change-Id: Iba33b11e77b9910211983aa725c69d3886e1c7a7
Merge "rm improper assert syntax"
Merge "Client V3 shouldn't inherit V2"
Add -u option in run_tests.sh

-u option used for update venv packages.

Fixes bug #1205551

Change-Id: I2ef6e11c556bd90154a286eada6d37750caf5e19
Reorganize url creation.

Make build_url extract used parameters from keyword arguments so they
are not sent as the body to create, or as query parameters.
Allow specifying a class level base_url that is used unless one is
specifically provided.
Break filtering function into a decorator as it seems the perfect
usecase and it prevents a dictionary copy.

Fixes: bug 1198772
Change-Id: I6d370ed504c300b9997199f351322e3083650c69
Merge "no logging on cms failure"
Correct mis-spell in comments

In tests/v3/utils.py, parameterize()

Fixes bug #1206895

Change-Id: I36e3d49209eb6896cb0e053bba9e4c966efea5db
Ec2Signer : Allow signature verification for older boto versions

Since the fix for bug #1197553, verification for older clients (which strip the
port when formatting the request) fails.

This conditionally reverts to the original behavior, by detecting the boto
version via the User-Agent header, the default behavior will be the new
behavior (which doesn't strip the port), but this will allow a less painful
transition for clients/distros to the new boto version.

Fixes bug #1205281

Change-Id: I54ac9c5ba91e697004f1346a8f2d685da488992a
flake8: fix alphabetical imports and enable H306

Change-Id: I0f4fcc9796e8529e7217dc24abe95660633cad33
Merge "Drop webob from auth_token.py"
Merge "Add -u option in run_tests.sh"
Merge "flake8: fix alphabetical imports and enable H306"
Merge "Ec2Signer : Allow signature verification for older boto versions"
Adds help in keystone_authtoken config opts

The keystone_authtoken config options defined in
keystoneclient/middleware/auth_token.py didn't have help strings.
Without help, we couldn't generate documented config files via
introspection.

Fixes Bug1159039

Change-Id: I6d805432edf65db8161d6a6f4916185c4df6bb90
auth_uri (public ep) should not default to auth_* values (admin ep)

Fixes bug 1207517 by logging a warning when auth_uri (which should point
to the public identity endpoint) falls back on auth_* values (which
should point to the admin identity endpoint).

Change-Id: I2b051ae10197206f6954672f22e5bff32e3f6c2a