Parallelize quantum unit testing:

This change switches run_tests.sh to use testr
in parallel mode, instead of nosetests, in order
to enable unit tests to run in parallel.

By default, the number of parallel test processes
is set to the number of cores on the test machine.

A similar change was recently merged to nova:
  https://review.openstack.org/#/c/15078/

Some tests required updating to remove inter-testcase
dependencies.

bug #1099694

Change-Id: Idfb923d424342a07dcba88d70b971683f549f763
Allow pdb debugging in manually-invoked tests.

 * The old behavior required setting environment variables to
   disable capture of stdout and stderr to allow debugging via pdb.
   The new behavior requires enabling capture of stdout/stderr
   instead. This is already the case in nova.
 * testr behavior is unmodified.
 * Tip 'o the hat to Robert Collins (lifeless)

Change-Id: Ica021eeab07d5a540ce42436c9cc8000c3fd239a
Imported Translations from Transifex

Change-Id: Ia4090ae2421dc2df9e97f18cdc6830aebafdba1a
Merge "Allow pdb debugging in manually-invoked tests."
Make "shared" filter more compatible with diff DBs

For the type BOOLEAN, in sqlalchemy,
it's mapped to BOOLEAN type if the backend database supports it,
otherwise, it's mapped to one of the Integer types, like SMALLINT,
and restrict the values to 1(True) and 0(False).

query_filter = (... | model.shared))
The above filter will generate a SQL where clause like:
where ... OR xxx.shared

This is not supported in databases which don't support BOOLEAN type.
Change it as below to make it more compatible:
query_filter = (... | model.shared == True))

It will generate a SQL where clause as below:
where ... OR xxx.shared = ?

In Python, True == 1, so this change is compatible
with both databases supporting BOOLEAN and those not supporting it.

Fix bug 1161195

Change-Id: Ic0ce0816d63b576a3469de0ed92cae4b19a3690e
Merge "Parallelize quantum unit testing:"
Implement LB plugin delete_pool_health_monitor().

Fixes bug 1166400.

Change-Id: I58145366bab3798232d616c98ed9532f71834089
Shorten the path of the nicira nvp plugin.

 * s+[/.]nicira_nvp_plugin++
 * Backwards compatibility is maintained by importing the
   nicira package as nicira_nvp_plugin in the plugins package.
 * It may be necessary to remove stale .pyc/.pyo files under the
   nicira path after applying this patch.
 * DocImpact
 * Addresses bug 1166307

Change-Id: I241a2a75106398506b01bcb7a6ddbaafa1b7bd30
Ensure unit tests work with all interface types

Fixes bug 1167520

Change-Id: I42ed3a5718d771924caffba3f58340e7f1d2e2ad
Enable automatic validation of many HACKING rules.

 * Add hacking to the tox build - a set of flake8 plugins that
   perform automatic validation of many HACKING.rst rules.
 * This patch configures hacking in the tox build and performs
   the mechanical cleanup required to allow the checks to pass.
 * See https://pypi.python.org/pypi/hacking

Change-Id: Ie9b3eb5627a9b6dd181f79225abae422e6cf3777
Merge "Ensure unit tests work with all interface types"
Imported Translations from Transifex

Change-Id: Ib2ba93e3c9754de63f030b9572a108343bae9c74
Merge "Shorten the path of the nicira nvp plugin."
Merge "Enable automatic validation of many HACKING rules."
Imported Translations from Transifex

Change-Id: Ia14f9917bece2fc7add0d389ef91f6611de7023a
Imported Translations from Transifex

Change-Id: I9ce7385c4134a5d81164b989d033e3fce8f158a4
Imported Translations from Transifex

Change-Id: I7aadfd763ee1904ad11fb5c4f82101f5a4e6dc5e
Imported Translations from Transifex

Change-Id: I9a7548f64384ab4f3e29f7313e7481df89ca5901
Imported Translations from Transifex

Change-Id: I80b2c702354f39b969109789b1c9ebdef619af25
Imported Translations from Transifex

Change-Id: I45916b14ecb7b0f613332128dcfd64ad727503f8