Add back in fixture

This commit is contained in:
Alan Rominger 2021-07-09 13:32:31 -04:00
parent 9b319cf2bf
commit 122f282e5d
No known key found for this signature in database
GPG Key ID: C2D7EAAA12B63559

View File

@ -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