Updates .gitignore

To ignore swap files from getting into repository
currently the implemented ignore is *.swp
however vim adds more swap files if these files exists,
so improving this with *.sw?

Change-Id: Iff581457cabe936b8b285142caff92fcc849f04a
Closes-Bug: #1255876
Use assertIn where appropriate

Change-Id: I641f1d840f276b65ae1449da3705a248e4592485
Use testresources for example files

The example files were loaded at import time rather than used as
a test fixture.

Change-Id: I3c1ac4db4b269725bf83904c1568a86b45eb7e55
Properly handle Regions in keystoneclient

Region name is taken as a parameter but is ignored in all communication
with the service catalog. Currently region can be stored in the token
data and then requests to url functions will return the appropriate
region. This is the wrong approach because there is nothing specific to
the token (or auth_data) that is region specific. Instead region
information should be held by the client.

Closes-Bug: 1147530
Closes-Bug: 1255992
Change-Id: I812aa89c8b4af28e294e63926a7f88e8246fffc5
Merge "Use assertIn where appropriate"
use six.StringIO for compatibility with io.StringIO in python3

The newer version of six (1.4.1) provides six.StringIO which
is a fake file object for textual data. It's an alias for cStringIO.StringIO,
in python2 and io.StringIO in Python3.

Change-Id: If1ccfca128385f976938f0f0c74573687faad9ac
Signed-off-by: Chuck Short <chuck.short@canonical.com>
Rename tokenauth to authtoken in the doc

Change-Id: Iedacd3ac76999570d5507953b9665948a3e3888f
Signed-off-by: Emilien Macchi <emilien.macchi@enovance.com>
Merge "Updates .gitignore"
Merge "use six.StringIO for compatibility with io.StringIO in python3"
Fix --debug handling in the shell

This sets the debug level globally on root logger so that every debug
calls are logged.

Change-Id: Ia8d61f213b2bc6c4bcb1038e7ff6ac0104581b4b
Closes-Bug: #1259210
Sync with latest module from oslo

- This add a few bugfixes for py3 support.

Change-Id: Ieb73d5f799423fa8abf71634c86601ba6d32df2f
Allow commit title messages to end with a period.

Match what we have in keystone (http://git.io/BNnRcw)

Closes-Bug: 1259488
Change-Id: I6baa0504b9df1f5094df1249d7d902f2188fd95a
Sync global requirements to pin sphinx to sphinx>=1.1.2,<1.2

Sync the global requirements to pin sphinx.  This addresses an issue
where Sphinx 1.2 is not building documents correctly and causing
check/gate to fail.

Change-Id: I92af6481d2fdfaea6eda4eaffb0388eeaea8cb9f
Merge "Properly handle Regions in keystoneclient"
Don't install pre-release software with tox

Override the tox pip install command to avoid using the
"--pre" option which is the default in tox.  "--pre" means "Include
pre-release and development versions."  By default, pip will only
install stable versions of software, and that is the behavior we want.

Change-Id: Ida5e440d1bdb9f8e9031277ea53a02d2ef171438
Co-Authored-By: Monty Taylor <mordred@inaugust.com>
Make _get_utf8_value Python3 compliant

This function now works with both Python 2 and 3.

Thanks to Victor Stinner for helping with this.

Change-Id: I1644db7705f7818471d06fb74a4b9a91956e6b58
Remove the 'cmp' keyword from a call to 'sort()'

This keyword does not exist in Python 3, and 'key' should be used instead.

Change-Id: I0f92a1e3d389b491bf138c215e11e68fddc15477
Python3: replace urllib by six.moves.urllib

This makes the code compatible with both Python 2 and 3.

Change-Id: I721a5567842f2df6ce2a8af501787204daba3082
HTTPretty: update to 0.7.1

The 0.7.1 release has a fix for the parse_querystring function, which raised a
TypeError on Python 3.3. See:

https://github.com/gabrielfalcao/HTTPretty/commit/5c6e77615f4083b9daf4a0148349f3185dcaff05

This helps fix some tests on Python3.3.

Change-Id: I8f28c5dfdcb25b2c131a4b8866547025064caac6
Merge "Allow commit title messages to end with a period."