Mistral unit tests unintentionally install OpenStack actions

Bug #1883518 reported by Renat Akhmerov
6
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
Revision history for this message
Renat Akhmerov (rakhmerov) wrote :

The mistral.tests.unit.base.BaseTest class now has this code in the method setUp():

        self.override_config(
            'load_action_generators',
            False,
            'legacy_action_provider'
        )

It was added by the patch https://review.opendev.org/#/c/746022/

Changed in mistral:
status: Confirmed → Fix Released
milestone: victoria-1 → victoria-rc1
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.