Mistral unit tests unintentionally install OpenStack actions
Bug #1883518 reported by
Renat Akhmerov
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Mistral |
Fix Released
|
Medium
|
Unassigned |
Bug Description
We've now finally moved OpenStack actions into mistral-extra. However, if we run Mistral unit tests and mistral-extra is installed on the same machine then Mistral unit tests unintentionally load OpenStack actions. It happens because the base unit test class goes through the setup.cfg entry points and loads everything: the built-in actions like std.echo and action generators that are specified in the setup.cfg of mistral-extra. We need to avoid that. OpenStack actions should be tested only within mistral-extra.
Most likely, the solution is to specify what entry points need to be handled in unit tests.
Changed in mistral: | |
milestone: | none → victoria-2 |
importance: | Undecided → Medium |
status: | New → Confirmed |
Changed in mistral: | |
milestone: | victoria-2 → victoria-1 |
To post a comment you must log in.
The mistral. tests.unit. base.BaseTest class now has this code in the method setUp():
False,
)
It was added by the patch https:/ /review. opendev. org/#/c/ 746022/