Add the test infrastructure

This commit introduces all the schema and tools to be able to run tests:
virtual env script creator, test-requirements, tools directory...

It is actually copied directly from neutron repo and it does not
introduce any special customization from it.

Change-Id: I3d9a47a0bb1a02509420ff8ace59e0cf21311c65
Migrate unit tests

Move unit tests for the plugin from downstream neutron repository
to the new plugin repository.

Change-Id: Ic87494ee5ba3a3470393c7bbfc8ab5bdaccc7d8e
Signed-off-by: Ryu Ishimoto <ryu@midokura.com>
Fix the network deletion error

Network deletion errors out because L3 data is not processed
correctly.

Change-Id: Ic2acba1e7ac95ad36e97a1d452e747eefd6b911e
Signed-off-by: Ryu Ishimoto <ryu@midokura.com>
Merge "Fix the network deletion error"
Move extensions directory

Directory 'extensions' need to be moved into neutron package to have
coherency and a separated tree between code base and tests.

run_tests script needs to be changed to run the tests.

Some minor flake8 violations fixed. Now the package is clean.

Change-Id: I305e5b4d1fa7037534da1473c8286b792128744e
Add a decorator for extensions

This patch adds a decorator that automatically generates the extension
methods required as a Neutron extension for the initial step of the
MidoNet API migration.

Change-Id: I1e9b9fb10f8cc319206884a81a06ed741f3f6f06
Signed-off-by: Taku Fukushima <tfukushima@midokura.com>
Move utilities in the core plugin to the util module

This patch moves handle_api_error, MidonetApiExcption and
MidonetPluginException to midonet/neutron/common/util.py.

Change-Id: I011140d3f85f9c48e7d5cdbe5c5b85c7e400634f
Signed-off-by: Taku Fukushima <tfukushima@midokura.com>
Add skeleton of a decorator for API handler mixins

This patch adds a decorator function that generates required methods for
API handler mixins based on the given list of strings represent required
handlers.

Change-Id: I8da516c849d1216201af9e753ab9fd1fe6ce9ddb
Signed-off-by: Taku Fukushima <tfukushima@midokura.com>
Add Tunnel Zone resource to the extension

This patch adds the tunnel zone and tunnel zone host resource extension
and the API handler mixin to our plugin.

Change-Id: Ia652c5afa0e00a358325b80d6c6dab27152ced56
Signed-off-by: Taku Fukushima <tfukushima@midokura.com>
Modify the core plugin to load extensions

Change-Id: Iff53db4754aac857e4dd10a2be1ade975029eb14
Signed-off-by: Taku Fukushima <tfukushima@midokura.com>
Inject tunnel zone API handler mixin to the core plugin

This patch injects TunnelzoneHandlerMixin into MidonetPluginV2 and add
'tunnelzone' to the list of the extensions to be loaded.

Change-Id: I5069404a9149d5b732ff06abf990faf5e99fec10
Signed-off-by: Taku Fukushima <tfukushima@midokura.com>