Add test for deprecated vault_credential

This commit is contained in:
AlanCoding
2020-01-02 14:25:19 -05:00
parent 78e2cd7084
commit b9b6dad0b3
3 changed files with 25 additions and 7 deletions

View File

@@ -146,3 +146,13 @@ def machine_credential(organization):
credential_type=ssh_type, name='machine-cred',
inputs={'username': 'test_user', 'password': 'pas4word'}
)
@pytest.fixture
def vault_credential(organization):
ct = CredentialType.defaults['vault']()
ct.save()
return Credential.objects.create(
credential_type=ct, name='vault-cred',
inputs={'vault_id': 'foo', 'vault_password': 'pas4word'}
)