mirror of
https://github.com/ansible/awx.git
synced 2026-05-20 07:17:40 -02:30
Fix prop type errors in unit tests
This commit is contained in:
@@ -17,6 +17,10 @@ const verbosityOptions = [
|
|||||||
{ value: '3', key: '3', label: '3 (Debug)' },
|
{ value: '3', key: '3', label: '3 (Debug)' },
|
||||||
{ value: '4', key: '4', label: '4 (Connection Debug)' },
|
{ value: '4', key: '4', label: '4 (Connection Debug)' },
|
||||||
];
|
];
|
||||||
|
const moduleOptions = [
|
||||||
|
['command', 'command'],
|
||||||
|
['shell', 'shell'],
|
||||||
|
];
|
||||||
const adHocItems = [
|
const adHocItems = [
|
||||||
{ name: 'Inventory 1' },
|
{ name: 'Inventory 1' },
|
||||||
{ name: 'Inventory 2' },
|
{ name: 'Inventory 2' },
|
||||||
@@ -31,7 +35,7 @@ describe('<AdHocCommandsWizard/>', () => {
|
|||||||
<AdHocCommandsWizard
|
<AdHocCommandsWizard
|
||||||
adHocItems={adHocItems}
|
adHocItems={adHocItems}
|
||||||
onLaunch={onLaunch}
|
onLaunch={onLaunch}
|
||||||
moduleOptions={[]}
|
moduleOptions={moduleOptions}
|
||||||
verbosityOptions={verbosityOptions}
|
verbosityOptions={verbosityOptions}
|
||||||
onCloseWizard={() => {}}
|
onCloseWizard={() => {}}
|
||||||
credentialTypeId={1}
|
credentialTypeId={1}
|
||||||
|
|||||||
@@ -41,6 +41,7 @@ const InventoryLookupField = withI18n()(({ i18n, host }) => {
|
|||||||
helperTextInvalid={inventoryMeta.error}
|
helperTextInvalid={inventoryMeta.error}
|
||||||
>
|
>
|
||||||
<InventoryLookup
|
<InventoryLookup
|
||||||
|
fieldId="inventory-lookup"
|
||||||
value={inventory}
|
value={inventory}
|
||||||
onBlur={() => inventoryHelpers.setTouched()}
|
onBlur={() => inventoryHelpers.setTouched()}
|
||||||
tooltip={i18n._(t`Select the inventory that this host will belong to.`)}
|
tooltip={i18n._(t`Select the inventory that this host will belong to.`)}
|
||||||
|
|||||||
@@ -274,7 +274,8 @@ function JobTemplateForm({
|
|||||||
promptId="template-ask-scm-branch-on-launch"
|
promptId="template-ask-scm-branch-on-launch"
|
||||||
promptName="ask_scm_branch_on_launch"
|
promptName="ask_scm_branch_on_launch"
|
||||||
tooltip={i18n._(
|
tooltip={i18n._(
|
||||||
t`Select a branch for the job template. This branch is applied to all job template nodes that prompt for a branch.`
|
t`Select a branch for the job template. This branch is applied to
|
||||||
|
all job template nodes that prompt for a branch.`
|
||||||
)}
|
)}
|
||||||
>
|
>
|
||||||
<TextInput
|
<TextInput
|
||||||
@@ -354,7 +355,10 @@ function JobTemplateForm({
|
|||||||
label={i18n._(t`Variables`)}
|
label={i18n._(t`Variables`)}
|
||||||
promptId="template-ask-variables-on-launch"
|
promptId="template-ask-variables-on-launch"
|
||||||
tooltip={i18n._(
|
tooltip={i18n._(
|
||||||
t`Pass extra command line variables to the playbook. This is the -e or --extra-vars command line parameter for ansible-playbook. Provide key/value pairs using either YAML or JSON. Refer to the Ansible Tower documentation for example syntax.`
|
t`Pass extra command line variables to the playbook. This is the
|
||||||
|
-e or --extra-vars command line parameter for ansible-playbook.
|
||||||
|
Provide key/value pairs using either YAML or JSON. Refer to the
|
||||||
|
Ansible Tower documentation for example syntax.`
|
||||||
)}
|
)}
|
||||||
/>
|
/>
|
||||||
<FormColumnLayout>
|
<FormColumnLayout>
|
||||||
@@ -439,7 +443,7 @@ function JobTemplateForm({
|
|||||||
promptName="ask_diff_mode_on_launch"
|
promptName="ask_diff_mode_on_launch"
|
||||||
tooltip={i18n._(t`If enabled, show the changes made by
|
tooltip={i18n._(t`If enabled, show the changes made by
|
||||||
Ansible tasks, where supported. This is equivalent
|
Ansible tasks, where supported. This is equivalent
|
||||||
to Ansible’s --diff mode.`)}
|
to Ansible's --diff mode.`)}
|
||||||
>
|
>
|
||||||
<Switch
|
<Switch
|
||||||
id="template-show-changes"
|
id="template-show-changes"
|
||||||
@@ -548,7 +552,9 @@ function JobTemplateForm({
|
|||||||
name="use_fact_cache"
|
name="use_fact_cache"
|
||||||
label={i18n._(t`Enable Fact Storage`)}
|
label={i18n._(t`Enable Fact Storage`)}
|
||||||
tooltip={i18n._(
|
tooltip={i18n._(
|
||||||
t`If enabled, this will store gathered facts so they can be viewed at the host level. Facts are persisted and injected into the fact cache at runtime.`
|
t`If enabled, this will store gathered facts so they can
|
||||||
|
be viewed at the host level. Facts are persisted and
|
||||||
|
injected into the fact cache at runtime.`
|
||||||
)}
|
)}
|
||||||
/>
|
/>
|
||||||
</FormCheckboxLayout>
|
</FormCheckboxLayout>
|
||||||
|
|||||||
Reference in New Issue
Block a user