MAASServerTestCase.setUp() is overly broad
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
MAAS |
Invalid
|
High
|
Unassigned |
Bug Description
There's code in MAASServerTestC
into fixtures or be done for specific test cases, perhaps with
setUpClass(). It really does not belong here.
The current offenders:
# This patch prevents communication with a non-existent cluster
# controller when fetching power types.
static_params = (
provision
self.patch(
power_
'
# Disconnect the monitor cancellation as it's triggered by a signal.
# Avoid circular imports.
from maasserver import monitor_connect
self.
# Disconnect the status transition event to speed up tests.
# Avoid circular imports.
from maasserver import event_connect
self.
Changed in maas: | |
status: | Triaged → Invalid |