Skip to content
This repository has been archived by the owner on Sep 5, 2024. It is now read-only.

Commit

Permalink
Merge pull request #905 from mturley/fix-bad-snapshots
Browse files Browse the repository at this point in the history
Fix tests we missed in PR #897

(cherry picked from commit d462568)

https://bugzilla.redhat.com/show_bug.cgi?id=1693746
  • Loading branch information
mturley authored and simaishi committed Apr 5, 2019
1 parent 9b2a950 commit 396d010
Show file tree
Hide file tree
Showing 4 changed files with 88 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,7 @@ Array [
},
"transformation": Object {
"limits": Object {
"max_concurrent_tasks_per_ems": 10,
"max_concurrent_tasks_per_host": 10,
},
},
Expand Down Expand Up @@ -113,6 +114,7 @@ Array [
},
"transformation": Object {
"limits": Object {
"max_concurrent_tasks_per_ems": 10,
"max_concurrent_tasks_per_host": 10,
},
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -287,6 +287,7 @@ Object {
"isSavingSettings": false,
"postConversionHostsResults": Array [],
"savedSettings": Object {
"max_concurrent_tasks_per_ems": 10,
"max_concurrent_tasks_per_host": 10,
},
"savingSettingsRejected": false,
Expand Down Expand Up @@ -397,6 +398,7 @@ Object {
"isSavingSettings": false,
"postConversionHostsResults": Array [],
"savedSettings": Object {
"max_concurrent_tasks_per_ems": 10,
"max_concurrent_tasks_per_host": 10,
},
"savingSettingsRejected": false,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ exports[`GeneralSettings component renders the general settings page 1`] = `
>
<Form
bsClass="form"
className="form-horizontal"
componentClass="form"
horizontal={false}
inline={false}
Expand All @@ -27,33 +28,106 @@ exports[`GeneralSettings component renders the general settings page 1`] = `
}
}
>
<div>
<h3>
Concurrent Migrations
</h3>
</div>
<FormGroup
bsClass="form-group"
>
<ControlLabel
bsClass="control-label"
className="col-md-5"
srOnly={false}
>
Maximum concurrent migrations per conversion host
<span
className="pull-left"
>
Maximum concurrent migrations per conversion host
<OverlayTrigger
defaultOverlayShown={false}
delay={500}
overlay={
<Popover
bsClass="popover"
id="maximum_concurrect_migrations_per_provider_popover"
placement="right"
>
For VDDK transformations the maximum concurrent migrations per conversion host is limited to 20. See the product documentation for more information.
</Popover>
}
placement="top"
rootClose={false}
trigger={
Array [
"hover",
]
}
>
<Icon
name="info"
size="md"
style={
Object {
"backgroundColor": "transparent",
"padding": 10,
"width": "inherit",
}
}
type="pf"
/>
</OverlayTrigger>
</span>
</ControlLabel>
<div
style={
Object {
"width": 100,
}
}
className="col-md-2"
>
<Field
component={[Function]}
id="max_concurrent_tasks_per_host"
min={1}
name="max_concurrent_tasks_per_host"
normalize={[Function]}
onChange={[Function]}
/>
</div>
</FormGroup>
<FormGroup
bsClass="form-group"
>
<ControlLabel
bsClass="control-label"
className="col-md-5"
srOnly={false}
>
<div
className="pull-left"
>
Maximum concurrent migrations per provider
</div>
</ControlLabel>
<div
className="col-md-2"
>
<Field
component={[Function]}
id="max_concurrent_tasks_per_ems"
min={1}
name="max_concurrent_tasks_per_ems"
normalize={[Function]}
onChange={[Function]}
/>
</div>
</FormGroup>
<FormGroup
bsClass="form-group"
className="col-md-1 pull-left"
style={
Object {
"marginTop": "40px",
}
}
>
<Button
active={false}
Expand All @@ -65,7 +139,6 @@ exports[`GeneralSettings component renders the general settings page 1`] = `
>
Apply
</Button>
<br />
</FormGroup>
</Form>
</div>
Expand Down
6 changes: 4 additions & 2 deletions app/javascript/react/screens/App/Settings/settings.fixures.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,8 @@ export const servers = Immutable({
export const settings = Immutable({
transformation: {
limits: {
max_concurrent_tasks_per_host: 10
max_concurrent_tasks_per_host: 10,
max_concurrent_tasks_per_ems: 10
}
},
otherSettings: {
Expand All @@ -27,7 +28,8 @@ export const settings = Immutable({
});

export const settingsFormValues = Immutable({
max_concurrent_tasks_per_host: 10
max_concurrent_tasks_per_host: 10,
max_concurrent_tasks_per_ems: 10
});

export const fetchServersData = {
Expand Down

0 comments on commit 396d010

Please sign in to comment.