mirror of
https://github.com/ansible/awx.git
synced 2026-01-11 18:09:57 -03:30
fixes network cred failure in travis
This commit is contained in:
parent
2a791b8e90
commit
c7524892c0
@ -39,3 +39,7 @@ def job_with_secret_key_factory(job_template_factory):
|
||||
@pytest.fixture
|
||||
def job_with_secret_key_unit(job_with_secret_key_factory):
|
||||
return job_with_secret_key_factory(persisted=False)
|
||||
|
||||
@pytest.fixture
|
||||
def get_ssh_version(mocker):
|
||||
return mocker.patch('awx.main.tasks.get_ssh_version', return_value='OpenSSH_6.9p1, LibreSSL 2.1.8')
|
||||
|
||||
@ -33,7 +33,7 @@ def test_net_cred_parse(mocker, options):
|
||||
assert env['ANSIBLE_NET_AUTHORIZE_PASSWORD'] == options['authorize_password']
|
||||
|
||||
|
||||
def test_net_cred_ssh_agent(mocker, options):
|
||||
def test_net_cred_ssh_agent(mocker, options, get_ssh_version):
|
||||
with mocker.patch('django.db.ConnectionRouter.db_for_write'):
|
||||
run_job = RunJob()
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user