foreman_acd 0.9.7 → 0.10.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (121) hide show
  1. checksums.yaml +4 -4
  2. data/lib/foreman_acd/version.rb +1 -1
  3. data/package.json +5 -3
  4. data/webpack/components/ApplicationDefinition/ApplicationDefinition.js +210 -121
  5. data/webpack/components/ApplicationDefinition/ApplicationDefinitionActions.js +79 -91
  6. data/webpack/components/ApplicationDefinition/ApplicationDefinitionConstants.js +30 -15
  7. data/webpack/components/ApplicationDefinition/ApplicationDefinitionHelper.js +15 -15
  8. data/webpack/components/ApplicationDefinition/ApplicationDefinitionReducer.js +96 -63
  9. data/webpack/components/ApplicationDefinition/ApplicationDefinitionSelectors.js +22 -11
  10. data/webpack/components/ApplicationDefinition/__fixtures__/{applicationDefinitionConfData_1.fixtures.js → applicationDefinitionConfData1.fixtures.js} +77 -105
  11. data/webpack/components/ApplicationDefinition/__fixtures__/applicationDefinitionReducer.fixtures.js +49 -29
  12. data/webpack/components/ApplicationDefinition/__tests__/ApplicationDefinition.test.js +4 -4
  13. data/webpack/components/ApplicationDefinition/__tests__/ApplicationDefinitionHelper.test.js +16 -0
  14. data/webpack/components/ApplicationDefinition/__tests__/ApplicationDefinitionReducer.test.js +0 -5
  15. data/webpack/components/ApplicationDefinition/__tests__/ApplicationDefinitionSelectors.test.js +25 -25
  16. data/webpack/components/ApplicationDefinition/__tests__/__snapshots__/ApplicationDefinitionReducer.test.js.snap +9 -1
  17. data/webpack/components/ApplicationDefinition/__tests__/__snapshots__/ApplicationDefinitionSelectors.test.js.snap +11 -11
  18. data/webpack/components/ApplicationDefinition/components/AnsiblePlaybookSelector.js +30 -25
  19. data/webpack/components/ApplicationDefinition/components/__tests__/AnsiblePlaybookSelector.test.js +3 -3
  20. data/webpack/components/ApplicationDefinition/index.js +0 -1
  21. data/webpack/components/ApplicationDefinitionImport/ApplicationDefinitionImport.js +91 -105
  22. data/webpack/components/ApplicationDefinitionImport/ApplicationDefinitionImportActions.js +59 -84
  23. data/webpack/components/ApplicationDefinitionImport/ApplicationDefinitionImportConstants.js +12 -6
  24. data/webpack/components/ApplicationDefinitionImport/ApplicationDefinitionImportReducer.js +21 -27
  25. data/webpack/components/ApplicationDefinitionImport/ApplicationDefinitionImportSelectors.js +14 -7
  26. data/webpack/components/ApplicationDefinitionImport/__fixtures__/{applicationDefinitionImportConfData_1.fixtures.js → applicationDefinitionImportConfData1.fixtures.js} +32 -40
  27. data/webpack/components/ApplicationDefinitionImport/__fixtures__/applicationDefinitionImportReducer.fixtures.js +14 -16
  28. data/webpack/components/ApplicationDefinitionImport/__tests__/ApplicationDefinitionImport.test.js +38 -8
  29. data/webpack/components/ApplicationDefinitionImport/__tests__/ApplicationDefinitionImportReducer.test.js +0 -2
  30. data/webpack/components/ApplicationDefinitionImport/__tests__/ApplicationDefinitionImportSelectors.test.js +9 -9
  31. data/webpack/components/ApplicationDefinitionImport/__tests__/__snapshots__/ApplicationDefinitionImport.test.js.snap +116 -2
  32. data/webpack/components/ApplicationDefinitionImport/__tests__/__snapshots__/ApplicationDefinitionImportSelectors.test.js.snap +3 -3
  33. data/webpack/components/ApplicationInstance/ApplicationInstance.js +344 -193
  34. data/webpack/components/ApplicationInstance/ApplicationInstanceActions.js +92 -105
  35. data/webpack/components/ApplicationInstance/ApplicationInstanceConstants.js +34 -17
  36. data/webpack/components/ApplicationInstance/ApplicationInstanceHelper.js +4 -7
  37. data/webpack/components/ApplicationInstance/ApplicationInstanceReducer.js +114 -74
  38. data/webpack/components/ApplicationInstance/ApplicationInstanceSelectors.js +18 -9
  39. data/webpack/components/ApplicationInstance/__fixtures__/{applicationInstanceConfData_1.fixtures.js → applicationInstanceConfData1.fixtures.js} +68 -86
  40. data/webpack/components/ApplicationInstance/__fixtures__/applicationInstanceReducer.fixtures.js +24 -32
  41. data/webpack/components/ApplicationInstance/__tests__/ApplicationInstance.test.js +75 -10
  42. data/webpack/components/ApplicationInstance/__tests__/ApplicationInstanceReducer.test.js +0 -8
  43. data/webpack/components/ApplicationInstance/__tests__/ApplicationInstanceSelectors.test.js +27 -27
  44. data/webpack/components/ApplicationInstance/__tests__/__snapshots__/ApplicationInstance.test.js.snap +606 -2
  45. data/webpack/components/ApplicationInstance/__tests__/__snapshots__/ApplicationInstanceSelectors.test.js.snap +12 -12
  46. data/webpack/components/ApplicationInstance/components/AppDefinitionSelector.js +32 -25
  47. data/webpack/components/ApplicationInstance/components/Service.js +7 -18
  48. data/webpack/components/ApplicationInstance/components/ServiceCounter.js +25 -18
  49. data/webpack/components/ApplicationInstance/index.js +0 -1
  50. data/webpack/components/ApplicationInstanceReport/ApplicationInstanceReport.js +167 -110
  51. data/webpack/components/ApplicationInstanceReport/ApplicationInstanceReportActions.js +20 -25
  52. data/webpack/components/ApplicationInstanceReport/ApplicationInstanceReportConstants.js +10 -5
  53. data/webpack/components/ApplicationInstanceReport/ApplicationInstanceReportReducer.js +9 -12
  54. data/webpack/components/ApplicationInstanceReport/ApplicationInstanceReportSelectors.js +12 -6
  55. data/webpack/components/ApplicationInstanceReport/__fixtures__/{applicationInstanceReportData_1.fixtures.js → applicationInstanceReportData1.fixtures.js} +154 -101
  56. data/webpack/components/ApplicationInstanceReport/__fixtures__/applicationInstanceReportReducer.fixtures.js +3 -10
  57. data/webpack/components/ApplicationInstanceReport/__tests__/ApplicationInstanceReport.test.js +28 -22
  58. data/webpack/components/ApplicationInstanceReport/__tests__/ApplicationInstanceReportSelectors.test.js +5 -7
  59. data/webpack/components/ApplicationInstanceReport/__tests__/__snapshots__/ApplicationInstanceReportReducer.test.js.snap +0 -1
  60. data/webpack/components/ApplicationInstanceReport/__tests__/__snapshots__/ApplicationInstanceReportSelectors.test.js.snap +2 -2
  61. data/webpack/components/ApplicationInstanceReport/components/ReportViewer.js +9 -5
  62. data/webpack/components/ApplicationInstanceReport/components/__tests__/ReportViewer.test.js +1 -3
  63. data/webpack/components/ExistingHostSelection/ExistingHostSelection.js +35 -56
  64. data/webpack/components/ExistingHostSelection/ExistingHostSelectionActions.js +21 -28
  65. data/webpack/components/ExistingHostSelection/ExistingHostSelectionConstants.js +6 -3
  66. data/webpack/components/ExistingHostSelection/ExistingHostSelectionReducer.js +16 -19
  67. data/webpack/components/ExistingHostSelection/ExistingHostSelectionSelectors.js +8 -4
  68. data/webpack/components/ExistingHostSelection/__fixtures__/existingHostSelectionConfData1.fixtures.js +187 -0
  69. data/webpack/components/ExistingHostSelection/__fixtures__/existingHostSelectionReducer.fixtures.js +13 -24
  70. data/webpack/components/ExistingHostSelection/__tests__/ExistingHostSelection.test.js +3 -2
  71. data/webpack/components/ExistingHostSelection/__tests__/ExistingHostSelectionSelectors.test.js +11 -14
  72. data/webpack/components/ExistingHostSelection/__tests__/__snapshots__/ExistingHostSelectionSelectors.test.js.snap +5 -5
  73. data/webpack/components/ExistingHostSelection/components/ServiceSelector.js +31 -25
  74. data/webpack/components/ExistingHostSelection/components/__tests__/ServiceSelector.test.js +3 -9
  75. data/webpack/components/ParameterSelection/ParameterSelection.js +258 -174
  76. data/webpack/components/ParameterSelection/ParameterSelectionActions.js +110 -100
  77. data/webpack/components/ParameterSelection/ParameterSelectionConstants.js +22 -11
  78. data/webpack/components/ParameterSelection/ParameterSelectionHelper.js +13 -11
  79. data/webpack/components/ParameterSelection/ParameterSelectionReducer.js +63 -49
  80. data/webpack/components/ParameterSelection/ParameterSelectionSelectors.js +10 -5
  81. data/webpack/components/ParameterSelection/__fixtures__/{parameterSelectionData_1.fixtures.js → parameterSelectionData1.fixtures.js} +67 -104
  82. data/webpack/components/ParameterSelection/__fixtures__/parameterSelectionReducer.fixtures.js +22 -26
  83. data/webpack/components/ParameterSelection/__tests__/ParameterSelection.test.js +50 -36
  84. data/webpack/components/ParameterSelection/__tests__/ParameterSelectionHelper.test.js +76 -0
  85. data/webpack/components/ParameterSelection/__tests__/ParameterSelectionReducer.test.js +0 -2
  86. data/webpack/components/ParameterSelection/__tests__/ParameterSelectionSelectors.test.js +23 -25
  87. data/webpack/components/ParameterSelection/__tests__/__snapshots__/ParameterSelection.test.js.snap +100 -0
  88. data/webpack/components/ParameterSelection/__tests__/__snapshots__/ParameterSelectionReducer.test.js.snap +99 -112
  89. data/webpack/components/ParameterSelection/__tests__/__snapshots__/ParameterSelectionSelectors.test.js.snap +18 -19
  90. data/webpack/components/ParameterSelection/index.js +1 -4
  91. data/webpack/components/SyncGitRepo/SyncGitRepo.js +124 -117
  92. data/webpack/components/SyncGitRepo/SyncGitRepoActions.js +64 -74
  93. data/webpack/components/SyncGitRepo/SyncGitRepoReducer.js +17 -17
  94. data/webpack/components/SyncGitRepo/__fixtures__/syncGitRepoConfData1.fixtures.js +7 -0
  95. data/webpack/components/SyncGitRepo/__fixtures__/syncGitRepoReducer.fixtures.js +10 -18
  96. data/webpack/components/SyncGitRepo/__tests__/SyncGitRepo.test.js +80 -6
  97. data/webpack/components/SyncGitRepo/__tests__/SyncGitRepoSelectors.test.js +9 -11
  98. data/webpack/components/SyncGitRepo/__tests__/__snapshots__/SyncGitRepo.test.js.snap +192 -1
  99. data/webpack/components/SyncGitRepo/__tests__/__snapshots__/SyncGitRepoSelectors.test.js.snap +4 -4
  100. data/webpack/components/SyncGitRepo/components/FormTextInput.js +26 -21
  101. data/webpack/components/SyncGitRepo/components/ScmTypeSelector.js +29 -24
  102. data/webpack/components/SyncGitRepo/index.js +2 -5
  103. data/webpack/components/common/AddTableEntry.js +3 -10
  104. data/webpack/components/common/DeleteTableEntry.js +7 -15
  105. data/webpack/components/common/EditTableEntry.js +7 -7
  106. data/webpack/components/common/ExtSelect.js +12 -8
  107. data/webpack/components/common/ExtTextInput.js +12 -7
  108. data/webpack/components/common/LockTableEntry.js +6 -6
  109. data/webpack/components/common/RailsData.js +6 -16
  110. data/webpack/components/common/__tests__/ExtSelect.test.js +2 -2
  111. data/webpack/components/common/__tests__/RailsData.test.js +0 -2
  112. data/webpack/global_test_setup.js +11 -0
  113. data/webpack/helper.js +10 -21
  114. data/webpack/helper.test.js +17 -29
  115. data/webpack/index.js +25 -7
  116. data/webpack/js-yaml.js +1563 -1135
  117. data/webpack/reducer.js +52 -27
  118. metadata +13 -11
  119. data/webpack/components/ExistingHostSelection/__fixtures__/existingHostSelectionConfData_1.fixtures.js +0 -191
  120. data/webpack/components/ParameterSelection/__fixtures__/parameterSelection.fixtures.js +0 -153
  121. data/webpack/components/SyncGitRepo/__fixtures__/syncGitRepoConfData_1.fixtures.js +0 -7
@@ -199,3 +199,103 @@ exports[`ParameterSelection should render foreman parameter selection 1`] = `
199
199
  </div>
200
200
  </div>
201
201
  `;
202
+
203
+ exports[`ParameterSelection should render loading 1`] = `
204
+ <div>
205
+ <div
206
+ className="clearfix"
207
+ >
208
+ <div
209
+ className="form-group"
210
+ >
211
+ <TablePfProvider
212
+ bordered={true}
213
+ className=""
214
+ columns={Array []}
215
+ components={
216
+ Object {
217
+ "body": Object {
218
+ "cell": [Function],
219
+ "row": [Function],
220
+ },
221
+ "header": Object {
222
+ "cell": [Function],
223
+ },
224
+ }
225
+ }
226
+ condensed={false}
227
+ dataTable={true}
228
+ hover={true}
229
+ inlineEdit={true}
230
+ striped={true}
231
+ >
232
+ <Header
233
+ headerRows={
234
+ Array [
235
+ Array [],
236
+ ]
237
+ }
238
+ />
239
+ <Body
240
+ onRow={[Function]}
241
+ rowKey="id"
242
+ rows={Array []}
243
+ />
244
+ </TablePfProvider>
245
+ <AddTableEntry
246
+ disabled={false}
247
+ hidden={true}
248
+ onAddTableEntry={[Function]}
249
+ />
250
+ </div>
251
+ </div>
252
+ <div>
253
+ <ForemanModal
254
+ dialogClassName="complex_data_modal"
255
+ id="ParameterSelectionComplexDataModal"
256
+ title="YAML Data Input"
257
+ >
258
+ <Header
259
+ closeButton={false}
260
+ />
261
+ <textarea
262
+ defaultValue=""
263
+ id="yamlData"
264
+ onChange={[Function]}
265
+ style={
266
+ Object {
267
+ "fontFamily": "Courier",
268
+ "height": "350px",
269
+ "width": "550px",
270
+ }
271
+ }
272
+ />
273
+ <Footer>
274
+ <div>
275
+ <div />
276
+ <Button
277
+ active={false}
278
+ block={false}
279
+ bsClass="btn"
280
+ bsStyle="primary"
281
+ disabled={false}
282
+ onClick={[Function]}
283
+ >
284
+ Save
285
+ </Button>
286
+ <Button
287
+ active={false}
288
+ block={false}
289
+ bsClass="btn"
290
+ bsStyle="default"
291
+ disabled={false}
292
+ onClick={[Function]}
293
+ >
294
+ Cancel
295
+ </Button>
296
+ </div>
297
+ </Footer>
298
+ </ForemanModal>
299
+ </div>
300
+ </div>
301
+ `;
@@ -2,14 +2,13 @@
2
2
 
3
3
  exports[`ParameterSelectionReducer should activate edit parameter 1`] = `
4
4
  Object {
5
- "allowedParameterTypes": Array [
6
- "domain",
7
- "hostparam",
8
- "ip",
9
- "ptable",
10
- "puppetenv",
11
- "password",
12
- ],
5
+ "allowedParameterTypes": Object {
6
+ "domain": "Domain",
7
+ "hostparam": "Host parameter",
8
+ "ip": "IP",
9
+ "ptable": "Partition table",
10
+ "puppetenv": "Puppet environment",
11
+ },
13
12
  "columns": Array [
14
13
  Object {
15
14
  "cell": Object {
@@ -248,14 +247,13 @@ Object {
248
247
 
249
248
  exports[`ParameterSelectionReducer should add a parameter 1`] = `
250
249
  Object {
251
- "allowedParameterTypes": Array [
252
- "domain",
253
- "hostparam",
254
- "ip",
255
- "ptable",
256
- "puppetenv",
257
- "password",
258
- ],
250
+ "allowedParameterTypes": Object {
251
+ "domain": "Domain",
252
+ "hostparam": "Host parameter",
253
+ "ip": "IP",
254
+ "ptable": "Partition table",
255
+ "puppetenv": "Puppet environment",
256
+ },
259
257
  "columns": Array [
260
258
  Object {
261
259
  "cell": Object {
@@ -506,14 +504,13 @@ Object {
506
504
 
507
505
  exports[`ParameterSelectionReducer should cancel edit parameter 1`] = `
508
506
  Object {
509
- "allowedParameterTypes": Array [
510
- "domain",
511
- "hostparam",
512
- "ip",
513
- "ptable",
514
- "puppetenv",
515
- "password",
516
- ],
507
+ "allowedParameterTypes": Object {
508
+ "domain": "Domain",
509
+ "hostparam": "Host parameter",
510
+ "ip": "IP",
511
+ "ptable": "Partition table",
512
+ "puppetenv": "Puppet environment",
513
+ },
517
514
  "columns": Array [
518
515
  Object {
519
516
  "cell": Object {
@@ -743,14 +740,13 @@ Object {
743
740
 
744
741
  exports[`ParameterSelectionReducer should change edit parameter 1`] = `
745
742
  Object {
746
- "allowedParameterTypes": Array [
747
- "domain",
748
- "hostparam",
749
- "ip",
750
- "ptable",
751
- "puppetenv",
752
- "password",
753
- ],
743
+ "allowedParameterTypes": Object {
744
+ "domain": "Domain",
745
+ "hostparam": "Host parameter",
746
+ "ip": "IP",
747
+ "ptable": "Partition table",
748
+ "puppetenv": "Puppet environment",
749
+ },
754
750
  "columns": Array [
755
751
  Object {
756
752
  "cell": Object {
@@ -989,14 +985,13 @@ Object {
989
985
 
990
986
  exports[`ParameterSelectionReducer should confirm edit parameter 1`] = `
991
987
  Object {
992
- "allowedParameterTypes": Array [
993
- "domain",
994
- "hostparam",
995
- "ip",
996
- "ptable",
997
- "puppetenv",
998
- "password",
999
- ],
988
+ "allowedParameterTypes": Object {
989
+ "domain": "Domain",
990
+ "hostparam": "Host parameter",
991
+ "ip": "IP",
992
+ "ptable": "Partition table",
993
+ "puppetenv": "Puppet environment",
994
+ },
1000
995
  "columns": Array [
1001
996
  Object {
1002
997
  "cell": Object {
@@ -1189,14 +1184,13 @@ Object {
1189
1184
  "id": 1,
1190
1185
  "name": "web",
1191
1186
  },
1192
- "parameterTypes": Array [
1193
- "domain",
1194
- "hostparam",
1195
- "ip",
1196
- "ptable",
1197
- "puppetenv",
1198
- "password",
1199
- ],
1187
+ "parameterTypes": Object {
1188
+ "domain": "Domain",
1189
+ "hostparam": "Host parameter",
1190
+ "ip": "IP",
1191
+ "ptable": "Partition table",
1192
+ "puppetenv": "Puppet environment",
1193
+ },
1200
1194
  "parameters": Array [
1201
1195
  Object {
1202
1196
  "description": "",
@@ -1226,14 +1220,13 @@ Object {
1226
1220
 
1227
1221
  exports[`ParameterSelectionReducer should delete a parameter 1`] = `
1228
1222
  Object {
1229
- "allowedParameterTypes": Array [
1230
- "domain",
1231
- "hostparam",
1232
- "ip",
1233
- "ptable",
1234
- "puppetenv",
1235
- "password",
1236
- ],
1223
+ "allowedParameterTypes": Object {
1224
+ "domain": "Domain",
1225
+ "hostparam": "Host parameter",
1226
+ "ip": "IP",
1227
+ "ptable": "Partition table",
1228
+ "puppetenv": "Puppet environment",
1229
+ },
1237
1230
  "columns": Array [
1238
1231
  Object {
1239
1232
  "cell": Object {
@@ -1426,14 +1419,13 @@ Object {
1426
1419
  "id": 1,
1427
1420
  "name": "web",
1428
1421
  },
1429
- "parameterTypes": Array [
1430
- "domain",
1431
- "hostparam",
1432
- "ip",
1433
- "ptable",
1434
- "puppetenv",
1435
- "password",
1436
- ],
1422
+ "parameterTypes": Object {
1423
+ "domain": "Domain",
1424
+ "hostparam": "Host parameter",
1425
+ "ip": "IP",
1426
+ "ptable": "Partition table",
1427
+ "puppetenv": "Puppet environment",
1428
+ },
1437
1429
  "parameters": Array [
1438
1430
  Object {
1439
1431
  "description": "",
@@ -1455,14 +1447,13 @@ Object {
1455
1447
 
1456
1448
  exports[`ParameterSelectionReducer should initialize component 1`] = `
1457
1449
  Object {
1458
- "allowedParameterTypes": Array [
1459
- "domain",
1460
- "hostparam",
1461
- "ip",
1462
- "ptable",
1463
- "puppetenv",
1464
- "password",
1465
- ],
1450
+ "allowedParameterTypes": Object {
1451
+ "domain": "Domain",
1452
+ "hostparam": "Host parameter",
1453
+ "ip": "IP",
1454
+ "ptable": "Partition table",
1455
+ "puppetenv": "Puppet environment",
1456
+ },
1466
1457
  "columns": Array [
1467
1458
  Object {
1468
1459
  "cell": Object {
@@ -1700,14 +1691,13 @@ Object {
1700
1691
 
1701
1692
  exports[`ParameterSelectionReducer should load param data be erroneous 1`] = `
1702
1693
  Object {
1703
- "allowedParameterTypes": Array [
1704
- "domain",
1705
- "hostparam",
1706
- "ip",
1707
- "ptable",
1708
- "puppetenv",
1709
- "password",
1710
- ],
1694
+ "allowedParameterTypes": Object {
1695
+ "domain": "Domain",
1696
+ "hostparam": "Host parameter",
1697
+ "ip": "IP",
1698
+ "ptable": "Partition table",
1699
+ "puppetenv": "Puppet environment",
1700
+ },
1711
1701
  "columns": Array [
1712
1702
  Object {
1713
1703
  "cell": Object {
@@ -1933,14 +1923,13 @@ Object {
1933
1923
 
1934
1924
  exports[`ParameterSelectionReducer should load param data be successful 1`] = `
1935
1925
  Object {
1936
- "allowedParameterTypes": Array [
1937
- "domain",
1938
- "hostparam",
1939
- "ip",
1940
- "ptable",
1941
- "puppetenv",
1942
- "password",
1943
- ],
1926
+ "allowedParameterTypes": Object {
1927
+ "domain": "Domain",
1928
+ "hostparam": "Host parameter",
1929
+ "ip": "IP",
1930
+ "ptable": "Partition table",
1931
+ "puppetenv": "Puppet environment",
1932
+ },
1944
1933
  "columns": Array [
1945
1934
  Object {
1946
1935
  "cell": Object {
@@ -2170,14 +2159,13 @@ Object {
2170
2159
 
2171
2160
  exports[`ParameterSelectionReducer should lock a parameter 1`] = `
2172
2161
  Object {
2173
- "allowedParameterTypes": Array [
2174
- "domain",
2175
- "hostparam",
2176
- "ip",
2177
- "ptable",
2178
- "puppetenv",
2179
- "password",
2180
- ],
2162
+ "allowedParameterTypes": Object {
2163
+ "domain": "Domain",
2164
+ "hostparam": "Host parameter",
2165
+ "ip": "IP",
2166
+ "ptable": "Partition table",
2167
+ "puppetenv": "Puppet environment",
2168
+ },
2181
2169
  "columns": Array [
2182
2170
  Object {
2183
2171
  "cell": Object {
@@ -2407,14 +2395,13 @@ Object {
2407
2395
 
2408
2396
  exports[`ParameterSelectionReducer should request load param data 1`] = `
2409
2397
  Object {
2410
- "allowedParameterTypes": Array [
2411
- "domain",
2412
- "hostparam",
2413
- "ip",
2414
- "ptable",
2415
- "puppetenv",
2416
- "password",
2417
- ],
2398
+ "allowedParameterTypes": Object {
2399
+ "domain": "Domain",
2400
+ "hostparam": "Host parameter",
2401
+ "ip": "IP",
2402
+ "ptable": "Partition table",
2403
+ "puppetenv": "Puppet environment",
2404
+ },
2418
2405
  "columns": Array [
2419
2406
  Object {
2420
2407
  "cell": Object {
@@ -2650,19 +2637,19 @@ Object {
2650
2637
  "status": "",
2651
2638
  "statusText": "",
2652
2639
  },
2640
+ "loading": true,
2653
2641
  }
2654
2642
  `;
2655
2643
 
2656
2644
  exports[`ParameterSelectionReducer should sort parameter 1`] = `
2657
2645
  Object {
2658
- "allowedParameterTypes": Array [
2659
- "domain",
2660
- "hostparam",
2661
- "ip",
2662
- "ptable",
2663
- "puppetenv",
2664
- "password",
2665
- ],
2646
+ "allowedParameterTypes": Object {
2647
+ "domain": "Domain",
2648
+ "hostparam": "Host parameter",
2649
+ "ip": "IP",
2650
+ "ptable": "Partition table",
2651
+ "puppetenv": "Puppet environment",
2652
+ },
2666
2653
  "columns": Array [
2667
2654
  Object {
2668
2655
  "cell": Object {
@@ -1,6 +1,6 @@
1
1
  // Jest Snapshot v1, https://goo.gl/fbAQLP
2
2
 
3
- exports[`ParameterSelectionSelectors should return ParamDefinition from parameterSelectionData_1 fixtures 1`] = `
3
+ exports[`ParameterSelectionSelectors should return ParamDefinition from parameterSelectionData1 fixtures 1`] = `
4
4
  Object {
5
5
  "dataId": "1",
6
6
  "id": 1,
@@ -8,18 +8,17 @@ Object {
8
8
  }
9
9
  `;
10
10
 
11
- exports[`ParameterSelectionSelectors should return allowedParameterTypes from parameterSelectionData_1 fixtures 1`] = `
12
- Array [
13
- "domain",
14
- "hostparam",
15
- "ip",
16
- "ptable",
17
- "puppetenv",
18
- "password",
19
- ]
11
+ exports[`ParameterSelectionSelectors should return allowedParameterTypes from parameterSelectionData1 fixtures 1`] = `
12
+ Object {
13
+ "domain": "Domain",
14
+ "hostparam": "Host parameter",
15
+ "ip": "IP",
16
+ "ptable": "Partition table",
17
+ "puppetenv": "Puppet environment",
18
+ }
20
19
  `;
21
20
 
22
- exports[`ParameterSelectionSelectors should return columns from parameterSelectionData_1 fixtures 1`] = `
21
+ exports[`ParameterSelectionSelectors should return columns from parameterSelectionData1 fixtures 1`] = `
23
22
  Array [
24
23
  Object {
25
24
  "cell": Object {
@@ -155,15 +154,15 @@ Array [
155
154
  ]
156
155
  `;
157
156
 
158
- exports[`ParameterSelectionSelectors should return editMode from parameterSelectionData_1 fixtures 1`] = `false`;
157
+ exports[`ParameterSelectionSelectors should return editMode from parameterSelectionData1 fixtures 1`] = `false`;
159
158
 
160
- exports[`ParameterSelectionSelectors should return editParamsRowIndex from parameterSelectionData_1 fixtures 1`] = `undefined`;
159
+ exports[`ParameterSelectionSelectors should return editParamsRowIndex from parameterSelectionData1 fixtures 1`] = `undefined`;
161
160
 
162
- exports[`ParameterSelectionSelectors should return hostgroupId from parameterSelectionData_1 fixtures 1`] = `1`;
161
+ exports[`ParameterSelectionSelectors should return hostgroupId from parameterSelectionData1 fixtures 1`] = `1`;
163
162
 
164
- exports[`ParameterSelectionSelectors should return loading from parameterSelectionData_1 fixtures 1`] = `false`;
163
+ exports[`ParameterSelectionSelectors should return loading from parameterSelectionData1 fixtures 1`] = `false`;
165
164
 
166
- exports[`ParameterSelectionSelectors should return paramData from parameterSelectionData_1 fixtures 1`] = `
165
+ exports[`ParameterSelectionSelectors should return paramData from parameterSelectionData1 fixtures 1`] = `
167
166
  Object {
168
167
  "computeprofiles": Array [
169
168
  Object {
@@ -212,7 +211,7 @@ Object {
212
211
  }
213
212
  `;
214
213
 
215
- exports[`ParameterSelectionSelectors should return parameterTypes from parameterSelectionData_1 fixtures 1`] = `
214
+ exports[`ParameterSelectionSelectors should return parameterTypes from parameterSelectionData1 fixtures 1`] = `
216
215
  Object {
217
216
  "domain": "Domain",
218
217
  "hostparam": "Host parameter",
@@ -223,7 +222,7 @@ Object {
223
222
  }
224
223
  `;
225
224
 
226
- exports[`ParameterSelectionSelectors should return parameters from parameterSelectionData_1 fixtures 1`] = `
225
+ exports[`ParameterSelectionSelectors should return parameters from parameterSelectionData1 fixtures 1`] = `
227
226
  Array [
228
227
  Object {
229
228
  "description": "",
@@ -244,7 +243,7 @@ Array [
244
243
  ]
245
244
  `;
246
245
 
247
- exports[`ParameterSelectionSelectors should return sortingColumns from parameterSelectionData_1 fixtures 1`] = `
246
+ exports[`ParameterSelectionSelectors should return sortingColumns from parameterSelectionData1 fixtures 1`] = `
248
247
  Object {
249
248
  "name": Object {
250
249
  "direction": "asc",
@@ -34,7 +34,4 @@ const mapStateToProps = state => ({
34
34
  const mapDispatchToProps = dispatch =>
35
35
  bindActionCreators(ParameterSelectionActions, dispatch);
36
36
 
37
- export default connect(
38
- mapStateToProps,
39
- mapDispatchToProps
40
- )(ParameterSelection);
37
+ export default connect(mapStateToProps, mapDispatchToProps)(ParameterSelection);