This repository has been archived by the owner on Jul 21, 2023. It is now read-only.
/
planWizard.fixtures.js
105 lines (104 loc) · 3.88 KB
/
planWizard.fixtures.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
export const ospPlanReduxFormState = {
planWizardGeneralStep: {
registeredFields: {
infrastructure_mapping: { name: 'infrastructure_mapping', type: 'Field', count: 0 },
name: { name: 'name', type: 'Field', count: 0 },
description: { name: 'description', type: 'Field', count: 0 },
vm_choice_radio: { name: 'vm_choice_radio', type: 'Field', count: 0 }
},
values: {
infrastructure_mapping: '42000000000002',
vm_choice_radio: 'vms_via_discovery',
name: 'test OSP plan',
description: ''
},
initial: { infrastructure_mapping: null, vm_choice_radio: 'vms_via_discovery', name: '', description: '' },
fields: {
infrastructure_mapping: { visited: true },
name: { visited: true, touched: true },
description: { visited: true, touched: true }
},
anyTouched: true
},
planWizardVMStep: {
registeredFields: { selectedVms: { name: 'selectedVms', type: 'Field', count: 0 } },
values: { selectedVms: ['42000000000017', '42000000000006'] },
initial: { selectedVms: [] }
},
planWizardInstancePropertiesStep: {
values: {
instancePropertiesVms: {
rows: {
'42000000000017': { osp_security_group_id: '42000000000016', osp_flavor_id: '42000000000004' },
'42000000000006': { osp_security_group_id: '42000000000022', osp_flavor_id: '42000000000002' }
},
updatedInstancePropertiesRowOnStandby: {}
}
},
initial: { instancePropertiesVms: { updatedInstancePropertiesRowOnStandby: {} } },
registeredFields: { instancePropertiesVms: { name: 'instancePropertiesVms', type: 'Field', count: 0 } }
},
planWizardAdvancedOptionsStep: {
values: {
playbookVms: { preMigration: [], postMigration: [] },
preMigrationPlaybook: '',
postMigrationPlaybook: ''
},
initial: {
playbookVms: { preMigration: [], postMigration: [] },
preMigrationPlaybook: '',
postMigrationPlaybook: ''
},
registeredFields: {
preMigrationPlaybook: { name: 'preMigrationPlaybook', type: 'Field', count: 0 },
postMigrationPlaybook: { name: 'postMigrationPlaybook', type: 'Field', count: 0 },
playbookVms: { name: 'playbookVms', type: 'Field', count: 0 }
}
}
};
export const rhvPlanReduxFormState = {
planWizardGeneralStep: {
values: {
infrastructure_mapping: '1',
vm_choice_radio: 'vms_via_discovery',
name: 'test RHV w/ playbooks',
description: ''
},
initial: { infrastructure_mapping: null, vm_choice_radio: 'vms_via_discovery', name: '', description: '' },
registeredFields: {
infrastructure_mapping: { name: 'infrastructure_mapping', type: 'Field', count: 0 },
name: { name: 'name', type: 'Field', count: 0 },
description: { name: 'description', type: 'Field', count: 0 },
vm_choice_radio: { name: 'vm_choice_radio', type: 'Field', count: 0 }
},
fields: {
infrastructure_mapping: { visited: true },
name: { visited: true, touched: true },
description: { visited: true, touched: true }
},
anyTouched: true
},
planWizardVMStep: {
values: { selectedVms: ['28', '36'] },
initial: { selectedVms: [] },
registeredFields: { selectedVms: { name: 'selectedVms', type: 'Field', count: 0 } }
},
planWizardInstancePropertiesStep: {},
planWizardAdvancedOptionsStep: {
values: {
playbookVms: { preMigration: ['28'], postMigration: ['36'] },
preMigrationPlaybook: '1',
postMigrationPlaybook: '2'
},
initial: {
playbookVms: { preMigration: [], postMigration: [] },
preMigrationPlaybook: '',
postMigrationPlaybook: ''
},
registeredFields: {
preMigrationPlaybook: { name: 'preMigrationPlaybook', type: 'Field', count: 0 },
postMigrationPlaybook: { name: 'postMigrationPlaybook', type: 'Field', count: 0 },
playbookVms: { name: 'playbookVms', type: 'Field', count: 0 }
}
}
};