foreman_acd 0.4.0 → 0.9.0

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