Update inventory/cred names in UI

This commit is contained in:
Bill Nottingham 2021-06-17 17:29:41 -04:00 committed by Shane McDonald
parent 32cc7e976a
commit 0c0028541d
No known key found for this signature in database
GPG Key ID: 6F374AF6E9EB9374
7 changed files with 7 additions and 7 deletions

View File

@ -57,7 +57,7 @@ describe('<InventorySourceAdd />', () => {
['satellite6', 'Red Hat Satellite 6'],
['openstack', 'OpenStack'],
['rhv', 'Red Hat Virtualization'],
['tower', 'Ansible Tower'],
['controller', 'Red Hat Ansible Automation Platform'],
],
},
},

View File

@ -43,7 +43,7 @@ describe('InventorySourceDetail', () => {
['satellite6', 'Red Hat Satellite 6'],
['openstack', 'OpenStack'],
['rhv', 'Red Hat Virtualization'],
['tower', 'Ansible Tower'],
['controller', 'Red Hat Ansible Automation Platform'],
],
},
},

View File

@ -57,7 +57,7 @@ describe('<InventorySourceEdit />', () => {
['satellite6', 'Red Hat Satellite 6'],
['openstack', 'OpenStack'],
['rhv', 'Red Hat Virtualization'],
['tower', 'Ansible Tower'],
['controller', 'Red Hat Ansible Automation Platform'],
],
},
},

View File

@ -218,7 +218,7 @@ const InventorySourceFormFields = ({
tower: (
<TowerSubForm
autoPopulateCredential={
!source?.id || source?.source !== 'tower'
!source?.id || source?.source !== 'controller'
}
/>
),

View File

@ -37,7 +37,7 @@ describe('<InventorySourceForm />', () => {
['satellite6', 'Red Hat Satellite 6'],
['openstack', 'OpenStack'],
['rhv', 'Red Hat Virtualization'],
['tower', 'Ansible Tower'],
['controller', 'Red Hat Ansible Automation Platform'],
],
},
},

View File

@ -39,7 +39,7 @@ const TowerSubForm = ({ autoPopulateCredential }) => {
return (
<>
<CredentialLookup
credentialTypeNamespace="tower"
credentialTypeNamespace="controller"
label={t`Credential`}
helperTextInvalid={credentialMeta.error}
isValid={!credentialMeta.touched || !credentialMeta.error}

View File

@ -56,7 +56,7 @@ describe('<TowerSubForm />', () => {
test('should make expected api calls', () => {
expect(CredentialsAPI.read).toHaveBeenCalledTimes(1);
expect(CredentialsAPI.read).toHaveBeenCalledWith({
credential_type__namespace: 'tower',
credential_type__namespace: 'controller',
order_by: 'name',
page: 1,
page_size: 5,