Tests are not run, but reported as success
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Object Storage (swift) |
Fix Released
|
Undecided
|
Christian Schwede | ||
OpenStack-Gate |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
As shown in this log file:
http://
0 tests are executed, but tox/nose still reports success. Thanks jordanP for bringing this up!
So I started debugging on this, and finally found the reason.
There was an exception raised in setup_package(), but due to the openstack.
I created a small dummy project to verify this:
https:/
A fix for Swift is in progress (https:/
Changed in swift: | |
assignee: | nobody → Christian Schwede (cschwede) |
status: | New → In Progress |
Changed in swift: | |
status: | In Progress → Fix Committed |
Changed in openstack-gate: | |
status: | New → Fix Released |
Changed in swift: | |
milestone: | none → 2.4.0 |
status: | Fix Committed → Fix Released |
Reviewed: https:/ /review. openstack. org/187754 /git.openstack. org/cgit/ openstack/ swift/commit/ ?id=f1f4bb30cd8 ad930ddb7a232b2 744b48e35a0480
Committed: https:/
Submitter: Jenkins
Branch: master
commit f1f4bb30cd8ad93 0ddb7a232b2744b 48e35a0480
Author: Christian Schwede <email address hidden>
Date: Tue Jun 2 19:51:39 2015 +0000
Fix testing issues
When functional tests are run in tox and an exception is raised when connecting keystoneclient package
to Swift (for example: Swift not running, missing python-
used by python-swiftclient) 0 tests are executed, but tox returns a success.
An exception is raised during tests, caused by a missing python- keystoneclient keystoneclient as a dependency ts.txt in Swift keystoneclient to the test-requirements in swiftclient is not sufficient (it's already in there).
in python-swiftclient. Instead of adding python-
in python-swiftclient the package is added to the test-requiremen
itself. Note that adding python-
python-
The exception in setup_package() is catched by the openstack. nose_plugin, thus
disabling this plugin for now as well.
Also fixing two test errors seen on the gate regarding the tempurl middleware.
There was also an update to tox, environment variables were no longer passed tox.readthedocs .org/en/ latest/ changelog. html).
with versions >= 2.0 (http://
Swift test environment variables have been added to the passenv to re-enable the
former behavior, as well as environment variables required to pass proxy
settings.
This also led to skipped tempauth tests, and together with the missing keystoneclient no tests were executed.
python-
Related-Bug: 1461440
Related-Bug: 1455102
Co-Authored-By: Alistair Coles <email address hidden>
Change-Id: Ideea071017d049 12c60ed0bc76532 adbb446c31d