Extracting common code to private method

Created a private method to build URL queries.

Change-Id: Iaa480443e34073fa39d13d2452cd13c267a2bdd5
Log token with sha1

By logging the sha1 hash of the token, it can be tracked through
different services.

Closes-bug: #1329301
Change-Id: I9c338f6a418ab8dd34dbaaf918b0ea6e9cbe79d7
Explicit complaint about old OpenSSL when testing

Running the tests with an old version of OpenSSL
results in many tests breaking without any hints
of the real cause. This handles that explictly,
stopping execution whenever the version is older
than 1.0 and exiting with an informative message.

Co-Authored-By: Rodrigo Duarte Sousa <rodrigods@lsd.ufcg.edu.br>
Closes-Bug: 1225084

Change-Id: I55e151d3fb4ddbe5ee4bf64bfdc597b4da73f6bb
Merge "Extracting common code to private method"
Merge "Log token with sha1"
Correct typos in using-sessions

Fixed typos in using-sessions.

Change-Id: Id931bfdb8eb8bf214ca538673e727c6bf1e06280
Doc cleanup, make concepts links

Rather than just mention the concepts, make each reference a link to
the concept's representation in the API.

Change-Id: I4dadca0395784eb43e5bbb3cfd65c56c8f56ed38
Remove warning about management token

Because keystoneclient tries to figure out a management_url in all
contexts, it means that any end-user who uses any python-*client from
OpenStack that is using python-keystoneclient will always get a warning
about not being able to get a management token. This is, however, not
something that they need warning about, since there is no expectation
they'll have one. It's distressing to see it as part of normal
operation.

So just remove the warning.

Change-Id: Ia103a53c09c00fc09cef5fb24be546fc1da0684a
Use oslo.utils and oslo.serialization

Left timeutils and strutils in openstack/common since they are used in
openstack/common/apiclient and memorycache.

Change-Id: Idb5f09c159d907dfba84cd1f7501f650318af7d9
Docstrings should have :returns: everywhere.

Some of the docstrings have ``:return:`` instead of ``:returns:``
keyword. This patch fixes that and make it consistent.

Change-Id: I4321a63798ab9e2abdf0bbd716bf2b995be22ba3
Actually test interactive password prompt

* keystoneclient/tests/v2_0/test_shell.py
(ShellTests.test_user_create_password_prompt): Remove the password
from the calling environment and fake out the check for an
interactive terminal session so that the code which implements
password prompting will actually be exercised.

Change-Id: I46f45553995316c7d006a83897413d57e127e48c
Merge "Use oslo.utils and oslo.serialization"
Merge "Actually test interactive password prompt"
Merge "Explicit complaint about old OpenSSL when testing"
Fix mappings.Mapping docstring

Rules examples in ``create`` and ``update`` methods should be list of
rules, as this is what should be passed as an argument.

Change-Id: Ibebc28aa0697879b00437c5efe31e1c0d7c4c29d
Merge "Fix mappings.Mapping docstring"
set close_fds=True in Popen

The current way of using Popen does not close pipes properly,
and therefore long-running keystone processes, which depends on
keystoneclient.common.cms for data sigining, eventually hit
open file limit and stop working. Passing close_fds=True seems
to have solved the problem.

Change-Id: Ife452ab6843c1af5eb39debb8db453e45f78cba9
Closes-Bug: 1382906
Updated from global requirements

Change-Id: Ib34efa77d08998f2c8ee5902623da990262da0e0
Use oslo_debug_helper and remove our own version

With the latest version of oslotest, we can now take advantage
of a common oslo_debug_helper script.
We can now remove our own homebrewed version, minor changes to
tox.ini were needed.

Change-Id: I907f7203aefedc9b33c3dfbfecc9793e273a4a8f
Merge "set close_fds=True in Popen"