extend-node-status
add 'disabled_reason' filed into 'ComputeNode' resource, to distinguish which nodes are disabled by Watcher and which are not by Watcher. Implements:blueprint extend-node-status Change-Id: I7175f14870834a4582e45309529d7e8d9fbb2e6f
This commit is contained in:
@@ -328,13 +328,13 @@ class TestNovaHelper(base.TestCase):
|
||||
mock_neutron, mock_nova):
|
||||
nova_util = nova_helper.NovaHelper()
|
||||
nova_services = nova_util.nova.services
|
||||
nova_services.disable.return_value = mock.MagicMock(
|
||||
nova_services.disable_log_reason.return_value = mock.MagicMock(
|
||||
status='enabled')
|
||||
|
||||
result = nova_util.disable_service_nova_compute('nanjing')
|
||||
self.assertFalse(result)
|
||||
|
||||
nova_services.disable.return_value = mock.MagicMock(
|
||||
nova_services.disable_log_reason.return_value = mock.MagicMock(
|
||||
status='disabled')
|
||||
|
||||
result = nova_util.disable_service_nova_compute('nanjing')
|
||||
|
||||
Reference in New Issue
Block a user