foreman_acd 0.6.0 → 0.9.1

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