mirror of
https://github.com/ansible/awx.git
synced 2026-01-11 10:00:01 -03:30
Add back in fixture
This commit is contained in:
parent
9b319cf2bf
commit
122f282e5d
@ -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'})
|
||||
|
||||
|
||||
@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
|
||||
def silence_deprecation():
|
||||
"""The deprecation warnings are stored in a global variable
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user