From cd7dc39703c80ade657cbebc0ae4bee1aae05e38 Mon Sep 17 00:00:00 2001 From: Ryan Petrello Date: Mon, 3 Jul 2017 16:25:15 -0400 Subject: [PATCH] rename "Insights Basic Auth" to "Insights" see: #6870 --- awx/main/models/credential.py | 6 +++--- awx/main/tests/functional/test_credential_migration.py | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/awx/main/models/credential.py b/awx/main/models/credential.py index 585d57ae8e..17ab98912e 100644 --- a/awx/main/models/credential.py +++ b/awx/main/models/credential.py @@ -946,16 +946,16 @@ def azure_rm(cls): def insights(cls): return cls( kind='insights', - name='Insights Basic Auth', + name='Insights', managed_by_tower=True, inputs={ 'fields': [{ 'id': 'username', - 'label': 'Basic Auth Username', + 'label': 'Username', 'type': 'string' }, { 'id': 'password', - 'label': 'Basic Auth Password', + 'label': 'Password', 'type': 'string', 'secret': True }], diff --git a/awx/main/tests/functional/test_credential_migration.py b/awx/main/tests/functional/test_credential_migration.py index 386839591c..578fa2974f 100644 --- a/awx/main/tests/functional/test_credential_migration.py +++ b/awx/main/tests/functional/test_credential_migration.py @@ -320,7 +320,7 @@ def test_insights_migration(): 'password': 'some-password', }) - assert cred.credential_type.name == 'Insights Basic Auth' + assert cred.credential_type.name == 'Insights' assert cred.inputs['username'] == 'bob' assert cred.inputs['password'].startswith('$encrypted$')