mirror of
https://github.com/ansible/awx.git
synced 2026-07-08 14:58:03 -02:30
do not choose offline instances
This commit is contained in:
@@ -627,10 +627,12 @@ class TestAdhocRun(TestJobExecution):
|
||||
class TestIsolatedExecution(TestJobExecution):
|
||||
|
||||
ISOLATED_HOST = 'some-isolated-host'
|
||||
ISOLATED_CONTROLLER_HOST = 'some-isolated-controller-host'
|
||||
|
||||
def get_instance(self):
|
||||
instance = super(TestIsolatedExecution, self).get_instance()
|
||||
instance.get_isolated_execution_node_name = mock.Mock(return_value=self.ISOLATED_HOST)
|
||||
instance.controller_node = self.ISOLATED_CONTROLLER_HOST
|
||||
instance.execution_node = self.ISOLATED_HOST
|
||||
return instance
|
||||
|
||||
def test_with_ssh_credentials(self):
|
||||
|
||||
Reference in New Issue
Block a user