mirror of
https://github.com/ansible/awx.git
synced 2026-05-13 04:17:36 -02:30
Add back in fixture
This commit is contained in:
@@ -247,6 +247,15 @@ def vault_credential(organization):
|
|||||||
return Credential.objects.create(credential_type=ct, name='vault-cred', inputs={'vault_id': 'foo', 'vault_password': 'pas4word'})
|
return Credential.objects.create(credential_type=ct, name='vault-cred', inputs={'vault_id': 'foo', 'vault_password': 'pas4word'})
|
||||||
|
|
||||||
|
|
||||||
|
@pytest.fixture
|
||||||
|
def kube_credential():
|
||||||
|
ct = CredentialType.defaults['kubernetes_bearer_token']()
|
||||||
|
ct.save()
|
||||||
|
return Credential.objects.create(
|
||||||
|
credential_type=ct, name='kube-cred', inputs={'host': 'my.cluster', 'bearer_token': 'my-token', 'verify_ssl': False}
|
||||||
|
)
|
||||||
|
|
||||||
|
|
||||||
@pytest.fixture
|
@pytest.fixture
|
||||||
def silence_deprecation():
|
def silence_deprecation():
|
||||||
"""The deprecation warnings are stored in a global variable
|
"""The deprecation warnings are stored in a global variable
|
||||||
|
|||||||
Reference in New Issue
Block a user