mirror of
https://github.com/ansible/awx.git
synced 2026-01-11 10:00:01 -03:30
Update inventory/cred names in UI
This commit is contained in:
parent
32cc7e976a
commit
0c0028541d
@ -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'],
|
||||
],
|
||||
},
|
||||
},
|
||||
|
||||
@ -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'],
|
||||
],
|
||||
},
|
||||
},
|
||||
|
||||
@ -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'],
|
||||
],
|
||||
},
|
||||
},
|
||||
|
||||
@ -218,7 +218,7 @@ const InventorySourceFormFields = ({
|
||||
tower: (
|
||||
<TowerSubForm
|
||||
autoPopulateCredential={
|
||||
!source?.id || source?.source !== 'tower'
|
||||
!source?.id || source?.source !== 'controller'
|
||||
}
|
||||
/>
|
||||
),
|
||||
|
||||
@ -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'],
|
||||
],
|
||||
},
|
||||
},
|
||||
|
||||
@ -39,7 +39,7 @@ const TowerSubForm = ({ autoPopulateCredential }) => {
|
||||
return (
|
||||
<>
|
||||
<CredentialLookup
|
||||
credentialTypeNamespace="tower"
|
||||
credentialTypeNamespace="controller"
|
||||
label={t`Credential`}
|
||||
helperTextInvalid={credentialMeta.error}
|
||||
isValid={!credentialMeta.touched || !credentialMeta.error}
|
||||
|
||||
@ -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,
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user