| Commit message (Collapse) | Author | Age | Files | Lines |
| |
|
|
|
|
|
|
|
| |
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: Ieeae90ecbd4f89cbff0513dcd949a0c1a8e8d8c1
(cherry picked from commit 3b954791e4ebbaa1ed0721a441698f9acb56c7d2)
|
| |
|
|
|
|
|
|
|
|
|
|
| |
Update the URL to the upper-constraints file to point to the redirect
rule on releases.openstack.org so that anyone working on this branch
will switch to the correct upper-constraints list automatically when
the requirements repository branches.
Until the requirements repository has as stable/stein branch, tests will
continue to use the upper-constraints list on master.
Change-Id: If0abae9bbfabbd0cd2fb385b65e0eaeec8255df4
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
The pylint job was switched over to run under python 3, but
the job is not voting and it was apparently missed that the
conversion was causing it to fail.
This updates the version of pylint to one that is actually
supported by python 3 and makes tweaks to our script to
for the minor changes between versions.
Single character change to get rid of the more strict py3
regex string escape character format.
Change-Id: I93124b62c5ee177815457b32f55f5453fc3d387e
Signed-off-by: Sean McGinnis <sean.mcginnis@gmail.com>
|
| |
|
|
|
|
|
|
| |
os-testr has moved over to use stestr instead of testr. This change
updates the tox.ini file to call stestr directly instead of going
through ostestr and remove testrepository from test-requirements.txt.
Change-Id: I31fa5fefd610ec783471e15992675bd39ff0ebc4
|
| |\ |
|
| | |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
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: I04b87b308a82113a57ea41bde0329e92b07b642e
|
| |/
|
|
|
|
|
|
|
| |
switch to use OS_VOLUME_API_VERSION = 3 to run
functional tests.
Closes-bug: #1775354
Co-Authored-By: liuyamin <liuyamin@fiberhome.com>
Change-Id: If6c4291aa7d8e85a4f8c1d5665a0e4a72aa1f1d1
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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: Ib36375525dd11d62d9f5566c714e76876892d9d7
Depends-On: https://review.openstack.org/555034
Signed-off-by: Doug Hellmann <doug@doughellmann.com>
|
| |
|
|
|
|
|
|
|
|
|
|
| |
For compliance with the Project Testing Interface as described in:
https://governance.openstack.org/tc/reference/project-testing-interface.html
For more detials information, please refer to:
http://lists.openstack.org/pipermail/openstack-dev/2017-December/125710.html
Change-Id: I7615e33c0d00c56b3ee6cb856a0553e32a1664c6
|
| |
|
|
|
|
|
|
|
|
|
| |
We do not need tox_install.sh, pip can handle constraints itself
and install the project correctly. Thus update tox.ini and remove
the now obsolete tools/tox_install.sh file.
This follows https://review.openstack.org/#/c/508061 to remove
tools/tox_install.sh.
Change-Id: I1facc619154613670444247ade567882ec84ed85
|
| |
|
|
|
|
|
|
|
|
| |
os-testr has moved over to use stestr instead of testr. While this
is usually compaible with existing settings, there is a warning
that is emitted when .stestr.conf is not present. It is usually
able to fall back to parsing the .testr.conf file, but to be more
correct and to prevent future problems we should update the config.
Change-Id: If553a64f5dded2d47025c947a91f13091f3f5d14
|
| |
|
|
|
|
|
|
|
| |
F811 is a little noisy with api_versions.wraps()
decorated methods, but opting to disable it in these
cases seems better than missing problems in the rest
of the code.
Change-Id: I9c46938ab2a442e55f96b5ab6c119c4475afaecd
|
| |
|
|
|
|
|
|
|
| |
Enforce ordering of imports with H306.
For tests, this is mostly done by grouping test
imports after other cinderclient imports.
Change-Id: Ie40fda014d1aedb057e5b4ea1f27f999c84e6373
|
| |
|
|
|
|
|
| |
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: I04e036521c902d846b6341ce1fd7fc2662bff8df
|
| |\ |
|
| | |
| |
| |
| |
| |
| |
| |
| | |
This patch allows us to pass such params like concurrency, test name,
etc for ostestr to run functional tests.
Change-Id: Icb17309a148dfebf6b679107bab1514ab3dec729
Related-Bug: #1638302
|
| | |
| |
| |
| | |
Change-Id: Id8d9f0f9ea7685518e8a90323cd199b5303dd982
|
| |/
|
|
|
|
|
|
|
|
|
|
| |
Adding constraints support to clients is slightly more complex than
services as the clients themselves are listed in upper-constraints.txt
which leads to errors that you can't install a specific version and a
constrained version.
This change adds constraints support by also adding a helper script to
edit the constraints to remove python-cinderclient.
Change-Id: Iac0c8a6bcfa9a74a2e836d156642b1e0abf5ec31
|
| |
|
|
|
|
|
| |
Now that there is a passing gate job, we can claim support for Python 3.5
in the classifier. This patch also adds the convenience py35 venv.
Change-Id: I29cab82225675fbb4e2f1701067b26e4a632b851
|
| |
|
|
|
|
|
|
|
| |
Run pylint with
$ tox -e pylint
(Copied from Cinder with minor changes.)
Change-Id: I9d7f03c44c6da7515b433d6c87f3a1645184d491
|
| |\ |
|
| | |
| |
| |
| |
| |
| |
| | |
ostestr has more user-friendly output including lists of all and
failed tests.
Change-Id: I6db42b0f7480d79b85e20334fb3c2d8236efc316
|
| | |
| |
| |
| |
| |
| |
| |
| | |
Other projects have updated to 1.8 or later for the minimum
tox version (nova, neutron), so we should probably do the
same.
Change-Id: I2a12208ee964278d10f34a8439cefa8269c11b9b
|
| |/
|
|
|
|
|
|
|
|
|
|
|
| |
Pypy is a supported python interpretor for python-cinderclient,
but I don't think it's necessary to run all unit tests with it
for everyone. We do have the gate-python-cinderclient-pypy test
to validate there are no incompatibilities.
Pypy is also not available by default, so it is an extra step for
someone to know to install and set up the pypy environment before
they can run tox without failures.
Change-Id: I15e315415574dfe8cf8a3d5f7f968a082b81b165
|
| |\ |
|
| | |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
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.
"Closes-Bug: #1533919"
Change-Id: Ib247b4000d9c1d906ef55fa2b5cc990cf1120850
|
| |/
|
|
|
|
|
|
|
|
| |
1. Wrong use of 'noqa'. "# flake8: noqa" option disables all checks
for the whole file.
2. Remove exclusion of 'tools' and '*openstack/common*' in flake8 and
fix the violations.
Change-Id: I153e992ffd6a80e70a99d7066c503c34326c93ab
Closes-bug: #1540254
|
| |\ |
|
| | |
| |
| |
| |
| |
| |
| | |
Pass OS_* env variables for functional tests to use environment
variables if they are available instead of config file
Change-Id: Ic1b4752bf558c57974b5f2a4d5a45aee4a940bbb
|
| |/
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
"Python 3.3 support is being dropped since OpenStack Liberty."
written in following URL.
https://wiki.openstack.org/wiki/Python3
And already the infra team and the oslo team are dropping py33
support from their projects.
Since we rely on oslo for a lot of our work, and depend on infra
for our CI, we should drop py33 support too.
Change-Id: Iea4db590139e1a611a5dca72ef3adca187eb541e
Closes-Bug: #1526170
|
| |\ |
|
| | |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
Adopt reno for release notes like we have done for cinder.
One difference for the client is we will not be backporting
to Liberty per recommendation here [1].
[1] http://lists.openstack.org/pipermail/openstack-dev/2015-November/080694.html
Change-Id: Icb2520cfa249d104674eb42b5ac93a50a6ce34b4
|
| |/
|
|
|
|
|
|
|
|
| |
Caching is enabled by default from pip version 6.0
More info:
https://testrun.org/tox/latest/config.html#confval-downloadcache=path
https://pip.pypa.io/en/stable/reference/pip_install/#caching
Change-Id: I63939800bf0fe6ef89d6651273e3bb53678d23a6
|
| |\ |
|
| | |
| |
| |
| |
| |
| | |
This will allow test to work if developement environment is under proxy
Change-Id: Id89c57ac455c4b93bcaed8e9166b7a44bad2a25c
|
| |\ \ |
|
| | |/
| |
| |
| |
| |
| |
| |
| |
| |
| | |
as of mitaka, the infra team won't have the resources available to
reasonably test py26, also the oslo team is dropping py26 support
from their libraries. sine we rely on oslo for a lot of our work,
and depend on infra for our CI, we should drop py26 support too.
Change-Id: Icf1b13b044de03705688df929ed74429879c6dd8
Closes-Bug: 1519510
|
| |/
|
|
|
|
|
|
|
| |
Because python creates pyc files during tox runs, certain
changes in the tree, like deletes of files, or switching
branches, can create spurious errors.
Change-Id: Ib5cbd375b208dbea1f18ada00b44ba76dcdda9c5
Closes-Bug: #1368661
|
| |
|
|
|
|
|
|
|
| |
The OS_CACERT environment variable should be passed to the test
environments to specify a CA bundle file to use in verifying a
TLS (https) server certificate.
Change-Id: Iee50946b34b7e285ebb7924cd5ac6cd83b355e48
Closes-Bug: #1511023
|
| |
|
|
|
|
|
| |
H302 rule was removed from hacking.
[H302] Do not import objects, only modules.
Change-Id: I86d45d5bc86e42e009b214cff71821ff171d69af
|
| |\ |
|
| | |
| |
| |
| |
| |
| |
| | |
1) Set correct $CINDERCLIENT_DIR to make Jenkins happy
2) Set OS_VOLUME_API_VERSION=2 to run with Cinder API v2 on gates
Change-Id: Id6be541fa2862eb833ed645e42bedcac6cef19dd
|
| |\ \
| |/
|/| |
|
| | |
| |
| |
| | |
Change-Id: I57ca0908e22ac048ea3f24f39af99cdfbff94a62
|
| | |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
pbr 1.0.1 released in 2015-05-19 requires the newer
hacking module >=0.10.0,<0.11 than the versions
specified in the test-requirement.txt file,
which causes failure in gate-python-cinderclient-pep8.
This patch bumps the pbr version in test-requirement.txt
to make it consistent with requirements repository,
and adds some fixups to avoid some new hacking rules.
Change-Id: I7de6e04e30a475ec1c26224461faf0c708178a40
Closes-Bug: #1460774
|
| |/
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
First pass at functional tests in cinderclient. This patch
just takes some of the basic CLI tests from tempest and moves
them into the cinderclient functional tests.
These are read-only tests, and just do simple field checks
on the tables generated by the basic list commands.
Note: to run use "tox -efunctional", this requires that you
have a full cinderclient env and credentials are set. You may
be either running this locally (say in a devstack env) or
you may have a remote cloud handy that you can just source the
credentials for and run it that way.
Change-Id: I2f09a63be265d6a74cb103d80579068b9ab66bf4
|
| |
|
|
|
|
|
| |
Add a tox job to make it easier for developers to generate their
own docs before submitting a patch.
Change-Id: Icbfd5ee5556a9c344ebe9ca7f4b579a87ad2d01b
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* tox.ini: The LANG, LANGUAGE and LC_ALL environment overrides were
introduced originally during the testr migration in an attempt to be
conservative about the possibility that locale settings in the
calling environment could cause consistency problems for test runs.
In actuality, this should be unnecessary and any place where it does
cause issues ought to be considered an actual bug. Also, having
these in the configuration actively causes older pip to have
problems with non-ASCII content in some package metadata files under
Python 3, so drop it now.
Change-Id: Ibd505447de74f13d90b9ff77dfd8c6b30c4c12cb
Closes-Bug: #1277495
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Reasons:
- tox update v1.6
Changes:
- tox 1.6 allows us to skip the sdist step, which is slow.
- It also allows us to override the install line. In this case, it's
important as it allows us to stop getting pre-release software we
weren't asking for.
Original patch by Monty Taylor, talked about here:
http://lists.openstack.org/pipermail/openstack-dev/2013-September/015495.html
Change-Id: I8a8fdd420eceb5b702e7d9eedd8b5be341d3f56e
|
| |
|
|
|
|
| |
This is a precursor to having them run under check and gate.
Change-Id: I377f0a4dddc063402db7486789f7c00847013eec
|