Quotes around {posargs} cause the entire string to be combined into one
arg that gets passed to stestr. This prevents passing multiple args
(e.g. '--concurrency=16 some-regex')
Change-Id: I0b09424dd3cef244e8cec1ef87b5992ccb9d5b07
Closes-Bug:#1801823
This patch adds local tox targets for pep8 and python 3 as per [1]
that will install dependencies in editable mode.
To run them use the pep8-dev and py3-dev targets respectively.
[1] https://etherpad.openstack.org/p/neutron-sibling-setup
Change-Id: If70b6e746af5bb578f9257dfef0c2f33333b5524
We want to default to running all tox environments under python 3, so
set the basepython value in each environment.
We do not want to specify a minor version number, because we do not
want to have to update the file every time we upgrade python.
We do not want to set the override once in testenv, because that
breaks the more specific versions used in default environments like
py35 and py36.
Change-Id: Iddea984cd32fd0b048a396cde27e3d12ae07119e
Create a tox environment for running the unit tests against the lower
bounds of the dependencies.
Create a lower-constraints.txt to be used to enforce the lower bounds
in those tests.
Add openstack-tox-lower-constraints job to the zuul configuration.
See http://lists.openstack.org/pipermail/openstack-dev/2018-March/128352.html
for more details.
Change-Id: Iebd2d4016dc4643564907176169e2be026c7b278
Depends-On: https://review.openstack.org/555034
Signed-off-by: Doug Hellmann <doug@doughellmann.com>
The switch from testr to stestr introduced in Change-Id
Icf1f9eb4539666dffb6c9c1651670541523a9f9e missed setting concurrency
jobs to 1 for api and scenario tests, leading to intermittent gate
issues.
This patch also fixes coverage test that got broken in the
aforementioned Change-Id.
Change-Id: I052a9c3b376624f8e9e63faa98f4d09a93bdde4d
Switch tox.ini to directly call stestr instead of
testrepository which is not maintained.
Also skip a problematic test temporarily until we can resolve the larger
gate issues.
Co-Authored-By: Adam Harwell <flux.adam@gmail.com>
Change-Id: Icf1f9eb4539666dffb6c9c1651670541523a9f9e
Now that mitaka, the last release with LBaaSv1, has gone EOL cleaning
up any last references to LBaaSv1 in the code.
Change-Id: I68d3b0f5193b52bf46d75d149b4d6e0387695d17
The gating on python 3.4 is restricted to <= Mitaka. This is due to
the change from Ubuntu Trusty to Xenial, where only python3.5 is
available. There is no need to continue to keep these settings.
Change-Id: I32e0021bc374c71df81bfb1de586cf462ea24244
Do not install in /tmp/openstack/neutron and leave the git repository
there after the script is run - if zuul-cloner is used.
We run jobs on long lived workers and also on developers machines, let's
cleanup afterwards.
Install into a temporary directory that can be removed with "git clean"
afterwards. Add this directory to ignore list of pep8.
Simplify with using pushd/popd which are bash features, so change
she-bang.
Also, remove setup of ZUUL_BRANCH, this is not needed with current zuul
anymore.
Change-Id: I54d400dea4efdf9ac9b580ff7f0a2bbcceb4df5e
Many deprecations are triggered early (on imports, for example)
before the warnings are enabled by the WarningsFixture in the
base test class.
To make sure all DeprecationWarning messages are emitted we enable
them via the PYTHONWARNINGS environment variable.
Change-Id: I284441a3e361bc5d771f553ed0a94bdc7e90ac6c
The tox.ini has some unicode characters that cannot be
decoded, so just executing tox will immediately cause an error
because the tox.ini cannot be parsed.
Change-Id: I32a53cc4b019445f1f7a1dca847f14eba4bda81c
Closes-Bug: #1600068
Add gate hooks for the dsvm-functional job including set-up of
configure_for_lbaas_func_testing.sh script and corresponding changes to
tox.ini.
PyMySQL dependency was moved from test_requirements.txt to
functional/requirements.txt.
test_migrations.py was moved from unit tests to functional in
order to prevent it from being skipped in case of db backend
unavailability.
Fixed failing TestModelsMigrations test by importing modules with
missing models in db/models/head.py
Closes-Bug: #1585116
Closes-Bug: #1596984
Change-Id: Ic39805ea0ed330ef7da82043f77077e8a5617ca0
The translations are done via the pep8 checks. This code is no
longer needed and very out of date.
TrivialFix
Change-Id: I39d865dd7b8a3611a7c233b8f18207db984cf079
Since test_v2_plugin_driver was the last test failing on Python 3,
the whitelist tests-py3.txt can now be removed. All unit tests now
pass on Python 3!
* Replace contextlib.nested() with neutron_lbaas.tests.nested()
* Remove tests-py3.txt
* tox.ini: remove py34 commands, inherit the testenv commands
Blueprint: neutron-python3
Change-Id: I42d24352fc0a978cceaf040b76f6a29974f64614
Otherwise we'd continue to pull tempest from source.
Ultimately we'd need to move away from pulling tempest by
switching to using the plugin model [1], but this is an
interim step until that can be done.
[1] http://docs.openstack.org/developer/tempest/plugin.html
Change-Id: I033c035be4e72a56badd1283322bf92c12fcf13d
using testr will end up in issue while running tox -e cover and may not
work as desired. this patch will replace it with test as its done in
neutron_vpnaas [1].
[1]. https://github.com/openstack/neutron-vpnaas/blob/master/tox.ini#L113
Change-Id: If2c10efcda6564daaeba1e8be8cf883a43277662
* Add tests-py3.txt: whitelist of tests passing on Python 3
* Add 4 new tests to tests-py3.txt
* Replace six.maxint with six.maxsize, sys.maxint was removed
in Python 3.
* tox.ini: modify py34 to use tests-py3.txt
Blueprint: neutron-python3
Change-Id: I7d6641ff077dc2baa565a7ab54dfd863c0ad92b8
A while ago we copied Tempest networking API tests in to the Neutron
repo, and along came thousands of lines of code of Tempest testing
infrastructure (neutron.tests.tempest). For a while we periodically
refreshed our fork via: tools/copy_api_tests_from_tempest.sh
It's time to remove tempest fork[1] and use tempest_lib when possible or
tempest itself for code not moved to tempest-lib instead of duplicating,
forking tempest as done in Neutron, Manila & Ironic.
This change is based on the similar work done in Neutron tree[2].
[1] neutron_lbaas.tests.tempest.lib
[2] I4f9193dfe26f2d36985cb480a98709ec182a2f7b
Co-Authored-By: Franklin Naval <franklin.naval@gmail.com>
Closes-Bug: #1536852
Change-Id: I516b37d45200cc120a929ecd9011ff8bb4c45d9f
Since lbaas gate has not switched to -constraints targets yet, we can
remove them right away.
Note: override install_command for releasenotes and cover targets since
corresponding gate jobs do not provide constraints file yet.
Change-Id: If3c143153d0a09378092791e76f1a728fb978aed
We bump hacking>=0.10.0, and hacking removed some rules, for
the full list of rules please see [1]. So don't need them any more.
Hacking related commits:
Remove H904 in commit b1fe19ebebe47a36b905d709467f5e82521bbd96
Remove H803 in commit f01ce4fd822546cbd52a0aedc49184bddbfe1b10
Remove H307 in commit ec4833b206c23b0b6f9c6b101c70ab925a5e9c67
Remove H305 in commit 8f1fcbdb9aa4fc61349e5e879153c722195b1233
[1]https://github.com/openstack-dev/hacking/blob/master/setup.cfg#L30
Change-Id: Ife6c13ec45d30a8f3a8500bbb545a43ab7d6476f
This adds a new tox environment, genconfig, which generates sample
neutron LBaaS configuration file using oslo-config-generator.
DocImpact: Update the docs that LBaaS no longer includes static example
configuration files. Instead, use tools/generate_config_file_samples.sh
to generate them and the files generated now end with .sample extension.
Partially-Implements: blueprint autogen-neutron-conf-file
Change-Id: I25507f3bc6e995580aa91a912c2cf4110757df15
Partial-bug: #1199963
These are eventually going to be used in gate instead of unconstrained
jobs. There is some code duplication in commands definitions, but tox
does not allow to inherit definitions with {posargs} substitution.
Made tox_install.sh use constraints file to install both the project and
neutron dependency, if the the first argument is 'constrained'.
Change-Id: I699022b285594edf3c5db10fbdac2f904dc42928
Partial-Bug: #1522503
Depends-On: Ic2f9bc047f886bf2f9a4646e7f39f3b71f0cfc79
To solve the problem of "db type could not be determined" on py34 we
have to run first the py34 env to, then, run py27. This patch puts py34
first on the tox.ini list of envs to avoid this problem to happen.
Change-Id: I7e279cbb3a6c4710b8361c8cc2df368bd28c3203
Closes-Bug: #1489059
When trying to run pep8 target on a system with installed
/etc/neutron/neutron.conf file, neutron-db-manage may fail due to
access denied to the configuration file. This is because oslo.config
attempts to discover configuration files automatically if they are
not passed with --config-file argument.
To disable auto discovery, we pass --config-file to the tool.
Change-Id: I89b5cbae1fcbf662cba6bc724681d0cfeeb0eb9c
This reverts commit 286f5d41dc.
The revert was merged too quickly, without waiting for tox project to fix us.
The gate passed for the revert only because infra folks removed images
that had new tox in them. We will be broken by the next images though.
Change-Id: Idad2c656e4271d1222e6f8939eb90c6353e1fe67