Import errors of tempest plugins are not reported
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
tempest |
Invalid
|
Undecided
|
Unassigned |
Bug Description
I faced the following error with tempest plugins (any plugin).
If inside a python file of a tempest plugin which contains a testcase there is an import of a package which does not exists, the testcase fails.
Furthermore, it does not only fail but also it does not get reported as a failed testcase which run.
In order to replicate one could:
1) use neutron tempest plugin (https:/
2) edit https:/
3) add import numpy as np
4) run testcase neutron_
5) get the following output
======
Totals
======
Ran: 0 tests in 4.0000 sec.
- Passed: 0
- Skipped: 0
- Expected Fail: 0
- Unexpected Success: 0
- Failed: 0
Sum of execute time for each test: 0.0000 sec.
NOTE: This does not happen if tempest itself uses that package and the package is missing from environment (for example "import testtools"). At this case the tempest itself breaks and outputs the error in import.
Kind regards,
Stamatis
description: | updated |
Is this still an issue? I've just tried it and it works for me, tempest ended up with ModuleNotFoundE rror: No module named 'numpy' exception.
As this is quite old bug, I'm gonna assume the problem got fixed in the meantime and also I wasn't able to reproduce it .. therefore I'm gonna mark this as Invalid, but feel free, to reopen it if you're still experiencing the issue.