mirror of
https://github.com/ansible/awx.git
synced 2026-02-18 11:40:05 -03:30
fixes network cred failure in travis
This commit is contained in:
@@ -39,3 +39,7 @@ def job_with_secret_key_factory(job_template_factory):
|
|||||||
@pytest.fixture
|
@pytest.fixture
|
||||||
def job_with_secret_key_unit(job_with_secret_key_factory):
|
def job_with_secret_key_unit(job_with_secret_key_factory):
|
||||||
return job_with_secret_key_factory(persisted=False)
|
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']
|
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'):
|
with mocker.patch('django.db.ConnectionRouter.db_for_write'):
|
||||||
run_job = RunJob()
|
run_job = RunJob()
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user