This makes tox use the latest version of the tool from os-testr repo,
which contains some valuable changes, like the one making the gate fail
if for some reason no tests are executed because all of them are
skipped.
Change-Id: If88be4b310d746ccc885e3d0c1db8a4dfabb2a28
Latest g-r version of bandit does not require a bandit.yaml. This
removes the bandit.yaml and skips the same tests that were not
run as defined by the profile before. This patch also puts running
of bandit within the pep8 testenv, consistent with other projects.
Change-Id: I7db8bc460e2051c635dc7b3fd4b152ece80c7a0c
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: Ic7b3fb3ff7b68cf280e36335aa9cacd644cc877a
Sphinx 1.5 is more picky about some code, it complaints if code-blocks
are not valid json and also about too short underlines.
Fix one json file, fix underlines, change code-blocks to none so that
Sphinx 1.5 builds this again.
Enable treating warnings as errors to avoid regressions. Note that with
current tools there are no double stanza warnings anymore.
Change-Id: I58d1452ffddf091d56dcfad8140caba084800a0e
This reverts commit d7f2d4f23eba13eea6c314bf5fde34df7a4df912.
ostestr spews what is IMHO an unmanageable amount of mostly worthless data when running tests - at least one line per test, of which there are 6351 at last count. There doesn't seem to be an option to quiet it down, so just revert it.
Change-Id: I7b12dc249e3e7041ab6f0ef36b3e5f0b082aeb7d
As a wrapper of testr, os-testr uses subunit-trace
for output and builds some helpful extra
functionality around testr
Reference link:
http://docs.openstack.org/developer/os-testr/index.html
Change-Id: I5eb1ea062334c06f5e95ef54367e427b98a17bac
The directory openstack/common was used to keep codes from
oslo-incubator, we have retired oslo-incubator in following patch
https://review.openstack.org/#/c/297487/
so don't use this directory any more.
Change-Id: Id20b9cb8cd63e018a2f566cb12600b8f9e518665
Openstack infra now supports upper constraints for
all jobs. Updated tox.ini to use upper constraints
for all jobs.
Change-Id: Ideae3fdbac5cd08bacad243302e6f8096346b4e0
Closes-Bug: #1614361
Falling back to environment variable credentials is convenient for
development but could lead to unexpected credentials being used during
tests. Also this is not a known practice for tempest tests.
This change removes the env var defaults and explicitly sets the
credentials to use in prepare_test_env.sh.
Pre and post grenade tests also get their config from the conf file
rather than the environment.
blueprint tempest-plugin-support
Change-Id: Icf9fb4c58ed11483106c2b62d1e1093223f7dc51
This replaces the requirements.stub dependency approach for
heat_integrationtests with a single dependency on tempest in
test-requirements.txt.
tempest provides all the required dependencies for the current
heat_integrationtests, and this helps the transition of being able to
run tests both with the current runner and as a tempest plugin.
blueprint tempest-plugin-support
Change-Id: I6fc5886feec5de71826f640cd29990114bd7781c
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: Ie64b63a462ae9b2c25ce9ab9e05259350353522e
Two years ago the translation files have been split into several
files, separating the log messages of different log levels from each
other, like X.pot, X-log-warning.pot, X-log-info.pot, and so on.
However, the setup.py command `compile_catalogs`, that comes from the
babel package and compiles the corresponding .po files into .mo
files, only supported one file per python package. This means that
during packaging `compile_catalogs` never compiled the X-log-*.po
files, so the corresponding translations were always missing.
Since babel 2.3 the domain can be set to a space separated list of
domains. This change adds the the additional log level files to the
domain list.
The obsolete check that .po and .pot files are valid is removed from
tox.ini.
Change-Id: I4d05c98b8ddd1a8416d7e0bc0298e86a0adc77d8
Closes-Bug: #1536226
For more information, see:
http://lists.openstack.org/pipermail/openstack-dev/2016-May/093765.html
This is the initial port from api-site. The includes in
source/v1/index.rst are alphabetized, but we may want to revisit that
and reorder them according to importance.
Change-Id: I6f578107e17d3a97e667f645a05493da12ae2048
Implements: blueprint api-doc-migration
The problem of integration tests was that they use their own
requirements.txt that is unable to auto-sync with global requirements.
This patch removes dedicated requirements.txt and replaces it with a
stub file listing names (and possibly versions) of the packages needed.
Then a special script parses this stub file, and for every package
that is present in main project requirements files it pulls the versions
from main project requirements, generating and installing requirements
for the integration tests on the fly.
This will help keeping requirements for the integration tests always in
sync with main project requirements.
Change-Id: Ie79338cc10cc101fbf15b51c7923e3a7b8e4fbb4
Closes-Bug: #1490866
The directory tools is exculed for runing pep8 test now. This code was
merged before file subunit-trace.py adding into tools/.
Enable pep8 to check files in toos/ since there will be more python files.
Change-Id: If3b7d9891fa235d690e74dbe91d8e4112d7de17e
We're close to the end of porting all unit tests
to be compatible with python34. However, ~8 tests are skipped
specifically in python34 because of bugs mostly in mox3.
Those tests will likely have to be converted to mock in
the future. Note that from now on, every test added will have
to be python34 compatible.
Also, fix __str__ function of ExceptionGroup in test_scheduler.
It intentionally uses str so as to not flatten the unicode
literal in python2.7 and also be compatible with python3.4
blueprint heat-python34-support
Change-Id: Id9b8aa11b17c96895092dd701b761a479df09282
Adding convergence prototype scenarios tests to run against actual
heat code base.
These tests are not modified and should test the sanity of covergence
implementation.
Change-Id: I69373a423da85f23597623457a7a7f1d5c2b0d2a
Implements: blueprint convergence-simulator-tests
Co-Authored-By: Anant Patil <anant.patil@hp.com>
this avoids py34 failure in default tox run when testrepository is
not yet initialized (e.g. fresh repo clone).
Change-Id: I95d3590ebd67dc4f2c3a53b3da50a3d3ed481f7f
Closes-Bug: #1489059
Add description about how to use pdb debugger with new tox option:
"debug". This option was added to tox.ini
Change-Id: I8a8934815eb147b4bb60e4ca2f5177f2e58cce76
Co-Authored-By: Tony Wang <muyu@unitedstack.com>
PYTHONHASHSEED was set to 0 to disable hash randomization, because some
tests assertions were order sensitive. This commit is to improve the
assertions, so the PYTHONHASHSEED hack in tox.ini is not needed.
Change-Id: I4ff09d202af818d27321e8e83718e82d0c48e3d2
Closes-Bug: 1348818
This allows the removal of the heat_integrationtests regex, which means
that {posargs} can be specified to run only a single test if desired.
Change-Id: I0724a51960b9137824b139bc1d69b42a9e5d4b9c
Also, fix minor flake8 issue related to Long literal.
This should now have the python34 gate job passing.
partial blueprint heat-python34-support
Change-Id: I7f85e7251fc96587df0b43daac202c38542a6f6c
Add a tox environment for bandit so it can be run as a gate job
eventually. As-is, there are no high severity issues detected in heat.
Change-Id: Iab098a1d8bac5c95d67e6867ad5249987c3a786e
The desired OS_TEST_DBAPI_ADMIN_CONNECTION string is now reflected
in the oslo.db 1.12.0 release's default behavior, and so does not
need to be set any longer to achieve the same opportunistic backend
discovery for tests.
Change-Id: Ib6b0d476ae1d75ca25ac3737cd83bdd0aa3d94eb
As discussed in the Liberty Design Summit "Moving apps to Python 3"
cross-project workshop, the way forward in the near future is to
switch to the pure-python PyMySQL library as a default.
https://etherpad.openstack.org/p/liberty-cross-project-python3
Also set the OS_TEST_DBAPI_ADMIN_CONNECTION override variable so
that oslo.db opportunistic detection will know to use PyMySQL until
I12b32dc097a121bd43991bc38dd4d289b65e86c1 makes it the default
behavior.
Change-Id: I17e052215ce6e1604cdda848ccc20862452ccbc7
Co-Authored-By: Victor Sergeyev <vsergeyev@mirantis.com>
Adds a new py34 environment in tox.ini which builds off of separate
(test-)requirements-py3.txt files that will just run flake8 for now
and an empty test-file.
partial blueprint heat-python34-support
Change-Id: I5f00a96fc70613ca7014370ec826d0a6a6199fde