diff --git a/awx/ui/src/screens/Inventory/shared/InventorySourceForm.js b/awx/ui/src/screens/Inventory/shared/InventorySourceForm.js index 428ad1836c..c786222f7c 100644 --- a/awx/ui/src/screens/Inventory/shared/InventorySourceForm.js +++ b/awx/ui/src/screens/Inventory/shared/InventorySourceForm.js @@ -22,7 +22,7 @@ import { OpenStackSubForm, SCMSubForm, SatelliteSubForm, - TowerSubForm, + ControllerSubForm, VMwareSubForm, VirtualizationSubForm, } from './InventorySourceSubForms'; @@ -207,8 +207,8 @@ const InventorySourceFormFields = ({ } /> ), - tower: ( - { +const ControllerSubForm = ({ autoPopulateCredential }) => { const { setFieldValue, setFieldTouched } = useFormikContext(); const [credentialField, credentialMeta, credentialHelpers] = useField('credential'); @@ -78,4 +78,4 @@ const TowerSubForm = ({ autoPopulateCredential }) => { ); }; -export default TowerSubForm; +export default ControllerSubForm; diff --git a/awx/ui/src/screens/Inventory/shared/InventorySourceSubForms/TowerSubForm.test.js b/awx/ui/src/screens/Inventory/shared/InventorySourceSubForms/ControllerSubForm.test.js similarity index 92% rename from awx/ui/src/screens/Inventory/shared/InventorySourceSubForms/TowerSubForm.test.js rename to awx/ui/src/screens/Inventory/shared/InventorySourceSubForms/ControllerSubForm.test.js index e46e297c22..9c7aff20a6 100644 --- a/awx/ui/src/screens/Inventory/shared/InventorySourceSubForms/TowerSubForm.test.js +++ b/awx/ui/src/screens/Inventory/shared/InventorySourceSubForms/ControllerSubForm.test.js @@ -3,7 +3,7 @@ import { act } from 'react-dom/test-utils'; import { Formik } from 'formik'; import { CredentialsAPI } from 'api'; import { mountWithContexts } from '../../../../../testUtils/enzymeHelpers'; -import TowerSubForm from './TowerSubForm'; +import ControllerSubForm from './ControllerSubForm'; jest.mock('../../../../api'); @@ -21,7 +21,7 @@ const initialValues = { verbosity: 1, }; -describe('', () => { +describe('', () => { let wrapper; beforeEach(async () => { @@ -31,7 +31,7 @@ describe('', () => { await act(async () => { wrapper = mountWithContexts( - + ); }); diff --git a/awx/ui/src/screens/Inventory/shared/InventorySourceSubForms/index.js b/awx/ui/src/screens/Inventory/shared/InventorySourceSubForms/index.js index 2efe263db7..d9ab42201a 100644 --- a/awx/ui/src/screens/Inventory/shared/InventorySourceSubForms/index.js +++ b/awx/ui/src/screens/Inventory/shared/InventorySourceSubForms/index.js @@ -5,6 +5,6 @@ export { default as InsightsSubForm } from './InsightsSubForm'; export { default as OpenStackSubForm } from './OpenStackSubForm'; export { default as SCMSubForm } from './SCMSubForm'; export { default as SatelliteSubForm } from './SatelliteSubForm'; -export { default as TowerSubForm } from './TowerSubForm'; +export { default as ControllerSubForm } from './ControllerSubForm'; export { default as VMwareSubForm } from './VMwareSubForm'; export { default as VirtualizationSubForm } from './VirtualizationSubForm'; diff --git a/awx/ui/src/screens/Template/WorkflowJobTemplateVisualizer/Modals/NodeModals/NodeTypeStep/InventorySourcesList.js b/awx/ui/src/screens/Template/WorkflowJobTemplateVisualizer/Modals/NodeModals/NodeTypeStep/InventorySourcesList.js index 2fa0871a92..1167b2db5f 100644 --- a/awx/ui/src/screens/Template/WorkflowJobTemplateVisualizer/Modals/NodeModals/NodeTypeStep/InventorySourcesList.js +++ b/awx/ui/src/screens/Template/WorkflowJobTemplateVisualizer/Modals/NodeModals/NodeTypeStep/InventorySourcesList.js @@ -102,7 +102,7 @@ function InventorySourcesList({ nodeResource, onUpdateNodeResource }) { [`satellite6`, t`Red Hat Satellite 6`], [`openstack`, t`OpenStack`], [`rhv`, t`Red Hat Virtualization`], - [`tower`, t`Ansible Tower`], + [`controller`, t`Red Hat Ansible Automation Platform`], ], }, ]}