mirror of
https://github.com/ansible/awx.git
synced 2026-05-11 03:17:38 -02:30
Ensure that a fallback EE is available to be found
for the failing tests.
This commit is contained in:
committed by
Shane McDonald
parent
5f1da2b923
commit
4a0fc3e1af
@@ -18,6 +18,7 @@ from awx.main.models import (
|
||||
AdHocCommand,
|
||||
Credential,
|
||||
CredentialType,
|
||||
ExecutionEnvironment,
|
||||
Inventory,
|
||||
InventorySource,
|
||||
InventoryUpdate,
|
||||
@@ -657,9 +658,12 @@ class TestGenericRun():
|
||||
assert env['FOO'] == 'BAR'
|
||||
|
||||
|
||||
@pytest.mark.django_db
|
||||
class TestAdhocRun(TestJobExecution):
|
||||
|
||||
def test_options_jinja_usage(self, adhoc_job, adhoc_update_model_wrapper):
|
||||
ExecutionEnvironment.objects.create(name='test EE', managed_by_tower=True)
|
||||
|
||||
adhoc_job.module_args = '{{ ansible_ssh_pass }}'
|
||||
adhoc_job.websocket_emit_status = mock.Mock()
|
||||
adhoc_job.send_notification_templates = mock.Mock()
|
||||
|
||||
Reference in New Issue
Block a user