mirror of
https://github.com/ansible/awx.git
synced 2026-05-19 23:07:42 -02:30
Further module conversion changes, unit test changes
Multiple module changes Added on_change callback Added head_endpoint Added additional error returns Respond with a try an ID message if multiple assets found by name via return_none_on_404 kwarg Diferentiated between login and logout token errors Added is_job_done method
This commit is contained in:
@@ -63,9 +63,9 @@ def test_create_vault_credential(run_module, admin_user):
|
||||
|
||||
|
||||
@pytest.mark.django_db
|
||||
def test_create_custom_credential_type(run_module, admin_user):
|
||||
def test_create_custom_credential_type(run_converted_module, admin_user):
|
||||
# Example from docs
|
||||
result = run_module('tower_credential_type', dict(
|
||||
result = run_converted_module('tower_credential_type', dict(
|
||||
name='Nexus',
|
||||
description='Credentials type for Nexus',
|
||||
kind='cloud',
|
||||
@@ -79,8 +79,7 @@ def test_create_custom_credential_type(run_module, admin_user):
|
||||
ct = CredentialType.objects.get(name='Nexus')
|
||||
result.pop('invocation')
|
||||
assert result == {
|
||||
"credential_type": "Nexus",
|
||||
"state": "present",
|
||||
"name": "Nexus",
|
||||
"id": ct.pk,
|
||||
"changed": True
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user