mirror of
https://github.com/ansible/awx.git
synced 2026-03-01 16:58:46 -03:30
Update inventory/cred names in UI
This commit is contained in:
committed by
Shane McDonald
parent
32cc7e976a
commit
0c0028541d
@@ -57,7 +57,7 @@ describe('<InventorySourceAdd />', () => {
|
|||||||
['satellite6', 'Red Hat Satellite 6'],
|
['satellite6', 'Red Hat Satellite 6'],
|
||||||
['openstack', 'OpenStack'],
|
['openstack', 'OpenStack'],
|
||||||
['rhv', 'Red Hat Virtualization'],
|
['rhv', 'Red Hat Virtualization'],
|
||||||
['tower', 'Ansible Tower'],
|
['controller', 'Red Hat Ansible Automation Platform'],
|
||||||
],
|
],
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -43,7 +43,7 @@ describe('InventorySourceDetail', () => {
|
|||||||
['satellite6', 'Red Hat Satellite 6'],
|
['satellite6', 'Red Hat Satellite 6'],
|
||||||
['openstack', 'OpenStack'],
|
['openstack', 'OpenStack'],
|
||||||
['rhv', 'Red Hat Virtualization'],
|
['rhv', 'Red Hat Virtualization'],
|
||||||
['tower', 'Ansible Tower'],
|
['controller', 'Red Hat Ansible Automation Platform'],
|
||||||
],
|
],
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -57,7 +57,7 @@ describe('<InventorySourceEdit />', () => {
|
|||||||
['satellite6', 'Red Hat Satellite 6'],
|
['satellite6', 'Red Hat Satellite 6'],
|
||||||
['openstack', 'OpenStack'],
|
['openstack', 'OpenStack'],
|
||||||
['rhv', 'Red Hat Virtualization'],
|
['rhv', 'Red Hat Virtualization'],
|
||||||
['tower', 'Ansible Tower'],
|
['controller', 'Red Hat Ansible Automation Platform'],
|
||||||
],
|
],
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -218,7 +218,7 @@ const InventorySourceFormFields = ({
|
|||||||
tower: (
|
tower: (
|
||||||
<TowerSubForm
|
<TowerSubForm
|
||||||
autoPopulateCredential={
|
autoPopulateCredential={
|
||||||
!source?.id || source?.source !== 'tower'
|
!source?.id || source?.source !== 'controller'
|
||||||
}
|
}
|
||||||
/>
|
/>
|
||||||
),
|
),
|
||||||
|
|||||||
@@ -37,7 +37,7 @@ describe('<InventorySourceForm />', () => {
|
|||||||
['satellite6', 'Red Hat Satellite 6'],
|
['satellite6', 'Red Hat Satellite 6'],
|
||||||
['openstack', 'OpenStack'],
|
['openstack', 'OpenStack'],
|
||||||
['rhv', 'Red Hat Virtualization'],
|
['rhv', 'Red Hat Virtualization'],
|
||||||
['tower', 'Ansible Tower'],
|
['controller', 'Red Hat Ansible Automation Platform'],
|
||||||
],
|
],
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -39,7 +39,7 @@ const TowerSubForm = ({ autoPopulateCredential }) => {
|
|||||||
return (
|
return (
|
||||||
<>
|
<>
|
||||||
<CredentialLookup
|
<CredentialLookup
|
||||||
credentialTypeNamespace="tower"
|
credentialTypeNamespace="controller"
|
||||||
label={t`Credential`}
|
label={t`Credential`}
|
||||||
helperTextInvalid={credentialMeta.error}
|
helperTextInvalid={credentialMeta.error}
|
||||||
isValid={!credentialMeta.touched || !credentialMeta.error}
|
isValid={!credentialMeta.touched || !credentialMeta.error}
|
||||||
|
|||||||
@@ -56,7 +56,7 @@ describe('<TowerSubForm />', () => {
|
|||||||
test('should make expected api calls', () => {
|
test('should make expected api calls', () => {
|
||||||
expect(CredentialsAPI.read).toHaveBeenCalledTimes(1);
|
expect(CredentialsAPI.read).toHaveBeenCalledTimes(1);
|
||||||
expect(CredentialsAPI.read).toHaveBeenCalledWith({
|
expect(CredentialsAPI.read).toHaveBeenCalledWith({
|
||||||
credential_type__namespace: 'tower',
|
credential_type__namespace: 'controller',
|
||||||
order_by: 'name',
|
order_by: 'name',
|
||||||
page: 1,
|
page: 1,
|
||||||
page_size: 5,
|
page_size: 5,
|
||||||
|
|||||||
Reference in New Issue
Block a user