and use it during tox run. This should speed up the tox venv creation
somewhat, as the new requirements is shorter, thus less packages are
installed or C extensions compiled.
Also this is the first step to ease packaging of the integration tests
as a separate tool.
Change-Id: I914eb675e7f025e03a22719d5dff8ed741fbd37d
contrib/ directory does not follow any standards and will make it
harder to programmatically install plugins on devstack. The current
structure can also cause namespace collisions when loading them.
This moves all plugin modules to a folder with the same name under
their directory (e.g. contrib/rackspace/rackspace), allowing
requirements, readmes, and other files to be separate from the
actual code.
This also helps to avoid namespace collisions when loading all the
plugins, since all plugins will be under their namespace in the heat
package. Example:
heat.engine.plugins
heat.engine.plugins.docker
heat.engine.plugins.marconi
heat.engine.plugins.rackspace
Since plugin packages are now in a folder one level under contrib/,
testr.conf is also updated so that all plugins are discovered
correctly.
Co-Authored-By: Anderson Mesquita <andersonvom@gmail.com>
Related-Bug: #1271226
Change-Id: Ifc8e3ca388253be82471651737da5d399c7cfb98
So we can check the source code coverage status of contrib
directory. It's obvious to adjust omit and source properties in
.coveragerc. The tricky code in .testr.conf is caused by the behavior
of setuptools.
When running coverage, setuptools set environment variable PYTHON to
'coverage run --source package --parallel-mode' and call testr to run
the tests. The value specified via command line option --source will
overwrite the source value in .coveragerc. So contrib directory is
excluded from coverage run.
The change in .testr.conf removed the '--source heat' specified by
setuptools. So the source value specified in .coveragerc will be used
by coverage.
Change-Id: I92f6b058067ace3b3370a3670856ab3dc073b52f
The existing code is running tests twice, one for heat, one for
contrib via adding two commands in tox.
This breaked tox single run. For example:
tox -e py27 -- heat.tests.test_software_config
Except heat.tests.test_software_config is executed, all test cases in
contrib will be executed also.
The patch added contrib in discover list, which can make sure both
contrib in heat gate testing and does not break single test run.
Change-Id: I014d7b95c64287e1fd04a0ba69fce0de554a9a08
This also disables the functional tests from running. The code is still
left here for posterity. These are intended to be moved into tempest
test cases and thus will be removed entirely at that time.
Change-Id: I294671baead6e83a8312b41681e99d395f861209