app/javascript/spec/live-migrate-form/__snapshots__/live-migrate-form.spec.js.snap
// Jest Snapshot v1, https://goo.gl/fbAQLP
exports[`Live Migrate form component should render live migrate form when hosts empty 1`] = `
<Provider
store={
Object {
"asyncReducers": Object {
"FormButtons": [Function],
"miqCustomTabReducer": [Function],
"notificationReducer": [Function],
},
"dispatch": [Function],
"getState": [Function],
"injectReducers": [Function],
"replaceReducer": [Function],
"subscribe": [Function],
Symbol(observable): [Function],
}
}
>
<LiveMigrateForm
recordId="20"
>
<Connect(MiqFormRenderer)
buttonsLabels={
Object {
"submitLabel": "Submit",
}
}
canReset={false}
className="live_migrate_form"
initialValues={
Object {
"auto_select_host": true,
}
}
onCancel={[Function]}
onSubmit={[Function]}
schema={
Object {
"fields": Array [
Object {
"component": "sub-form",
"fields": Array [
Object {
"component": "checkbox",
"id": "auto_select_host",
"isDisabled": true,
"label": "Auto-select Host?",
"name": "auto_select_host",
},
Object {
"component": "checkbox",
"id": "block_migration",
"label": "Block Migration",
"name": "block_migration",
"validate": Array [
Object {
"type": "required",
},
],
},
Object {
"component": "checkbox",
"id": "disk_over_commit",
"label": "Disk Over Commit",
"name": "disk_over_commit",
"validate": Array [
Object {
"type": "required",
},
],
},
Object {
"component": "select",
"condition": Object {
"is": false,
"when": "auto_select_host",
},
"id": "destination_host",
"includeEmpty": true,
"isRequired": true,
"labelText": "Hosts",
"name": "destination_host",
"options": Array [],
"placeholder": "<Choose>",
"validate": Array [
Object {
"type": "required",
},
],
},
],
"name": "MigrateInstance",
"title": "Migrate Instance",
},
],
}
}
>
<MiqFormRenderer
buttonsLabels={
Object {
"submitLabel": "Submit",
}
}
canReset={false}
className="live_migrate_form"
componentMapper={
Object {
"checkbox": [Function],
"code-editor": [Function],
"date-picker": [Function],
"dual-list-select": [Function],
"edit-password-field": [Function],
"field-array": [Function],
"file-upload": [Function],
"font-icon-picker": [Function],
"font-icon-picker-ddf": [Function],
"multi-select": [Function],
"password-field": [Function],
"plain-text": [Function],
"radio": [Function],
"select": [Function],
"slider": [Function],
"sub-form": [Function],
"switch": [Function],
"tabs": [Function],
"text-field": [Function],
"textarea": [Function],
"time-picker": [Function],
"tree-selector": [Function],
"tree-view": [Function],
"validate-credentials": [Function],
"wizard": [Function],
}
}
disableSubmit={
Array [
"pristine",
"invalid",
]
}
dispatch={[Function]}
initialValues={
Object {
"auto_select_host": true,
}
}
onCancel={[Function]}
onSubmit={[Function]}
schema={
Object {
"fields": Array [
Object {
"component": "sub-form",
"fields": Array [
Object {
"component": "checkbox",
"id": "auto_select_host",
"isDisabled": true,
"label": "Auto-select Host?",
"name": "auto_select_host",
},
Object {
"component": "checkbox",
"id": "block_migration",
"label": "Block Migration",
"name": "block_migration",
"validate": Array [
Object {
"type": "required",
},
],
},
Object {
"component": "checkbox",
"id": "disk_over_commit",
"label": "Disk Over Commit",
"name": "disk_over_commit",
"validate": Array [
Object {
"type": "required",
},
],
},
Object {
"component": "select",
"condition": Object {
"is": false,
"when": "auto_select_host",
},
"id": "destination_host",
"includeEmpty": true,
"isRequired": true,
"labelText": "Hosts",
"name": "destination_host",
"options": Array [],
"placeholder": "<Choose>",
"validate": Array [
Object {
"type": "required",
},
],
},
],
"name": "MigrateInstance",
"title": "Migrate Instance",
},
],
}
}
showFormControls={true}
>
<FormRenderer
FormTemplate={[Function]}
clearOnUnmount={false}
componentMapper={
Object {
"checkbox": [Function],
"code-editor": [Function],
"date-picker": [Function],
"dual-list-select": [Function],
"edit-password-field": [Function],
"field-array": [Function],
"file-upload": [Function],
"font-icon-picker": [Function],
"font-icon-picker-ddf": [Function],
"multi-select": [Function],
"password-field": [Function],
"plain-text": [Function],
"radio": [Function],
"select": [Function],
"slider": [Function],
"spy-field": [Function],
"sub-form": [Function],
"switch": [Function],
"tabs": [Function],
"text-field": [Function],
"textarea": [Function],
"time-picker": [Function],
"tree-selector": [Function],
"tree-view": [Function],
"validate-credentials": [Function],
"wizard": [Function],
}
}
dispatch={[Function]}
initialValues={
Object {
"auto_select_host": true,
}
}
onCancel={[Function]}
onReset={[Function]}
onSubmit={[Function]}
schema={
Object {
"fields": Array [
Object {
"component": "sub-form",
"fields": Array [
Object {
"component": "checkbox",
"id": "auto_select_host",
"isDisabled": true,
"label": "Auto-select Host?",
"name": "auto_select_host",
},
Object {
"component": "checkbox",
"id": "block_migration",
"label": "Block Migration",
"name": "block_migration",
"validate": Array [
Object {
"type": "required",
},
],
},
Object {
"component": "checkbox",
"id": "disk_over_commit",
"label": "Disk Over Commit",
"name": "disk_over_commit",
"validate": Array [
Object {
"type": "required",
},
],
},
Object {
"component": "select",
"condition": Object {
"is": false,
"when": "auto_select_host",
},
"id": "destination_host",
"includeEmpty": true,
"isRequired": true,
"labelText": "Hosts",
"name": "destination_host",
"options": Array [],
"placeholder": "<Choose>",
"validate": Array [
Object {
"type": "required",
},
],
},
],
"name": "MigrateInstance",
"title": "Migrate Instance",
},
Object {
"component": "spy-field",
"initialize": undefined,
"name": "spy-field",
},
],
}
}
>
<ReactFinalForm
decorators={
Array [
[Function],
]
}
dispatch={[Function]}
initialValues={
Object {
"auto_select_host": true,
}
}
mutators={
Object {
"concat": [Function],
"insert": [Function],
"move": [Function],
"pop": [Function],
"push": [Function],
"remove": [Function],
"removeBatch": [Function],
"shift": [Function],
"swap": [Function],
"unshift": [Function],
"update": [Function],
}
}
onSubmit={[Function]}
render={[Function]}
subscription={
Object {
"pristine": true,
"submitting": true,
"valid": true,
}
}
>
<Component
formFields={
Array [
<SingleField
component="sub-form"
fields={
Array [
Object {
"component": "checkbox",
"id": "auto_select_host",
"isDisabled": true,
"label": "Auto-select Host?",
"name": "auto_select_host",
},
Object {
"component": "checkbox",
"id": "block_migration",
"label": "Block Migration",
"name": "block_migration",
"validate": Array [
Object {
"type": "required",
},
],
},
Object {
"component": "checkbox",
"id": "disk_over_commit",
"label": "Disk Over Commit",
"name": "disk_over_commit",
"validate": Array [
Object {
"type": "required",
},
],
},
Object {
"component": "select",
"condition": Object {
"is": false,
"when": "auto_select_host",
},
"id": "destination_host",
"includeEmpty": true,
"isRequired": true,
"labelText": "Hosts",
"name": "destination_host",
"options": Array [],
"placeholder": "<Choose>",
"validate": Array [
Object {
"type": "required",
},
],
},
]
}
name="MigrateInstance"
title="Migrate Instance"
/>,
<SingleField
component="spy-field"
name="spy-field"
/>,
]
}
schema={
Object {
"fields": Array [
Object {
"component": "sub-form",
"fields": Array [
Object {
"component": "checkbox",
"id": "auto_select_host",
"isDisabled": true,
"label": "Auto-select Host?",
"name": "auto_select_host",
},
Object {
"component": "checkbox",
"id": "block_migration",
"label": "Block Migration",
"name": "block_migration",
"validate": Array [
Object {
"type": "required",
},
],
},
Object {
"component": "checkbox",
"id": "disk_over_commit",
"label": "Disk Over Commit",
"name": "disk_over_commit",
"validate": Array [
Object {
"type": "required",
},
],
},
Object {
"component": "select",
"condition": Object {
"is": false,
"when": "auto_select_host",
},
"id": "destination_host",
"includeEmpty": true,
"isRequired": true,
"labelText": "Hosts",
"name": "destination_host",
"options": Array [],
"placeholder": "<Choose>",
"validate": Array [
Object {
"type": "required",
},
],
},
],
"name": "MigrateInstance",
"title": "Migrate Instance",
},
Object {
"component": "spy-field",
"initialize": undefined,
"name": "spy-field",
},
],
}
}
>
<WrappedFormTemplate
canReset={false}
cancelLabel="Cancel"
disableSubmit={
Array [
"pristine",
"invalid",
]
}
formFields={
Array [
<SingleField
component="sub-form"
fields={
Array [
Object {
"component": "checkbox",
"id": "auto_select_host",
"isDisabled": true,
"label": "Auto-select Host?",
"name": "auto_select_host",
},
Object {
"component": "checkbox",
"id": "block_migration",
"label": "Block Migration",
"name": "block_migration",
"validate": Array [
Object {
"type": "required",
},
],
},
Object {
"component": "checkbox",
"id": "disk_over_commit",
"label": "Disk Over Commit",
"name": "disk_over_commit",
"validate": Array [
Object {
"type": "required",
},
],
},
Object {
"component": "select",
"condition": Object {
"is": false,
"when": "auto_select_host",
},
"id": "destination_host",
"includeEmpty": true,
"isRequired": true,
"labelText": "Hosts",
"name": "destination_host",
"options": Array [],
"placeholder": "<Choose>",
"validate": Array [
Object {
"type": "required",
},
],
},
]
}
name="MigrateInstance"
title="Migrate Instance"
/>,
<SingleField
component="spy-field"
name="spy-field"
/>,
]
}
formWrapperProps={
Object {
"className": "live_migrate_form",
}
}
resetLabel="Reset"
schema={
Object {
"fields": Array [
Object {
"component": "sub-form",
"fields": Array [
Object {
"component": "checkbox",
"id": "auto_select_host",
"isDisabled": true,
"label": "Auto-select Host?",
"name": "auto_select_host",
},
Object {
"component": "checkbox",
"id": "block_migration",
"label": "Block Migration",
"name": "block_migration",
"validate": Array [
Object {
"type": "required",
},
],
},
Object {
"component": "checkbox",
"id": "disk_over_commit",
"label": "Disk Over Commit",
"name": "disk_over_commit",
"validate": Array [
Object {
"type": "required",
},
],
},
Object {
"component": "select",
"condition": Object {
"is": false,
"when": "auto_select_host",
},
"id": "destination_host",
"includeEmpty": true,
"isRequired": true,
"labelText": "Hosts",
"name": "destination_host",
"options": Array [],
"placeholder": "<Choose>",
"validate": Array [
Object {
"type": "required",
},
],
},
],
"name": "MigrateInstance",
"title": "Migrate Instance",
},
Object {
"component": "spy-field",
"initialize": undefined,
"name": "spy-field",
},
],
}
}
showFormControls={true}
submitLabel="Submit"
>
<FormTemplate
Button={[Function]}
ButtonGroup={[Function]}
Description={[Function]}
FormWrapper={[Function]}
Header={[Function]}
Title={[Function]}
buttonOrder={
Array [
"submit",
"reset",
"cancel",
]
}
canReset={false}
cancelLabel="Cancel"
disableSubmit={
Array [
"pristine",
"invalid",
]
}
formFields={
Array [
<SingleField
component="sub-form"
fields={
Array [
Object {
"component": "checkbox",
"id": "auto_select_host",
"isDisabled": true,
"label": "Auto-select Host?",
"name": "auto_select_host",
},
Object {
"component": "checkbox",
"id": "block_migration",
"label": "Block Migration",
"name": "block_migration",
"validate": Array [
Object {
"type": "required",
},
],
},
Object {
"component": "checkbox",
"id": "disk_over_commit",
"label": "Disk Over Commit",
"name": "disk_over_commit",
"validate": Array [
Object {
"type": "required",
},
],
},
Object {
"component": "select",
"condition": Object {
"is": false,
"when": "auto_select_host",
},
"id": "destination_host",
"includeEmpty": true,
"isRequired": true,
"labelText": "Hosts",
"name": "destination_host",
"options": Array [],
"placeholder": "<Choose>",
"validate": Array [
Object {
"type": "required",
},
],
},
]
}
name="MigrateInstance"
title="Migrate Instance"
/>,
<SingleField
component="spy-field"
name="spy-field"
/>,
]
}
formWrapperProps={
Object {
"className": "live_migrate_form",
}
}
resetLabel="Reset"
schema={
Object {
"fields": Array [
Object {
"component": "sub-form",
"fields": Array [
Object {
"component": "checkbox",
"id": "auto_select_host",
"isDisabled": true,
"label": "Auto-select Host?",
"name": "auto_select_host",
},
Object {
"component": "checkbox",
"id": "block_migration",
"label": "Block Migration",
"name": "block_migration",
"validate": Array [
Object {
"type": "required",
},
],
},
Object {
"component": "checkbox",
"id": "disk_over_commit",
"label": "Disk Over Commit",
"name": "disk_over_commit",
"validate": Array [
Object {
"type": "required",
},
],
},
Object {
"component": "select",
"condition": Object {
"is": false,
"when": "auto_select_host",
},
"id": "destination_host",
"includeEmpty": true,
"isRequired": true,
"labelText": "Hosts",
"name": "destination_host",
"options": Array [],
"placeholder": "<Choose>",
"validate": Array [
Object {
"type": "required",
},
],
},
],
"name": "MigrateInstance",
"title": "Migrate Instance",
},
Object {
"component": "spy-field",
"initialize": undefined,
"name": "spy-field",
},
],
}
}
showFormControls={true}
submitLabel="Submit"
>
<Form
className="live_migrate_form"
onSubmit={[Function]}
>
<Form
className="form-0-2-3 live_migrate_form"
noValidate={true}
onSubmit={[Function]}
>
<form
className="bx--form form-0-2-3 live_migrate_form"
noValidate={true}
onSubmit={[Function]}
>
<SingleField
component="sub-form"
fields={
Array [
Object {
"component": "checkbox",
"id": "auto_select_host",
"isDisabled": true,
"label": "Auto-select Host?",
"name": "auto_select_host",
},
Object {
"component": "checkbox",
"id": "block_migration",
"label": "Block Migration",
"name": "block_migration",
"validate": Array [
Object {
"type": "required",
},
],
},
Object {
"component": "checkbox",
"id": "disk_over_commit",
"label": "Disk Over Commit",
"name": "disk_over_commit",
"validate": Array [
Object {
"type": "required",
},
],
},
Object {
"component": "select",
"condition": Object {
"is": false,
"when": "auto_select_host",
},
"id": "destination_host",
"includeEmpty": true,
"isRequired": true,
"labelText": "Hosts",
"name": "destination_host",
"options": Array [],
"placeholder": "<Choose>",
"validate": Array [
Object {
"type": "required",
},
],
},
]
}
key="MigrateInstance"
name="MigrateInstance"
title="Migrate Instance"
>
<FormConditionWrapper
field={
Object {
"component": "sub-form",
"fields": Array [
Object {
"component": "checkbox",
"id": "auto_select_host",
"isDisabled": true,
"label": "Auto-select Host?",
"name": "auto_select_host",
},
Object {
"component": "checkbox",
"id": "block_migration",
"label": "Block Migration",
"name": "block_migration",
"validate": Array [
Object {
"type": "required",
},
],
},
Object {
"component": "checkbox",
"id": "disk_over_commit",
"label": "Disk Over Commit",
"name": "disk_over_commit",
"validate": Array [
Object {
"type": "required",
},
],
},
Object {
"component": "select",
"condition": Object {
"is": false,
"when": "auto_select_host",
},
"id": "destination_host",
"includeEmpty": true,
"isRequired": true,
"labelText": "Hosts",
"name": "destination_host",
"options": Array [],
"placeholder": "<Choose>",
"validate": Array [
Object {
"type": "required",
},
],
},
],
"name": "MigrateInstance",
"title": "Migrate Instance",
}
}
>
<FormFieldHideWrapper
hideField={false}
>
<SubForm
DescriptionElement="p"
TitleElement="h3"
component="sub-form"
fields={
Array [
Object {
"component": "checkbox",
"id": "auto_select_host",
"isDisabled": true,
"label": "Auto-select Host?",
"name": "auto_select_host",
},
Object {
"component": "checkbox",
"id": "block_migration",
"label": "Block Migration",
"name": "block_migration",
"validate": Array [
Object {
"type": "required",
},
],
},
Object {
"component": "checkbox",
"id": "disk_over_commit",
"label": "Disk Over Commit",
"name": "disk_over_commit",
"validate": Array [
Object {
"type": "required",
},
],
},
Object {
"component": "select",
"condition": Object {
"is": false,
"when": "auto_select_host",
},
"id": "destination_host",
"includeEmpty": true,
"isRequired": true,
"labelText": "Hosts",
"name": "destination_host",
"options": Array [],
"placeholder": "<Choose>",
"validate": Array [
Object {
"type": "required",
},
],
},
]
}
name="MigrateInstance"
title="Migrate Instance"
>
<div
className=""
name="MigrateInstance"
>
<div>
<h3>
Migrate Instance
</h3>
</div>
<SingleField
component="checkbox"
id="auto_select_host"
isDisabled={true}
key="auto_select_host"
label="Auto-select Host?"
name="auto_select_host"
>
<FormConditionWrapper
field={
Object {
"component": "checkbox",
"id": "auto_select_host",
"isDisabled": true,
"label": "Auto-select Host?",
"name": "auto_select_host",
}
}
>
<FormFieldHideWrapper
hideField={false}
>
<Checkbox
component="checkbox"
id="auto_select_host"
isDisabled={true}
label="Auto-select Host?"
name="auto_select_host"
>
<SingleCheckbox
component="checkbox"
id="auto_select_host"
isDisabled={true}
label="Auto-select Host?"
name="auto_select_host"
>
<div>
<Checkbox
checked={true}
disabled={true}
id="auto_select_host"
indeterminate={false}
labelText="Auto-select Host?"
name="auto_select_host"
onBlur={[Function]}
onChange={[Function]}
onFocus={[Function]}
type="checkbox"
>
<div
className="bx--form-item bx--checkbox-wrapper"
>
<input
checked={true}
className="bx--checkbox"
disabled={true}
id="auto_select_host"
name="auto_select_host"
onBlur={[Function]}
onChange={[Function]}
onFocus={[Function]}
type="checkbox"
/>
<label
className="bx--checkbox-label"
htmlFor="auto_select_host"
title={null}
>
<Text
className="bx--checkbox-label-text"
>
<span
className="bx--checkbox-label-text"
dir="auto"
>
Auto-select Host?
</span>
</Text>
</label>
</div>
</Checkbox>
<HelperTextBlock />
</div>
</SingleCheckbox>
</Checkbox>
</FormFieldHideWrapper>
</FormConditionWrapper>
</SingleField>
<SingleField
component="checkbox"
id="block_migration"
key="block_migration"
label="Block Migration"
name="block_migration"
validate={
Array [
Object {
"type": "required",
},
]
}
>
<FormConditionWrapper
field={
Object {
"component": "checkbox",
"id": "block_migration",
"label": "Block Migration",
"name": "block_migration",
"validate": Array [
Object {
"type": "required",
},
],
}
}
>
<FormFieldHideWrapper
hideField={false}
>
<Checkbox
component="checkbox"
id="block_migration"
label="Block Migration"
name="block_migration"
validate={
Array [
Object {
"type": "required",
},
]
}
>
<SingleCheckbox
component="checkbox"
id="block_migration"
label="Block Migration"
name="block_migration"
validate={
Array [
Object {
"type": "required",
},
]
}
>
<div>
<Checkbox
checked={false}
id="block_migration"
indeterminate={false}
labelText="Block Migration"
name="block_migration"
onBlur={[Function]}
onChange={[Function]}
onFocus={[Function]}
type="checkbox"
>
<div
className="bx--form-item bx--checkbox-wrapper"
>
<input
checked={false}
className="bx--checkbox"
id="block_migration"
name="block_migration"
onBlur={[Function]}
onChange={[Function]}
onFocus={[Function]}
type="checkbox"
/>
<label
className="bx--checkbox-label"
htmlFor="block_migration"
title={null}
>
<Text
className="bx--checkbox-label-text"
>
<span
className="bx--checkbox-label-text"
dir="auto"
>
Block Migration
</span>
</Text>
</label>
</div>
</Checkbox>
<HelperTextBlock />
</div>
</SingleCheckbox>
</Checkbox>
</FormFieldHideWrapper>
</FormConditionWrapper>
</SingleField>
<SingleField
component="checkbox"
id="disk_over_commit"
key="disk_over_commit"
label="Disk Over Commit"
name="disk_over_commit"
validate={
Array [
Object {
"type": "required",
},
]
}
>
<FormConditionWrapper
field={
Object {
"component": "checkbox",
"id": "disk_over_commit",
"label": "Disk Over Commit",
"name": "disk_over_commit",
"validate": Array [
Object {
"type": "required",
},
],
}
}
>
<FormFieldHideWrapper
hideField={false}
>
<Checkbox
component="checkbox"
id="disk_over_commit"
label="Disk Over Commit"
name="disk_over_commit"
validate={
Array [
Object {
"type": "required",
},
]
}
>
<SingleCheckbox
component="checkbox"
id="disk_over_commit"
label="Disk Over Commit"
name="disk_over_commit"
validate={
Array [
Object {
"type": "required",
},
]
}
>
<div>
<Checkbox
checked={false}
id="disk_over_commit"
indeterminate={false}
labelText="Disk Over Commit"
name="disk_over_commit"
onBlur={[Function]}
onChange={[Function]}
onFocus={[Function]}
type="checkbox"
>
<div
className="bx--form-item bx--checkbox-wrapper"
>
<input
checked={false}
className="bx--checkbox"
id="disk_over_commit"
name="disk_over_commit"
onBlur={[Function]}
onChange={[Function]}
onFocus={[Function]}
type="checkbox"
/>
<label
className="bx--checkbox-label"
htmlFor="disk_over_commit"
title={null}
>
<Text
className="bx--checkbox-label-text"
>
<span
className="bx--checkbox-label-text"
dir="auto"
>
Disk Over Commit
</span>
</Text>
</label>
</div>
</Checkbox>
<HelperTextBlock />
</div>
</SingleCheckbox>
</Checkbox>
</FormFieldHideWrapper>
</FormConditionWrapper>
</SingleField>
<SingleField
component="select"
condition={
Object {
"is": false,
"when": "auto_select_host",
}
}
id="destination_host"
includeEmpty={true}
isRequired={true}
key="destination_host"
labelText="Hosts"
name="destination_host"
options={Array []}
placeholder="<Choose>"
validate={
Array [
Object {
"type": "required",
},
]
}
>
<FormConditionWrapper
condition={
Object {
"is": false,
"when": "auto_select_host",
}
}
field={
Object {
"component": "select",
"id": "destination_host",
"includeEmpty": true,
"isRequired": true,
"labelText": "Hosts",
"name": "destination_host",
"options": Array [],
"placeholder": "<Choose>",
"validate": Array [
Object {
"type": "required",
},
],
}
}
>
<ConditionTriggerDetector
condition={
Object {
"is": false,
"when": "auto_select_host",
}
}
field={
Object {
"component": "select",
"id": "destination_host",
"includeEmpty": true,
"isRequired": true,
"labelText": "Hosts",
"name": "destination_host",
"options": Array [],
"placeholder": "<Choose>",
"validate": Array [
Object {
"type": "required",
},
],
}
}
triggers={
Array [
"auto_select_host",
]
}
>
<ForwardRef(Field)
name="auto_select_host"
subscription={
Object {
"value": true,
}
}
>
<ConditionTriggerDetector
condition={
Object {
"is": false,
"when": "auto_select_host",
}
}
field={
Object {
"component": "select",
"id": "destination_host",
"includeEmpty": true,
"isRequired": true,
"labelText": "Hosts",
"name": "destination_host",
"options": Array [],
"placeholder": "<Choose>",
"validate": Array [
Object {
"type": "required",
},
],
}
}
triggers={Array []}
values={
Object {
"auto_select_host": true,
}
}
>
<ConditionTriggerWrapper
condition={
Object {
"is": false,
"when": "auto_select_host",
}
}
field={
Object {
"component": "select",
"id": "destination_host",
"includeEmpty": true,
"isRequired": true,
"labelText": "Hosts",
"name": "destination_host",
"options": Array [],
"placeholder": "<Choose>",
"validate": Array [
Object {
"type": "required",
},
],
}
}
values={
Object {
"auto_select_host": true,
}
}
>
<Component
condition={
Object {
"is": false,
"when": "auto_select_host",
}
}
field={
Object {
"component": "select",
"id": "destination_host",
"includeEmpty": true,
"isRequired": true,
"labelText": "Hosts",
"name": "destination_host",
"options": Array [],
"placeholder": "<Choose>",
"validate": Array [
Object {
"type": "required",
},
],
}
}
values={
Object {
"auto_select_host": true,
}
}
/>
</ConditionTriggerWrapper>
</ConditionTriggerDetector>
</ForwardRef(Field)>
</ConditionTriggerDetector>
</FormConditionWrapper>
</SingleField>
</div>
</SubForm>
</FormFieldHideWrapper>
</FormConditionWrapper>
</SingleField>
<SingleField
component="spy-field"
key="spy-field"
name="spy-field"
>
<FormConditionWrapper
field={
Object {
"component": "spy-field",
"initialize": undefined,
"name": "spy-field",
}
}
>
<FormFieldHideWrapper
hideField={false}
>
<SpyField
component="spy-field"
name="spy-field"
>
<FormSpy
onChange={[Function]}
subscription={
Object {
"pristine": true,
"valid": true,
}
}
/>
</SpyField>
</FormFieldHideWrapper>
</FormConditionWrapper>
</SingleField>
<FormSpy>
<FormControls
Button={[Function]}
ButtonGroup={[Function]}
FormSpy={[Function]}
buttonOrder={
Array [
"submit",
"reset",
"cancel",
]
}
canReset={false}
cancelLabel="Cancel"
disableSubmit={true}
formFields={
Array [
<SingleField
component="sub-form"
fields={
Array [
Object {
"component": "checkbox",
"id": "auto_select_host",
"isDisabled": true,
"label": "Auto-select Host?",
"name": "auto_select_host",
},
Object {
"component": "checkbox",
"id": "block_migration",
"label": "Block Migration",
"name": "block_migration",
"validate": Array [
Object {
"type": "required",
},
],
},
Object {
"component": "checkbox",
"id": "disk_over_commit",
"label": "Disk Over Commit",
"name": "disk_over_commit",
"validate": Array [
Object {
"type": "required",
},
],
},
Object {
"component": "select",
"condition": Object {
"is": false,
"when": "auto_select_host",
},
"id": "destination_host",
"includeEmpty": true,
"isRequired": true,
"labelText": "Hosts",
"name": "destination_host",
"options": Array [],
"placeholder": "<Choose>",
"validate": Array [
Object {
"type": "required",
},
],
},
]
}
name="MigrateInstance"
title="Migrate Instance"
/>,
<SingleField
component="spy-field"
name="spy-field"
/>,
]
}
formSpyProps={
Object {
"active": undefined,
"dirty": false,
"dirtyFields": Object {},
"dirtyFieldsSinceLastSubmit": Object {
"auto_select_host": true,
},
"dirtySinceLastSubmit": false,
"error": undefined,
"errors": Object {
"block_migration": "Required",
"disk_over_commit": "Required",
},
"form": Object {
"batch": [Function],
"blur": [Function],
"change": [Function],
"destroyOnUnregister": false,
"focus": [Function],
"getFieldState": [Function],
"getRegisteredFields": [Function],
"getState": [Function],
"initialize": [Function],
"isValidationPaused": [Function],
"mutators": Object {
"concat": [Function],
"insert": [Function],
"move": [Function],
"pop": [Function],
"push": [Function],
"remove": [Function],
"removeBatch": [Function],
"shift": [Function],
"swap": [Function],
"unshift": [Function],
"update": [Function],
},
"pauseValidation": [Function],
"registerField": [Function],
"reset": [Function],
"resetFieldState": [Function],
"restart": [Function],
"resumeValidation": [Function],
"setConfig": [Function],
"submit": [Function],
"subscribe": [Function],
},
"hasSubmitErrors": false,
"hasValidationErrors": true,
"initialValues": Object {
"auto_select_host": true,
},
"invalid": true,
"modified": Object {
"auto_select_host": false,
"block_migration": false,
"disk_over_commit": false,
},
"modifiedSinceLastSubmit": false,
"pristine": true,
"submitError": undefined,
"submitErrors": undefined,
"submitFailed": false,
"submitSucceeded": false,
"submitting": false,
"touched": Object {
"auto_select_host": false,
"block_migration": false,
"disk_over_commit": false,
},
"valid": false,
"validating": false,
"values": Object {
"auto_select_host": true,
},
"visited": Object {
"auto_select_host": false,
"block_migration": false,
"disk_over_commit": false,
},
}
}
onCancel={[Function]}
onReset={[Function]}
resetLabel="Reset"
schema={
Object {
"fields": Array [
Object {
"component": "sub-form",
"fields": Array [
Object {
"component": "checkbox",
"id": "auto_select_host",
"isDisabled": true,
"label": "Auto-select Host?",
"name": "auto_select_host",
},
Object {
"component": "checkbox",
"id": "block_migration",
"label": "Block Migration",
"name": "block_migration",
"validate": Array [
Object {
"type": "required",
},
],
},
Object {
"component": "checkbox",
"id": "disk_over_commit",
"label": "Disk Over Commit",
"name": "disk_over_commit",
"validate": Array [
Object {
"type": "required",
},
],
},
Object {
"component": "select",
"condition": Object {
"is": false,
"when": "auto_select_host",
},
"id": "destination_host",
"includeEmpty": true,
"isRequired": true,
"labelText": "Hosts",
"name": "destination_host",
"options": Array [],
"placeholder": "<Choose>",
"validate": Array [
Object {
"type": "required",
},
],
},
],
"name": "MigrateInstance",
"title": "Migrate Instance",
},
Object {
"component": "spy-field",
"initialize": undefined,
"name": "spy-field",
},
],
}
}
submitLabel="Submit"
>
<ButtonGroup>
<ButtonSet
className=""
>
<div
className="bx--btn-set"
>
<Button
buttonType="submit"
disabled={true}
key="form-submit"
label="Submit"
type="submit"
variant="primary"
>
<Button
disabled={true}
kind="primary"
type="submit"
variant="primary"
>
<button
aria-describedby={null}
aria-pressed={null}
className="bx--btn bx--btn--primary bx--btn--disabled"
disabled={true}
onBlur={[Function]}
onClick={[Function]}
onFocus={[Function]}
onMouseEnter={[Function]}
onMouseLeave={[Function]}
tabIndex={0}
type="submit"
variant="primary"
>
Submit
</button>
</Button>
</Button>
<Button
buttonType="cancel"
key="form-cancel"
label="Cancel"
onClick={[Function]}
type="button"
>
<Button
kind="secondary"
onClick={[Function]}
type="button"
>
<button
aria-describedby={null}
aria-pressed={null}
className="bx--btn bx--btn--secondary"
disabled={false}
onBlur={[Function]}
onClick={[Function]}
onFocus={[Function]}
onMouseEnter={[Function]}
onMouseLeave={[Function]}
tabIndex={0}
type="button"
>
Cancel
</button>
</Button>
</Button>
</div>
</ButtonSet>
</ButtonGroup>
</FormControls>
</FormSpy>
</form>
</Form>
</Form>
</FormTemplate>
</WrappedFormTemplate>
</Component>
</ReactFinalForm>
</FormRenderer>
</MiqFormRenderer>
</Connect(MiqFormRenderer)>
</LiveMigrateForm>
</Provider>
`;
exports[`Live Migrate form component should render live migrate form with host options 1`] = `
<Provider
store={
Object {
"asyncReducers": Object {
"FormButtons": [Function],
"miqCustomTabReducer": [Function],
"notificationReducer": [Function],
},
"dispatch": [Function],
"getState": [Function],
"injectReducers": [Function],
"replaceReducer": [Function],
"subscribe": [Function],
Symbol(observable): [Function],
}
}
>
<LiveMigrateForm
recordId="20"
>
<Connect(MiqFormRenderer)
buttonsLabels={
Object {
"submitLabel": "Submit",
}
}
canReset={false}
className="live_migrate_form"
initialValues={
Object {
"auto_select_host": true,
}
}
onCancel={[Function]}
onSubmit={[Function]}
schema={
Object {
"fields": Array [
Object {
"component": "sub-form",
"fields": Array [
Object {
"component": "checkbox",
"id": "auto_select_host",
"isDisabled": false,
"label": "Auto-select Host?",
"name": "auto_select_host",
},
Object {
"component": "checkbox",
"id": "block_migration",
"label": "Block Migration",
"name": "block_migration",
"validate": Array [
Object {
"type": "required",
},
],
},
Object {
"component": "checkbox",
"id": "disk_over_commit",
"label": "Disk Over Commit",
"name": "disk_over_commit",
"validate": Array [
Object {
"type": "required",
},
],
},
Object {
"component": "select",
"condition": Object {
"is": false,
"when": "auto_select_host",
},
"id": "destination_host",
"includeEmpty": true,
"isRequired": true,
"labelText": "Hosts",
"name": "destination_host",
"options": Array [
Object {
"label": "hostone",
"value": "hostone",
},
Object {
"label": "hosttwo",
"value": "hosttwo",
},
Object {
"label": "hostthree",
"value": "hostthree",
},
Object {
"label": "hostfour",
"value": "hostfour",
},
Object {
"label": "hostfive",
"value": "hostfive",
},
],
"placeholder": "<Choose>",
"validate": Array [
Object {
"type": "required",
},
],
},
],
"name": "MigrateInstance",
"title": "Migrate Instance",
},
],
}
}
>
<MiqFormRenderer
buttonsLabels={
Object {
"submitLabel": "Submit",
}
}
canReset={false}
className="live_migrate_form"
componentMapper={
Object {
"checkbox": [Function],
"code-editor": [Function],
"date-picker": [Function],
"dual-list-select": [Function],
"edit-password-field": [Function],
"field-array": [Function],
"file-upload": [Function],
"font-icon-picker": [Function],
"font-icon-picker-ddf": [Function],
"multi-select": [Function],
"password-field": [Function],
"plain-text": [Function],
"radio": [Function],
"select": [Function],
"slider": [Function],
"sub-form": [Function],
"switch": [Function],
"tabs": [Function],
"text-field": [Function],
"textarea": [Function],
"time-picker": [Function],
"tree-selector": [Function],
"tree-view": [Function],
"validate-credentials": [Function],
"wizard": [Function],
}
}
disableSubmit={
Array [
"pristine",
"invalid",
]
}
dispatch={[Function]}
initialValues={
Object {
"auto_select_host": true,
}
}
onCancel={[Function]}
onSubmit={[Function]}
schema={
Object {
"fields": Array [
Object {
"component": "sub-form",
"fields": Array [
Object {
"component": "checkbox",
"id": "auto_select_host",
"isDisabled": false,
"label": "Auto-select Host?",
"name": "auto_select_host",
},
Object {
"component": "checkbox",
"id": "block_migration",
"label": "Block Migration",
"name": "block_migration",
"validate": Array [
Object {
"type": "required",
},
],
},
Object {
"component": "checkbox",
"id": "disk_over_commit",
"label": "Disk Over Commit",
"name": "disk_over_commit",
"validate": Array [
Object {
"type": "required",
},
],
},
Object {
"component": "select",
"condition": Object {
"is": false,
"when": "auto_select_host",
},
"id": "destination_host",
"includeEmpty": true,
"isRequired": true,
"labelText": "Hosts",
"name": "destination_host",
"options": Array [
Object {
"label": "hostone",
"value": "hostone",
},
Object {
"label": "hosttwo",
"value": "hosttwo",
},
Object {
"label": "hostthree",
"value": "hostthree",
},
Object {
"label": "hostfour",
"value": "hostfour",
},
Object {
"label": "hostfive",
"value": "hostfive",
},
],
"placeholder": "<Choose>",
"validate": Array [
Object {
"type": "required",
},
],
},
],
"name": "MigrateInstance",
"title": "Migrate Instance",
},
],
}
}
showFormControls={true}
>
<FormRenderer
FormTemplate={[Function]}
clearOnUnmount={false}
componentMapper={
Object {
"checkbox": [Function],
"code-editor": [Function],
"date-picker": [Function],
"dual-list-select": [Function],
"edit-password-field": [Function],
"field-array": [Function],
"file-upload": [Function],
"font-icon-picker": [Function],
"font-icon-picker-ddf": [Function],
"multi-select": [Function],
"password-field": [Function],
"plain-text": [Function],
"radio": [Function],
"select": [Function],
"slider": [Function],
"spy-field": [Function],
"sub-form": [Function],
"switch": [Function],
"tabs": [Function],
"text-field": [Function],
"textarea": [Function],
"time-picker": [Function],
"tree-selector": [Function],
"tree-view": [Function],
"validate-credentials": [Function],
"wizard": [Function],
}
}
dispatch={[Function]}
initialValues={
Object {
"auto_select_host": true,
}
}
onCancel={[Function]}
onReset={[Function]}
onSubmit={[Function]}
schema={
Object {
"fields": Array [
Object {
"component": "sub-form",
"fields": Array [
Object {
"component": "checkbox",
"id": "auto_select_host",
"isDisabled": false,
"label": "Auto-select Host?",
"name": "auto_select_host",
},
Object {
"component": "checkbox",
"id": "block_migration",
"label": "Block Migration",
"name": "block_migration",
"validate": Array [
Object {
"type": "required",
},
],
},
Object {
"component": "checkbox",
"id": "disk_over_commit",
"label": "Disk Over Commit",
"name": "disk_over_commit",
"validate": Array [
Object {
"type": "required",
},
],
},
Object {
"component": "select",
"condition": Object {
"is": false,
"when": "auto_select_host",
},
"id": "destination_host",
"includeEmpty": true,
"isRequired": true,
"labelText": "Hosts",
"name": "destination_host",
"options": Array [
Object {
"label": "hostone",
"value": "hostone",
},
Object {
"label": "hosttwo",
"value": "hosttwo",
},
Object {
"label": "hostthree",
"value": "hostthree",
},
Object {
"label": "hostfour",
"value": "hostfour",
},
Object {
"label": "hostfive",
"value": "hostfive",
},
],
"placeholder": "<Choose>",
"validate": Array [
Object {
"type": "required",
},
],
},
],
"name": "MigrateInstance",
"title": "Migrate Instance",
},
Object {
"component": "spy-field",
"initialize": undefined,
"name": "spy-field",
},
],
}
}
>
<ReactFinalForm
decorators={
Array [
[Function],
]
}
dispatch={[Function]}
initialValues={
Object {
"auto_select_host": true,
}
}
mutators={
Object {
"concat": [Function],
"insert": [Function],
"move": [Function],
"pop": [Function],
"push": [Function],
"remove": [Function],
"removeBatch": [Function],
"shift": [Function],
"swap": [Function],
"unshift": [Function],
"update": [Function],
}
}
onSubmit={[Function]}
render={[Function]}
subscription={
Object {
"pristine": true,
"submitting": true,
"valid": true,
}
}
>
<Component
formFields={
Array [
<SingleField
component="sub-form"
fields={
Array [
Object {
"component": "checkbox",
"id": "auto_select_host",
"isDisabled": false,
"label": "Auto-select Host?",
"name": "auto_select_host",
},
Object {
"component": "checkbox",
"id": "block_migration",
"label": "Block Migration",
"name": "block_migration",
"validate": Array [
Object {
"type": "required",
},
],
},
Object {
"component": "checkbox",
"id": "disk_over_commit",
"label": "Disk Over Commit",
"name": "disk_over_commit",
"validate": Array [
Object {
"type": "required",
},
],
},
Object {
"component": "select",
"condition": Object {
"is": false,
"when": "auto_select_host",
},
"id": "destination_host",
"includeEmpty": true,
"isRequired": true,
"labelText": "Hosts",
"name": "destination_host",
"options": Array [
Object {
"label": "hostone",
"value": "hostone",
},
Object {
"label": "hosttwo",
"value": "hosttwo",
},
Object {
"label": "hostthree",
"value": "hostthree",
},
Object {
"label": "hostfour",
"value": "hostfour",
},
Object {
"label": "hostfive",
"value": "hostfive",
},
],
"placeholder": "<Choose>",
"validate": Array [
Object {
"type": "required",
},
],
},
]
}
name="MigrateInstance"
title="Migrate Instance"
/>,
<SingleField
component="spy-field"
name="spy-field"
/>,
]
}
schema={
Object {
"fields": Array [
Object {
"component": "sub-form",
"fields": Array [
Object {
"component": "checkbox",
"id": "auto_select_host",
"isDisabled": false,
"label": "Auto-select Host?",
"name": "auto_select_host",
},
Object {
"component": "checkbox",
"id": "block_migration",
"label": "Block Migration",
"name": "block_migration",
"validate": Array [
Object {
"type": "required",
},
],
},
Object {
"component": "checkbox",
"id": "disk_over_commit",
"label": "Disk Over Commit",
"name": "disk_over_commit",
"validate": Array [
Object {
"type": "required",
},
],
},
Object {
"component": "select",
"condition": Object {
"is": false,
"when": "auto_select_host",
},
"id": "destination_host",
"includeEmpty": true,
"isRequired": true,
"labelText": "Hosts",
"name": "destination_host",
"options": Array [
Object {
"label": "hostone",
"value": "hostone",
},
Object {
"label": "hosttwo",
"value": "hosttwo",
},
Object {
"label": "hostthree",
"value": "hostthree",
},
Object {
"label": "hostfour",
"value": "hostfour",
},
Object {
"label": "hostfive",
"value": "hostfive",
},
],
"placeholder": "<Choose>",
"validate": Array [
Object {
"type": "required",
},
],
},
],
"name": "MigrateInstance",
"title": "Migrate Instance",
},
Object {
"component": "spy-field",
"initialize": undefined,
"name": "spy-field",
},
],
}
}
>
<WrappedFormTemplate
canReset={false}
cancelLabel="Cancel"
disableSubmit={
Array [
"pristine",
"invalid",
]
}
formFields={
Array [
<SingleField
component="sub-form"
fields={
Array [
Object {
"component": "checkbox",
"id": "auto_select_host",
"isDisabled": false,
"label": "Auto-select Host?",
"name": "auto_select_host",
},
Object {
"component": "checkbox",
"id": "block_migration",
"label": "Block Migration",
"name": "block_migration",
"validate": Array [
Object {
"type": "required",
},
],
},
Object {
"component": "checkbox",
"id": "disk_over_commit",
"label": "Disk Over Commit",
"name": "disk_over_commit",
"validate": Array [
Object {
"type": "required",
},
],
},
Object {
"component": "select",
"condition": Object {
"is": false,
"when": "auto_select_host",
},
"id": "destination_host",
"includeEmpty": true,
"isRequired": true,
"labelText": "Hosts",
"name": "destination_host",
"options": Array [
Object {
"label": "hostone",
"value": "hostone",
},
Object {
"label": "hosttwo",
"value": "hosttwo",
},
Object {
"label": "hostthree",
"value": "hostthree",
},
Object {
"label": "hostfour",
"value": "hostfour",
},
Object {
"label": "hostfive",
"value": "hostfive",
},
],
"placeholder": "<Choose>",
"validate": Array [
Object {
"type": "required",
},
],
},
]
}
name="MigrateInstance"
title="Migrate Instance"
/>,
<SingleField
component="spy-field"
name="spy-field"
/>,
]
}
formWrapperProps={
Object {
"className": "live_migrate_form",
}
}
resetLabel="Reset"
schema={
Object {
"fields": Array [
Object {
"component": "sub-form",
"fields": Array [
Object {
"component": "checkbox",
"id": "auto_select_host",
"isDisabled": false,
"label": "Auto-select Host?",
"name": "auto_select_host",
},
Object {
"component": "checkbox",
"id": "block_migration",
"label": "Block Migration",
"name": "block_migration",
"validate": Array [
Object {
"type": "required",
},
],
},
Object {
"component": "checkbox",
"id": "disk_over_commit",
"label": "Disk Over Commit",
"name": "disk_over_commit",
"validate": Array [
Object {
"type": "required",
},
],
},
Object {
"component": "select",
"condition": Object {
"is": false,
"when": "auto_select_host",
},
"id": "destination_host",
"includeEmpty": true,
"isRequired": true,
"labelText": "Hosts",
"name": "destination_host",
"options": Array [
Object {
"label": "hostone",
"value": "hostone",
},
Object {
"label": "hosttwo",
"value": "hosttwo",
},
Object {
"label": "hostthree",
"value": "hostthree",
},
Object {
"label": "hostfour",
"value": "hostfour",
},
Object {
"label": "hostfive",
"value": "hostfive",
},
],
"placeholder": "<Choose>",
"validate": Array [
Object {
"type": "required",
},
],
},
],
"name": "MigrateInstance",
"title": "Migrate Instance",
},
Object {
"component": "spy-field",
"initialize": undefined,
"name": "spy-field",
},
],
}
}
showFormControls={true}
submitLabel="Submit"
>
<FormTemplate
Button={[Function]}
ButtonGroup={[Function]}
Description={[Function]}
FormWrapper={[Function]}
Header={[Function]}
Title={[Function]}
buttonOrder={
Array [
"submit",
"reset",
"cancel",
]
}
canReset={false}
cancelLabel="Cancel"
disableSubmit={
Array [
"pristine",
"invalid",
]
}
formFields={
Array [
<SingleField
component="sub-form"
fields={
Array [
Object {
"component": "checkbox",
"id": "auto_select_host",
"isDisabled": false,
"label": "Auto-select Host?",
"name": "auto_select_host",
},
Object {
"component": "checkbox",
"id": "block_migration",
"label": "Block Migration",
"name": "block_migration",
"validate": Array [
Object {
"type": "required",
},
],
},
Object {
"component": "checkbox",
"id": "disk_over_commit",
"label": "Disk Over Commit",
"name": "disk_over_commit",
"validate": Array [
Object {
"type": "required",
},
],
},
Object {
"component": "select",
"condition": Object {
"is": false,
"when": "auto_select_host",
},
"id": "destination_host",
"includeEmpty": true,
"isRequired": true,
"labelText": "Hosts",
"name": "destination_host",
"options": Array [
Object {
"label": "hostone",
"value": "hostone",
},
Object {
"label": "hosttwo",
"value": "hosttwo",
},
Object {
"label": "hostthree",
"value": "hostthree",
},
Object {
"label": "hostfour",
"value": "hostfour",
},
Object {
"label": "hostfive",
"value": "hostfive",
},
],
"placeholder": "<Choose>",
"validate": Array [
Object {
"type": "required",
},
],
},
]
}
name="MigrateInstance"
title="Migrate Instance"
/>,
<SingleField
component="spy-field"
name="spy-field"
/>,
]
}
formWrapperProps={
Object {
"className": "live_migrate_form",
}
}
resetLabel="Reset"
schema={
Object {
"fields": Array [
Object {
"component": "sub-form",
"fields": Array [
Object {
"component": "checkbox",
"id": "auto_select_host",
"isDisabled": false,
"label": "Auto-select Host?",
"name": "auto_select_host",
},
Object {
"component": "checkbox",
"id": "block_migration",
"label": "Block Migration",
"name": "block_migration",
"validate": Array [
Object {
"type": "required",
},
],
},
Object {
"component": "checkbox",
"id": "disk_over_commit",
"label": "Disk Over Commit",
"name": "disk_over_commit",
"validate": Array [
Object {
"type": "required",
},
],
},
Object {
"component": "select",
"condition": Object {
"is": false,
"when": "auto_select_host",
},
"id": "destination_host",
"includeEmpty": true,
"isRequired": true,
"labelText": "Hosts",
"name": "destination_host",
"options": Array [
Object {
"label": "hostone",
"value": "hostone",
},
Object {
"label": "hosttwo",
"value": "hosttwo",
},
Object {
"label": "hostthree",
"value": "hostthree",
},
Object {
"label": "hostfour",
"value": "hostfour",
},
Object {
"label": "hostfive",
"value": "hostfive",
},
],
"placeholder": "<Choose>",
"validate": Array [
Object {
"type": "required",
},
],
},
],
"name": "MigrateInstance",
"title": "Migrate Instance",
},
Object {
"component": "spy-field",
"initialize": undefined,
"name": "spy-field",
},
],
}
}
showFormControls={true}
submitLabel="Submit"
>
<Form
className="live_migrate_form"
onSubmit={[Function]}
>
<Form
className="form-0-2-3 live_migrate_form"
noValidate={true}
onSubmit={[Function]}
>
<form
className="bx--form form-0-2-3 live_migrate_form"
noValidate={true}
onSubmit={[Function]}
>
<SingleField
component="sub-form"
fields={
Array [
Object {
"component": "checkbox",
"id": "auto_select_host",
"isDisabled": false,
"label": "Auto-select Host?",
"name": "auto_select_host",
},
Object {
"component": "checkbox",
"id": "block_migration",
"label": "Block Migration",
"name": "block_migration",
"validate": Array [
Object {
"type": "required",
},
],
},
Object {
"component": "checkbox",
"id": "disk_over_commit",
"label": "Disk Over Commit",
"name": "disk_over_commit",
"validate": Array [
Object {
"type": "required",
},
],
},
Object {
"component": "select",
"condition": Object {
"is": false,
"when": "auto_select_host",
},
"id": "destination_host",
"includeEmpty": true,
"isRequired": true,
"labelText": "Hosts",
"name": "destination_host",
"options": Array [
Object {
"label": "hostone",
"value": "hostone",
},
Object {
"label": "hosttwo",
"value": "hosttwo",
},
Object {
"label": "hostthree",
"value": "hostthree",
},
Object {
"label": "hostfour",
"value": "hostfour",
},
Object {
"label": "hostfive",
"value": "hostfive",
},
],
"placeholder": "<Choose>",
"validate": Array [
Object {
"type": "required",
},
],
},
]
}
key="MigrateInstance"
name="MigrateInstance"
title="Migrate Instance"
>
<FormConditionWrapper
field={
Object {
"component": "sub-form",
"fields": Array [
Object {
"component": "checkbox",
"id": "auto_select_host",
"isDisabled": false,
"label": "Auto-select Host?",
"name": "auto_select_host",
},
Object {
"component": "checkbox",
"id": "block_migration",
"label": "Block Migration",
"name": "block_migration",
"validate": Array [
Object {
"type": "required",
},
],
},
Object {
"component": "checkbox",
"id": "disk_over_commit",
"label": "Disk Over Commit",
"name": "disk_over_commit",
"validate": Array [
Object {
"type": "required",
},
],
},
Object {
"component": "select",
"condition": Object {
"is": false,
"when": "auto_select_host",
},
"id": "destination_host",
"includeEmpty": true,
"isRequired": true,
"labelText": "Hosts",
"name": "destination_host",
"options": Array [
Object {
"label": "hostone",
"value": "hostone",
},
Object {
"label": "hosttwo",
"value": "hosttwo",
},
Object {
"label": "hostthree",
"value": "hostthree",
},
Object {
"label": "hostfour",
"value": "hostfour",
},
Object {
"label": "hostfive",
"value": "hostfive",
},
],
"placeholder": "<Choose>",
"validate": Array [
Object {
"type": "required",
},
],
},
],
"name": "MigrateInstance",
"title": "Migrate Instance",
}
}
>
<FormFieldHideWrapper
hideField={false}
>
<SubForm
DescriptionElement="p"
TitleElement="h3"
component="sub-form"
fields={
Array [
Object {
"component": "checkbox",
"id": "auto_select_host",
"isDisabled": false,
"label": "Auto-select Host?",
"name": "auto_select_host",
},
Object {
"component": "checkbox",
"id": "block_migration",
"label": "Block Migration",
"name": "block_migration",
"validate": Array [
Object {
"type": "required",
},
],
},
Object {
"component": "checkbox",
"id": "disk_over_commit",
"label": "Disk Over Commit",
"name": "disk_over_commit",
"validate": Array [
Object {
"type": "required",
},
],
},
Object {
"component": "select",
"condition": Object {
"is": false,
"when": "auto_select_host",
},
"id": "destination_host",
"includeEmpty": true,
"isRequired": true,
"labelText": "Hosts",
"name": "destination_host",
"options": Array [
Object {
"label": "hostone",
"value": "hostone",
},
Object {
"label": "hosttwo",
"value": "hosttwo",
},
Object {
"label": "hostthree",
"value": "hostthree",
},
Object {
"label": "hostfour",
"value": "hostfour",
},
Object {
"label": "hostfive",
"value": "hostfive",
},
],
"placeholder": "<Choose>",
"validate": Array [
Object {
"type": "required",
},
],
},
]
}
name="MigrateInstance"
title="Migrate Instance"
>
<div
className=""
name="MigrateInstance"
>
<div>
<h3>
Migrate Instance
</h3>
</div>
<SingleField
component="checkbox"
id="auto_select_host"
isDisabled={false}
key="auto_select_host"
label="Auto-select Host?"
name="auto_select_host"
>
<FormConditionWrapper
field={
Object {
"component": "checkbox",
"id": "auto_select_host",
"isDisabled": false,
"label": "Auto-select Host?",
"name": "auto_select_host",
}
}
>
<FormFieldHideWrapper
hideField={false}
>
<Checkbox
component="checkbox"
id="auto_select_host"
isDisabled={false}
label="Auto-select Host?"
name="auto_select_host"
>
<SingleCheckbox
component="checkbox"
id="auto_select_host"
isDisabled={false}
label="Auto-select Host?"
name="auto_select_host"
>
<div>
<Checkbox
checked={true}
disabled={false}
id="auto_select_host"
indeterminate={false}
labelText="Auto-select Host?"
name="auto_select_host"
onBlur={[Function]}
onChange={[Function]}
onFocus={[Function]}
type="checkbox"
>
<div
className="bx--form-item bx--checkbox-wrapper"
>
<input
checked={true}
className="bx--checkbox"
disabled={false}
id="auto_select_host"
name="auto_select_host"
onBlur={[Function]}
onChange={[Function]}
onFocus={[Function]}
type="checkbox"
/>
<label
className="bx--checkbox-label"
htmlFor="auto_select_host"
title={null}
>
<Text
className="bx--checkbox-label-text"
>
<span
className="bx--checkbox-label-text"
dir="auto"
>
Auto-select Host?
</span>
</Text>
</label>
</div>
</Checkbox>
<HelperTextBlock />
</div>
</SingleCheckbox>
</Checkbox>
</FormFieldHideWrapper>
</FormConditionWrapper>
</SingleField>
<SingleField
component="checkbox"
id="block_migration"
key="block_migration"
label="Block Migration"
name="block_migration"
validate={
Array [
Object {
"type": "required",
},
]
}
>
<FormConditionWrapper
field={
Object {
"component": "checkbox",
"id": "block_migration",
"label": "Block Migration",
"name": "block_migration",
"validate": Array [
Object {
"type": "required",
},
],
}
}
>
<FormFieldHideWrapper
hideField={false}
>
<Checkbox
component="checkbox"
id="block_migration"
label="Block Migration"
name="block_migration"
validate={
Array [
Object {
"type": "required",
},
]
}
>
<SingleCheckbox
component="checkbox"
id="block_migration"
label="Block Migration"
name="block_migration"
validate={
Array [
Object {
"type": "required",
},
]
}
>
<div>
<Checkbox
checked={false}
id="block_migration"
indeterminate={false}
labelText="Block Migration"
name="block_migration"
onBlur={[Function]}
onChange={[Function]}
onFocus={[Function]}
type="checkbox"
>
<div
className="bx--form-item bx--checkbox-wrapper"
>
<input
checked={false}
className="bx--checkbox"
id="block_migration"
name="block_migration"
onBlur={[Function]}
onChange={[Function]}
onFocus={[Function]}
type="checkbox"
/>
<label
className="bx--checkbox-label"
htmlFor="block_migration"
title={null}
>
<Text
className="bx--checkbox-label-text"
>
<span
className="bx--checkbox-label-text"
dir="auto"
>
Block Migration
</span>
</Text>
</label>
</div>
</Checkbox>
<HelperTextBlock />
</div>
</SingleCheckbox>
</Checkbox>
</FormFieldHideWrapper>
</FormConditionWrapper>
</SingleField>
<SingleField
component="checkbox"
id="disk_over_commit"
key="disk_over_commit"
label="Disk Over Commit"
name="disk_over_commit"
validate={
Array [
Object {
"type": "required",
},
]
}
>
<FormConditionWrapper
field={
Object {
"component": "checkbox",
"id": "disk_over_commit",
"label": "Disk Over Commit",
"name": "disk_over_commit",
"validate": Array [
Object {
"type": "required",
},
],
}
}
>
<FormFieldHideWrapper
hideField={false}
>
<Checkbox
component="checkbox"
id="disk_over_commit"
label="Disk Over Commit"
name="disk_over_commit"
validate={
Array [
Object {
"type": "required",
},
]
}
>
<SingleCheckbox
component="checkbox"
id="disk_over_commit"
label="Disk Over Commit"
name="disk_over_commit"
validate={
Array [
Object {
"type": "required",
},
]
}
>
<div>
<Checkbox
checked={false}
id="disk_over_commit"
indeterminate={false}
labelText="Disk Over Commit"
name="disk_over_commit"
onBlur={[Function]}
onChange={[Function]}
onFocus={[Function]}
type="checkbox"
>
<div
className="bx--form-item bx--checkbox-wrapper"
>
<input
checked={false}
className="bx--checkbox"
id="disk_over_commit"
name="disk_over_commit"
onBlur={[Function]}
onChange={[Function]}
onFocus={[Function]}
type="checkbox"
/>
<label
className="bx--checkbox-label"
htmlFor="disk_over_commit"
title={null}
>
<Text
className="bx--checkbox-label-text"
>
<span
className="bx--checkbox-label-text"
dir="auto"
>
Disk Over Commit
</span>
</Text>
</label>
</div>
</Checkbox>
<HelperTextBlock />
</div>
</SingleCheckbox>
</Checkbox>
</FormFieldHideWrapper>
</FormConditionWrapper>
</SingleField>
<SingleField
component="select"
condition={
Object {
"is": false,
"when": "auto_select_host",
}
}
id="destination_host"
includeEmpty={true}
isRequired={true}
key="destination_host"
labelText="Hosts"
name="destination_host"
options={
Array [
Object {
"label": "hostone",
"value": "hostone",
},
Object {
"label": "hosttwo",
"value": "hosttwo",
},
Object {
"label": "hostthree",
"value": "hostthree",
},
Object {
"label": "hostfour",
"value": "hostfour",
},
Object {
"label": "hostfive",
"value": "hostfive",
},
]
}
placeholder="<Choose>"
validate={
Array [
Object {
"type": "required",
},
]
}
>
<FormConditionWrapper
condition={
Object {
"is": false,
"when": "auto_select_host",
}
}
field={
Object {
"component": "select",
"id": "destination_host",
"includeEmpty": true,
"isRequired": true,
"labelText": "Hosts",
"name": "destination_host",
"options": Array [
Object {
"label": "hostone",
"value": "hostone",
},
Object {
"label": "hosttwo",
"value": "hosttwo",
},
Object {
"label": "hostthree",
"value": "hostthree",
},
Object {
"label": "hostfour",
"value": "hostfour",
},
Object {
"label": "hostfive",
"value": "hostfive",
},
],
"placeholder": "<Choose>",
"validate": Array [
Object {
"type": "required",
},
],
}
}
>
<ConditionTriggerDetector
condition={
Object {
"is": false,
"when": "auto_select_host",
}
}
field={
Object {
"component": "select",
"id": "destination_host",
"includeEmpty": true,
"isRequired": true,
"labelText": "Hosts",
"name": "destination_host",
"options": Array [
Object {
"label": "hostone",
"value": "hostone",
},
Object {
"label": "hosttwo",
"value": "hosttwo",
},
Object {
"label": "hostthree",
"value": "hostthree",
},
Object {
"label": "hostfour",
"value": "hostfour",
},
Object {
"label": "hostfive",
"value": "hostfive",
},
],
"placeholder": "<Choose>",
"validate": Array [
Object {
"type": "required",
},
],
}
}
triggers={
Array [
"auto_select_host",
]
}
>
<ForwardRef(Field)
name="auto_select_host"
subscription={
Object {
"value": true,
}
}
>
<ConditionTriggerDetector
condition={
Object {
"is": false,
"when": "auto_select_host",
}
}
field={
Object {
"component": "select",
"id": "destination_host",
"includeEmpty": true,
"isRequired": true,
"labelText": "Hosts",
"name": "destination_host",
"options": Array [
Object {
"label": "hostone",
"value": "hostone",
},
Object {
"label": "hosttwo",
"value": "hosttwo",
},
Object {
"label": "hostthree",
"value": "hostthree",
},
Object {
"label": "hostfour",
"value": "hostfour",
},
Object {
"label": "hostfive",
"value": "hostfive",
},
],
"placeholder": "<Choose>",
"validate": Array [
Object {
"type": "required",
},
],
}
}
triggers={Array []}
values={
Object {
"auto_select_host": true,
}
}
>
<ConditionTriggerWrapper
condition={
Object {
"is": false,
"when": "auto_select_host",
}
}
field={
Object {
"component": "select",
"id": "destination_host",
"includeEmpty": true,
"isRequired": true,
"labelText": "Hosts",
"name": "destination_host",
"options": Array [
Object {
"label": "hostone",
"value": "hostone",
},
Object {
"label": "hosttwo",
"value": "hosttwo",
},
Object {
"label": "hostthree",
"value": "hostthree",
},
Object {
"label": "hostfour",
"value": "hostfour",
},
Object {
"label": "hostfive",
"value": "hostfive",
},
],
"placeholder": "<Choose>",
"validate": Array [
Object {
"type": "required",
},
],
}
}
values={
Object {
"auto_select_host": true,
}
}
>
<Component
condition={
Object {
"is": false,
"when": "auto_select_host",
}
}
field={
Object {
"component": "select",
"id": "destination_host",
"includeEmpty": true,
"isRequired": true,
"labelText": "Hosts",
"name": "destination_host",
"options": Array [
Object {
"label": "hostone",
"value": "hostone",
},
Object {
"label": "hosttwo",
"value": "hosttwo",
},
Object {
"label": "hostthree",
"value": "hostthree",
},
Object {
"label": "hostfour",
"value": "hostfour",
},
Object {
"label": "hostfive",
"value": "hostfive",
},
],
"placeholder": "<Choose>",
"validate": Array [
Object {
"type": "required",
},
],
}
}
values={
Object {
"auto_select_host": true,
}
}
/>
</ConditionTriggerWrapper>
</ConditionTriggerDetector>
</ForwardRef(Field)>
</ConditionTriggerDetector>
</FormConditionWrapper>
</SingleField>
</div>
</SubForm>
</FormFieldHideWrapper>
</FormConditionWrapper>
</SingleField>
<SingleField
component="spy-field"
key="spy-field"
name="spy-field"
>
<FormConditionWrapper
field={
Object {
"component": "spy-field",
"initialize": undefined,
"name": "spy-field",
}
}
>
<FormFieldHideWrapper
hideField={false}
>
<SpyField
component="spy-field"
name="spy-field"
>
<FormSpy
onChange={[Function]}
subscription={
Object {
"pristine": true,
"valid": true,
}
}
/>
</SpyField>
</FormFieldHideWrapper>
</FormConditionWrapper>
</SingleField>
<FormSpy>
<FormControls
Button={[Function]}
ButtonGroup={[Function]}
FormSpy={[Function]}
buttonOrder={
Array [
"submit",
"reset",
"cancel",
]
}
canReset={false}
cancelLabel="Cancel"
disableSubmit={true}
formFields={
Array [
<SingleField
component="sub-form"
fields={
Array [
Object {
"component": "checkbox",
"id": "auto_select_host",
"isDisabled": false,
"label": "Auto-select Host?",
"name": "auto_select_host",
},
Object {
"component": "checkbox",
"id": "block_migration",
"label": "Block Migration",
"name": "block_migration",
"validate": Array [
Object {
"type": "required",
},
],
},
Object {
"component": "checkbox",
"id": "disk_over_commit",
"label": "Disk Over Commit",
"name": "disk_over_commit",
"validate": Array [
Object {
"type": "required",
},
],
},
Object {
"component": "select",
"condition": Object {
"is": false,
"when": "auto_select_host",
},
"id": "destination_host",
"includeEmpty": true,
"isRequired": true,
"labelText": "Hosts",
"name": "destination_host",
"options": Array [
Object {
"label": "hostone",
"value": "hostone",
},
Object {
"label": "hosttwo",
"value": "hosttwo",
},
Object {
"label": "hostthree",
"value": "hostthree",
},
Object {
"label": "hostfour",
"value": "hostfour",
},
Object {
"label": "hostfive",
"value": "hostfive",
},
],
"placeholder": "<Choose>",
"validate": Array [
Object {
"type": "required",
},
],
},
]
}
name="MigrateInstance"
title="Migrate Instance"
/>,
<SingleField
component="spy-field"
name="spy-field"
/>,
]
}
formSpyProps={
Object {
"active": undefined,
"dirty": false,
"dirtyFields": Object {},
"dirtyFieldsSinceLastSubmit": Object {
"auto_select_host": true,
},
"dirtySinceLastSubmit": false,
"error": undefined,
"errors": Object {
"block_migration": "Required",
"disk_over_commit": "Required",
},
"form": Object {
"batch": [Function],
"blur": [Function],
"change": [Function],
"destroyOnUnregister": false,
"focus": [Function],
"getFieldState": [Function],
"getRegisteredFields": [Function],
"getState": [Function],
"initialize": [Function],
"isValidationPaused": [Function],
"mutators": Object {
"concat": [Function],
"insert": [Function],
"move": [Function],
"pop": [Function],
"push": [Function],
"remove": [Function],
"removeBatch": [Function],
"shift": [Function],
"swap": [Function],
"unshift": [Function],
"update": [Function],
},
"pauseValidation": [Function],
"registerField": [Function],
"reset": [Function],
"resetFieldState": [Function],
"restart": [Function],
"resumeValidation": [Function],
"setConfig": [Function],
"submit": [Function],
"subscribe": [Function],
},
"hasSubmitErrors": false,
"hasValidationErrors": true,
"initialValues": Object {
"auto_select_host": true,
},
"invalid": true,
"modified": Object {
"auto_select_host": false,
"block_migration": false,
"disk_over_commit": false,
},
"modifiedSinceLastSubmit": false,
"pristine": true,
"submitError": undefined,
"submitErrors": undefined,
"submitFailed": false,
"submitSucceeded": false,
"submitting": false,
"touched": Object {
"auto_select_host": false,
"block_migration": false,
"disk_over_commit": false,
},
"valid": false,
"validating": false,
"values": Object {
"auto_select_host": true,
},
"visited": Object {
"auto_select_host": false,
"block_migration": false,
"disk_over_commit": false,
},
}
}
onCancel={[Function]}
onReset={[Function]}
resetLabel="Reset"
schema={
Object {
"fields": Array [
Object {
"component": "sub-form",
"fields": Array [
Object {
"component": "checkbox",
"id": "auto_select_host",
"isDisabled": false,
"label": "Auto-select Host?",
"name": "auto_select_host",
},
Object {
"component": "checkbox",
"id": "block_migration",
"label": "Block Migration",
"name": "block_migration",
"validate": Array [
Object {
"type": "required",
},
],
},
Object {
"component": "checkbox",
"id": "disk_over_commit",
"label": "Disk Over Commit",
"name": "disk_over_commit",
"validate": Array [
Object {
"type": "required",
},
],
},
Object {
"component": "select",
"condition": Object {
"is": false,
"when": "auto_select_host",
},
"id": "destination_host",
"includeEmpty": true,
"isRequired": true,
"labelText": "Hosts",
"name": "destination_host",
"options": Array [
Object {
"label": "hostone",
"value": "hostone",
},
Object {
"label": "hosttwo",
"value": "hosttwo",
},
Object {
"label": "hostthree",
"value": "hostthree",
},
Object {
"label": "hostfour",
"value": "hostfour",
},
Object {
"label": "hostfive",
"value": "hostfive",
},
],
"placeholder": "<Choose>",
"validate": Array [
Object {
"type": "required",
},
],
},
],
"name": "MigrateInstance",
"title": "Migrate Instance",
},
Object {
"component": "spy-field",
"initialize": undefined,
"name": "spy-field",
},
],
}
}
submitLabel="Submit"
>
<ButtonGroup>
<ButtonSet
className=""
>
<div
className="bx--btn-set"
>
<Button
buttonType="submit"
disabled={true}
key="form-submit"
label="Submit"
type="submit"
variant="primary"
>
<Button
disabled={true}
kind="primary"
type="submit"
variant="primary"
>
<button
aria-describedby={null}
aria-pressed={null}
className="bx--btn bx--btn--primary bx--btn--disabled"
disabled={true}
onBlur={[Function]}
onClick={[Function]}
onFocus={[Function]}
onMouseEnter={[Function]}
onMouseLeave={[Function]}
tabIndex={0}
type="submit"
variant="primary"
>
Submit
</button>
</Button>
</Button>
<Button
buttonType="cancel"
key="form-cancel"
label="Cancel"
onClick={[Function]}
type="button"
>
<Button
kind="secondary"
onClick={[Function]}
type="button"
>
<button
aria-describedby={null}
aria-pressed={null}
className="bx--btn bx--btn--secondary"
disabled={false}
onBlur={[Function]}
onClick={[Function]}
onFocus={[Function]}
onMouseEnter={[Function]}
onMouseLeave={[Function]}
tabIndex={0}
type="button"
>
Cancel
</button>
</Button>
</Button>
</div>
</ButtonSet>
</ButtonGroup>
</FormControls>
</FormSpy>
</form>
</Form>
</Form>
</FormTemplate>
</WrappedFormTemplate>
</Component>
</ReactFinalForm>
</FormRenderer>
</MiqFormRenderer>
</Connect(MiqFormRenderer)>
</LiveMigrateForm>
</Provider>
`;
exports[`Live Migrate form component should render live migrate form with multiple instances 1`] = `
<Provider
store={
Object {
"asyncReducers": Object {
"FormButtons": [Function],
"miqCustomTabReducer": [Function],
"notificationReducer": [Function],
},
"dispatch": [Function],
"getState": [Function],
"injectReducers": [Function],
"replaceReducer": [Function],
"subscribe": [Function],
Symbol(observable): [Function],
}
}
>
<LiveMigrateForm
recordId=""
>
<Connect(MiqFormRenderer)
buttonsLabels={
Object {
"submitLabel": "Submit",
}
}
canReset={false}
className="live_migrate_form"
initialValues={
Object {
"auto_select_host": true,
}
}
onCancel={[Function]}
onSubmit={[Function]}
schema={
Object {
"fields": Array [
Object {
"component": "sub-form",
"fields": Array [
Object {
"component": "checkbox",
"id": "auto_select_host",
"isDisabled": true,
"label": "Auto-select Host?",
"name": "auto_select_host",
},
Object {
"component": "checkbox",
"id": "block_migration",
"label": "Block Migration",
"name": "block_migration",
"validate": Array [
Object {
"type": "required",
},
],
},
Object {
"component": "checkbox",
"id": "disk_over_commit",
"label": "Disk Over Commit",
"name": "disk_over_commit",
"validate": Array [
Object {
"type": "required",
},
],
},
Object {
"component": "select",
"condition": Object {
"is": false,
"when": "auto_select_host",
},
"id": "destination_host",
"includeEmpty": true,
"isRequired": true,
"labelText": "Hosts",
"name": "destination_host",
"options": Array [],
"placeholder": "<Choose>",
"validate": Array [
Object {
"type": "required",
},
],
},
],
"name": "MigrateInstance",
"title": "Migrate Instance",
},
],
}
}
>
<MiqFormRenderer
buttonsLabels={
Object {
"submitLabel": "Submit",
}
}
canReset={false}
className="live_migrate_form"
componentMapper={
Object {
"checkbox": [Function],
"code-editor": [Function],
"date-picker": [Function],
"dual-list-select": [Function],
"edit-password-field": [Function],
"field-array": [Function],
"file-upload": [Function],
"font-icon-picker": [Function],
"font-icon-picker-ddf": [Function],
"multi-select": [Function],
"password-field": [Function],
"plain-text": [Function],
"radio": [Function],
"select": [Function],
"slider": [Function],
"sub-form": [Function],
"switch": [Function],
"tabs": [Function],
"text-field": [Function],
"textarea": [Function],
"time-picker": [Function],
"tree-selector": [Function],
"tree-view": [Function],
"validate-credentials": [Function],
"wizard": [Function],
}
}
disableSubmit={
Array [
"pristine",
"invalid",
]
}
dispatch={[Function]}
initialValues={
Object {
"auto_select_host": true,
}
}
onCancel={[Function]}
onSubmit={[Function]}
schema={
Object {
"fields": Array [
Object {
"component": "sub-form",
"fields": Array [
Object {
"component": "checkbox",
"id": "auto_select_host",
"isDisabled": true,
"label": "Auto-select Host?",
"name": "auto_select_host",
},
Object {
"component": "checkbox",
"id": "block_migration",
"label": "Block Migration",
"name": "block_migration",
"validate": Array [
Object {
"type": "required",
},
],
},
Object {
"component": "checkbox",
"id": "disk_over_commit",
"label": "Disk Over Commit",
"name": "disk_over_commit",
"validate": Array [
Object {
"type": "required",
},
],
},
Object {
"component": "select",
"condition": Object {
"is": false,
"when": "auto_select_host",
},
"id": "destination_host",
"includeEmpty": true,
"isRequired": true,
"labelText": "Hosts",
"name": "destination_host",
"options": Array [],
"placeholder": "<Choose>",
"validate": Array [
Object {
"type": "required",
},
],
},
],
"name": "MigrateInstance",
"title": "Migrate Instance",
},
],
}
}
showFormControls={true}
>
<FormRenderer
FormTemplate={[Function]}
clearOnUnmount={false}
componentMapper={
Object {
"checkbox": [Function],
"code-editor": [Function],
"date-picker": [Function],
"dual-list-select": [Function],
"edit-password-field": [Function],
"field-array": [Function],
"file-upload": [Function],
"font-icon-picker": [Function],
"font-icon-picker-ddf": [Function],
"multi-select": [Function],
"password-field": [Function],
"plain-text": [Function],
"radio": [Function],
"select": [Function],
"slider": [Function],
"spy-field": [Function],
"sub-form": [Function],
"switch": [Function],
"tabs": [Function],
"text-field": [Function],
"textarea": [Function],
"time-picker": [Function],
"tree-selector": [Function],
"tree-view": [Function],
"validate-credentials": [Function],
"wizard": [Function],
}
}
dispatch={[Function]}
initialValues={
Object {
"auto_select_host": true,
}
}
onCancel={[Function]}
onReset={[Function]}
onSubmit={[Function]}
schema={
Object {
"fields": Array [
Object {
"component": "sub-form",
"fields": Array [
Object {
"component": "checkbox",
"id": "auto_select_host",
"isDisabled": true,
"label": "Auto-select Host?",
"name": "auto_select_host",
},
Object {
"component": "checkbox",
"id": "block_migration",
"label": "Block Migration",
"name": "block_migration",
"validate": Array [
Object {
"type": "required",
},
],
},
Object {
"component": "checkbox",
"id": "disk_over_commit",
"label": "Disk Over Commit",
"name": "disk_over_commit",
"validate": Array [
Object {
"type": "required",
},
],
},
Object {
"component": "select",
"condition": Object {
"is": false,
"when": "auto_select_host",
},
"id": "destination_host",
"includeEmpty": true,
"isRequired": true,
"labelText": "Hosts",
"name": "destination_host",
"options": Array [],
"placeholder": "<Choose>",
"validate": Array [
Object {
"type": "required",
},
],
},
],
"name": "MigrateInstance",
"title": "Migrate Instance",
},
Object {
"component": "spy-field",
"initialize": undefined,
"name": "spy-field",
},
],
}
}
>
<ReactFinalForm
decorators={
Array [
[Function],
]
}
dispatch={[Function]}
initialValues={
Object {
"auto_select_host": true,
}
}
mutators={
Object {
"concat": [Function],
"insert": [Function],
"move": [Function],
"pop": [Function],
"push": [Function],
"remove": [Function],
"removeBatch": [Function],
"shift": [Function],
"swap": [Function],
"unshift": [Function],
"update": [Function],
}
}
onSubmit={[Function]}
render={[Function]}
subscription={
Object {
"pristine": true,
"submitting": true,
"valid": true,
}
}
>
<Component
formFields={
Array [
<SingleField
component="sub-form"
fields={
Array [
Object {
"component": "checkbox",
"id": "auto_select_host",
"isDisabled": true,
"label": "Auto-select Host?",
"name": "auto_select_host",
},
Object {
"component": "checkbox",
"id": "block_migration",
"label": "Block Migration",
"name": "block_migration",
"validate": Array [
Object {
"type": "required",
},
],
},
Object {
"component": "checkbox",
"id": "disk_over_commit",
"label": "Disk Over Commit",
"name": "disk_over_commit",
"validate": Array [
Object {
"type": "required",
},
],
},
Object {
"component": "select",
"condition": Object {
"is": false,
"when": "auto_select_host",
},
"id": "destination_host",
"includeEmpty": true,
"isRequired": true,
"labelText": "Hosts",
"name": "destination_host",
"options": Array [],
"placeholder": "<Choose>",
"validate": Array [
Object {
"type": "required",
},
],
},
]
}
name="MigrateInstance"
title="Migrate Instance"
/>,
<SingleField
component="spy-field"
name="spy-field"
/>,
]
}
schema={
Object {
"fields": Array [
Object {
"component": "sub-form",
"fields": Array [
Object {
"component": "checkbox",
"id": "auto_select_host",
"isDisabled": true,
"label": "Auto-select Host?",
"name": "auto_select_host",
},
Object {
"component": "checkbox",
"id": "block_migration",
"label": "Block Migration",
"name": "block_migration",
"validate": Array [
Object {
"type": "required",
},
],
},
Object {
"component": "checkbox",
"id": "disk_over_commit",
"label": "Disk Over Commit",
"name": "disk_over_commit",
"validate": Array [
Object {
"type": "required",
},
],
},
Object {
"component": "select",
"condition": Object {
"is": false,
"when": "auto_select_host",
},
"id": "destination_host",
"includeEmpty": true,
"isRequired": true,
"labelText": "Hosts",
"name": "destination_host",
"options": Array [],
"placeholder": "<Choose>",
"validate": Array [
Object {
"type": "required",
},
],
},
],
"name": "MigrateInstance",
"title": "Migrate Instance",
},
Object {
"component": "spy-field",
"initialize": undefined,
"name": "spy-field",
},
],
}
}
>
<WrappedFormTemplate
canReset={false}
cancelLabel="Cancel"
disableSubmit={
Array [
"pristine",
"invalid",
]
}
formFields={
Array [
<SingleField
component="sub-form"
fields={
Array [
Object {
"component": "checkbox",
"id": "auto_select_host",
"isDisabled": true,
"label": "Auto-select Host?",
"name": "auto_select_host",
},
Object {
"component": "checkbox",
"id": "block_migration",
"label": "Block Migration",
"name": "block_migration",
"validate": Array [
Object {
"type": "required",
},
],
},
Object {
"component": "checkbox",
"id": "disk_over_commit",
"label": "Disk Over Commit",
"name": "disk_over_commit",
"validate": Array [
Object {
"type": "required",
},
],
},
Object {
"component": "select",
"condition": Object {
"is": false,
"when": "auto_select_host",
},
"id": "destination_host",
"includeEmpty": true,
"isRequired": true,
"labelText": "Hosts",
"name": "destination_host",
"options": Array [],
"placeholder": "<Choose>",
"validate": Array [
Object {
"type": "required",
},
],
},
]
}
name="MigrateInstance"
title="Migrate Instance"
/>,
<SingleField
component="spy-field"
name="spy-field"
/>,
]
}
formWrapperProps={
Object {
"className": "live_migrate_form",
}
}
resetLabel="Reset"
schema={
Object {
"fields": Array [
Object {
"component": "sub-form",
"fields": Array [
Object {
"component": "checkbox",
"id": "auto_select_host",
"isDisabled": true,
"label": "Auto-select Host?",
"name": "auto_select_host",
},
Object {
"component": "checkbox",
"id": "block_migration",
"label": "Block Migration",
"name": "block_migration",
"validate": Array [
Object {
"type": "required",
},
],
},
Object {
"component": "checkbox",
"id": "disk_over_commit",
"label": "Disk Over Commit",
"name": "disk_over_commit",
"validate": Array [
Object {
"type": "required",
},
],
},
Object {
"component": "select",
"condition": Object {
"is": false,
"when": "auto_select_host",
},
"id": "destination_host",
"includeEmpty": true,
"isRequired": true,
"labelText": "Hosts",
"name": "destination_host",
"options": Array [],
"placeholder": "<Choose>",
"validate": Array [
Object {
"type": "required",
},
],
},
],
"name": "MigrateInstance",
"title": "Migrate Instance",
},
Object {
"component": "spy-field",
"initialize": undefined,
"name": "spy-field",
},
],
}
}
showFormControls={true}
submitLabel="Submit"
>
<FormTemplate
Button={[Function]}
ButtonGroup={[Function]}
Description={[Function]}
FormWrapper={[Function]}
Header={[Function]}
Title={[Function]}
buttonOrder={
Array [
"submit",
"reset",
"cancel",
]
}
canReset={false}
cancelLabel="Cancel"
disableSubmit={
Array [
"pristine",
"invalid",
]
}
formFields={
Array [
<SingleField
component="sub-form"
fields={
Array [
Object {
"component": "checkbox",
"id": "auto_select_host",
"isDisabled": true,
"label": "Auto-select Host?",
"name": "auto_select_host",
},
Object {
"component": "checkbox",
"id": "block_migration",
"label": "Block Migration",
"name": "block_migration",
"validate": Array [
Object {
"type": "required",
},
],
},
Object {
"component": "checkbox",
"id": "disk_over_commit",
"label": "Disk Over Commit",
"name": "disk_over_commit",
"validate": Array [
Object {
"type": "required",
},
],
},
Object {
"component": "select",
"condition": Object {
"is": false,
"when": "auto_select_host",
},
"id": "destination_host",
"includeEmpty": true,
"isRequired": true,
"labelText": "Hosts",
"name": "destination_host",
"options": Array [],
"placeholder": "<Choose>",
"validate": Array [
Object {
"type": "required",
},
],
},
]
}
name="MigrateInstance"
title="Migrate Instance"
/>,
<SingleField
component="spy-field"
name="spy-field"
/>,
]
}
formWrapperProps={
Object {
"className": "live_migrate_form",
}
}
resetLabel="Reset"
schema={
Object {
"fields": Array [
Object {
"component": "sub-form",
"fields": Array [
Object {
"component": "checkbox",
"id": "auto_select_host",
"isDisabled": true,
"label": "Auto-select Host?",
"name": "auto_select_host",
},
Object {
"component": "checkbox",
"id": "block_migration",
"label": "Block Migration",
"name": "block_migration",
"validate": Array [
Object {
"type": "required",
},
],
},
Object {
"component": "checkbox",
"id": "disk_over_commit",
"label": "Disk Over Commit",
"name": "disk_over_commit",
"validate": Array [
Object {
"type": "required",
},
],
},
Object {
"component": "select",
"condition": Object {
"is": false,
"when": "auto_select_host",
},
"id": "destination_host",
"includeEmpty": true,
"isRequired": true,
"labelText": "Hosts",
"name": "destination_host",
"options": Array [],
"placeholder": "<Choose>",
"validate": Array [
Object {
"type": "required",
},
],
},
],
"name": "MigrateInstance",
"title": "Migrate Instance",
},
Object {
"component": "spy-field",
"initialize": undefined,
"name": "spy-field",
},
],
}
}
showFormControls={true}
submitLabel="Submit"
>
<Form
className="live_migrate_form"
onSubmit={[Function]}
>
<Form
className="form-0-2-3 live_migrate_form"
noValidate={true}
onSubmit={[Function]}
>
<form
className="bx--form form-0-2-3 live_migrate_form"
noValidate={true}
onSubmit={[Function]}
>
<SingleField
component="sub-form"
fields={
Array [
Object {
"component": "checkbox",
"id": "auto_select_host",
"isDisabled": true,
"label": "Auto-select Host?",
"name": "auto_select_host",
},
Object {
"component": "checkbox",
"id": "block_migration",
"label": "Block Migration",
"name": "block_migration",
"validate": Array [
Object {
"type": "required",
},
],
},
Object {
"component": "checkbox",
"id": "disk_over_commit",
"label": "Disk Over Commit",
"name": "disk_over_commit",
"validate": Array [
Object {
"type": "required",
},
],
},
Object {
"component": "select",
"condition": Object {
"is": false,
"when": "auto_select_host",
},
"id": "destination_host",
"includeEmpty": true,
"isRequired": true,
"labelText": "Hosts",
"name": "destination_host",
"options": Array [],
"placeholder": "<Choose>",
"validate": Array [
Object {
"type": "required",
},
],
},
]
}
key="MigrateInstance"
name="MigrateInstance"
title="Migrate Instance"
>
<FormConditionWrapper
field={
Object {
"component": "sub-form",
"fields": Array [
Object {
"component": "checkbox",
"id": "auto_select_host",
"isDisabled": true,
"label": "Auto-select Host?",
"name": "auto_select_host",
},
Object {
"component": "checkbox",
"id": "block_migration",
"label": "Block Migration",
"name": "block_migration",
"validate": Array [
Object {
"type": "required",
},
],
},
Object {
"component": "checkbox",
"id": "disk_over_commit",
"label": "Disk Over Commit",
"name": "disk_over_commit",
"validate": Array [
Object {
"type": "required",
},
],
},
Object {
"component": "select",
"condition": Object {
"is": false,
"when": "auto_select_host",
},
"id": "destination_host",
"includeEmpty": true,
"isRequired": true,
"labelText": "Hosts",
"name": "destination_host",
"options": Array [],
"placeholder": "<Choose>",
"validate": Array [
Object {
"type": "required",
},
],
},
],
"name": "MigrateInstance",
"title": "Migrate Instance",
}
}
>
<FormFieldHideWrapper
hideField={false}
>
<SubForm
DescriptionElement="p"
TitleElement="h3"
component="sub-form"
fields={
Array [
Object {
"component": "checkbox",
"id": "auto_select_host",
"isDisabled": true,
"label": "Auto-select Host?",
"name": "auto_select_host",
},
Object {
"component": "checkbox",
"id": "block_migration",
"label": "Block Migration",
"name": "block_migration",
"validate": Array [
Object {
"type": "required",
},
],
},
Object {
"component": "checkbox",
"id": "disk_over_commit",
"label": "Disk Over Commit",
"name": "disk_over_commit",
"validate": Array [
Object {
"type": "required",
},
],
},
Object {
"component": "select",
"condition": Object {
"is": false,
"when": "auto_select_host",
},
"id": "destination_host",
"includeEmpty": true,
"isRequired": true,
"labelText": "Hosts",
"name": "destination_host",
"options": Array [],
"placeholder": "<Choose>",
"validate": Array [
Object {
"type": "required",
},
],
},
]
}
name="MigrateInstance"
title="Migrate Instance"
>
<div
className=""
name="MigrateInstance"
>
<div>
<h3>
Migrate Instance
</h3>
</div>
<SingleField
component="checkbox"
id="auto_select_host"
isDisabled={true}
key="auto_select_host"
label="Auto-select Host?"
name="auto_select_host"
>
<FormConditionWrapper
field={
Object {
"component": "checkbox",
"id": "auto_select_host",
"isDisabled": true,
"label": "Auto-select Host?",
"name": "auto_select_host",
}
}
>
<FormFieldHideWrapper
hideField={false}
>
<Checkbox
component="checkbox"
id="auto_select_host"
isDisabled={true}
label="Auto-select Host?"
name="auto_select_host"
>
<SingleCheckbox
component="checkbox"
id="auto_select_host"
isDisabled={true}
label="Auto-select Host?"
name="auto_select_host"
>
<div>
<Checkbox
checked={true}
disabled={true}
id="auto_select_host"
indeterminate={false}
labelText="Auto-select Host?"
name="auto_select_host"
onBlur={[Function]}
onChange={[Function]}
onFocus={[Function]}
type="checkbox"
>
<div
className="bx--form-item bx--checkbox-wrapper"
>
<input
checked={true}
className="bx--checkbox"
disabled={true}
id="auto_select_host"
name="auto_select_host"
onBlur={[Function]}
onChange={[Function]}
onFocus={[Function]}
type="checkbox"
/>
<label
className="bx--checkbox-label"
htmlFor="auto_select_host"
title={null}
>
<Text
className="bx--checkbox-label-text"
>
<span
className="bx--checkbox-label-text"
dir="auto"
>
Auto-select Host?
</span>
</Text>
</label>
</div>
</Checkbox>
<HelperTextBlock />
</div>
</SingleCheckbox>
</Checkbox>
</FormFieldHideWrapper>
</FormConditionWrapper>
</SingleField>
<SingleField
component="checkbox"
id="block_migration"
key="block_migration"
label="Block Migration"
name="block_migration"
validate={
Array [
Object {
"type": "required",
},
]
}
>
<FormConditionWrapper
field={
Object {
"component": "checkbox",
"id": "block_migration",
"label": "Block Migration",
"name": "block_migration",
"validate": Array [
Object {
"type": "required",
},
],
}
}
>
<FormFieldHideWrapper
hideField={false}
>
<Checkbox
component="checkbox"
id="block_migration"
label="Block Migration"
name="block_migration"
validate={
Array [
Object {
"type": "required",
},
]
}
>
<SingleCheckbox
component="checkbox"
id="block_migration"
label="Block Migration"
name="block_migration"
validate={
Array [
Object {
"type": "required",
},
]
}
>
<div>
<Checkbox
checked={false}
id="block_migration"
indeterminate={false}
labelText="Block Migration"
name="block_migration"
onBlur={[Function]}
onChange={[Function]}
onFocus={[Function]}
type="checkbox"
>
<div
className="bx--form-item bx--checkbox-wrapper"
>
<input
checked={false}
className="bx--checkbox"
id="block_migration"
name="block_migration"
onBlur={[Function]}
onChange={[Function]}
onFocus={[Function]}
type="checkbox"
/>
<label
className="bx--checkbox-label"
htmlFor="block_migration"
title={null}
>
<Text
className="bx--checkbox-label-text"
>
<span
className="bx--checkbox-label-text"
dir="auto"
>
Block Migration
</span>
</Text>
</label>
</div>
</Checkbox>
<HelperTextBlock />
</div>
</SingleCheckbox>
</Checkbox>
</FormFieldHideWrapper>
</FormConditionWrapper>
</SingleField>
<SingleField
component="checkbox"
id="disk_over_commit"
key="disk_over_commit"
label="Disk Over Commit"
name="disk_over_commit"
validate={
Array [
Object {
"type": "required",
},
]
}
>
<FormConditionWrapper
field={
Object {
"component": "checkbox",
"id": "disk_over_commit",
"label": "Disk Over Commit",
"name": "disk_over_commit",
"validate": Array [
Object {
"type": "required",
},
],
}
}
>
<FormFieldHideWrapper
hideField={false}
>
<Checkbox
component="checkbox"
id="disk_over_commit"
label="Disk Over Commit"
name="disk_over_commit"
validate={
Array [
Object {
"type": "required",
},
]
}
>
<SingleCheckbox
component="checkbox"
id="disk_over_commit"
label="Disk Over Commit"
name="disk_over_commit"
validate={
Array [
Object {
"type": "required",
},
]
}
>
<div>
<Checkbox
checked={false}
id="disk_over_commit"
indeterminate={false}
labelText="Disk Over Commit"
name="disk_over_commit"
onBlur={[Function]}
onChange={[Function]}
onFocus={[Function]}
type="checkbox"
>
<div
className="bx--form-item bx--checkbox-wrapper"
>
<input
checked={false}
className="bx--checkbox"
id="disk_over_commit"
name="disk_over_commit"
onBlur={[Function]}
onChange={[Function]}
onFocus={[Function]}
type="checkbox"
/>
<label
className="bx--checkbox-label"
htmlFor="disk_over_commit"
title={null}
>
<Text
className="bx--checkbox-label-text"
>
<span
className="bx--checkbox-label-text"
dir="auto"
>
Disk Over Commit
</span>
</Text>
</label>
</div>
</Checkbox>
<HelperTextBlock />
</div>
</SingleCheckbox>
</Checkbox>
</FormFieldHideWrapper>
</FormConditionWrapper>
</SingleField>
<SingleField
component="select"
condition={
Object {
"is": false,
"when": "auto_select_host",
}
}
id="destination_host"
includeEmpty={true}
isRequired={true}
key="destination_host"
labelText="Hosts"
name="destination_host"
options={Array []}
placeholder="<Choose>"
validate={
Array [
Object {
"type": "required",
},
]
}
>
<FormConditionWrapper
condition={
Object {
"is": false,
"when": "auto_select_host",
}
}
field={
Object {
"component": "select",
"id": "destination_host",
"includeEmpty": true,
"isRequired": true,
"labelText": "Hosts",
"name": "destination_host",
"options": Array [],
"placeholder": "<Choose>",
"validate": Array [
Object {
"type": "required",
},
],
}
}
>
<ConditionTriggerDetector
condition={
Object {
"is": false,
"when": "auto_select_host",
}
}
field={
Object {
"component": "select",
"id": "destination_host",
"includeEmpty": true,
"isRequired": true,
"labelText": "Hosts",
"name": "destination_host",
"options": Array [],
"placeholder": "<Choose>",
"validate": Array [
Object {
"type": "required",
},
],
}
}
triggers={
Array [
"auto_select_host",
]
}
>
<ForwardRef(Field)
name="auto_select_host"
subscription={
Object {
"value": true,
}
}
>
<ConditionTriggerDetector
condition={
Object {
"is": false,
"when": "auto_select_host",
}
}
field={
Object {
"component": "select",
"id": "destination_host",
"includeEmpty": true,
"isRequired": true,
"labelText": "Hosts",
"name": "destination_host",
"options": Array [],
"placeholder": "<Choose>",
"validate": Array [
Object {
"type": "required",
},
],
}
}
triggers={Array []}
values={
Object {
"auto_select_host": true,
}
}
>
<ConditionTriggerWrapper
condition={
Object {
"is": false,
"when": "auto_select_host",
}
}
field={
Object {
"component": "select",
"id": "destination_host",
"includeEmpty": true,
"isRequired": true,
"labelText": "Hosts",
"name": "destination_host",
"options": Array [],
"placeholder": "<Choose>",
"validate": Array [
Object {
"type": "required",
},
],
}
}
values={
Object {
"auto_select_host": true,
}
}
>
<Component
condition={
Object {
"is": false,
"when": "auto_select_host",
}
}
field={
Object {
"component": "select",
"id": "destination_host",
"includeEmpty": true,
"isRequired": true,
"labelText": "Hosts",
"name": "destination_host",
"options": Array [],
"placeholder": "<Choose>",
"validate": Array [
Object {
"type": "required",
},
],
}
}
values={
Object {
"auto_select_host": true,
}
}
/>
</ConditionTriggerWrapper>
</ConditionTriggerDetector>
</ForwardRef(Field)>
</ConditionTriggerDetector>
</FormConditionWrapper>
</SingleField>
</div>
</SubForm>
</FormFieldHideWrapper>
</FormConditionWrapper>
</SingleField>
<SingleField
component="spy-field"
key="spy-field"
name="spy-field"
>
<FormConditionWrapper
field={
Object {
"component": "spy-field",
"initialize": undefined,
"name": "spy-field",
}
}
>
<FormFieldHideWrapper
hideField={false}
>
<SpyField
component="spy-field"
name="spy-field"
>
<FormSpy
onChange={[Function]}
subscription={
Object {
"pristine": true,
"valid": true,
}
}
/>
</SpyField>
</FormFieldHideWrapper>
</FormConditionWrapper>
</SingleField>
<FormSpy>
<FormControls
Button={[Function]}
ButtonGroup={[Function]}
FormSpy={[Function]}
buttonOrder={
Array [
"submit",
"reset",
"cancel",
]
}
canReset={false}
cancelLabel="Cancel"
disableSubmit={true}
formFields={
Array [
<SingleField
component="sub-form"
fields={
Array [
Object {
"component": "checkbox",
"id": "auto_select_host",
"isDisabled": true,
"label": "Auto-select Host?",
"name": "auto_select_host",
},
Object {
"component": "checkbox",
"id": "block_migration",
"label": "Block Migration",
"name": "block_migration",
"validate": Array [
Object {
"type": "required",
},
],
},
Object {
"component": "checkbox",
"id": "disk_over_commit",
"label": "Disk Over Commit",
"name": "disk_over_commit",
"validate": Array [
Object {
"type": "required",
},
],
},
Object {
"component": "select",
"condition": Object {
"is": false,
"when": "auto_select_host",
},
"id": "destination_host",
"includeEmpty": true,
"isRequired": true,
"labelText": "Hosts",
"name": "destination_host",
"options": Array [],
"placeholder": "<Choose>",
"validate": Array [
Object {
"type": "required",
},
],
},
]
}
name="MigrateInstance"
title="Migrate Instance"
/>,
<SingleField
component="spy-field"
name="spy-field"
/>,
]
}
formSpyProps={
Object {
"active": undefined,
"dirty": false,
"dirtyFields": Object {},
"dirtyFieldsSinceLastSubmit": Object {
"auto_select_host": true,
},
"dirtySinceLastSubmit": false,
"error": undefined,
"errors": Object {
"block_migration": "Required",
"disk_over_commit": "Required",
},
"form": Object {
"batch": [Function],
"blur": [Function],
"change": [Function],
"destroyOnUnregister": false,
"focus": [Function],
"getFieldState": [Function],
"getRegisteredFields": [Function],
"getState": [Function],
"initialize": [Function],
"isValidationPaused": [Function],
"mutators": Object {
"concat": [Function],
"insert": [Function],
"move": [Function],
"pop": [Function],
"push": [Function],
"remove": [Function],
"removeBatch": [Function],
"shift": [Function],
"swap": [Function],
"unshift": [Function],
"update": [Function],
},
"pauseValidation": [Function],
"registerField": [Function],
"reset": [Function],
"resetFieldState": [Function],
"restart": [Function],
"resumeValidation": [Function],
"setConfig": [Function],
"submit": [Function],
"subscribe": [Function],
},
"hasSubmitErrors": false,
"hasValidationErrors": true,
"initialValues": Object {
"auto_select_host": true,
},
"invalid": true,
"modified": Object {
"auto_select_host": false,
"block_migration": false,
"disk_over_commit": false,
},
"modifiedSinceLastSubmit": false,
"pristine": true,
"submitError": undefined,
"submitErrors": undefined,
"submitFailed": false,
"submitSucceeded": false,
"submitting": false,
"touched": Object {
"auto_select_host": false,
"block_migration": false,
"disk_over_commit": false,
},
"valid": false,
"validating": false,
"values": Object {
"auto_select_host": true,
},
"visited": Object {
"auto_select_host": false,
"block_migration": false,
"disk_over_commit": false,
},
}
}
onCancel={[Function]}
onReset={[Function]}
resetLabel="Reset"
schema={
Object {
"fields": Array [
Object {
"component": "sub-form",
"fields": Array [
Object {
"component": "checkbox",
"id": "auto_select_host",
"isDisabled": true,
"label": "Auto-select Host?",
"name": "auto_select_host",
},
Object {
"component": "checkbox",
"id": "block_migration",
"label": "Block Migration",
"name": "block_migration",
"validate": Array [
Object {
"type": "required",
},
],
},
Object {
"component": "checkbox",
"id": "disk_over_commit",
"label": "Disk Over Commit",
"name": "disk_over_commit",
"validate": Array [
Object {
"type": "required",
},
],
},
Object {
"component": "select",
"condition": Object {
"is": false,
"when": "auto_select_host",
},
"id": "destination_host",
"includeEmpty": true,
"isRequired": true,
"labelText": "Hosts",
"name": "destination_host",
"options": Array [],
"placeholder": "<Choose>",
"validate": Array [
Object {
"type": "required",
},
],
},
],
"name": "MigrateInstance",
"title": "Migrate Instance",
},
Object {
"component": "spy-field",
"initialize": undefined,
"name": "spy-field",
},
],
}
}
submitLabel="Submit"
>
<ButtonGroup>
<ButtonSet
className=""
>
<div
className="bx--btn-set"
>
<Button
buttonType="submit"
disabled={true}
key="form-submit"
label="Submit"
type="submit"
variant="primary"
>
<Button
disabled={true}
kind="primary"
type="submit"
variant="primary"
>
<button
aria-describedby={null}
aria-pressed={null}
className="bx--btn bx--btn--primary bx--btn--disabled"
disabled={true}
onBlur={[Function]}
onClick={[Function]}
onFocus={[Function]}
onMouseEnter={[Function]}
onMouseLeave={[Function]}
tabIndex={0}
type="submit"
variant="primary"
>
Submit
</button>
</Button>
</Button>
<Button
buttonType="cancel"
key="form-cancel"
label="Cancel"
onClick={[Function]}
type="button"
>
<Button
kind="secondary"
onClick={[Function]}
type="button"
>
<button
aria-describedby={null}
aria-pressed={null}
className="bx--btn bx--btn--secondary"
disabled={false}
onBlur={[Function]}
onClick={[Function]}
onFocus={[Function]}
onMouseEnter={[Function]}
onMouseLeave={[Function]}
tabIndex={0}
type="button"
>
Cancel
</button>
</Button>
</Button>
</div>
</ButtonSet>
</ButtonGroup>
</FormControls>
</FormSpy>
</form>
</Form>
</Form>
</FormTemplate>
</WrappedFormTemplate>
</Component>
</ReactFinalForm>
</FormRenderer>
</MiqFormRenderer>
</Connect(MiqFormRenderer)>
</LiveMigrateForm>
</Provider>
`;