foreman_acd 0.6.0 → 0.7.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (120) hide show
  1. checksums.yaml +4 -4
  2. data/app/controllers/foreman_acd/ansible_playbooks_controller.rb +75 -0
  3. data/app/controllers/foreman_acd/app_instances_controller.rb +19 -2
  4. data/app/controllers/foreman_acd/concerns/ansible_playbook_parameters.rb +1 -1
  5. data/app/controllers/foreman_acd/remote_execution_controller.rb +37 -21
  6. data/app/lib/actions/foreman_acd/deploy_all_hosts.rb +12 -7
  7. data/app/lib/actions/foreman_acd/run_configurator.rb +10 -7
  8. data/app/models/concerns/foreman_acd/host_managed_extensions.rb +2 -2
  9. data/app/models/foreman_acd/acd_provider.rb +7 -1
  10. data/app/models/foreman_acd/ansible_playbook.rb +2 -1
  11. data/app/models/foreman_acd/app_instance.rb +1 -1
  12. data/app/services/foreman_acd/acd_proxy_proxy_selector.rb +17 -0
  13. data/app/services/foreman_acd/app_configurator.rb +59 -15
  14. data/app/services/foreman_acd/app_deployer.rb +8 -2
  15. data/app/services/foreman_acd/inventory_creator.rb +14 -0
  16. data/app/views/foreman_acd/ansible_playbooks/_form.html.erb +41 -7
  17. data/app/views/foreman_acd/app_definitions/_form.html.erb +1 -1
  18. data/app/views/foreman_acd/app_instances/_form.html.erb +1 -1
  19. data/app/views/foreman_acd/app_instances/index.html.erb +5 -3
  20. data/app/views/foreman_acd/app_instances/report.html.erb +1 -1
  21. data/app/views/templates/job/run_acd_ansible_playbook.erb +1 -1
  22. data/config/routes.rb +3 -0
  23. data/db/migrate/20210316151145_add_git_commit_to_ansible_playbooks.rb +8 -0
  24. data/db/migrate/20210503122809_add_git_url_to_ansible_playbooks.rb +8 -0
  25. data/db/seeds.d/75-job_templates.rb +1 -1
  26. data/lib/foreman_acd.rb +12 -0
  27. data/lib/foreman_acd/engine.rb +26 -4
  28. data/lib/foreman_acd/plugin.rb +0 -9
  29. data/lib/foreman_acd/version.rb +1 -1
  30. data/lib/tasks/foreman_acd_tasks.rake +0 -12
  31. data/package.json +8 -8
  32. data/test/controllers/ansible_playbooks_controller_test.rb +1 -1
  33. data/test/controllers/app_instances_controller_test.rb +8 -3
  34. data/test/controllers/ui_acd_controller_test.rb +22 -6
  35. data/test/factories/foreman_acd_factories.rb +18 -4
  36. data/test/models/acd_provider_test.rb +37 -0
  37. data/test/models/ansible_playbook_test.rb +11 -0
  38. data/test/models/app_definition_test.rb +1 -1
  39. data/test/models/app_instance_test.rb +2 -0
  40. data/test/models/concerns/host_extensions_test.rb +26 -0
  41. data/test/models/foreman_host_test.rb +12 -0
  42. data/webpack/__mocks__/foremanReact/API.js +2 -0
  43. data/webpack/__mocks__/foremanReact/common/I18n.js +3 -0
  44. data/webpack/__mocks__/foremanReact/common/helpers.js +2 -0
  45. data/webpack/__mocks__/foremanReact/components/ForemanModal.js +7 -0
  46. data/webpack/__mocks__/foremanReact/components/common/forms/CommonForm.js +2 -0
  47. data/webpack/__mocks__/foremanReact/components/common/forms/TextInput.js +2 -0
  48. data/webpack/__mocks__/foremanReact/components/hosts/powerStatus.js +1 -0
  49. data/webpack/__snapshots__/helper.test.js.snap +14 -0
  50. data/webpack/components/ApplicationDefinition/ApplicationDefinition.js +1 -1
  51. data/webpack/components/ApplicationDefinition/__fixtures__/applicationDefinitionConfData_1.fixtures.js +288 -0
  52. data/webpack/components/ApplicationDefinition/__fixtures__/applicationDefinitionReducer.fixtures.js +79 -0
  53. data/webpack/components/ApplicationDefinition/__tests__/ApplicationDefinition.test.js +25 -0
  54. data/webpack/components/ApplicationDefinition/__tests__/ApplicationDefinitionReducer.test.js +119 -0
  55. data/webpack/components/ApplicationDefinition/__tests__/ApplicationDefinitionSelectors.test.js +41 -0
  56. data/webpack/components/ApplicationDefinition/__tests__/__snapshots__/ApplicationDefinition.test.js.snap +200 -0
  57. data/webpack/components/ApplicationDefinition/__tests__/__snapshots__/ApplicationDefinitionReducer.test.js.snap +3033 -0
  58. data/webpack/components/ApplicationDefinition/__tests__/__snapshots__/ApplicationDefinitionSelectors.test.js.snap +299 -0
  59. data/webpack/components/ApplicationDefinition/components/AnsiblePlaybookSelector.js +1 -0
  60. data/webpack/components/ApplicationDefinition/components/__tests__/AnsiblePlaybookSelector.test.js +41 -0
  61. data/webpack/components/ApplicationDefinition/components/__tests__/__snapshots__/AnsiblePlaybookSelector.test.js.snap +121 -0
  62. data/webpack/components/ApplicationInstance/ApplicationInstance.js +3 -5
  63. data/webpack/components/ApplicationInstance/__fixtures__/applicationInstanceConfData_1.fixtures.js +263 -0
  64. data/webpack/components/ApplicationInstance/__fixtures__/applicationInstanceReducer.fixtures.js +78 -0
  65. data/webpack/components/ApplicationInstance/__tests__/ApplicationInstance.test.js +23 -0
  66. data/webpack/components/ApplicationInstance/__tests__/ApplicationInstanceReducer.test.js +119 -0
  67. data/webpack/components/ApplicationInstance/__tests__/ApplicationInstanceSelectors.test.js +44 -0
  68. data/webpack/components/ApplicationInstance/__tests__/__snapshots__/ApplicationInstance.test.js.snap +209 -0
  69. data/webpack/components/ApplicationInstance/__tests__/__snapshots__/ApplicationInstanceReducer.test.js.snap +2719 -0
  70. data/webpack/components/ApplicationInstance/__tests__/__snapshots__/ApplicationInstanceSelectors.test.js.snap +276 -0
  71. data/webpack/components/ApplicationInstanceReport/__fixtures__/applicationInstanceReportData_1.fixtures.js +349 -0
  72. data/webpack/components/ApplicationInstanceReport/__fixtures__/applicationInstanceReportReducer.fixtures.js +20 -0
  73. data/webpack/components/ApplicationInstanceReport/__tests__/ApplicationInstanceReport.test.js +47 -0
  74. data/webpack/components/ApplicationInstanceReport/__tests__/ApplicationInstanceReportReducer.test.js +41 -0
  75. data/webpack/components/ApplicationInstanceReport/__tests__/ApplicationInstanceReportSelectors.test.js +26 -0
  76. data/webpack/components/ApplicationInstanceReport/__tests__/__snapshots__/ApplicationInstanceReport.test.js.snap +130 -0
  77. data/webpack/components/ApplicationInstanceReport/__tests__/__snapshots__/ApplicationInstanceReportReducer.test.js.snap +718 -0
  78. data/webpack/components/ApplicationInstanceReport/__tests__/__snapshots__/ApplicationInstanceReportSelectors.test.js.snap +347 -0
  79. data/webpack/components/ApplicationInstanceReport/components/__tests__/ReportViewer.test.js +24 -0
  80. data/webpack/components/ApplicationInstanceReport/components/__tests__/__snapshots__/ReportViewer.test.js.snap +24 -0
  81. data/webpack/components/ParameterSelection/ParameterSelectionReducer.js +2 -21
  82. data/webpack/components/ParameterSelection/__fixtures__/parameterSelectionData_1.fixtures.js +116 -84
  83. data/webpack/components/ParameterSelection/__fixtures__/parameterSelectionReducer.fixtures.js +10 -4
  84. data/webpack/components/ParameterSelection/__tests__/ParameterSelection.test.js +36 -46
  85. data/webpack/components/ParameterSelection/__tests__/ParameterSelectionReducer.test.js +31 -25
  86. data/webpack/components/ParameterSelection/__tests__/ParameterSelectionSelectors.test.js +6 -6
  87. data/webpack/components/ParameterSelection/__tests__/__snapshots__/ParameterSelection.test.js.snap +2 -126
  88. data/webpack/components/ParameterSelection/__tests__/__snapshots__/ParameterSelectionReducer.test.js.snap +1483 -872
  89. data/webpack/components/ParameterSelection/__tests__/__snapshots__/ParameterSelectionSelectors.test.js.snap +117 -79
  90. data/webpack/components/SyncGitRepo/SyncGitRepo.js +210 -0
  91. data/webpack/components/SyncGitRepo/SyncGitRepo.scss +1 -0
  92. data/webpack/components/SyncGitRepo/SyncGitRepoActions.js +124 -0
  93. data/webpack/components/SyncGitRepo/SyncGitRepoConstants.js +9 -0
  94. data/webpack/components/SyncGitRepo/SyncGitRepoReducer.js +80 -0
  95. data/webpack/components/SyncGitRepo/SyncGitRepoSelectors.js +6 -0
  96. data/webpack/components/SyncGitRepo/__fixtures__/syncGitRepoConfData_1.fixtures.js +7 -0
  97. data/webpack/components/SyncGitRepo/__fixtures__/syncGitRepoReducer.fixtures.js +44 -0
  98. data/webpack/components/SyncGitRepo/__tests__/SyncGitRepo.test.js +27 -0
  99. data/webpack/components/SyncGitRepo/__tests__/SyncGitRepoReducer.test.js +95 -0
  100. data/webpack/components/SyncGitRepo/__tests__/SyncGitRepoSelectors.test.js +32 -0
  101. data/webpack/components/SyncGitRepo/__tests__/__snapshots__/SyncGitRepo.test.js.snap +30 -0
  102. data/webpack/components/SyncGitRepo/__tests__/__snapshots__/SyncGitRepoReducer.test.js.snap +137 -0
  103. data/webpack/components/SyncGitRepo/__tests__/__snapshots__/SyncGitRepoSelectors.test.js.snap +13 -0
  104. data/webpack/components/SyncGitRepo/components/FormTextInput.js +42 -0
  105. data/webpack/components/SyncGitRepo/components/ScmTypeSelector.js +46 -0
  106. data/webpack/components/SyncGitRepo/index.js +28 -0
  107. data/webpack/components/common/ExtTextInput.js +43 -0
  108. data/webpack/components/common/__tests__/EditTableEntry.test.js +53 -0
  109. data/webpack/components/common/__tests__/LockTableEntry.test.js +35 -0
  110. data/webpack/components/common/__tests__/__snapshots__/DeleteTableEntry.test.js.snap +2 -2
  111. data/webpack/components/common/__tests__/__snapshots__/EditTableEntry.test.js.snap +81 -0
  112. data/webpack/components/common/__tests__/__snapshots__/LockTableEntry.test.js.snap +60 -0
  113. data/webpack/helper.js +15 -1
  114. data/webpack/helper.test.js +37 -0
  115. data/webpack/index.js +2 -0
  116. data/webpack/reducer.js +4 -0
  117. metadata +92 -11
  118. data/webpack/components/common/EasyHeaderFormatter.js +0 -18
  119. data/webpack/components/common/__tests__/__snapshots__/AddParameter.test.js.snap +0 -35
  120. data/webpack/components/common/__tests__/__snapshots__/DeleteParameter.test.js.snap +0 -41
@@ -2,32 +2,50 @@
2
2
 
3
3
  exports[`ParameterSelectionReducer should activate edit parameter 1`] = `
4
4
  Object {
5
- "appDefinition": Object {
6
- "hostgroup_id": 1,
7
- "id": 1,
8
- "name": "Test123",
9
- },
10
5
  "columns": Array [
11
6
  Object {
7
+ "cell": Object {
8
+ "formatters": Array [
9
+ null,
10
+ ],
11
+ },
12
12
  "header": Object {
13
+ "customFormatters": Array [
14
+ null,
15
+ ],
16
+ "formatters": Array [
17
+ null,
18
+ ],
13
19
  "label": "Name",
14
20
  "props": Object {
15
21
  "index": 0,
16
22
  "sort": true,
17
23
  "style": Object {
18
- "width": "20%",
24
+ "width": "25%",
19
25
  },
20
26
  },
27
+ "transforms": Array [
28
+ null,
29
+ ],
21
30
  },
22
31
  "property": "name",
23
32
  },
24
33
  Object {
25
34
  "cell": Object {
35
+ "formatters": Array [
36
+ null,
37
+ ],
26
38
  "props": Object {
27
39
  "index": 1,
28
40
  },
29
41
  },
30
42
  "header": Object {
43
+ "customFormatters": Array [
44
+ null,
45
+ ],
46
+ "formatters": Array [
47
+ null,
48
+ ],
31
49
  "label": "Description",
32
50
  "props": Object {
33
51
  "index": 1,
@@ -36,16 +54,25 @@ Object {
36
54
  "width": "25%",
37
55
  },
38
56
  },
57
+ "transforms": Array [
58
+ null,
59
+ ],
39
60
  },
40
61
  "property": "description",
41
62
  },
42
63
  Object {
43
64
  "cell": Object {
44
- "props": Object {
45
- "index": 2,
46
- },
65
+ "formatters": Array [
66
+ null,
67
+ ],
47
68
  },
48
69
  "header": Object {
70
+ "customFormatters": Array [
71
+ null,
72
+ ],
73
+ "formatters": Array [
74
+ null,
75
+ ],
49
76
  "label": "Type",
50
77
  "props": Object {
51
78
  "index": 2,
@@ -54,37 +81,55 @@ Object {
54
81
  "width": "20%",
55
82
  },
56
83
  },
84
+ "transforms": Array [
85
+ null,
86
+ ],
57
87
  },
58
88
  "property": "type",
59
89
  },
60
90
  Object {
61
91
  "cell": Object {
62
- "props": Object {
63
- "index": 3,
64
- },
92
+ "formatters": Array [
93
+ null,
94
+ ],
65
95
  },
66
96
  "header": Object {
97
+ "customFormatters": Array [
98
+ null,
99
+ ],
100
+ "formatters": Array [
101
+ null,
102
+ ],
67
103
  "label": "Default value",
68
104
  "props": Object {
69
105
  "index": 3,
70
106
  "sort": true,
71
107
  "style": Object {
72
- "width": "25%",
108
+ "width": "20%",
73
109
  },
74
110
  },
111
+ "transforms": Array [
112
+ null,
113
+ ],
75
114
  },
76
115
  "property": "value",
77
116
  },
78
117
  Object {
79
118
  "cell": Object {
80
- "props": Object {
81
- "index": 4,
82
- },
119
+ "formatters": Array [
120
+ null,
121
+ ],
83
122
  },
84
123
  "header": Object {
124
+ "formatters": Array [
125
+ null,
126
+ ],
85
127
  "label": "Actions",
86
128
  "props": Object {
87
129
  "index": 4,
130
+ "style": Object {
131
+ "width": "10%",
132
+ },
88
133
  },
89
134
  },
90
135
  "property": "actions",
@@ -96,103 +141,91 @@ Object {
96
141
  "status": "",
97
142
  "statusText": "",
98
143
  },
99
- "foremanData": Object {
100
- "computeprofiles": Array [],
101
- "domains": Array [],
102
- "environments": Array [
144
+ "hostgroupId": 1,
145
+ "loading": false,
146
+ "paramData": Object {
147
+ "computeprofiles": Array [
103
148
  Object {
104
149
  "id": 1,
105
- "name": "production",
150
+ "name": "1-Small",
106
151
  },
107
152
  Object {
108
153
  "id": 2,
109
- "name": "test",
154
+ "name": "2-Medium",
155
+ },
156
+ Object {
157
+ "id": 3,
158
+ "name": "3-Large",
159
+ },
160
+ Object {
161
+ "id": 4,
162
+ "name": "Orchahosts-VM",
163
+ },
164
+ ],
165
+ "dataType": "PARAMETER_SELECTION_PARAM_TYPE_FOREMAN",
166
+ "domains": Array [
167
+ Object {
168
+ "id": 1,
169
+ "name": "deploy3.dev.atix",
170
+ },
171
+ ],
172
+ "environments": Array [
173
+ Object {
174
+ "id": 1,
175
+ "name": "production",
110
176
  },
111
177
  ],
112
178
  "hostgroup_id": 1,
113
- "lifecycle_environments": Array [],
114
- "ptables": Array [
179
+ "lifecycle_environments": Array [
115
180
  Object {
116
- "id": 105,
117
- "name": "Kickstart default",
181
+ "id": 1,
182
+ "name": "Library",
118
183
  },
184
+ ],
185
+ "ptables": Array [
119
186
  Object {
120
- "id": 104,
121
- "name": "Kickstart default thin",
187
+ "id": 125,
188
+ "name": "Kickstart default",
122
189
  },
123
190
  ],
124
191
  },
125
- "hostgroupId": 1,
126
- "loading": false,
192
+ "paramDefinition": Object {
193
+ "dataId": "1",
194
+ "id": 1,
195
+ "name": "web",
196
+ },
127
197
  "parameterTypes": Object {
128
- "computeprofile": "Compute profile",
129
198
  "domain": "Domain",
130
199
  "hostparam": "Host parameter",
131
- "lifecycleenv": "Lifecycle environment",
200
+ "ip": "IP",
201
+ "password": "Root password",
202
+ "ptable": "Partition table",
203
+ "puppetenv": "Puppet environment",
132
204
  },
133
205
  "parameters": Array [
134
206
  Object {
135
207
  "description": "",
136
208
  "id": 1,
137
- "name": "PuppetEnv",
138
- "type": "puppetenv",
139
- "value": "2",
140
- },
141
- Object {
142
- "description": "",
143
- "id": 2,
144
- "name": "PW",
145
- "type": "password",
146
- "value": "rooot",
147
- },
148
- Object {
149
- "description": "",
150
- "id": 3,
151
- "name": "Blub",
152
- "type": "hostparam",
153
- "value": "awesome",
154
- },
155
- Object {
156
- "description": "",
157
- "id": 4,
158
- "name": "111allo",
159
- "type": "ip",
160
- "value": "1.1.1.1",
209
+ "locked": false,
210
+ "name": "CP",
211
+ "type": "computeprofile",
212
+ "value": "1",
161
213
  },
162
214
  Object {
163
215
  "backup": Object {
164
216
  "description": "",
165
- "id": 5,
166
- "name": "1111aasdfasf",
167
- "type": "hostname",
168
- "value": "dername",
217
+ "id": 2,
218
+ "locked": true,
219
+ "name": "LE",
220
+ "type": "lifecycleenv",
221
+ "value": "1",
169
222
  },
170
223
  "description": "",
171
- "id": 5,
172
- "name": "1111aasdfasf",
173
- "type": "hostname",
174
- "value": "dername",
175
- },
176
- Object {
177
- "description": "",
178
- "id": 6,
179
- "name": "222nocheiner",
180
- "type": "hostparam",
181
- "value": "",
182
- },
183
- Object {
184
- "description": "aa",
185
- "id": 7,
186
- "name": "aaaaa",
187
- "type": "ptable",
188
- "value": "",
189
- },
190
- Object {
191
- "description": "",
192
- "id": 8,
193
- "name": "aaa",
194
- "type": "hostparam",
195
- "value": "2134234",
224
+ "id": 2,
225
+ "locked": true,
226
+ "name": "LE",
227
+ "type": "lifecycleenv",
228
+ "value": "1",
196
229
  },
197
230
  ],
198
231
  "sortingColumns": Object {
@@ -206,32 +239,50 @@ Object {
206
239
 
207
240
  exports[`ParameterSelectionReducer should add a parameter 1`] = `
208
241
  Object {
209
- "appDefinition": Object {
210
- "hostgroup_id": 1,
211
- "id": 1,
212
- "name": "Test123",
213
- },
214
242
  "columns": Array [
215
243
  Object {
244
+ "cell": Object {
245
+ "formatters": Array [
246
+ null,
247
+ ],
248
+ },
216
249
  "header": Object {
250
+ "customFormatters": Array [
251
+ null,
252
+ ],
253
+ "formatters": Array [
254
+ null,
255
+ ],
217
256
  "label": "Name",
218
257
  "props": Object {
219
258
  "index": 0,
220
259
  "sort": true,
221
260
  "style": Object {
222
- "width": "20%",
261
+ "width": "25%",
223
262
  },
224
263
  },
264
+ "transforms": Array [
265
+ null,
266
+ ],
225
267
  },
226
268
  "property": "name",
227
269
  },
228
270
  Object {
229
271
  "cell": Object {
272
+ "formatters": Array [
273
+ null,
274
+ ],
230
275
  "props": Object {
231
276
  "index": 1,
232
277
  },
233
278
  },
234
279
  "header": Object {
280
+ "customFormatters": Array [
281
+ null,
282
+ ],
283
+ "formatters": Array [
284
+ null,
285
+ ],
235
286
  "label": "Description",
236
287
  "props": Object {
237
288
  "index": 1,
@@ -240,16 +291,25 @@ Object {
240
291
  "width": "25%",
241
292
  },
242
293
  },
294
+ "transforms": Array [
295
+ null,
296
+ ],
243
297
  },
244
298
  "property": "description",
245
299
  },
246
300
  Object {
247
301
  "cell": Object {
248
- "props": Object {
249
- "index": 2,
250
- },
302
+ "formatters": Array [
303
+ null,
304
+ ],
251
305
  },
252
306
  "header": Object {
307
+ "customFormatters": Array [
308
+ null,
309
+ ],
310
+ "formatters": Array [
311
+ null,
312
+ ],
253
313
  "label": "Type",
254
314
  "props": Object {
255
315
  "index": 2,
@@ -258,37 +318,55 @@ Object {
258
318
  "width": "20%",
259
319
  },
260
320
  },
321
+ "transforms": Array [
322
+ null,
323
+ ],
261
324
  },
262
325
  "property": "type",
263
326
  },
264
327
  Object {
265
328
  "cell": Object {
266
- "props": Object {
267
- "index": 3,
268
- },
329
+ "formatters": Array [
330
+ null,
331
+ ],
269
332
  },
270
333
  "header": Object {
334
+ "customFormatters": Array [
335
+ null,
336
+ ],
337
+ "formatters": Array [
338
+ null,
339
+ ],
271
340
  "label": "Default value",
272
341
  "props": Object {
273
342
  "index": 3,
274
343
  "sort": true,
275
344
  "style": Object {
276
- "width": "25%",
345
+ "width": "20%",
277
346
  },
278
347
  },
348
+ "transforms": Array [
349
+ null,
350
+ ],
279
351
  },
280
352
  "property": "value",
281
353
  },
282
354
  Object {
283
355
  "cell": Object {
284
- "props": Object {
285
- "index": 4,
286
- },
356
+ "formatters": Array [
357
+ null,
358
+ ],
287
359
  },
288
360
  "header": Object {
361
+ "formatters": Array [
362
+ null,
363
+ ],
289
364
  "label": "Actions",
290
365
  "props": Object {
291
366
  "index": 4,
367
+ "style": Object {
368
+ "width": "10%",
369
+ },
292
370
  },
293
371
  },
294
372
  "property": "actions",
@@ -300,108 +378,97 @@ Object {
300
378
  "status": "",
301
379
  "statusText": "",
302
380
  },
303
- "foremanData": Object {
304
- "computeprofiles": Array [],
305
- "domains": Array [],
306
- "environments": Array [
381
+ "hostgroupId": 1,
382
+ "loading": false,
383
+ "paramData": Object {
384
+ "computeprofiles": Array [
307
385
  Object {
308
386
  "id": 1,
309
- "name": "production",
387
+ "name": "1-Small",
310
388
  },
311
389
  Object {
312
390
  "id": 2,
313
- "name": "test",
391
+ "name": "2-Medium",
392
+ },
393
+ Object {
394
+ "id": 3,
395
+ "name": "3-Large",
396
+ },
397
+ Object {
398
+ "id": 4,
399
+ "name": "Orchahosts-VM",
400
+ },
401
+ ],
402
+ "dataType": "PARAMETER_SELECTION_PARAM_TYPE_FOREMAN",
403
+ "domains": Array [
404
+ Object {
405
+ "id": 1,
406
+ "name": "deploy3.dev.atix",
407
+ },
408
+ ],
409
+ "environments": Array [
410
+ Object {
411
+ "id": 1,
412
+ "name": "production",
314
413
  },
315
414
  ],
316
415
  "hostgroup_id": 1,
317
- "lifecycle_environments": Array [],
318
- "ptables": Array [
416
+ "lifecycle_environments": Array [
319
417
  Object {
320
- "id": 105,
321
- "name": "Kickstart default",
418
+ "id": 1,
419
+ "name": "Library",
322
420
  },
421
+ ],
422
+ "ptables": Array [
323
423
  Object {
324
- "id": 104,
325
- "name": "Kickstart default thin",
424
+ "id": 125,
425
+ "name": "Kickstart default",
326
426
  },
327
427
  ],
328
428
  },
329
- "hostgroupId": 1,
330
- "loading": false,
429
+ "paramDefinition": Object {
430
+ "dataId": "1",
431
+ "id": 1,
432
+ "name": "web",
433
+ },
331
434
  "parameterTypes": Object {
332
- "computeprofile": "Compute profile",
333
435
  "domain": "Domain",
334
436
  "hostparam": "Host parameter",
335
- "lifecycleenv": "Lifecycle environment",
437
+ "ip": "IP",
438
+ "password": "Root password",
439
+ "ptable": "Partition table",
440
+ "puppetenv": "Puppet environment",
336
441
  },
337
442
  "parameters": Array [
338
443
  Object {
339
444
  "description": "",
340
445
  "id": 1,
341
- "name": "PuppetEnv",
342
- "type": "puppetenv",
343
- "value": "2",
446
+ "locked": false,
447
+ "name": "CP",
448
+ "type": "computeprofile",
449
+ "value": "1",
344
450
  },
345
451
  Object {
346
452
  "description": "",
347
453
  "id": 2,
348
- "name": "PW",
349
- "type": "password",
350
- "value": "rooot",
351
- },
352
- Object {
353
- "description": "",
354
- "id": 3,
355
- "name": "Blub",
356
- "type": "hostparam",
357
- "value": "awesome",
358
- },
359
- Object {
360
- "description": "",
361
- "id": 4,
362
- "name": "111allo",
363
- "type": "ip",
364
- "value": "1.1.1.1",
365
- },
366
- Object {
367
- "description": "",
368
- "id": 5,
369
- "name": "1111aasdfasf",
370
- "type": "hostname",
371
- "value": "dername",
372
- },
373
- Object {
374
- "description": "",
375
- "id": 6,
376
- "name": "222nocheiner",
377
- "type": "hostparam",
378
- "value": "",
379
- },
380
- Object {
381
- "description": "aa",
382
- "id": 7,
383
- "name": "aaaaa",
384
- "type": "ptable",
385
- "value": "",
386
- },
387
- Object {
388
- "description": "",
389
- "id": 8,
390
- "name": "aaa",
391
- "type": "hostparam",
392
- "value": "2134234",
454
+ "locked": true,
455
+ "name": "LE",
456
+ "type": "lifecycleenv",
457
+ "value": "1",
393
458
  },
394
459
  Object {
395
460
  "backup": Object {
396
461
  "description": "",
397
- "id": 9,
462
+ "id": 3,
463
+ "locked": false,
398
464
  "name": "",
399
465
  "newEntry": true,
400
466
  "type": "",
401
467
  "value": "",
402
468
  },
403
469
  "description": "",
404
- "id": 9,
470
+ "id": 3,
471
+ "locked": false,
405
472
  "name": "",
406
473
  "newEntry": true,
407
474
  "type": "",
@@ -419,32 +486,50 @@ Object {
419
486
 
420
487
  exports[`ParameterSelectionReducer should cancel edit parameter 1`] = `
421
488
  Object {
422
- "appDefinition": Object {
423
- "hostgroup_id": 1,
424
- "id": 1,
425
- "name": "Test123",
426
- },
427
489
  "columns": Array [
428
490
  Object {
491
+ "cell": Object {
492
+ "formatters": Array [
493
+ null,
494
+ ],
495
+ },
429
496
  "header": Object {
497
+ "customFormatters": Array [
498
+ null,
499
+ ],
500
+ "formatters": Array [
501
+ null,
502
+ ],
430
503
  "label": "Name",
431
504
  "props": Object {
432
505
  "index": 0,
433
506
  "sort": true,
434
507
  "style": Object {
435
- "width": "20%",
508
+ "width": "25%",
436
509
  },
437
510
  },
511
+ "transforms": Array [
512
+ null,
513
+ ],
438
514
  },
439
515
  "property": "name",
440
516
  },
441
517
  Object {
442
518
  "cell": Object {
519
+ "formatters": Array [
520
+ null,
521
+ ],
443
522
  "props": Object {
444
523
  "index": 1,
445
524
  },
446
525
  },
447
526
  "header": Object {
527
+ "customFormatters": Array [
528
+ null,
529
+ ],
530
+ "formatters": Array [
531
+ null,
532
+ ],
448
533
  "label": "Description",
449
534
  "props": Object {
450
535
  "index": 1,
@@ -453,16 +538,25 @@ Object {
453
538
  "width": "25%",
454
539
  },
455
540
  },
541
+ "transforms": Array [
542
+ null,
543
+ ],
456
544
  },
457
545
  "property": "description",
458
546
  },
459
547
  Object {
460
548
  "cell": Object {
461
- "props": Object {
462
- "index": 2,
463
- },
549
+ "formatters": Array [
550
+ null,
551
+ ],
464
552
  },
465
553
  "header": Object {
554
+ "customFormatters": Array [
555
+ null,
556
+ ],
557
+ "formatters": Array [
558
+ null,
559
+ ],
466
560
  "label": "Type",
467
561
  "props": Object {
468
562
  "index": 2,
@@ -471,37 +565,55 @@ Object {
471
565
  "width": "20%",
472
566
  },
473
567
  },
568
+ "transforms": Array [
569
+ null,
570
+ ],
474
571
  },
475
572
  "property": "type",
476
573
  },
477
574
  Object {
478
575
  "cell": Object {
479
- "props": Object {
480
- "index": 3,
481
- },
576
+ "formatters": Array [
577
+ null,
578
+ ],
482
579
  },
483
580
  "header": Object {
581
+ "customFormatters": Array [
582
+ null,
583
+ ],
584
+ "formatters": Array [
585
+ null,
586
+ ],
484
587
  "label": "Default value",
485
588
  "props": Object {
486
589
  "index": 3,
487
590
  "sort": true,
488
591
  "style": Object {
489
- "width": "25%",
592
+ "width": "20%",
490
593
  },
491
594
  },
595
+ "transforms": Array [
596
+ null,
597
+ ],
492
598
  },
493
599
  "property": "value",
494
600
  },
495
601
  Object {
496
602
  "cell": Object {
497
- "props": Object {
498
- "index": 4,
499
- },
603
+ "formatters": Array [
604
+ null,
605
+ ],
500
606
  },
501
607
  "header": Object {
608
+ "formatters": Array [
609
+ null,
610
+ ],
502
611
  "label": "Actions",
503
612
  "props": Object {
504
613
  "index": 4,
614
+ "style": Object {
615
+ "width": "10%",
616
+ },
505
617
  },
506
618
  },
507
619
  "property": "actions",
@@ -513,96 +625,83 @@ Object {
513
625
  "status": "",
514
626
  "statusText": "",
515
627
  },
516
- "foremanData": Object {
517
- "computeprofiles": Array [],
518
- "domains": Array [],
519
- "environments": Array [
628
+ "hostgroupId": 1,
629
+ "loading": false,
630
+ "paramData": Object {
631
+ "computeprofiles": Array [
520
632
  Object {
521
633
  "id": 1,
522
- "name": "production",
634
+ "name": "1-Small",
523
635
  },
524
636
  Object {
525
637
  "id": 2,
526
- "name": "test",
638
+ "name": "2-Medium",
639
+ },
640
+ Object {
641
+ "id": 3,
642
+ "name": "3-Large",
643
+ },
644
+ Object {
645
+ "id": 4,
646
+ "name": "Orchahosts-VM",
647
+ },
648
+ ],
649
+ "dataType": "PARAMETER_SELECTION_PARAM_TYPE_FOREMAN",
650
+ "domains": Array [
651
+ Object {
652
+ "id": 1,
653
+ "name": "deploy3.dev.atix",
654
+ },
655
+ ],
656
+ "environments": Array [
657
+ Object {
658
+ "id": 1,
659
+ "name": "production",
527
660
  },
528
661
  ],
529
662
  "hostgroup_id": 1,
530
- "lifecycle_environments": Array [],
531
- "ptables": Array [
663
+ "lifecycle_environments": Array [
532
664
  Object {
533
- "id": 105,
534
- "name": "Kickstart default",
665
+ "id": 1,
666
+ "name": "Library",
535
667
  },
668
+ ],
669
+ "ptables": Array [
536
670
  Object {
537
- "id": 104,
538
- "name": "Kickstart default thin",
671
+ "id": 125,
672
+ "name": "Kickstart default",
539
673
  },
540
674
  ],
541
675
  },
542
- "hostgroupId": 1,
543
- "loading": false,
676
+ "paramDefinition": Object {
677
+ "dataId": "1",
678
+ "id": 1,
679
+ "name": "web",
680
+ },
544
681
  "parameterTypes": Object {
545
- "computeprofile": "Compute profile",
546
682
  "domain": "Domain",
547
683
  "hostparam": "Host parameter",
548
- "lifecycleenv": "Lifecycle environment",
684
+ "ip": "IP",
685
+ "password": "Root password",
686
+ "ptable": "Partition table",
687
+ "puppetenv": "Puppet environment",
549
688
  },
550
689
  "parameters": Array [
551
690
  Object {
552
691
  "description": "",
553
692
  "id": 1,
554
- "name": "PuppetEnv",
555
- "type": "puppetenv",
556
- "value": "2",
693
+ "locked": false,
694
+ "name": "CP",
695
+ "type": "computeprofile",
696
+ "value": "1",
557
697
  },
558
698
  Object {
559
699
  "description": "",
560
700
  "id": 2,
561
- "name": "PW",
562
- "type": "password",
563
- "value": "rooot",
564
- },
565
- Object {
566
- "description": "",
567
- "id": 3,
568
- "name": "Blub",
569
- "type": "hostparam",
570
- "value": "awesome",
571
- },
572
- Object {
573
- "description": "",
574
- "id": 4,
575
- "name": "111allo",
576
- "type": "ip",
577
- "value": "1.1.1.1",
578
- },
579
- Object {
580
- "description": "",
581
- "id": 5,
582
- "name": "1111aasdfasf",
583
- "type": "hostname",
584
- "value": "dername",
585
- },
586
- Object {
587
- "description": "",
588
- "id": 6,
589
- "name": "222nocheiner",
590
- "type": "hostparam",
591
- "value": "",
592
- },
593
- Object {
594
- "description": "aa",
595
- "id": 7,
596
- "name": "aaaaa",
597
- "type": "ptable",
598
- "value": "",
599
- },
600
- Object {
601
- "description": "",
602
- "id": 8,
603
- "name": "aaa",
604
- "type": "hostparam",
605
- "value": "2134234",
701
+ "locked": true,
702
+ "name": "LE",
703
+ "type": "lifecycleenv",
704
+ "value": "1",
606
705
  },
607
706
  ],
608
707
  "sortingColumns": Object {
@@ -616,32 +715,50 @@ Object {
616
715
 
617
716
  exports[`ParameterSelectionReducer should change edit parameter 1`] = `
618
717
  Object {
619
- "appDefinition": Object {
620
- "hostgroup_id": 1,
621
- "id": 1,
622
- "name": "Test123",
623
- },
624
718
  "columns": Array [
625
719
  Object {
720
+ "cell": Object {
721
+ "formatters": Array [
722
+ null,
723
+ ],
724
+ },
626
725
  "header": Object {
726
+ "customFormatters": Array [
727
+ null,
728
+ ],
729
+ "formatters": Array [
730
+ null,
731
+ ],
627
732
  "label": "Name",
628
733
  "props": Object {
629
734
  "index": 0,
630
735
  "sort": true,
631
736
  "style": Object {
632
- "width": "20%",
737
+ "width": "25%",
633
738
  },
634
739
  },
740
+ "transforms": Array [
741
+ null,
742
+ ],
635
743
  },
636
744
  "property": "name",
637
745
  },
638
746
  Object {
639
747
  "cell": Object {
748
+ "formatters": Array [
749
+ null,
750
+ ],
640
751
  "props": Object {
641
752
  "index": 1,
642
753
  },
643
754
  },
644
755
  "header": Object {
756
+ "customFormatters": Array [
757
+ null,
758
+ ],
759
+ "formatters": Array [
760
+ null,
761
+ ],
645
762
  "label": "Description",
646
763
  "props": Object {
647
764
  "index": 1,
@@ -650,16 +767,25 @@ Object {
650
767
  "width": "25%",
651
768
  },
652
769
  },
770
+ "transforms": Array [
771
+ null,
772
+ ],
653
773
  },
654
774
  "property": "description",
655
775
  },
656
776
  Object {
657
777
  "cell": Object {
658
- "props": Object {
659
- "index": 2,
660
- },
778
+ "formatters": Array [
779
+ null,
780
+ ],
661
781
  },
662
782
  "header": Object {
783
+ "customFormatters": Array [
784
+ null,
785
+ ],
786
+ "formatters": Array [
787
+ null,
788
+ ],
663
789
  "label": "Type",
664
790
  "props": Object {
665
791
  "index": 2,
@@ -668,37 +794,55 @@ Object {
668
794
  "width": "20%",
669
795
  },
670
796
  },
797
+ "transforms": Array [
798
+ null,
799
+ ],
671
800
  },
672
801
  "property": "type",
673
802
  },
674
803
  Object {
675
804
  "cell": Object {
676
- "props": Object {
677
- "index": 3,
678
- },
805
+ "formatters": Array [
806
+ null,
807
+ ],
679
808
  },
680
809
  "header": Object {
810
+ "customFormatters": Array [
811
+ null,
812
+ ],
813
+ "formatters": Array [
814
+ null,
815
+ ],
681
816
  "label": "Default value",
682
817
  "props": Object {
683
818
  "index": 3,
684
819
  "sort": true,
685
820
  "style": Object {
686
- "width": "25%",
821
+ "width": "20%",
687
822
  },
688
823
  },
824
+ "transforms": Array [
825
+ null,
826
+ ],
689
827
  },
690
828
  "property": "value",
691
829
  },
692
830
  Object {
693
831
  "cell": Object {
694
- "props": Object {
695
- "index": 4,
696
- },
832
+ "formatters": Array [
833
+ null,
834
+ ],
697
835
  },
698
836
  "header": Object {
837
+ "formatters": Array [
838
+ null,
839
+ ],
699
840
  "label": "Actions",
700
841
  "props": Object {
701
842
  "index": 4,
843
+ "style": Object {
844
+ "width": "10%",
845
+ },
702
846
  },
703
847
  },
704
848
  "property": "actions",
@@ -710,104 +854,92 @@ Object {
710
854
  "status": "",
711
855
  "statusText": "",
712
856
  },
713
- "foremanData": Object {
714
- "computeprofiles": Array [],
715
- "domains": Array [],
716
- "environments": Array [
857
+ "hostgroupId": 1,
858
+ "loading": false,
859
+ "paramData": Object {
860
+ "computeprofiles": Array [
717
861
  Object {
718
862
  "id": 1,
719
- "name": "production",
863
+ "name": "1-Small",
720
864
  },
721
865
  Object {
722
866
  "id": 2,
723
- "name": "test",
867
+ "name": "2-Medium",
868
+ },
869
+ Object {
870
+ "id": 3,
871
+ "name": "3-Large",
872
+ },
873
+ Object {
874
+ "id": 4,
875
+ "name": "Orchahosts-VM",
876
+ },
877
+ ],
878
+ "dataType": "PARAMETER_SELECTION_PARAM_TYPE_FOREMAN",
879
+ "domains": Array [
880
+ Object {
881
+ "id": 1,
882
+ "name": "deploy3.dev.atix",
883
+ },
884
+ ],
885
+ "environments": Array [
886
+ Object {
887
+ "id": 1,
888
+ "name": "production",
724
889
  },
725
890
  ],
726
891
  "hostgroup_id": 1,
727
- "lifecycle_environments": Array [],
728
- "ptables": Array [
892
+ "lifecycle_environments": Array [
729
893
  Object {
730
- "id": 105,
731
- "name": "Kickstart default",
894
+ "id": 1,
895
+ "name": "Library",
732
896
  },
897
+ ],
898
+ "ptables": Array [
733
899
  Object {
734
- "id": 104,
735
- "name": "Kickstart default thin",
900
+ "id": 125,
901
+ "name": "Kickstart default",
736
902
  },
737
903
  ],
738
904
  },
739
- "hostgroupId": 1,
740
- "loading": false,
905
+ "paramDefinition": Object {
906
+ "dataId": "1",
907
+ "id": 1,
908
+ "name": "web",
909
+ },
741
910
  "parameterTypes": Object {
742
- "computeprofile": "Compute profile",
743
911
  "domain": "Domain",
744
912
  "hostparam": "Host parameter",
745
- "lifecycleenv": "Lifecycle environment",
913
+ "ip": "IP",
914
+ "password": "Root password",
915
+ "ptable": "Partition table",
916
+ "puppetenv": "Puppet environment",
746
917
  },
747
918
  "parameters": Array [
748
919
  Object {
749
920
  "description": "",
750
921
  "id": 1,
751
- "name": "PuppetEnv",
752
- "type": "puppetenv",
753
- "value": "2",
754
- },
755
- Object {
756
- "description": "",
757
- "id": 2,
758
- "name": "PW",
759
- "type": "password",
760
- "value": "rooot",
761
- },
762
- Object {
763
- "description": "",
764
- "id": 3,
765
- "name": "Blub",
766
- "type": "hostparam",
767
- "value": "awesome",
768
- },
769
- Object {
770
- "description": "",
771
- "id": 4,
772
- "name": "111allo",
773
- "type": "ip",
774
- "value": "1.1.1.1",
922
+ "locked": false,
923
+ "name": "CP",
924
+ "type": "computeprofile",
925
+ "value": "1",
775
926
  },
776
927
  Object {
777
928
  "backup": Object {
778
929
  "description": "",
779
- "id": 5,
780
- "name": "1111aasdfasf",
781
- "type": "hostname",
782
- "value": "dername",
930
+ "id": 2,
931
+ "locked": true,
932
+ "name": "LE",
933
+ "type": "lifecycleenv",
934
+ "value": "1",
783
935
  },
784
936
  "description": "",
785
- "id": 5,
786
- "name": "1111aasdfasf",
787
- "type": "hostname",
937
+ "id": 2,
938
+ "locked": true,
939
+ "name": "LE",
940
+ "type": "lifecycleenv",
788
941
  "value": "helloworld",
789
942
  },
790
- Object {
791
- "description": "",
792
- "id": 6,
793
- "name": "222nocheiner",
794
- "type": "hostparam",
795
- "value": "",
796
- },
797
- Object {
798
- "description": "aa",
799
- "id": 7,
800
- "name": "aaaaa",
801
- "type": "ptable",
802
- "value": "",
803
- },
804
- Object {
805
- "description": "",
806
- "id": 8,
807
- "name": "aaa",
808
- "type": "hostparam",
809
- "value": "2134234",
810
- },
811
943
  ],
812
944
  "sortingColumns": Object {
813
945
  "name": Object {
@@ -820,32 +952,50 @@ Object {
820
952
 
821
953
  exports[`ParameterSelectionReducer should confirm edit parameter 1`] = `
822
954
  Object {
823
- "appDefinition": Object {
824
- "hostgroup_id": 1,
825
- "id": 1,
826
- "name": "Test123",
827
- },
828
955
  "columns": Array [
829
956
  Object {
957
+ "cell": Object {
958
+ "formatters": Array [
959
+ null,
960
+ ],
961
+ },
830
962
  "header": Object {
963
+ "customFormatters": Array [
964
+ null,
965
+ ],
966
+ "formatters": Array [
967
+ null,
968
+ ],
831
969
  "label": "Name",
832
970
  "props": Object {
833
971
  "index": 0,
834
972
  "sort": true,
835
973
  "style": Object {
836
- "width": "20%",
974
+ "width": "25%",
837
975
  },
838
976
  },
977
+ "transforms": Array [
978
+ null,
979
+ ],
839
980
  },
840
981
  "property": "name",
841
982
  },
842
983
  Object {
843
984
  "cell": Object {
985
+ "formatters": Array [
986
+ null,
987
+ ],
844
988
  "props": Object {
845
989
  "index": 1,
846
990
  },
847
991
  },
848
992
  "header": Object {
993
+ "customFormatters": Array [
994
+ null,
995
+ ],
996
+ "formatters": Array [
997
+ null,
998
+ ],
849
999
  "label": "Description",
850
1000
  "props": Object {
851
1001
  "index": 1,
@@ -854,16 +1004,25 @@ Object {
854
1004
  "width": "25%",
855
1005
  },
856
1006
  },
1007
+ "transforms": Array [
1008
+ null,
1009
+ ],
857
1010
  },
858
1011
  "property": "description",
859
1012
  },
860
1013
  Object {
861
1014
  "cell": Object {
862
- "props": Object {
863
- "index": 2,
864
- },
1015
+ "formatters": Array [
1016
+ null,
1017
+ ],
865
1018
  },
866
1019
  "header": Object {
1020
+ "customFormatters": Array [
1021
+ null,
1022
+ ],
1023
+ "formatters": Array [
1024
+ null,
1025
+ ],
867
1026
  "label": "Type",
868
1027
  "props": Object {
869
1028
  "index": 2,
@@ -872,37 +1031,55 @@ Object {
872
1031
  "width": "20%",
873
1032
  },
874
1033
  },
1034
+ "transforms": Array [
1035
+ null,
1036
+ ],
875
1037
  },
876
1038
  "property": "type",
877
1039
  },
878
1040
  Object {
879
1041
  "cell": Object {
880
- "props": Object {
881
- "index": 3,
882
- },
1042
+ "formatters": Array [
1043
+ null,
1044
+ ],
883
1045
  },
884
1046
  "header": Object {
1047
+ "customFormatters": Array [
1048
+ null,
1049
+ ],
1050
+ "formatters": Array [
1051
+ null,
1052
+ ],
885
1053
  "label": "Default value",
886
1054
  "props": Object {
887
1055
  "index": 3,
888
1056
  "sort": true,
889
1057
  "style": Object {
890
- "width": "25%",
1058
+ "width": "20%",
891
1059
  },
892
1060
  },
1061
+ "transforms": Array [
1062
+ null,
1063
+ ],
893
1064
  },
894
1065
  "property": "value",
895
1066
  },
896
1067
  Object {
897
1068
  "cell": Object {
898
- "props": Object {
899
- "index": 4,
900
- },
1069
+ "formatters": Array [
1070
+ null,
1071
+ ],
901
1072
  },
902
1073
  "header": Object {
1074
+ "formatters": Array [
1075
+ null,
1076
+ ],
903
1077
  "label": "Actions",
904
1078
  "props": Object {
905
1079
  "index": 4,
1080
+ "style": Object {
1081
+ "width": "10%",
1082
+ },
906
1083
  },
907
1084
  },
908
1085
  "property": "actions",
@@ -914,96 +1091,83 @@ Object {
914
1091
  "status": "",
915
1092
  "statusText": "",
916
1093
  },
917
- "foremanData": Object {
918
- "computeprofiles": Array [],
919
- "domains": Array [],
920
- "environments": Array [
1094
+ "hostgroupId": 1,
1095
+ "loading": false,
1096
+ "paramData": Object {
1097
+ "computeprofiles": Array [
921
1098
  Object {
922
1099
  "id": 1,
923
- "name": "production",
1100
+ "name": "1-Small",
924
1101
  },
925
1102
  Object {
926
1103
  "id": 2,
927
- "name": "test",
1104
+ "name": "2-Medium",
1105
+ },
1106
+ Object {
1107
+ "id": 3,
1108
+ "name": "3-Large",
1109
+ },
1110
+ Object {
1111
+ "id": 4,
1112
+ "name": "Orchahosts-VM",
1113
+ },
1114
+ ],
1115
+ "dataType": "PARAMETER_SELECTION_PARAM_TYPE_FOREMAN",
1116
+ "domains": Array [
1117
+ Object {
1118
+ "id": 1,
1119
+ "name": "deploy3.dev.atix",
1120
+ },
1121
+ ],
1122
+ "environments": Array [
1123
+ Object {
1124
+ "id": 1,
1125
+ "name": "production",
928
1126
  },
929
1127
  ],
930
1128
  "hostgroup_id": 1,
931
- "lifecycle_environments": Array [],
932
- "ptables": Array [
1129
+ "lifecycle_environments": Array [
933
1130
  Object {
934
- "id": 105,
935
- "name": "Kickstart default",
1131
+ "id": 1,
1132
+ "name": "Library",
936
1133
  },
1134
+ ],
1135
+ "ptables": Array [
937
1136
  Object {
938
- "id": 104,
939
- "name": "Kickstart default thin",
1137
+ "id": 125,
1138
+ "name": "Kickstart default",
940
1139
  },
941
1140
  ],
942
1141
  },
943
- "hostgroupId": 1,
944
- "loading": false,
1142
+ "paramDefinition": Object {
1143
+ "dataId": "1",
1144
+ "id": 1,
1145
+ "name": "web",
1146
+ },
945
1147
  "parameterTypes": Object {
946
- "computeprofile": "Compute profile",
947
1148
  "domain": "Domain",
948
1149
  "hostparam": "Host parameter",
949
- "lifecycleenv": "Lifecycle environment",
1150
+ "ip": "IP",
1151
+ "password": "Root password",
1152
+ "ptable": "Partition table",
1153
+ "puppetenv": "Puppet environment",
950
1154
  },
951
1155
  "parameters": Array [
952
1156
  Object {
953
1157
  "description": "",
954
1158
  "id": 1,
955
- "name": "PuppetEnv",
956
- "type": "puppetenv",
957
- "value": "2",
1159
+ "locked": false,
1160
+ "name": "CP",
1161
+ "type": "computeprofile",
1162
+ "value": "1",
958
1163
  },
959
1164
  Object {
960
1165
  "description": "",
961
1166
  "id": 2,
962
- "name": "PW",
963
- "type": "password",
964
- "value": "rooot",
965
- },
966
- Object {
967
- "description": "",
968
- "id": 3,
969
- "name": "Blub",
970
- "type": "hostparam",
971
- "value": "awesome",
972
- },
973
- Object {
974
- "description": "",
975
- "id": 4,
976
- "name": "111allo",
977
- "type": "ip",
978
- "value": "1.1.1.1",
979
- },
980
- Object {
981
- "description": "",
982
- "id": 5,
983
- "name": "1111aasdfasf",
984
- "type": "hostname",
985
- "value": "dername",
986
- },
987
- Object {
988
- "description": "",
989
- "id": 6,
990
- "name": "222nocheiner",
991
- "type": "hostparam",
992
- "value": "",
993
- },
994
- Object {
995
- "description": "aa",
996
- "id": 7,
997
- "name": "aaaaa",
998
- "type": "ptable",
999
- "value": "",
1000
- },
1001
- Object {
1002
- "description": "",
1003
- "id": 8,
1004
- "name": "aaa",
1005
- "type": "hostparam",
1006
- "value": "2134234",
1167
+ "locked": true,
1168
+ "name": "LE",
1169
+ "type": "lifecycleenv",
1170
+ "value": "1",
1007
1171
  },
1008
1172
  ],
1009
1173
  "sortingColumns": Object {
@@ -1017,32 +1181,50 @@ Object {
1017
1181
 
1018
1182
  exports[`ParameterSelectionReducer should delete a parameter 1`] = `
1019
1183
  Object {
1020
- "appDefinition": Object {
1021
- "hostgroup_id": 1,
1022
- "id": 1,
1023
- "name": "Test123",
1024
- },
1025
1184
  "columns": Array [
1026
1185
  Object {
1186
+ "cell": Object {
1187
+ "formatters": Array [
1188
+ null,
1189
+ ],
1190
+ },
1027
1191
  "header": Object {
1192
+ "customFormatters": Array [
1193
+ null,
1194
+ ],
1195
+ "formatters": Array [
1196
+ null,
1197
+ ],
1028
1198
  "label": "Name",
1029
1199
  "props": Object {
1030
1200
  "index": 0,
1031
1201
  "sort": true,
1032
1202
  "style": Object {
1033
- "width": "20%",
1203
+ "width": "25%",
1034
1204
  },
1035
1205
  },
1206
+ "transforms": Array [
1207
+ null,
1208
+ ],
1036
1209
  },
1037
1210
  "property": "name",
1038
1211
  },
1039
1212
  Object {
1040
1213
  "cell": Object {
1214
+ "formatters": Array [
1215
+ null,
1216
+ ],
1041
1217
  "props": Object {
1042
1218
  "index": 1,
1043
1219
  },
1044
1220
  },
1045
1221
  "header": Object {
1222
+ "customFormatters": Array [
1223
+ null,
1224
+ ],
1225
+ "formatters": Array [
1226
+ null,
1227
+ ],
1046
1228
  "label": "Description",
1047
1229
  "props": Object {
1048
1230
  "index": 1,
@@ -1051,16 +1233,25 @@ Object {
1051
1233
  "width": "25%",
1052
1234
  },
1053
1235
  },
1236
+ "transforms": Array [
1237
+ null,
1238
+ ],
1054
1239
  },
1055
1240
  "property": "description",
1056
1241
  },
1057
1242
  Object {
1058
1243
  "cell": Object {
1059
- "props": Object {
1060
- "index": 2,
1061
- },
1244
+ "formatters": Array [
1245
+ null,
1246
+ ],
1062
1247
  },
1063
1248
  "header": Object {
1249
+ "customFormatters": Array [
1250
+ null,
1251
+ ],
1252
+ "formatters": Array [
1253
+ null,
1254
+ ],
1064
1255
  "label": "Type",
1065
1256
  "props": Object {
1066
1257
  "index": 2,
@@ -1069,37 +1260,55 @@ Object {
1069
1260
  "width": "20%",
1070
1261
  },
1071
1262
  },
1263
+ "transforms": Array [
1264
+ null,
1265
+ ],
1072
1266
  },
1073
1267
  "property": "type",
1074
1268
  },
1075
1269
  Object {
1076
1270
  "cell": Object {
1077
- "props": Object {
1078
- "index": 3,
1079
- },
1271
+ "formatters": Array [
1272
+ null,
1273
+ ],
1080
1274
  },
1081
1275
  "header": Object {
1276
+ "customFormatters": Array [
1277
+ null,
1278
+ ],
1279
+ "formatters": Array [
1280
+ null,
1281
+ ],
1082
1282
  "label": "Default value",
1083
1283
  "props": Object {
1084
1284
  "index": 3,
1085
1285
  "sort": true,
1086
1286
  "style": Object {
1087
- "width": "25%",
1287
+ "width": "20%",
1088
1288
  },
1089
1289
  },
1290
+ "transforms": Array [
1291
+ null,
1292
+ ],
1090
1293
  },
1091
1294
  "property": "value",
1092
1295
  },
1093
1296
  Object {
1094
1297
  "cell": Object {
1095
- "props": Object {
1096
- "index": 4,
1097
- },
1298
+ "formatters": Array [
1299
+ null,
1300
+ ],
1098
1301
  },
1099
1302
  "header": Object {
1303
+ "formatters": Array [
1304
+ null,
1305
+ ],
1100
1306
  "label": "Actions",
1101
1307
  "props": Object {
1102
1308
  "index": 4,
1309
+ "style": Object {
1310
+ "width": "10%",
1311
+ },
1103
1312
  },
1104
1313
  },
1105
1314
  "property": "actions",
@@ -1111,89 +1320,76 @@ Object {
1111
1320
  "status": "",
1112
1321
  "statusText": "",
1113
1322
  },
1114
- "foremanData": Object {
1115
- "computeprofiles": Array [],
1116
- "domains": Array [],
1117
- "environments": Array [
1323
+ "hostgroupId": 1,
1324
+ "loading": false,
1325
+ "paramData": Object {
1326
+ "computeprofiles": Array [
1118
1327
  Object {
1119
1328
  "id": 1,
1120
- "name": "production",
1329
+ "name": "1-Small",
1121
1330
  },
1122
1331
  Object {
1123
1332
  "id": 2,
1124
- "name": "test",
1333
+ "name": "2-Medium",
1334
+ },
1335
+ Object {
1336
+ "id": 3,
1337
+ "name": "3-Large",
1338
+ },
1339
+ Object {
1340
+ "id": 4,
1341
+ "name": "Orchahosts-VM",
1342
+ },
1343
+ ],
1344
+ "dataType": "PARAMETER_SELECTION_PARAM_TYPE_FOREMAN",
1345
+ "domains": Array [
1346
+ Object {
1347
+ "id": 1,
1348
+ "name": "deploy3.dev.atix",
1349
+ },
1350
+ ],
1351
+ "environments": Array [
1352
+ Object {
1353
+ "id": 1,
1354
+ "name": "production",
1125
1355
  },
1126
1356
  ],
1127
1357
  "hostgroup_id": 1,
1128
- "lifecycle_environments": Array [],
1129
- "ptables": Array [
1358
+ "lifecycle_environments": Array [
1130
1359
  Object {
1131
- "id": 105,
1132
- "name": "Kickstart default",
1360
+ "id": 1,
1361
+ "name": "Library",
1133
1362
  },
1363
+ ],
1364
+ "ptables": Array [
1134
1365
  Object {
1135
- "id": 104,
1136
- "name": "Kickstart default thin",
1366
+ "id": 125,
1367
+ "name": "Kickstart default",
1137
1368
  },
1138
1369
  ],
1139
1370
  },
1140
- "hostgroupId": 1,
1141
- "loading": false,
1371
+ "paramDefinition": Object {
1372
+ "dataId": "1",
1373
+ "id": 1,
1374
+ "name": "web",
1375
+ },
1142
1376
  "parameterTypes": Object {
1143
- "computeprofile": "Compute profile",
1144
1377
  "domain": "Domain",
1145
1378
  "hostparam": "Host parameter",
1379
+ "ip": "IP",
1146
1380
  "lifecycleenv": "Lifecycle environment",
1381
+ "password": "Root password",
1382
+ "ptable": "Partition table",
1383
+ "puppetenv": "Puppet environment",
1147
1384
  },
1148
1385
  "parameters": Array [
1149
1386
  Object {
1150
1387
  "description": "",
1151
1388
  "id": 1,
1152
- "name": "PuppetEnv",
1153
- "type": "puppetenv",
1154
- "value": "2",
1155
- },
1156
- Object {
1157
- "description": "",
1158
- "id": 2,
1159
- "name": "PW",
1160
- "type": "password",
1161
- "value": "rooot",
1162
- },
1163
- Object {
1164
- "description": "",
1165
- "id": 3,
1166
- "name": "Blub",
1167
- "type": "hostparam",
1168
- "value": "awesome",
1169
- },
1170
- Object {
1171
- "description": "",
1172
- "id": 4,
1173
- "name": "111allo",
1174
- "type": "ip",
1175
- "value": "1.1.1.1",
1176
- },
1177
- Object {
1178
- "description": "",
1179
- "id": 6,
1180
- "name": "222nocheiner",
1181
- "type": "hostparam",
1182
- "value": "",
1183
- },
1184
- Object {
1185
- "description": "aa",
1186
- "id": 7,
1187
- "name": "aaaaa",
1188
- "type": "ptable",
1189
- "value": "",
1190
- },
1191
- Object {
1192
- "description": "",
1193
- "id": 8,
1194
- "name": "aaa",
1195
- "type": "hostparam",
1196
- "value": "2134234",
1389
+ "locked": false,
1390
+ "name": "CP",
1391
+ "type": "computeprofile",
1392
+ "value": "1",
1197
1393
  },
1198
1394
  ],
1199
1395
  "sortingColumns": Object {
@@ -1207,32 +1403,50 @@ Object {
1207
1403
 
1208
1404
  exports[`ParameterSelectionReducer should initialize component 1`] = `
1209
1405
  Object {
1210
- "appDefinition": Object {
1211
- "hostgroup_id": 1,
1212
- "id": 1,
1213
- "name": "Test123",
1214
- },
1215
1406
  "columns": Array [
1216
1407
  Object {
1408
+ "cell": Object {
1409
+ "formatters": Array [
1410
+ null,
1411
+ ],
1412
+ },
1217
1413
  "header": Object {
1414
+ "customFormatters": Array [
1415
+ null,
1416
+ ],
1417
+ "formatters": Array [
1418
+ null,
1419
+ ],
1218
1420
  "label": "Name",
1219
1421
  "props": Object {
1220
1422
  "index": 0,
1221
1423
  "sort": true,
1222
1424
  "style": Object {
1223
- "width": "20%",
1425
+ "width": "25%",
1224
1426
  },
1225
1427
  },
1428
+ "transforms": Array [
1429
+ null,
1430
+ ],
1226
1431
  },
1227
1432
  "property": "name",
1228
1433
  },
1229
1434
  Object {
1230
1435
  "cell": Object {
1436
+ "formatters": Array [
1437
+ null,
1438
+ ],
1231
1439
  "props": Object {
1232
1440
  "index": 1,
1233
1441
  },
1234
1442
  },
1235
1443
  "header": Object {
1444
+ "customFormatters": Array [
1445
+ null,
1446
+ ],
1447
+ "formatters": Array [
1448
+ null,
1449
+ ],
1236
1450
  "label": "Description",
1237
1451
  "props": Object {
1238
1452
  "index": 1,
@@ -1241,16 +1455,25 @@ Object {
1241
1455
  "width": "25%",
1242
1456
  },
1243
1457
  },
1458
+ "transforms": Array [
1459
+ null,
1460
+ ],
1244
1461
  },
1245
1462
  "property": "description",
1246
1463
  },
1247
1464
  Object {
1248
1465
  "cell": Object {
1249
- "props": Object {
1250
- "index": 2,
1251
- },
1466
+ "formatters": Array [
1467
+ null,
1468
+ ],
1252
1469
  },
1253
1470
  "header": Object {
1471
+ "customFormatters": Array [
1472
+ null,
1473
+ ],
1474
+ "formatters": Array [
1475
+ null,
1476
+ ],
1254
1477
  "label": "Type",
1255
1478
  "props": Object {
1256
1479
  "index": 2,
@@ -1259,37 +1482,55 @@ Object {
1259
1482
  "width": "20%",
1260
1483
  },
1261
1484
  },
1485
+ "transforms": Array [
1486
+ null,
1487
+ ],
1262
1488
  },
1263
1489
  "property": "type",
1264
1490
  },
1265
1491
  Object {
1266
1492
  "cell": Object {
1267
- "props": Object {
1268
- "index": 3,
1269
- },
1493
+ "formatters": Array [
1494
+ null,
1495
+ ],
1270
1496
  },
1271
1497
  "header": Object {
1498
+ "customFormatters": Array [
1499
+ null,
1500
+ ],
1501
+ "formatters": Array [
1502
+ null,
1503
+ ],
1272
1504
  "label": "Default value",
1273
1505
  "props": Object {
1274
1506
  "index": 3,
1275
1507
  "sort": true,
1276
1508
  "style": Object {
1277
- "width": "25%",
1509
+ "width": "20%",
1278
1510
  },
1279
1511
  },
1512
+ "transforms": Array [
1513
+ null,
1514
+ ],
1280
1515
  },
1281
1516
  "property": "value",
1282
1517
  },
1283
1518
  Object {
1284
1519
  "cell": Object {
1285
- "props": Object {
1286
- "index": 4,
1287
- },
1520
+ "formatters": Array [
1521
+ null,
1522
+ ],
1288
1523
  },
1289
1524
  "header": Object {
1525
+ "formatters": Array [
1526
+ null,
1527
+ ],
1290
1528
  "label": "Actions",
1291
1529
  "props": Object {
1292
1530
  "index": 4,
1531
+ "style": Object {
1532
+ "width": "10%",
1533
+ },
1293
1534
  },
1294
1535
  },
1295
1536
  "property": "actions",
@@ -1301,103 +1542,91 @@ Object {
1301
1542
  "status": "",
1302
1543
  "statusText": "",
1303
1544
  },
1304
- "foremanData": Object {
1305
- "computeprofiles": Array [],
1306
- "domains": Array [],
1307
- "environments": Array [
1545
+ "hostgroupId": 1,
1546
+ "loading": false,
1547
+ "paramData": Object {
1548
+ "computeprofiles": Array [
1308
1549
  Object {
1309
1550
  "id": 1,
1310
- "name": "production",
1551
+ "name": "1-Small",
1311
1552
  },
1312
1553
  Object {
1313
1554
  "id": 2,
1314
- "name": "test",
1555
+ "name": "2-Medium",
1556
+ },
1557
+ Object {
1558
+ "id": 3,
1559
+ "name": "3-Large",
1560
+ },
1561
+ Object {
1562
+ "id": 4,
1563
+ "name": "Orchahosts-VM",
1564
+ },
1565
+ ],
1566
+ "dataType": "PARAMETER_SELECTION_PARAM_TYPE_FOREMAN",
1567
+ "domains": Array [
1568
+ Object {
1569
+ "id": 1,
1570
+ "name": "deploy3.dev.atix",
1571
+ },
1572
+ ],
1573
+ "environments": Array [
1574
+ Object {
1575
+ "id": 1,
1576
+ "name": "production",
1315
1577
  },
1316
1578
  ],
1317
1579
  "hostgroup_id": 1,
1318
- "lifecycle_environments": Array [],
1319
- "ptables": Array [
1580
+ "lifecycle_environments": Array [
1320
1581
  Object {
1321
- "id": 105,
1322
- "name": "Kickstart default",
1582
+ "id": 1,
1583
+ "name": "Library",
1323
1584
  },
1585
+ ],
1586
+ "ptables": Array [
1324
1587
  Object {
1325
- "id": 104,
1326
- "name": "Kickstart default thin",
1588
+ "id": 125,
1589
+ "name": "Kickstart default",
1327
1590
  },
1328
1591
  ],
1329
1592
  },
1330
- "hostgroupId": 1,
1331
- "loading": false,
1593
+ "paramDefinition": Object {
1594
+ "dataId": "1",
1595
+ "id": 1,
1596
+ "name": "web",
1597
+ },
1332
1598
  "parameterTypes": Object {
1333
- "computeprofile": "Compute profile",
1334
1599
  "domain": "Domain",
1335
1600
  "hostparam": "Host parameter",
1336
- "lifecycleenv": "Lifecycle environment",
1601
+ "ip": "IP",
1602
+ "password": "Root password",
1603
+ "ptable": "Partition table",
1604
+ "puppetenv": "Puppet environment",
1337
1605
  },
1338
1606
  "parameters": Array [
1339
1607
  Object {
1340
1608
  "description": "",
1341
1609
  "id": 1,
1342
- "name": "PuppetEnv",
1343
- "type": "puppetenv",
1344
- "value": "2",
1345
- },
1346
- Object {
1347
- "description": "",
1348
- "id": 2,
1349
- "name": "PW",
1350
- "type": "password",
1351
- "value": "rooot",
1352
- },
1353
- Object {
1354
- "description": "",
1355
- "id": 3,
1356
- "name": "Blub",
1357
- "type": "hostparam",
1358
- "value": "awesome",
1359
- },
1360
- Object {
1361
- "description": "",
1362
- "id": 4,
1363
- "name": "111allo",
1364
- "type": "ip",
1365
- "value": "1.1.1.1",
1610
+ "locked": false,
1611
+ "name": "CP",
1612
+ "type": "computeprofile",
1613
+ "value": "1",
1366
1614
  },
1367
1615
  Object {
1368
1616
  "backup": Object {
1369
1617
  "description": "",
1370
- "id": 5,
1371
- "name": "1111aasdfasf",
1372
- "type": "hostname",
1373
- "value": "dername",
1618
+ "id": 2,
1619
+ "locked": true,
1620
+ "name": "LE",
1621
+ "type": "lifecycleenv",
1622
+ "value": "1",
1374
1623
  },
1375
1624
  "description": "",
1376
- "id": 5,
1377
- "name": "1111aasdfasf",
1378
- "type": "hostname",
1379
- "value": "dername",
1380
- },
1381
- Object {
1382
- "description": "",
1383
- "id": 6,
1384
- "name": "222nocheiner",
1385
- "type": "hostparam",
1386
- "value": "",
1387
- },
1388
- Object {
1389
- "description": "aa",
1390
- "id": 7,
1391
- "name": "aaaaa",
1392
- "type": "ptable",
1393
- "value": "",
1394
- },
1395
- Object {
1396
- "description": "",
1397
- "id": 8,
1398
- "name": "aaa",
1399
- "type": "hostparam",
1400
- "value": "2134234",
1625
+ "id": 2,
1626
+ "locked": true,
1627
+ "name": "LE",
1628
+ "type": "lifecycleenv",
1629
+ "value": "1",
1401
1630
  },
1402
1631
  ],
1403
1632
  "sortingColumns": Object {
@@ -1409,34 +1638,52 @@ Object {
1409
1638
  }
1410
1639
  `;
1411
1640
 
1412
- exports[`ParameterSelectionReducer should load foreman data be erroneous 1`] = `
1641
+ exports[`ParameterSelectionReducer should load param data be erroneous 1`] = `
1413
1642
  Object {
1414
- "appDefinition": Object {
1415
- "hostgroup_id": 1,
1416
- "id": 1,
1417
- "name": "Test123",
1418
- },
1419
1643
  "columns": Array [
1420
1644
  Object {
1645
+ "cell": Object {
1646
+ "formatters": Array [
1647
+ null,
1648
+ ],
1649
+ },
1421
1650
  "header": Object {
1651
+ "customFormatters": Array [
1652
+ null,
1653
+ ],
1654
+ "formatters": Array [
1655
+ null,
1656
+ ],
1422
1657
  "label": "Name",
1423
1658
  "props": Object {
1424
1659
  "index": 0,
1425
1660
  "sort": true,
1426
1661
  "style": Object {
1427
- "width": "20%",
1662
+ "width": "25%",
1428
1663
  },
1429
1664
  },
1665
+ "transforms": Array [
1666
+ null,
1667
+ ],
1430
1668
  },
1431
1669
  "property": "name",
1432
1670
  },
1433
1671
  Object {
1434
1672
  "cell": Object {
1673
+ "formatters": Array [
1674
+ null,
1675
+ ],
1435
1676
  "props": Object {
1436
1677
  "index": 1,
1437
1678
  },
1438
1679
  },
1439
1680
  "header": Object {
1681
+ "customFormatters": Array [
1682
+ null,
1683
+ ],
1684
+ "formatters": Array [
1685
+ null,
1686
+ ],
1440
1687
  "label": "Description",
1441
1688
  "props": Object {
1442
1689
  "index": 1,
@@ -1445,16 +1692,25 @@ Object {
1445
1692
  "width": "25%",
1446
1693
  },
1447
1694
  },
1695
+ "transforms": Array [
1696
+ null,
1697
+ ],
1448
1698
  },
1449
1699
  "property": "description",
1450
1700
  },
1451
1701
  Object {
1452
1702
  "cell": Object {
1453
- "props": Object {
1454
- "index": 2,
1455
- },
1703
+ "formatters": Array [
1704
+ null,
1705
+ ],
1456
1706
  },
1457
1707
  "header": Object {
1708
+ "customFormatters": Array [
1709
+ null,
1710
+ ],
1711
+ "formatters": Array [
1712
+ null,
1713
+ ],
1458
1714
  "label": "Type",
1459
1715
  "props": Object {
1460
1716
  "index": 2,
@@ -1463,134 +1719,139 @@ Object {
1463
1719
  "width": "20%",
1464
1720
  },
1465
1721
  },
1722
+ "transforms": Array [
1723
+ null,
1724
+ ],
1466
1725
  },
1467
1726
  "property": "type",
1468
1727
  },
1469
1728
  Object {
1470
1729
  "cell": Object {
1471
- "props": Object {
1472
- "index": 3,
1473
- },
1730
+ "formatters": Array [
1731
+ null,
1732
+ ],
1474
1733
  },
1475
1734
  "header": Object {
1735
+ "customFormatters": Array [
1736
+ null,
1737
+ ],
1738
+ "formatters": Array [
1739
+ null,
1740
+ ],
1476
1741
  "label": "Default value",
1477
1742
  "props": Object {
1478
1743
  "index": 3,
1479
1744
  "sort": true,
1480
1745
  "style": Object {
1481
- "width": "25%",
1746
+ "width": "20%",
1482
1747
  },
1483
1748
  },
1749
+ "transforms": Array [
1750
+ null,
1751
+ ],
1484
1752
  },
1485
1753
  "property": "value",
1486
1754
  },
1487
1755
  Object {
1488
1756
  "cell": Object {
1489
- "props": Object {
1490
- "index": 4,
1491
- },
1757
+ "formatters": Array [
1758
+ null,
1759
+ ],
1492
1760
  },
1493
1761
  "header": Object {
1762
+ "formatters": Array [
1763
+ null,
1764
+ ],
1494
1765
  "label": "Actions",
1495
1766
  "props": Object {
1496
1767
  "index": 4,
1497
- },
1768
+ "style": Object {
1769
+ "width": "10%",
1770
+ },
1771
+ },
1498
1772
  },
1499
1773
  "property": "actions",
1500
1774
  },
1501
1775
  ],
1502
1776
  "editMode": false,
1503
1777
  "error": "Something really bad happend",
1504
- "foremanData": Object {
1505
- "computeprofiles": Array [],
1506
- "domains": Array [],
1507
- "environments": Array [
1778
+ "hostgroupId": 1,
1779
+ "loading": false,
1780
+ "paramData": Object {
1781
+ "computeprofiles": Array [
1508
1782
  Object {
1509
1783
  "id": 1,
1510
- "name": "production",
1784
+ "name": "1-Small",
1511
1785
  },
1512
1786
  Object {
1513
1787
  "id": 2,
1514
- "name": "test",
1788
+ "name": "2-Medium",
1789
+ },
1790
+ Object {
1791
+ "id": 3,
1792
+ "name": "3-Large",
1793
+ },
1794
+ Object {
1795
+ "id": 4,
1796
+ "name": "Orchahosts-VM",
1797
+ },
1798
+ ],
1799
+ "dataType": "PARAMETER_SELECTION_PARAM_TYPE_FOREMAN",
1800
+ "domains": Array [
1801
+ Object {
1802
+ "id": 1,
1803
+ "name": "deploy3.dev.atix",
1804
+ },
1805
+ ],
1806
+ "environments": Array [
1807
+ Object {
1808
+ "id": 1,
1809
+ "name": "production",
1515
1810
  },
1516
1811
  ],
1517
1812
  "hostgroup_id": 1,
1518
- "lifecycle_environments": Array [],
1519
- "ptables": Array [
1813
+ "lifecycle_environments": Array [
1520
1814
  Object {
1521
- "id": 105,
1522
- "name": "Kickstart default",
1815
+ "id": 1,
1816
+ "name": "Library",
1523
1817
  },
1818
+ ],
1819
+ "ptables": Array [
1524
1820
  Object {
1525
- "id": 104,
1526
- "name": "Kickstart default thin",
1821
+ "id": 125,
1822
+ "name": "Kickstart default",
1527
1823
  },
1528
1824
  ],
1529
1825
  },
1530
- "hostgroupId": 1,
1531
- "loading": false,
1826
+ "paramDefinition": Object {
1827
+ "dataId": "1",
1828
+ "id": 1,
1829
+ "name": "web",
1830
+ },
1532
1831
  "parameterTypes": Object {
1533
- "computeprofile": "Compute profile",
1534
1832
  "domain": "Domain",
1535
1833
  "hostparam": "Host parameter",
1536
- "lifecycleenv": "Lifecycle environment",
1834
+ "ip": "IP",
1835
+ "password": "Root password",
1836
+ "ptable": "Partition table",
1837
+ "puppetenv": "Puppet environment",
1537
1838
  },
1538
1839
  "parameters": Array [
1539
1840
  Object {
1540
1841
  "description": "",
1541
1842
  "id": 1,
1542
- "name": "PuppetEnv",
1543
- "type": "puppetenv",
1544
- "value": "2",
1843
+ "locked": false,
1844
+ "name": "CP",
1845
+ "type": "computeprofile",
1846
+ "value": "1",
1545
1847
  },
1546
1848
  Object {
1547
1849
  "description": "",
1548
1850
  "id": 2,
1549
- "name": "PW",
1550
- "type": "password",
1551
- "value": "rooot",
1552
- },
1553
- Object {
1554
- "description": "",
1555
- "id": 3,
1556
- "name": "Blub",
1557
- "type": "hostparam",
1558
- "value": "awesome",
1559
- },
1560
- Object {
1561
- "description": "",
1562
- "id": 4,
1563
- "name": "111allo",
1564
- "type": "ip",
1565
- "value": "1.1.1.1",
1566
- },
1567
- Object {
1568
- "description": "",
1569
- "id": 5,
1570
- "name": "1111aasdfasf",
1571
- "type": "hostname",
1572
- "value": "dername",
1573
- },
1574
- Object {
1575
- "description": "",
1576
- "id": 6,
1577
- "name": "222nocheiner",
1578
- "type": "hostparam",
1579
- "value": "",
1580
- },
1581
- Object {
1582
- "description": "aa",
1583
- "id": 7,
1584
- "name": "aaaaa",
1585
- "type": "ptable",
1586
- "value": "",
1587
- },
1588
- Object {
1589
- "description": "",
1590
- "id": 8,
1591
- "name": "aaa",
1592
- "type": "hostparam",
1593
- "value": "2134234",
1851
+ "locked": true,
1852
+ "name": "LE",
1853
+ "type": "lifecycleenv",
1854
+ "value": "1",
1594
1855
  },
1595
1856
  ],
1596
1857
  "sortingColumns": Object {
@@ -1602,34 +1863,52 @@ Object {
1602
1863
  }
1603
1864
  `;
1604
1865
 
1605
- exports[`ParameterSelectionReducer should load foreman data be successful 1`] = `
1866
+ exports[`ParameterSelectionReducer should load param data be successful 1`] = `
1606
1867
  Object {
1607
- "appDefinition": Object {
1608
- "hostgroup_id": 1,
1609
- "id": 1,
1610
- "name": "Test123",
1611
- },
1612
1868
  "columns": Array [
1613
1869
  Object {
1870
+ "cell": Object {
1871
+ "formatters": Array [
1872
+ null,
1873
+ ],
1874
+ },
1614
1875
  "header": Object {
1876
+ "customFormatters": Array [
1877
+ null,
1878
+ ],
1879
+ "formatters": Array [
1880
+ null,
1881
+ ],
1615
1882
  "label": "Name",
1616
1883
  "props": Object {
1617
1884
  "index": 0,
1618
1885
  "sort": true,
1619
1886
  "style": Object {
1620
- "width": "20%",
1887
+ "width": "25%",
1621
1888
  },
1622
1889
  },
1890
+ "transforms": Array [
1891
+ null,
1892
+ ],
1623
1893
  },
1624
1894
  "property": "name",
1625
1895
  },
1626
1896
  Object {
1627
1897
  "cell": Object {
1898
+ "formatters": Array [
1899
+ null,
1900
+ ],
1628
1901
  "props": Object {
1629
1902
  "index": 1,
1630
1903
  },
1631
1904
  },
1632
1905
  "header": Object {
1906
+ "customFormatters": Array [
1907
+ null,
1908
+ ],
1909
+ "formatters": Array [
1910
+ null,
1911
+ ],
1633
1912
  "label": "Description",
1634
1913
  "props": Object {
1635
1914
  "index": 1,
@@ -1638,16 +1917,25 @@ Object {
1638
1917
  "width": "25%",
1639
1918
  },
1640
1919
  },
1920
+ "transforms": Array [
1921
+ null,
1922
+ ],
1641
1923
  },
1642
1924
  "property": "description",
1643
1925
  },
1644
1926
  Object {
1645
1927
  "cell": Object {
1646
- "props": Object {
1647
- "index": 2,
1648
- },
1928
+ "formatters": Array [
1929
+ null,
1930
+ ],
1649
1931
  },
1650
1932
  "header": Object {
1933
+ "customFormatters": Array [
1934
+ null,
1935
+ ],
1936
+ "formatters": Array [
1937
+ null,
1938
+ ],
1651
1939
  "label": "Type",
1652
1940
  "props": Object {
1653
1941
  "index": 2,
@@ -1656,37 +1944,55 @@ Object {
1656
1944
  "width": "20%",
1657
1945
  },
1658
1946
  },
1947
+ "transforms": Array [
1948
+ null,
1949
+ ],
1659
1950
  },
1660
1951
  "property": "type",
1661
1952
  },
1662
1953
  Object {
1663
1954
  "cell": Object {
1664
- "props": Object {
1665
- "index": 3,
1666
- },
1955
+ "formatters": Array [
1956
+ null,
1957
+ ],
1667
1958
  },
1668
1959
  "header": Object {
1960
+ "customFormatters": Array [
1961
+ null,
1962
+ ],
1963
+ "formatters": Array [
1964
+ null,
1965
+ ],
1669
1966
  "label": "Default value",
1670
1967
  "props": Object {
1671
1968
  "index": 3,
1672
1969
  "sort": true,
1673
1970
  "style": Object {
1674
- "width": "25%",
1971
+ "width": "20%",
1675
1972
  },
1676
1973
  },
1974
+ "transforms": Array [
1975
+ null,
1976
+ ],
1677
1977
  },
1678
1978
  "property": "value",
1679
1979
  },
1680
1980
  Object {
1681
1981
  "cell": Object {
1682
- "props": Object {
1683
- "index": 4,
1684
- },
1982
+ "formatters": Array [
1983
+ null,
1984
+ ],
1685
1985
  },
1686
1986
  "header": Object {
1987
+ "formatters": Array [
1988
+ null,
1989
+ ],
1687
1990
  "label": "Actions",
1688
1991
  "props": Object {
1689
1992
  "index": 4,
1993
+ "style": Object {
1994
+ "width": "10%",
1995
+ },
1690
1996
  },
1691
1997
  },
1692
1998
  "property": "actions",
@@ -1698,96 +2004,83 @@ Object {
1698
2004
  "status": "",
1699
2005
  "statusText": "",
1700
2006
  },
1701
- "foremanData": Object {
1702
- "computeprofiles": Array [],
1703
- "domains": Array [],
1704
- "environments": Array [
2007
+ "hostgroupId": 1,
2008
+ "loading": false,
2009
+ "paramData": Object {
2010
+ "computeprofiles": Array [
1705
2011
  Object {
1706
2012
  "id": 1,
1707
- "name": "production",
2013
+ "name": "1-Small",
1708
2014
  },
1709
2015
  Object {
1710
2016
  "id": 2,
1711
- "name": "test",
2017
+ "name": "2-Medium",
2018
+ },
2019
+ Object {
2020
+ "id": 3,
2021
+ "name": "3-Large",
2022
+ },
2023
+ Object {
2024
+ "id": 4,
2025
+ "name": "Orchahosts-VM",
2026
+ },
2027
+ ],
2028
+ "dataType": "PARAMETER_SELECTION_PARAM_TYPE_FOREMAN",
2029
+ "domains": Array [
2030
+ Object {
2031
+ "id": 1,
2032
+ "name": "deploy3.dev.atix",
2033
+ },
2034
+ ],
2035
+ "environments": Array [
2036
+ Object {
2037
+ "id": 1,
2038
+ "name": "production",
1712
2039
  },
1713
2040
  ],
1714
2041
  "hostgroup_id": 1,
1715
- "lifecycle_environments": Array [],
1716
- "ptables": Array [
2042
+ "lifecycle_environments": Array [
1717
2043
  Object {
1718
- "id": 105,
1719
- "name": "Kickstart default",
2044
+ "id": 1,
2045
+ "name": "Library",
1720
2046
  },
2047
+ ],
2048
+ "ptables": Array [
1721
2049
  Object {
1722
- "id": 104,
1723
- "name": "Kickstart default thin",
2050
+ "id": 125,
2051
+ "name": "Kickstart default",
1724
2052
  },
1725
2053
  ],
1726
2054
  },
1727
- "hostgroupId": 1,
1728
- "loading": false,
2055
+ "paramDefinition": Object {
2056
+ "dataId": "1",
2057
+ "id": 1,
2058
+ "name": "web",
2059
+ },
1729
2060
  "parameterTypes": Object {
1730
- "computeprofile": "Compute profile",
1731
2061
  "domain": "Domain",
1732
2062
  "hostparam": "Host parameter",
1733
- "lifecycleenv": "Lifecycle environment",
2063
+ "ip": "IP",
2064
+ "password": "Root password",
2065
+ "ptable": "Partition table",
2066
+ "puppetenv": "Puppet environment",
1734
2067
  },
1735
2068
  "parameters": Array [
1736
2069
  Object {
1737
2070
  "description": "",
1738
2071
  "id": 1,
1739
- "name": "PuppetEnv",
1740
- "type": "puppetenv",
1741
- "value": "2",
2072
+ "locked": false,
2073
+ "name": "CP",
2074
+ "type": "computeprofile",
2075
+ "value": "1",
1742
2076
  },
1743
2077
  Object {
1744
2078
  "description": "",
1745
2079
  "id": 2,
1746
- "name": "PW",
1747
- "type": "password",
1748
- "value": "rooot",
1749
- },
1750
- Object {
1751
- "description": "",
1752
- "id": 3,
1753
- "name": "Blub",
1754
- "type": "hostparam",
1755
- "value": "awesome",
1756
- },
1757
- Object {
1758
- "description": "",
1759
- "id": 4,
1760
- "name": "111allo",
1761
- "type": "ip",
1762
- "value": "1.1.1.1",
1763
- },
1764
- Object {
1765
- "description": "",
1766
- "id": 5,
1767
- "name": "1111aasdfasf",
1768
- "type": "hostname",
1769
- "value": "dername",
1770
- },
1771
- Object {
1772
- "description": "",
1773
- "id": 6,
1774
- "name": "222nocheiner",
1775
- "type": "hostparam",
1776
- "value": "",
1777
- },
1778
- Object {
1779
- "description": "aa",
1780
- "id": 7,
1781
- "name": "aaaaa",
1782
- "type": "ptable",
1783
- "value": "",
1784
- },
1785
- Object {
1786
- "description": "",
1787
- "id": 8,
1788
- "name": "aaa",
1789
- "type": "hostparam",
1790
- "value": "2134234",
2080
+ "locked": true,
2081
+ "name": "LE",
2082
+ "type": "lifecycleenv",
2083
+ "value": "1",
1791
2084
  },
1792
2085
  ],
1793
2086
  "sortingColumns": Object {
@@ -1799,34 +2092,52 @@ Object {
1799
2092
  }
1800
2093
  `;
1801
2094
 
1802
- exports[`ParameterSelectionReducer should request load foreman data 1`] = `
2095
+ exports[`ParameterSelectionReducer should lock a parameter 1`] = `
1803
2096
  Object {
1804
- "appDefinition": Object {
1805
- "hostgroup_id": 1,
1806
- "id": 1,
1807
- "name": "Test123",
1808
- },
1809
2097
  "columns": Array [
1810
2098
  Object {
2099
+ "cell": Object {
2100
+ "formatters": Array [
2101
+ null,
2102
+ ],
2103
+ },
1811
2104
  "header": Object {
2105
+ "customFormatters": Array [
2106
+ null,
2107
+ ],
2108
+ "formatters": Array [
2109
+ null,
2110
+ ],
1812
2111
  "label": "Name",
1813
2112
  "props": Object {
1814
2113
  "index": 0,
1815
2114
  "sort": true,
1816
2115
  "style": Object {
1817
- "width": "20%",
2116
+ "width": "25%",
1818
2117
  },
1819
2118
  },
2119
+ "transforms": Array [
2120
+ null,
2121
+ ],
1820
2122
  },
1821
2123
  "property": "name",
1822
2124
  },
1823
2125
  Object {
1824
2126
  "cell": Object {
2127
+ "formatters": Array [
2128
+ null,
2129
+ ],
1825
2130
  "props": Object {
1826
2131
  "index": 1,
1827
2132
  },
1828
2133
  },
1829
2134
  "header": Object {
2135
+ "customFormatters": Array [
2136
+ null,
2137
+ ],
2138
+ "formatters": Array [
2139
+ null,
2140
+ ],
1830
2141
  "label": "Description",
1831
2142
  "props": Object {
1832
2143
  "index": 1,
@@ -1835,16 +2146,25 @@ Object {
1835
2146
  "width": "25%",
1836
2147
  },
1837
2148
  },
2149
+ "transforms": Array [
2150
+ null,
2151
+ ],
1838
2152
  },
1839
2153
  "property": "description",
1840
2154
  },
1841
2155
  Object {
1842
2156
  "cell": Object {
1843
- "props": Object {
1844
- "index": 2,
1845
- },
2157
+ "formatters": Array [
2158
+ null,
2159
+ ],
1846
2160
  },
1847
2161
  "header": Object {
2162
+ "customFormatters": Array [
2163
+ null,
2164
+ ],
2165
+ "formatters": Array [
2166
+ null,
2167
+ ],
1848
2168
  "label": "Type",
1849
2169
  "props": Object {
1850
2170
  "index": 2,
@@ -1853,37 +2173,55 @@ Object {
1853
2173
  "width": "20%",
1854
2174
  },
1855
2175
  },
2176
+ "transforms": Array [
2177
+ null,
2178
+ ],
1856
2179
  },
1857
2180
  "property": "type",
1858
2181
  },
1859
2182
  Object {
1860
2183
  "cell": Object {
1861
- "props": Object {
1862
- "index": 3,
1863
- },
2184
+ "formatters": Array [
2185
+ null,
2186
+ ],
1864
2187
  },
1865
2188
  "header": Object {
2189
+ "customFormatters": Array [
2190
+ null,
2191
+ ],
2192
+ "formatters": Array [
2193
+ null,
2194
+ ],
1866
2195
  "label": "Default value",
1867
2196
  "props": Object {
1868
2197
  "index": 3,
1869
2198
  "sort": true,
1870
2199
  "style": Object {
1871
- "width": "25%",
2200
+ "width": "20%",
1872
2201
  },
1873
2202
  },
2203
+ "transforms": Array [
2204
+ null,
2205
+ ],
1874
2206
  },
1875
2207
  "property": "value",
1876
2208
  },
1877
2209
  Object {
1878
2210
  "cell": Object {
1879
- "props": Object {
1880
- "index": 4,
1881
- },
2211
+ "formatters": Array [
2212
+ null,
2213
+ ],
1882
2214
  },
1883
2215
  "header": Object {
2216
+ "formatters": Array [
2217
+ null,
2218
+ ],
1884
2219
  "label": "Actions",
1885
2220
  "props": Object {
1886
2221
  "index": 4,
2222
+ "style": Object {
2223
+ "width": "10%",
2224
+ },
1887
2225
  },
1888
2226
  },
1889
2227
  "property": "actions",
@@ -1895,71 +2233,312 @@ Object {
1895
2233
  "status": "",
1896
2234
  "statusText": "",
1897
2235
  },
1898
- "foremanData": Object {},
1899
- "hostgroupId": -1,
1900
- "loading": true,
2236
+ "hostgroupId": 1,
2237
+ "loading": false,
2238
+ "paramData": Object {
2239
+ "computeprofiles": Array [
2240
+ Object {
2241
+ "id": 1,
2242
+ "name": "1-Small",
2243
+ },
2244
+ Object {
2245
+ "id": 2,
2246
+ "name": "2-Medium",
2247
+ },
2248
+ Object {
2249
+ "id": 3,
2250
+ "name": "3-Large",
2251
+ },
2252
+ Object {
2253
+ "id": 4,
2254
+ "name": "Orchahosts-VM",
2255
+ },
2256
+ ],
2257
+ "dataType": "PARAMETER_SELECTION_PARAM_TYPE_FOREMAN",
2258
+ "domains": Array [
2259
+ Object {
2260
+ "id": 1,
2261
+ "name": "deploy3.dev.atix",
2262
+ },
2263
+ ],
2264
+ "environments": Array [
2265
+ Object {
2266
+ "id": 1,
2267
+ "name": "production",
2268
+ },
2269
+ ],
2270
+ "hostgroup_id": 1,
2271
+ "lifecycle_environments": Array [
2272
+ Object {
2273
+ "id": 1,
2274
+ "name": "Library",
2275
+ },
2276
+ ],
2277
+ "ptables": Array [
2278
+ Object {
2279
+ "id": 125,
2280
+ "name": "Kickstart default",
2281
+ },
2282
+ ],
2283
+ },
2284
+ "paramDefinition": Object {
2285
+ "dataId": "1",
2286
+ "id": 1,
2287
+ "name": "web",
2288
+ },
1901
2289
  "parameterTypes": Object {
1902
- "computeprofile": "Compute profile",
1903
2290
  "domain": "Domain",
1904
2291
  "hostparam": "Host parameter",
1905
- "lifecycleenv": "Lifecycle environment",
2292
+ "ip": "IP",
2293
+ "password": "Root password",
2294
+ "ptable": "Partition table",
2295
+ "puppetenv": "Puppet environment",
1906
2296
  },
1907
2297
  "parameters": Array [
1908
2298
  Object {
1909
2299
  "description": "",
1910
2300
  "id": 1,
1911
- "name": "PuppetEnv",
1912
- "type": "puppetenv",
1913
- "value": "2",
2301
+ "locked": false,
2302
+ "name": "CP",
2303
+ "type": "computeprofile",
2304
+ "value": "1",
1914
2305
  },
1915
2306
  Object {
1916
2307
  "description": "",
1917
2308
  "id": 2,
1918
- "name": "PW",
1919
- "type": "password",
1920
- "value": "rooot",
2309
+ "locked": false,
2310
+ "name": "LE",
2311
+ "type": "lifecycleenv",
2312
+ "value": "1",
2313
+ },
2314
+ ],
2315
+ "sortingColumns": Object {
2316
+ "name": Object {
2317
+ "direction": "asc",
2318
+ "position": 0,
1921
2319
  },
2320
+ },
2321
+ }
2322
+ `;
2323
+
2324
+ exports[`ParameterSelectionReducer should request load param data 1`] = `
2325
+ Object {
2326
+ "columns": Array [
1922
2327
  Object {
1923
- "description": "",
1924
- "id": 3,
1925
- "name": "Blub",
1926
- "type": "hostparam",
1927
- "value": "awesome",
2328
+ "cell": Object {
2329
+ "formatters": Array [
2330
+ null,
2331
+ ],
2332
+ },
2333
+ "header": Object {
2334
+ "customFormatters": Array [
2335
+ null,
2336
+ ],
2337
+ "formatters": Array [
2338
+ null,
2339
+ ],
2340
+ "label": "Name",
2341
+ "props": Object {
2342
+ "index": 0,
2343
+ "sort": true,
2344
+ "style": Object {
2345
+ "width": "25%",
2346
+ },
2347
+ },
2348
+ "transforms": Array [
2349
+ null,
2350
+ ],
2351
+ },
2352
+ "property": "name",
1928
2353
  },
1929
2354
  Object {
1930
- "description": "",
1931
- "id": 4,
1932
- "name": "111allo",
1933
- "type": "ip",
1934
- "value": "1.1.1.1",
2355
+ "cell": Object {
2356
+ "formatters": Array [
2357
+ null,
2358
+ ],
2359
+ "props": Object {
2360
+ "index": 1,
2361
+ },
2362
+ },
2363
+ "header": Object {
2364
+ "customFormatters": Array [
2365
+ null,
2366
+ ],
2367
+ "formatters": Array [
2368
+ null,
2369
+ ],
2370
+ "label": "Description",
2371
+ "props": Object {
2372
+ "index": 1,
2373
+ "sort": true,
2374
+ "style": Object {
2375
+ "width": "25%",
2376
+ },
2377
+ },
2378
+ "transforms": Array [
2379
+ null,
2380
+ ],
2381
+ },
2382
+ "property": "description",
1935
2383
  },
1936
2384
  Object {
1937
- "description": "",
1938
- "id": 5,
1939
- "name": "1111aasdfasf",
1940
- "type": "hostname",
1941
- "value": "dername",
2385
+ "cell": Object {
2386
+ "formatters": Array [
2387
+ null,
2388
+ ],
2389
+ },
2390
+ "header": Object {
2391
+ "customFormatters": Array [
2392
+ null,
2393
+ ],
2394
+ "formatters": Array [
2395
+ null,
2396
+ ],
2397
+ "label": "Type",
2398
+ "props": Object {
2399
+ "index": 2,
2400
+ "sort": true,
2401
+ "style": Object {
2402
+ "width": "20%",
2403
+ },
2404
+ },
2405
+ "transforms": Array [
2406
+ null,
2407
+ ],
2408
+ },
2409
+ "property": "type",
1942
2410
  },
1943
2411
  Object {
1944
- "description": "",
1945
- "id": 6,
1946
- "name": "222nocheiner",
1947
- "type": "hostparam",
1948
- "value": "",
2412
+ "cell": Object {
2413
+ "formatters": Array [
2414
+ null,
2415
+ ],
2416
+ },
2417
+ "header": Object {
2418
+ "customFormatters": Array [
2419
+ null,
2420
+ ],
2421
+ "formatters": Array [
2422
+ null,
2423
+ ],
2424
+ "label": "Default value",
2425
+ "props": Object {
2426
+ "index": 3,
2427
+ "sort": true,
2428
+ "style": Object {
2429
+ "width": "20%",
2430
+ },
2431
+ },
2432
+ "transforms": Array [
2433
+ null,
2434
+ ],
2435
+ },
2436
+ "property": "value",
1949
2437
  },
1950
2438
  Object {
1951
- "description": "aa",
1952
- "id": 7,
1953
- "name": "aaaaa",
1954
- "type": "ptable",
1955
- "value": "",
2439
+ "cell": Object {
2440
+ "formatters": Array [
2441
+ null,
2442
+ ],
2443
+ },
2444
+ "header": Object {
2445
+ "formatters": Array [
2446
+ null,
2447
+ ],
2448
+ "label": "Actions",
2449
+ "props": Object {
2450
+ "index": 4,
2451
+ "style": Object {
2452
+ "width": "10%",
2453
+ },
2454
+ },
2455
+ },
2456
+ "property": "actions",
2457
+ },
2458
+ ],
2459
+ "editMode": false,
2460
+ "error": Object {
2461
+ "errorMsg": "",
2462
+ "status": "",
2463
+ "statusText": "",
2464
+ },
2465
+ "hostgroupId": 1,
2466
+ "loading": false,
2467
+ "paramData": Object {
2468
+ "computeprofiles": Array [
2469
+ Object {
2470
+ "id": 1,
2471
+ "name": "1-Small",
2472
+ },
2473
+ Object {
2474
+ "id": 2,
2475
+ "name": "2-Medium",
2476
+ },
2477
+ Object {
2478
+ "id": 3,
2479
+ "name": "3-Large",
2480
+ },
2481
+ Object {
2482
+ "id": 4,
2483
+ "name": "Orchahosts-VM",
2484
+ },
2485
+ ],
2486
+ "dataType": "PARAMETER_SELECTION_PARAM_TYPE_FOREMAN",
2487
+ "domains": Array [
2488
+ Object {
2489
+ "id": 1,
2490
+ "name": "deploy3.dev.atix",
2491
+ },
2492
+ ],
2493
+ "environments": Array [
2494
+ Object {
2495
+ "id": 1,
2496
+ "name": "production",
2497
+ },
2498
+ ],
2499
+ "hostgroup_id": 1,
2500
+ "lifecycle_environments": Array [
2501
+ Object {
2502
+ "id": 1,
2503
+ "name": "Library",
2504
+ },
2505
+ ],
2506
+ "ptables": Array [
2507
+ Object {
2508
+ "id": 125,
2509
+ "name": "Kickstart default",
2510
+ },
2511
+ ],
2512
+ },
2513
+ "paramDefinition": Object {
2514
+ "dataId": "1",
2515
+ "id": 1,
2516
+ "name": "web",
2517
+ },
2518
+ "parameterTypes": Object {
2519
+ "domain": "Domain",
2520
+ "hostparam": "Host parameter",
2521
+ "ip": "IP",
2522
+ "password": "Root password",
2523
+ "ptable": "Partition table",
2524
+ "puppetenv": "Puppet environment",
2525
+ },
2526
+ "parameters": Array [
2527
+ Object {
2528
+ "description": "",
2529
+ "id": 1,
2530
+ "locked": false,
2531
+ "name": "CP",
2532
+ "type": "computeprofile",
2533
+ "value": "1",
1956
2534
  },
1957
2535
  Object {
1958
2536
  "description": "",
1959
- "id": 8,
1960
- "name": "aaa",
1961
- "type": "hostparam",
1962
- "value": "2134234",
2537
+ "id": 2,
2538
+ "locked": true,
2539
+ "name": "LE",
2540
+ "type": "lifecycleenv",
2541
+ "value": "1",
1963
2542
  },
1964
2543
  ],
1965
2544
  "sortingColumns": Object {
@@ -1984,32 +2563,50 @@ Object {
1984
2563
 
1985
2564
  exports[`ParameterSelectionReducer should sort parameter 1`] = `
1986
2565
  Object {
1987
- "appDefinition": Object {
1988
- "hostgroup_id": 1,
1989
- "id": 1,
1990
- "name": "Test123",
1991
- },
1992
2566
  "columns": Array [
1993
2567
  Object {
2568
+ "cell": Object {
2569
+ "formatters": Array [
2570
+ null,
2571
+ ],
2572
+ },
1994
2573
  "header": Object {
2574
+ "customFormatters": Array [
2575
+ null,
2576
+ ],
2577
+ "formatters": Array [
2578
+ null,
2579
+ ],
1995
2580
  "label": "Name",
1996
2581
  "props": Object {
1997
2582
  "index": 0,
1998
2583
  "sort": true,
1999
2584
  "style": Object {
2000
- "width": "20%",
2585
+ "width": "25%",
2001
2586
  },
2002
2587
  },
2588
+ "transforms": Array [
2589
+ null,
2590
+ ],
2003
2591
  },
2004
2592
  "property": "name",
2005
2593
  },
2006
2594
  Object {
2007
2595
  "cell": Object {
2596
+ "formatters": Array [
2597
+ null,
2598
+ ],
2008
2599
  "props": Object {
2009
2600
  "index": 1,
2010
2601
  },
2011
2602
  },
2012
2603
  "header": Object {
2604
+ "customFormatters": Array [
2605
+ null,
2606
+ ],
2607
+ "formatters": Array [
2608
+ null,
2609
+ ],
2013
2610
  "label": "Description",
2014
2611
  "props": Object {
2015
2612
  "index": 1,
@@ -2018,16 +2615,25 @@ Object {
2018
2615
  "width": "25%",
2019
2616
  },
2020
2617
  },
2618
+ "transforms": Array [
2619
+ null,
2620
+ ],
2021
2621
  },
2022
2622
  "property": "description",
2023
2623
  },
2024
2624
  Object {
2025
2625
  "cell": Object {
2026
- "props": Object {
2027
- "index": 2,
2028
- },
2626
+ "formatters": Array [
2627
+ null,
2628
+ ],
2029
2629
  },
2030
2630
  "header": Object {
2631
+ "customFormatters": Array [
2632
+ null,
2633
+ ],
2634
+ "formatters": Array [
2635
+ null,
2636
+ ],
2031
2637
  "label": "Type",
2032
2638
  "props": Object {
2033
2639
  "index": 2,
@@ -2036,37 +2642,55 @@ Object {
2036
2642
  "width": "20%",
2037
2643
  },
2038
2644
  },
2645
+ "transforms": Array [
2646
+ null,
2647
+ ],
2039
2648
  },
2040
2649
  "property": "type",
2041
2650
  },
2042
2651
  Object {
2043
2652
  "cell": Object {
2044
- "props": Object {
2045
- "index": 3,
2046
- },
2653
+ "formatters": Array [
2654
+ null,
2655
+ ],
2047
2656
  },
2048
2657
  "header": Object {
2658
+ "customFormatters": Array [
2659
+ null,
2660
+ ],
2661
+ "formatters": Array [
2662
+ null,
2663
+ ],
2049
2664
  "label": "Default value",
2050
2665
  "props": Object {
2051
2666
  "index": 3,
2052
2667
  "sort": true,
2053
2668
  "style": Object {
2054
- "width": "25%",
2669
+ "width": "20%",
2055
2670
  },
2056
2671
  },
2672
+ "transforms": Array [
2673
+ null,
2674
+ ],
2057
2675
  },
2058
2676
  "property": "value",
2059
2677
  },
2060
2678
  Object {
2061
2679
  "cell": Object {
2062
- "props": Object {
2063
- "index": 4,
2064
- },
2680
+ "formatters": Array [
2681
+ null,
2682
+ ],
2065
2683
  },
2066
2684
  "header": Object {
2685
+ "formatters": Array [
2686
+ null,
2687
+ ],
2067
2688
  "label": "Actions",
2068
2689
  "props": Object {
2069
2690
  "index": 4,
2691
+ "style": Object {
2692
+ "width": "10%",
2693
+ },
2070
2694
  },
2071
2695
  },
2072
2696
  "property": "actions",
@@ -2078,96 +2702,83 @@ Object {
2078
2702
  "status": "",
2079
2703
  "statusText": "",
2080
2704
  },
2081
- "foremanData": Object {
2082
- "computeprofiles": Array [],
2083
- "domains": Array [],
2084
- "environments": Array [
2705
+ "hostgroupId": 1,
2706
+ "loading": false,
2707
+ "paramData": Object {
2708
+ "computeprofiles": Array [
2085
2709
  Object {
2086
2710
  "id": 1,
2087
- "name": "production",
2711
+ "name": "1-Small",
2088
2712
  },
2089
2713
  Object {
2090
2714
  "id": 2,
2091
- "name": "test",
2715
+ "name": "2-Medium",
2716
+ },
2717
+ Object {
2718
+ "id": 3,
2719
+ "name": "3-Large",
2720
+ },
2721
+ Object {
2722
+ "id": 4,
2723
+ "name": "Orchahosts-VM",
2724
+ },
2725
+ ],
2726
+ "dataType": "PARAMETER_SELECTION_PARAM_TYPE_FOREMAN",
2727
+ "domains": Array [
2728
+ Object {
2729
+ "id": 1,
2730
+ "name": "deploy3.dev.atix",
2731
+ },
2732
+ ],
2733
+ "environments": Array [
2734
+ Object {
2735
+ "id": 1,
2736
+ "name": "production",
2092
2737
  },
2093
2738
  ],
2094
2739
  "hostgroup_id": 1,
2095
- "lifecycle_environments": Array [],
2096
- "ptables": Array [
2740
+ "lifecycle_environments": Array [
2097
2741
  Object {
2098
- "id": 105,
2099
- "name": "Kickstart default",
2742
+ "id": 1,
2743
+ "name": "Library",
2100
2744
  },
2745
+ ],
2746
+ "ptables": Array [
2101
2747
  Object {
2102
- "id": 104,
2103
- "name": "Kickstart default thin",
2748
+ "id": 125,
2749
+ "name": "Kickstart default",
2104
2750
  },
2105
2751
  ],
2106
2752
  },
2107
- "hostgroupId": 1,
2108
- "loading": false,
2753
+ "paramDefinition": Object {
2754
+ "dataId": "1",
2755
+ "id": 1,
2756
+ "name": "web",
2757
+ },
2109
2758
  "parameterTypes": Object {
2110
- "computeprofile": "Compute profile",
2111
2759
  "domain": "Domain",
2112
2760
  "hostparam": "Host parameter",
2113
- "lifecycleenv": "Lifecycle environment",
2761
+ "ip": "IP",
2762
+ "password": "Root password",
2763
+ "ptable": "Partition table",
2764
+ "puppetenv": "Puppet environment",
2114
2765
  },
2115
2766
  "parameters": Array [
2116
2767
  Object {
2117
2768
  "description": "",
2118
2769
  "id": 1,
2119
- "name": "PuppetEnv",
2120
- "type": "puppetenv",
2121
- "value": "2",
2770
+ "locked": false,
2771
+ "name": "CP",
2772
+ "type": "computeprofile",
2773
+ "value": "1",
2122
2774
  },
2123
2775
  Object {
2124
2776
  "description": "",
2125
2777
  "id": 2,
2126
- "name": "PW",
2127
- "type": "password",
2128
- "value": "rooot",
2129
- },
2130
- Object {
2131
- "description": "",
2132
- "id": 3,
2133
- "name": "Blub",
2134
- "type": "hostparam",
2135
- "value": "awesome",
2136
- },
2137
- Object {
2138
- "description": "",
2139
- "id": 4,
2140
- "name": "111allo",
2141
- "type": "ip",
2142
- "value": "1.1.1.1",
2143
- },
2144
- Object {
2145
- "description": "",
2146
- "id": 5,
2147
- "name": "1111aasdfasf",
2148
- "type": "hostname",
2149
- "value": "dername",
2150
- },
2151
- Object {
2152
- "description": "",
2153
- "id": 6,
2154
- "name": "222nocheiner",
2155
- "type": "hostparam",
2156
- "value": "",
2157
- },
2158
- Object {
2159
- "description": "aa",
2160
- "id": 7,
2161
- "name": "aaaaa",
2162
- "type": "ptable",
2163
- "value": "",
2164
- },
2165
- Object {
2166
- "description": "",
2167
- "id": 8,
2168
- "name": "aaa",
2169
- "type": "hostparam",
2170
- "value": "2134234",
2778
+ "locked": true,
2779
+ "name": "LE",
2780
+ "type": "lifecycleenv",
2781
+ "value": "1",
2171
2782
  },
2172
2783
  ],
2173
2784
  "sortingColumns": Object {