foreman_acd 0.9.5 → 0.10.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (122) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +1 -2
  3. data/lib/foreman_acd/version.rb +1 -1
  4. data/package.json +5 -3
  5. data/webpack/components/ApplicationDefinition/ApplicationDefinition.js +210 -121
  6. data/webpack/components/ApplicationDefinition/ApplicationDefinitionActions.js +79 -91
  7. data/webpack/components/ApplicationDefinition/ApplicationDefinitionConstants.js +30 -15
  8. data/webpack/components/ApplicationDefinition/ApplicationDefinitionHelper.js +15 -15
  9. data/webpack/components/ApplicationDefinition/ApplicationDefinitionReducer.js +96 -63
  10. data/webpack/components/ApplicationDefinition/ApplicationDefinitionSelectors.js +22 -11
  11. data/webpack/components/ApplicationDefinition/__fixtures__/{applicationDefinitionConfData_1.fixtures.js → applicationDefinitionConfData1.fixtures.js} +77 -105
  12. data/webpack/components/ApplicationDefinition/__fixtures__/applicationDefinitionReducer.fixtures.js +49 -29
  13. data/webpack/components/ApplicationDefinition/__tests__/ApplicationDefinition.test.js +4 -4
  14. data/webpack/components/ApplicationDefinition/__tests__/ApplicationDefinitionHelper.test.js +16 -0
  15. data/webpack/components/ApplicationDefinition/__tests__/ApplicationDefinitionReducer.test.js +0 -5
  16. data/webpack/components/ApplicationDefinition/__tests__/ApplicationDefinitionSelectors.test.js +25 -25
  17. data/webpack/components/ApplicationDefinition/__tests__/__snapshots__/ApplicationDefinitionReducer.test.js.snap +9 -1
  18. data/webpack/components/ApplicationDefinition/__tests__/__snapshots__/ApplicationDefinitionSelectors.test.js.snap +11 -11
  19. data/webpack/components/ApplicationDefinition/components/AnsiblePlaybookSelector.js +30 -25
  20. data/webpack/components/ApplicationDefinition/components/__tests__/AnsiblePlaybookSelector.test.js +3 -3
  21. data/webpack/components/ApplicationDefinition/index.js +0 -1
  22. data/webpack/components/ApplicationDefinitionImport/ApplicationDefinitionImport.js +91 -105
  23. data/webpack/components/ApplicationDefinitionImport/ApplicationDefinitionImportActions.js +59 -84
  24. data/webpack/components/ApplicationDefinitionImport/ApplicationDefinitionImportConstants.js +12 -6
  25. data/webpack/components/ApplicationDefinitionImport/ApplicationDefinitionImportReducer.js +21 -27
  26. data/webpack/components/ApplicationDefinitionImport/ApplicationDefinitionImportSelectors.js +14 -7
  27. data/webpack/components/ApplicationDefinitionImport/__fixtures__/{applicationDefinitionImportConfData_1.fixtures.js → applicationDefinitionImportConfData1.fixtures.js} +32 -40
  28. data/webpack/components/ApplicationDefinitionImport/__fixtures__/applicationDefinitionImportReducer.fixtures.js +14 -16
  29. data/webpack/components/ApplicationDefinitionImport/__tests__/ApplicationDefinitionImport.test.js +38 -8
  30. data/webpack/components/ApplicationDefinitionImport/__tests__/ApplicationDefinitionImportReducer.test.js +0 -2
  31. data/webpack/components/ApplicationDefinitionImport/__tests__/ApplicationDefinitionImportSelectors.test.js +9 -9
  32. data/webpack/components/ApplicationDefinitionImport/__tests__/__snapshots__/ApplicationDefinitionImport.test.js.snap +116 -2
  33. data/webpack/components/ApplicationDefinitionImport/__tests__/__snapshots__/ApplicationDefinitionImportSelectors.test.js.snap +3 -3
  34. data/webpack/components/ApplicationInstance/ApplicationInstance.js +344 -193
  35. data/webpack/components/ApplicationInstance/ApplicationInstanceActions.js +92 -105
  36. data/webpack/components/ApplicationInstance/ApplicationInstanceConstants.js +34 -17
  37. data/webpack/components/ApplicationInstance/ApplicationInstanceHelper.js +4 -7
  38. data/webpack/components/ApplicationInstance/ApplicationInstanceReducer.js +114 -74
  39. data/webpack/components/ApplicationInstance/ApplicationInstanceSelectors.js +18 -9
  40. data/webpack/components/ApplicationInstance/__fixtures__/{applicationInstanceConfData_1.fixtures.js → applicationInstanceConfData1.fixtures.js} +68 -86
  41. data/webpack/components/ApplicationInstance/__fixtures__/applicationInstanceReducer.fixtures.js +24 -32
  42. data/webpack/components/ApplicationInstance/__tests__/ApplicationInstance.test.js +75 -10
  43. data/webpack/components/ApplicationInstance/__tests__/ApplicationInstanceReducer.test.js +0 -8
  44. data/webpack/components/ApplicationInstance/__tests__/ApplicationInstanceSelectors.test.js +27 -27
  45. data/webpack/components/ApplicationInstance/__tests__/__snapshots__/ApplicationInstance.test.js.snap +606 -2
  46. data/webpack/components/ApplicationInstance/__tests__/__snapshots__/ApplicationInstanceSelectors.test.js.snap +12 -12
  47. data/webpack/components/ApplicationInstance/components/AppDefinitionSelector.js +32 -25
  48. data/webpack/components/ApplicationInstance/components/Service.js +7 -18
  49. data/webpack/components/ApplicationInstance/components/ServiceCounter.js +25 -18
  50. data/webpack/components/ApplicationInstance/index.js +0 -1
  51. data/webpack/components/ApplicationInstanceReport/ApplicationInstanceReport.js +167 -110
  52. data/webpack/components/ApplicationInstanceReport/ApplicationInstanceReportActions.js +20 -25
  53. data/webpack/components/ApplicationInstanceReport/ApplicationInstanceReportConstants.js +10 -5
  54. data/webpack/components/ApplicationInstanceReport/ApplicationInstanceReportReducer.js +9 -12
  55. data/webpack/components/ApplicationInstanceReport/ApplicationInstanceReportSelectors.js +12 -6
  56. data/webpack/components/ApplicationInstanceReport/__fixtures__/{applicationInstanceReportData_1.fixtures.js → applicationInstanceReportData1.fixtures.js} +154 -101
  57. data/webpack/components/ApplicationInstanceReport/__fixtures__/applicationInstanceReportReducer.fixtures.js +3 -10
  58. data/webpack/components/ApplicationInstanceReport/__tests__/ApplicationInstanceReport.test.js +28 -22
  59. data/webpack/components/ApplicationInstanceReport/__tests__/ApplicationInstanceReportSelectors.test.js +5 -7
  60. data/webpack/components/ApplicationInstanceReport/__tests__/__snapshots__/ApplicationInstanceReportReducer.test.js.snap +0 -1
  61. data/webpack/components/ApplicationInstanceReport/__tests__/__snapshots__/ApplicationInstanceReportSelectors.test.js.snap +2 -2
  62. data/webpack/components/ApplicationInstanceReport/components/ReportViewer.js +9 -5
  63. data/webpack/components/ApplicationInstanceReport/components/__tests__/ReportViewer.test.js +1 -3
  64. data/webpack/components/ExistingHostSelection/ExistingHostSelection.js +35 -56
  65. data/webpack/components/ExistingHostSelection/ExistingHostSelectionActions.js +21 -28
  66. data/webpack/components/ExistingHostSelection/ExistingHostSelectionConstants.js +6 -3
  67. data/webpack/components/ExistingHostSelection/ExistingHostSelectionReducer.js +16 -19
  68. data/webpack/components/ExistingHostSelection/ExistingHostSelectionSelectors.js +8 -4
  69. data/webpack/components/ExistingHostSelection/__fixtures__/existingHostSelectionConfData1.fixtures.js +187 -0
  70. data/webpack/components/ExistingHostSelection/__fixtures__/existingHostSelectionReducer.fixtures.js +13 -24
  71. data/webpack/components/ExistingHostSelection/__tests__/ExistingHostSelection.test.js +3 -2
  72. data/webpack/components/ExistingHostSelection/__tests__/ExistingHostSelectionSelectors.test.js +11 -14
  73. data/webpack/components/ExistingHostSelection/__tests__/__snapshots__/ExistingHostSelectionSelectors.test.js.snap +5 -5
  74. data/webpack/components/ExistingHostSelection/components/ServiceSelector.js +31 -25
  75. data/webpack/components/ExistingHostSelection/components/__tests__/ServiceSelector.test.js +3 -9
  76. data/webpack/components/ParameterSelection/ParameterSelection.js +258 -174
  77. data/webpack/components/ParameterSelection/ParameterSelectionActions.js +110 -100
  78. data/webpack/components/ParameterSelection/ParameterSelectionConstants.js +22 -11
  79. data/webpack/components/ParameterSelection/ParameterSelectionHelper.js +13 -11
  80. data/webpack/components/ParameterSelection/ParameterSelectionReducer.js +63 -49
  81. data/webpack/components/ParameterSelection/ParameterSelectionSelectors.js +10 -5
  82. data/webpack/components/ParameterSelection/__fixtures__/{parameterSelectionData_1.fixtures.js → parameterSelectionData1.fixtures.js} +67 -104
  83. data/webpack/components/ParameterSelection/__fixtures__/parameterSelectionReducer.fixtures.js +22 -26
  84. data/webpack/components/ParameterSelection/__tests__/ParameterSelection.test.js +50 -36
  85. data/webpack/components/ParameterSelection/__tests__/ParameterSelectionHelper.test.js +76 -0
  86. data/webpack/components/ParameterSelection/__tests__/ParameterSelectionReducer.test.js +0 -2
  87. data/webpack/components/ParameterSelection/__tests__/ParameterSelectionSelectors.test.js +23 -25
  88. data/webpack/components/ParameterSelection/__tests__/__snapshots__/ParameterSelection.test.js.snap +100 -0
  89. data/webpack/components/ParameterSelection/__tests__/__snapshots__/ParameterSelectionReducer.test.js.snap +99 -112
  90. data/webpack/components/ParameterSelection/__tests__/__snapshots__/ParameterSelectionSelectors.test.js.snap +18 -19
  91. data/webpack/components/ParameterSelection/index.js +1 -4
  92. data/webpack/components/SyncGitRepo/SyncGitRepo.js +124 -117
  93. data/webpack/components/SyncGitRepo/SyncGitRepoActions.js +64 -74
  94. data/webpack/components/SyncGitRepo/SyncGitRepoReducer.js +17 -17
  95. data/webpack/components/SyncGitRepo/__fixtures__/syncGitRepoConfData1.fixtures.js +7 -0
  96. data/webpack/components/SyncGitRepo/__fixtures__/syncGitRepoReducer.fixtures.js +10 -18
  97. data/webpack/components/SyncGitRepo/__tests__/SyncGitRepo.test.js +80 -6
  98. data/webpack/components/SyncGitRepo/__tests__/SyncGitRepoSelectors.test.js +9 -11
  99. data/webpack/components/SyncGitRepo/__tests__/__snapshots__/SyncGitRepo.test.js.snap +192 -1
  100. data/webpack/components/SyncGitRepo/__tests__/__snapshots__/SyncGitRepoSelectors.test.js.snap +4 -4
  101. data/webpack/components/SyncGitRepo/components/FormTextInput.js +26 -21
  102. data/webpack/components/SyncGitRepo/components/ScmTypeSelector.js +29 -24
  103. data/webpack/components/SyncGitRepo/index.js +2 -5
  104. data/webpack/components/common/AddTableEntry.js +3 -10
  105. data/webpack/components/common/DeleteTableEntry.js +7 -15
  106. data/webpack/components/common/EditTableEntry.js +7 -7
  107. data/webpack/components/common/ExtSelect.js +12 -8
  108. data/webpack/components/common/ExtTextInput.js +12 -7
  109. data/webpack/components/common/LockTableEntry.js +6 -6
  110. data/webpack/components/common/RailsData.js +6 -16
  111. data/webpack/components/common/__tests__/ExtSelect.test.js +2 -2
  112. data/webpack/components/common/__tests__/RailsData.test.js +0 -2
  113. data/webpack/global_test_setup.js +11 -0
  114. data/webpack/helper.js +10 -21
  115. data/webpack/helper.test.js +17 -29
  116. data/webpack/index.js +25 -7
  117. data/webpack/js-yaml.js +1563 -1135
  118. data/webpack/reducer.js +52 -27
  119. metadata +13 -11
  120. data/webpack/components/ExistingHostSelection/__fixtures__/existingHostSelectionConfData_1.fixtures.js +0 -191
  121. data/webpack/components/ParameterSelection/__fixtures__/parameterSelection.fixtures.js +0 -153
  122. data/webpack/components/SyncGitRepo/__fixtures__/syncGitRepoConfData_1.fixtures.js +0 -7
@@ -1,6 +1,6 @@
1
1
  // Jest Snapshot v1, https://goo.gl/fbAQLP
2
2
 
3
- exports[`ApplicationInstance should render application instance 1`] = `
3
+ exports[`ApplicationInstance should render editInstance 1`] = `
4
4
  <span>
5
5
  <MessageDialog
6
6
  accessibleDescription=""
@@ -129,7 +129,611 @@ exports[`ApplicationInstance should render application instance 1`] = `
129
129
  }
130
130
  }
131
131
  >
132
- Ansible group vars 'all':
132
+ Ansible group vars all’:
133
+ <Button
134
+ active={false}
135
+ block={false}
136
+ bsClass="btn"
137
+ bsStyle="default"
138
+ disabled={true}
139
+ onClick={[Function]}
140
+ style={
141
+ Object {
142
+ "marginLeft": 10,
143
+ }
144
+ }
145
+ >
146
+ <span
147
+ title="Change ansible variables for 'all'"
148
+ >
149
+ A
150
+ </span>
151
+ </Button>
152
+ </span>
153
+ </div>
154
+ <div>
155
+ <ForemanModal
156
+ dialogClassName="param_selection_modal"
157
+ id="AppInstanceForemanParamSelection"
158
+ title="Foreman Parameter specification for Application Instance"
159
+ >
160
+ <Header
161
+ closeButton={false}
162
+ >
163
+ Parameter specification
164
+ </Header>
165
+ <Connect(ParameterSelection)
166
+ data={Object {}}
167
+ editModeCallback={[Function]}
168
+ hiddenParameterTypes={Array []}
169
+ location="Default Location"
170
+ organization="Default Organization"
171
+ paramType="PARAMETER_SELECTION_PARAM_TYPE_FOREMAN"
172
+ />
173
+ <Footer>
174
+ <div>
175
+ <Button
176
+ active={false}
177
+ block={false}
178
+ bsClass="btn"
179
+ bsStyle="primary"
180
+ disabled={false}
181
+ onClick={[Function]}
182
+ >
183
+ Save
184
+ </Button>
185
+ <Button
186
+ active={false}
187
+ block={false}
188
+ bsClass="btn"
189
+ bsStyle="default"
190
+ disabled={false}
191
+ onClick={[Function]}
192
+ >
193
+ Cancel
194
+ </Button>
195
+ </div>
196
+ </Footer>
197
+ </ForemanModal>
198
+ </div>
199
+ <div>
200
+ <ForemanModal
201
+ dialogClassName="param_selection_modal"
202
+ id="AppInstanceAnsibleParamSelection"
203
+ title="Ansible group variables for Application Instance"
204
+ >
205
+ <Header
206
+ closeButton={false}
207
+ >
208
+ Parameter specification
209
+ </Header>
210
+ <Connect(ParameterSelection)
211
+ data={Object {}}
212
+ editModeCallback={[Function]}
213
+ location="Default Location"
214
+ organization="Default Organization"
215
+ paramType="PARAMETER_SELECTION_PARAM_TYPE_ANSIBLE"
216
+ />
217
+ <Footer>
218
+ <div>
219
+ <Button
220
+ active={false}
221
+ block={false}
222
+ bsClass="btn"
223
+ bsStyle="primary"
224
+ disabled={false}
225
+ onClick={[Function]}
226
+ >
227
+ Save
228
+ </Button>
229
+ <Button
230
+ active={false}
231
+ block={false}
232
+ bsClass="btn"
233
+ bsStyle="default"
234
+ disabled={false}
235
+ onClick={[Function]}
236
+ >
237
+ Cancel
238
+ </Button>
239
+ </div>
240
+ </Footer>
241
+ </ForemanModal>
242
+ </div>
243
+ <div>
244
+ <ForemanModal
245
+ dialogClassName="add_existing_hosts_modal"
246
+ id="AppInstanceAddExistingHosts"
247
+ title="Add existing hosts to an Application Instance"
248
+ >
249
+ <Header
250
+ closeButton={false}
251
+ >
252
+ Existing hosts selection
253
+ </Header>
254
+ <Connect(ExistingHostSelection)
255
+ allHosts={Array []}
256
+ location="Default Location"
257
+ organization="Default Organization"
258
+ services={Array []}
259
+ />
260
+ <Footer>
261
+ <div>
262
+ <Button
263
+ active={false}
264
+ block={false}
265
+ bsClass="btn"
266
+ bsStyle="primary"
267
+ disabled={false}
268
+ onClick={[Function]}
269
+ >
270
+ Save
271
+ </Button>
272
+ <Button
273
+ active={false}
274
+ block={false}
275
+ bsClass="btn"
276
+ bsStyle="default"
277
+ disabled={false}
278
+ onClick={[Function]}
279
+ >
280
+ Cancel
281
+ </Button>
282
+ </div>
283
+ </Footer>
284
+ </ForemanModal>
285
+ </div>
286
+ <div />
287
+ <RailsData
288
+ key="application_instance_hosts_data"
289
+ parameter="hosts"
290
+ value="[]"
291
+ view="app_instance"
292
+ />
293
+ <RailsData
294
+ key="application_instance_ansible_data"
295
+ parameter="ansible_vars_all"
296
+ value="[]"
297
+ view="app_instance"
298
+ />
299
+ </span>
300
+ `;
301
+
302
+ exports[`ApplicationInstance should render newInstance 1`] = `
303
+ <span>
304
+ <MessageDialog
305
+ accessibleDescription=""
306
+ accessibleName=""
307
+ className=""
308
+ enforceFocus={true}
309
+ footer={null}
310
+ icon={
311
+ <Icon
312
+ name="error-circle-o"
313
+ type="pf"
314
+ />
315
+ }
316
+ onHide={[Function]}
317
+ primaryAction={[Function]}
318
+ primaryActionButtonBsStyle="danger"
319
+ primaryActionButtonContent="OK"
320
+ primaryContent=""
321
+ secondaryAction={[Function]}
322
+ secondaryActionButtonBsStyle="default"
323
+ secondaryActionButtonContent={null}
324
+ secondaryContent={null}
325
+ show={false}
326
+ title=""
327
+ />
328
+ <div
329
+ className="service-counter"
330
+ >
331
+ <ServiceCounter
332
+ hostList={Array []}
333
+ serviceList={Array []}
334
+ title="Service counts"
335
+ />
336
+ </div>
337
+ <div>
338
+ <AppDefinitionSelector
339
+ additionalData={
340
+ Object {
341
+ "url": undefined,
342
+ }
343
+ }
344
+ editable={true}
345
+ hidden={false}
346
+ label="Application Definition"
347
+ onChange={[Function]}
348
+ options={
349
+ Object {
350
+ "1": "dummy-definition",
351
+ "2": "test-definition",
352
+ }
353
+ }
354
+ selectValue=""
355
+ viewText=""
356
+ />
357
+ <div
358
+ style={
359
+ Object {
360
+ "paddingTop": 25,
361
+ }
362
+ }
363
+ >
364
+ <pre>
365
+ App Definition can't be blank
366
+ </pre>
367
+ </div>
368
+ </div>
369
+ <div
370
+ className="form-group"
371
+ >
372
+ <TablePfProvider
373
+ bordered={true}
374
+ className=""
375
+ columns={Array []}
376
+ components={
377
+ Object {
378
+ "body": Object {
379
+ "cell": [Function],
380
+ "row": [Function],
381
+ },
382
+ }
383
+ }
384
+ condensed={false}
385
+ dataTable={true}
386
+ hover={true}
387
+ inlineEdit={true}
388
+ striped={true}
389
+ >
390
+ <Header
391
+ headerRows={
392
+ Array [
393
+ Array [],
394
+ ]
395
+ }
396
+ />
397
+ <Body
398
+ onRow={[Function]}
399
+ rowKey="id"
400
+ rows={Array []}
401
+ />
402
+ </TablePfProvider>
403
+ <AddTableEntry
404
+ disabled={true}
405
+ hidden={false}
406
+ onAddTableEntry={[Function]}
407
+ />
408
+ <span
409
+ style={
410
+ Object {
411
+ "marginLeft": 10,
412
+ }
413
+ }
414
+ >
415
+ <Button
416
+ active={false}
417
+ block={false}
418
+ bsClass="btn"
419
+ bsStyle="default"
420
+ disabled={true}
421
+ onClick={[Function]}
422
+ >
423
+ <Icon
424
+ name="server"
425
+ title="Add existing hosts"
426
+ type="pf"
427
+ />
428
+ </Button>
429
+ </span>
430
+ <span
431
+ style={
432
+ Object {
433
+ "marginLeft": 30,
434
+ }
435
+ }
436
+ >
437
+ Ansible group vars ‘all’:
438
+ <Button
439
+ active={false}
440
+ block={false}
441
+ bsClass="btn"
442
+ bsStyle="default"
443
+ disabled={true}
444
+ onClick={[Function]}
445
+ style={
446
+ Object {
447
+ "marginLeft": 10,
448
+ }
449
+ }
450
+ >
451
+ <span
452
+ title="Change ansible variables for 'all'"
453
+ >
454
+ A
455
+ </span>
456
+ </Button>
457
+ </span>
458
+ </div>
459
+ <div>
460
+ <ForemanModal
461
+ dialogClassName="param_selection_modal"
462
+ id="AppInstanceForemanParamSelection"
463
+ title="Foreman Parameter specification for Application Instance"
464
+ >
465
+ <Header
466
+ closeButton={false}
467
+ >
468
+ Parameter specification
469
+ </Header>
470
+ <Connect(ParameterSelection)
471
+ data={Object {}}
472
+ editModeCallback={[Function]}
473
+ hiddenParameterTypes={Array []}
474
+ location="Default Location"
475
+ organization="Default Organization"
476
+ paramType="PARAMETER_SELECTION_PARAM_TYPE_FOREMAN"
477
+ />
478
+ <Footer>
479
+ <div>
480
+ <Button
481
+ active={false}
482
+ block={false}
483
+ bsClass="btn"
484
+ bsStyle="primary"
485
+ disabled={false}
486
+ onClick={[Function]}
487
+ >
488
+ Save
489
+ </Button>
490
+ <Button
491
+ active={false}
492
+ block={false}
493
+ bsClass="btn"
494
+ bsStyle="default"
495
+ disabled={false}
496
+ onClick={[Function]}
497
+ >
498
+ Cancel
499
+ </Button>
500
+ </div>
501
+ </Footer>
502
+ </ForemanModal>
503
+ </div>
504
+ <div>
505
+ <ForemanModal
506
+ dialogClassName="param_selection_modal"
507
+ id="AppInstanceAnsibleParamSelection"
508
+ title="Ansible group variables for Application Instance"
509
+ >
510
+ <Header
511
+ closeButton={false}
512
+ >
513
+ Parameter specification
514
+ </Header>
515
+ <Connect(ParameterSelection)
516
+ data={Object {}}
517
+ editModeCallback={[Function]}
518
+ location="Default Location"
519
+ organization="Default Organization"
520
+ paramType="PARAMETER_SELECTION_PARAM_TYPE_ANSIBLE"
521
+ />
522
+ <Footer>
523
+ <div>
524
+ <Button
525
+ active={false}
526
+ block={false}
527
+ bsClass="btn"
528
+ bsStyle="primary"
529
+ disabled={false}
530
+ onClick={[Function]}
531
+ >
532
+ Save
533
+ </Button>
534
+ <Button
535
+ active={false}
536
+ block={false}
537
+ bsClass="btn"
538
+ bsStyle="default"
539
+ disabled={false}
540
+ onClick={[Function]}
541
+ >
542
+ Cancel
543
+ </Button>
544
+ </div>
545
+ </Footer>
546
+ </ForemanModal>
547
+ </div>
548
+ <div>
549
+ <ForemanModal
550
+ dialogClassName="add_existing_hosts_modal"
551
+ id="AppInstanceAddExistingHosts"
552
+ title="Add existing hosts to an Application Instance"
553
+ >
554
+ <Header
555
+ closeButton={false}
556
+ >
557
+ Existing hosts selection
558
+ </Header>
559
+ <Connect(ExistingHostSelection)
560
+ allHosts={Array []}
561
+ location="Default Location"
562
+ organization="Default Organization"
563
+ services={Array []}
564
+ />
565
+ <Footer>
566
+ <div>
567
+ <Button
568
+ active={false}
569
+ block={false}
570
+ bsClass="btn"
571
+ bsStyle="primary"
572
+ disabled={false}
573
+ onClick={[Function]}
574
+ >
575
+ Save
576
+ </Button>
577
+ <Button
578
+ active={false}
579
+ block={false}
580
+ bsClass="btn"
581
+ bsStyle="default"
582
+ disabled={false}
583
+ onClick={[Function]}
584
+ >
585
+ Cancel
586
+ </Button>
587
+ </div>
588
+ </Footer>
589
+ </ForemanModal>
590
+ </div>
591
+ <div />
592
+ <RailsData
593
+ key="application_instance_hosts_data"
594
+ parameter="hosts"
595
+ value="[]"
596
+ view="app_instance"
597
+ />
598
+ <RailsData
599
+ key="application_instance_ansible_data"
600
+ parameter="ansible_vars_all"
601
+ value="[]"
602
+ view="app_instance"
603
+ />
604
+ </span>
605
+ `;
606
+
607
+ exports[`ApplicationInstance should render without optional-values 1`] = `
608
+ <span>
609
+ <MessageDialog
610
+ accessibleDescription=""
611
+ accessibleName=""
612
+ className=""
613
+ enforceFocus={true}
614
+ footer={null}
615
+ icon={
616
+ <Icon
617
+ name="error-circle-o"
618
+ type="pf"
619
+ />
620
+ }
621
+ onHide={[Function]}
622
+ primaryAction={[Function]}
623
+ primaryActionButtonBsStyle="danger"
624
+ primaryActionButtonContent="OK"
625
+ primaryContent=""
626
+ secondaryAction={[Function]}
627
+ secondaryActionButtonBsStyle="default"
628
+ secondaryActionButtonContent={null}
629
+ secondaryContent={null}
630
+ show={false}
631
+ title=""
632
+ />
633
+ <div
634
+ className="service-counter"
635
+ >
636
+ <ServiceCounter
637
+ hostList={Array []}
638
+ serviceList={Array []}
639
+ title="Service counts"
640
+ />
641
+ </div>
642
+ <div>
643
+ <AppDefinitionSelector
644
+ additionalData={
645
+ Object {
646
+ "url": undefined,
647
+ }
648
+ }
649
+ editable={false}
650
+ hidden={false}
651
+ label="Application Definition"
652
+ onChange={[Function]}
653
+ selectValue=""
654
+ viewText=""
655
+ />
656
+ <div
657
+ style={
658
+ Object {
659
+ "paddingTop": 25,
660
+ }
661
+ }
662
+ >
663
+ <pre>
664
+ App Definition can't be blank
665
+ </pre>
666
+ </div>
667
+ </div>
668
+ <div
669
+ className="form-group"
670
+ >
671
+ <TablePfProvider
672
+ bordered={true}
673
+ className=""
674
+ columns={Array []}
675
+ components={
676
+ Object {
677
+ "body": Object {
678
+ "cell": [Function],
679
+ "row": [Function],
680
+ },
681
+ }
682
+ }
683
+ condensed={false}
684
+ dataTable={true}
685
+ hover={true}
686
+ inlineEdit={true}
687
+ striped={true}
688
+ >
689
+ <Header
690
+ headerRows={
691
+ Array [
692
+ Array [],
693
+ ]
694
+ }
695
+ />
696
+ <Body
697
+ onRow={[Function]}
698
+ rowKey="id"
699
+ rows={Array []}
700
+ />
701
+ </TablePfProvider>
702
+ <AddTableEntry
703
+ disabled={true}
704
+ hidden={false}
705
+ onAddTableEntry={[Function]}
706
+ />
707
+ <span
708
+ style={
709
+ Object {
710
+ "marginLeft": 10,
711
+ }
712
+ }
713
+ >
714
+ <Button
715
+ active={false}
716
+ block={false}
717
+ bsClass="btn"
718
+ bsStyle="default"
719
+ disabled={true}
720
+ onClick={[Function]}
721
+ >
722
+ <Icon
723
+ name="server"
724
+ title="Add existing hosts"
725
+ type="pf"
726
+ />
727
+ </Button>
728
+ </span>
729
+ <span
730
+ style={
731
+ Object {
732
+ "marginLeft": 30,
733
+ }
734
+ }
735
+ >
736
+ Ansible group vars ‘all’:
133
737
  <Button
134
738
  active={false}
135
739
  block={false}
@@ -1,12 +1,12 @@
1
1
  // Jest Snapshot v1, https://goo.gl/fbAQLP
2
2
 
3
- exports[`ApplicationInstanceSelectors should return ParamEditMode from applicationInstanceConfData_1 fixtures 1`] = `undefined`;
3
+ exports[`ApplicationInstanceSelectors should return ParamEditMode from applicationInstanceConfData1 fixtures 1`] = `undefined`;
4
4
 
5
- exports[`ApplicationInstanceSelectors should return alertModalText from applicationInstanceConfData_1 fixtures 1`] = `undefined`;
5
+ exports[`ApplicationInstanceSelectors should return alertModalText from applicationInstanceConfData1 fixtures 1`] = `undefined`;
6
6
 
7
- exports[`ApplicationInstanceSelectors should return alertModalTitle from applicationInstanceConfData_1 fixtures 1`] = `undefined`;
7
+ exports[`ApplicationInstanceSelectors should return alertModalTitle from applicationInstanceConfData1 fixtures 1`] = `undefined`;
8
8
 
9
- exports[`ApplicationInstanceSelectors should return ansibleVarsAll from applicationInstanceConfData_1 fixtures 1`] = `
9
+ exports[`ApplicationInstanceSelectors should return ansibleVarsAll from applicationInstanceConfData1 fixtures 1`] = `
10
10
  Array [
11
11
  Object {
12
12
  "id": 0,
@@ -16,7 +16,7 @@ Array [
16
16
  ]
17
17
  `;
18
18
 
19
- exports[`ApplicationInstanceSelectors should return appDefinition from applicationInstanceConfData_1 fixtures 1`] = `
19
+ exports[`ApplicationInstanceSelectors should return appDefinition from applicationInstanceConfData1 fixtures 1`] = `
20
20
  Object {
21
21
  "ansible_vars_all": "[{\\"id\\":0,\\"name\\":\\"repository\\",\\"value\\":\\"https://github.com/bennojoy/mywebapp.git\\"}]",
22
22
  "created_at": "2021-03-11 12:51:34 +0100",
@@ -34,7 +34,7 @@ Object {
34
34
  }
35
35
  `;
36
36
 
37
- exports[`ApplicationInstanceSelectors should return columns from applicationInstanceConfData_1 fixtures 1`] = `
37
+ exports[`ApplicationInstanceSelectors should return columns from applicationInstanceConfData1 fixtures 1`] = `
38
38
  Array [
39
39
  Object {
40
40
  "cell": Object {
@@ -119,11 +119,11 @@ Array [
119
119
  ]
120
120
  `;
121
121
 
122
- exports[`ApplicationInstanceSelectors should return editMode from applicationInstanceConfData_1 fixtures 1`] = `undefined`;
122
+ exports[`ApplicationInstanceSelectors should return editMode from applicationInstanceConfData1 fixtures 1`] = `undefined`;
123
123
 
124
- exports[`ApplicationInstanceSelectors should return hiddenForemanParameterTypes from applicationInstanceConfData_1 fixtures 1`] = `undefined`;
124
+ exports[`ApplicationInstanceSelectors should return hiddenForemanParameterTypes from applicationInstanceConfData1 fixtures 1`] = `undefined`;
125
125
 
126
- exports[`ApplicationInstanceSelectors should return hosts from applicationInstanceConfData_1 fixtures 1`] = `
126
+ exports[`ApplicationInstanceSelectors should return hosts from applicationInstanceConfData1 fixtures 1`] = `
127
127
  Array [
128
128
  Object {
129
129
  "ansibleParameters": Array [
@@ -195,9 +195,9 @@ Array [
195
195
  ]
196
196
  `;
197
197
 
198
- exports[`ApplicationInstanceSelectors should return parametersData from applicationInstanceConfData_1 fixtures 1`] = `undefined`;
198
+ exports[`ApplicationInstanceSelectors should return parametersData from applicationInstanceConfData1 fixtures 1`] = `undefined`;
199
199
 
200
- exports[`ApplicationInstanceSelectors should return services from applicationInstanceConfData_1 fixtures 1`] = `
200
+ exports[`ApplicationInstanceSelectors should return services from applicationInstanceConfData1 fixtures 1`] = `
201
201
  Array [
202
202
  Object {
203
203
  "ansibleGroup": "webservers",
@@ -281,4 +281,4 @@ Array [
281
281
  ]
282
282
  `;
283
283
 
284
- exports[`ApplicationInstanceSelectors should return showAlertModal from applicationInstanceConfData_1 fixtures 1`] = `undefined`;
284
+ exports[`ApplicationInstanceSelectors should return showAlertModal from applicationInstanceConfData1 fixtures 1`] = `undefined`;