foreman_acd 0.9.7 → 0.11.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (127) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +5 -19
  3. data/app/controllers/ui_acd_controller.rb +1 -1
  4. data/db/migrate/20210503122809_add_git_url_to_ansible_playbooks.rb +1 -1
  5. data/lib/foreman_acd/engine.rb +4 -10
  6. data/lib/foreman_acd/plugin.rb +1 -1
  7. data/lib/foreman_acd/version.rb +1 -1
  8. data/package.json +5 -3
  9. data/test/controllers/ui_acd_controller_test.rb +1 -1
  10. data/webpack/components/ApplicationDefinition/ApplicationDefinition.js +210 -121
  11. data/webpack/components/ApplicationDefinition/ApplicationDefinitionActions.js +79 -91
  12. data/webpack/components/ApplicationDefinition/ApplicationDefinitionConstants.js +30 -15
  13. data/webpack/components/ApplicationDefinition/ApplicationDefinitionHelper.js +15 -15
  14. data/webpack/components/ApplicationDefinition/ApplicationDefinitionReducer.js +96 -63
  15. data/webpack/components/ApplicationDefinition/ApplicationDefinitionSelectors.js +22 -11
  16. data/webpack/components/ApplicationDefinition/__fixtures__/{applicationDefinitionConfData_1.fixtures.js → applicationDefinitionConfData1.fixtures.js} +77 -105
  17. data/webpack/components/ApplicationDefinition/__fixtures__/applicationDefinitionReducer.fixtures.js +49 -29
  18. data/webpack/components/ApplicationDefinition/__tests__/ApplicationDefinition.test.js +4 -4
  19. data/webpack/components/ApplicationDefinition/__tests__/ApplicationDefinitionHelper.test.js +16 -0
  20. data/webpack/components/ApplicationDefinition/__tests__/ApplicationDefinitionReducer.test.js +0 -5
  21. data/webpack/components/ApplicationDefinition/__tests__/ApplicationDefinitionSelectors.test.js +25 -25
  22. data/webpack/components/ApplicationDefinition/__tests__/__snapshots__/ApplicationDefinitionReducer.test.js.snap +9 -1
  23. data/webpack/components/ApplicationDefinition/__tests__/__snapshots__/ApplicationDefinitionSelectors.test.js.snap +11 -11
  24. data/webpack/components/ApplicationDefinition/components/AnsiblePlaybookSelector.js +30 -25
  25. data/webpack/components/ApplicationDefinition/components/__tests__/AnsiblePlaybookSelector.test.js +3 -3
  26. data/webpack/components/ApplicationDefinition/index.js +0 -1
  27. data/webpack/components/ApplicationDefinitionImport/ApplicationDefinitionImport.js +91 -105
  28. data/webpack/components/ApplicationDefinitionImport/ApplicationDefinitionImportActions.js +59 -84
  29. data/webpack/components/ApplicationDefinitionImport/ApplicationDefinitionImportConstants.js +12 -6
  30. data/webpack/components/ApplicationDefinitionImport/ApplicationDefinitionImportReducer.js +21 -27
  31. data/webpack/components/ApplicationDefinitionImport/ApplicationDefinitionImportSelectors.js +14 -7
  32. data/webpack/components/ApplicationDefinitionImport/__fixtures__/{applicationDefinitionImportConfData_1.fixtures.js → applicationDefinitionImportConfData1.fixtures.js} +32 -40
  33. data/webpack/components/ApplicationDefinitionImport/__fixtures__/applicationDefinitionImportReducer.fixtures.js +14 -16
  34. data/webpack/components/ApplicationDefinitionImport/__tests__/ApplicationDefinitionImport.test.js +38 -8
  35. data/webpack/components/ApplicationDefinitionImport/__tests__/ApplicationDefinitionImportReducer.test.js +0 -2
  36. data/webpack/components/ApplicationDefinitionImport/__tests__/ApplicationDefinitionImportSelectors.test.js +9 -9
  37. data/webpack/components/ApplicationDefinitionImport/__tests__/__snapshots__/ApplicationDefinitionImport.test.js.snap +116 -2
  38. data/webpack/components/ApplicationDefinitionImport/__tests__/__snapshots__/ApplicationDefinitionImportSelectors.test.js.snap +3 -3
  39. data/webpack/components/ApplicationInstance/ApplicationInstance.js +344 -193
  40. data/webpack/components/ApplicationInstance/ApplicationInstanceActions.js +92 -105
  41. data/webpack/components/ApplicationInstance/ApplicationInstanceConstants.js +34 -17
  42. data/webpack/components/ApplicationInstance/ApplicationInstanceHelper.js +4 -7
  43. data/webpack/components/ApplicationInstance/ApplicationInstanceReducer.js +114 -74
  44. data/webpack/components/ApplicationInstance/ApplicationInstanceSelectors.js +18 -9
  45. data/webpack/components/ApplicationInstance/__fixtures__/{applicationInstanceConfData_1.fixtures.js → applicationInstanceConfData1.fixtures.js} +68 -86
  46. data/webpack/components/ApplicationInstance/__fixtures__/applicationInstanceReducer.fixtures.js +24 -32
  47. data/webpack/components/ApplicationInstance/__tests__/ApplicationInstance.test.js +75 -10
  48. data/webpack/components/ApplicationInstance/__tests__/ApplicationInstanceReducer.test.js +0 -8
  49. data/webpack/components/ApplicationInstance/__tests__/ApplicationInstanceSelectors.test.js +27 -27
  50. data/webpack/components/ApplicationInstance/__tests__/__snapshots__/ApplicationInstance.test.js.snap +606 -2
  51. data/webpack/components/ApplicationInstance/__tests__/__snapshots__/ApplicationInstanceSelectors.test.js.snap +12 -12
  52. data/webpack/components/ApplicationInstance/components/AppDefinitionSelector.js +32 -25
  53. data/webpack/components/ApplicationInstance/components/Service.js +7 -18
  54. data/webpack/components/ApplicationInstance/components/ServiceCounter.js +25 -18
  55. data/webpack/components/ApplicationInstance/index.js +0 -1
  56. data/webpack/components/ApplicationInstanceReport/ApplicationInstanceReport.js +167 -110
  57. data/webpack/components/ApplicationInstanceReport/ApplicationInstanceReportActions.js +20 -25
  58. data/webpack/components/ApplicationInstanceReport/ApplicationInstanceReportConstants.js +10 -5
  59. data/webpack/components/ApplicationInstanceReport/ApplicationInstanceReportReducer.js +9 -12
  60. data/webpack/components/ApplicationInstanceReport/ApplicationInstanceReportSelectors.js +12 -6
  61. data/webpack/components/ApplicationInstanceReport/__fixtures__/{applicationInstanceReportData_1.fixtures.js → applicationInstanceReportData1.fixtures.js} +154 -101
  62. data/webpack/components/ApplicationInstanceReport/__fixtures__/applicationInstanceReportReducer.fixtures.js +3 -10
  63. data/webpack/components/ApplicationInstanceReport/__tests__/ApplicationInstanceReport.test.js +28 -22
  64. data/webpack/components/ApplicationInstanceReport/__tests__/ApplicationInstanceReportSelectors.test.js +5 -7
  65. data/webpack/components/ApplicationInstanceReport/__tests__/__snapshots__/ApplicationInstanceReportReducer.test.js.snap +0 -1
  66. data/webpack/components/ApplicationInstanceReport/__tests__/__snapshots__/ApplicationInstanceReportSelectors.test.js.snap +2 -2
  67. data/webpack/components/ApplicationInstanceReport/components/ReportViewer.js +9 -5
  68. data/webpack/components/ApplicationInstanceReport/components/__tests__/ReportViewer.test.js +1 -3
  69. data/webpack/components/ExistingHostSelection/ExistingHostSelection.js +35 -56
  70. data/webpack/components/ExistingHostSelection/ExistingHostSelectionActions.js +21 -28
  71. data/webpack/components/ExistingHostSelection/ExistingHostSelectionConstants.js +6 -3
  72. data/webpack/components/ExistingHostSelection/ExistingHostSelectionReducer.js +16 -19
  73. data/webpack/components/ExistingHostSelection/ExistingHostSelectionSelectors.js +8 -4
  74. data/webpack/components/ExistingHostSelection/__fixtures__/existingHostSelectionConfData1.fixtures.js +187 -0
  75. data/webpack/components/ExistingHostSelection/__fixtures__/existingHostSelectionReducer.fixtures.js +13 -24
  76. data/webpack/components/ExistingHostSelection/__tests__/ExistingHostSelection.test.js +3 -2
  77. data/webpack/components/ExistingHostSelection/__tests__/ExistingHostSelectionSelectors.test.js +11 -14
  78. data/webpack/components/ExistingHostSelection/__tests__/__snapshots__/ExistingHostSelectionSelectors.test.js.snap +5 -5
  79. data/webpack/components/ExistingHostSelection/components/ServiceSelector.js +31 -25
  80. data/webpack/components/ExistingHostSelection/components/__tests__/ServiceSelector.test.js +3 -9
  81. data/webpack/components/ParameterSelection/ParameterSelection.js +258 -174
  82. data/webpack/components/ParameterSelection/ParameterSelectionActions.js +110 -100
  83. data/webpack/components/ParameterSelection/ParameterSelectionConstants.js +22 -11
  84. data/webpack/components/ParameterSelection/ParameterSelectionHelper.js +13 -11
  85. data/webpack/components/ParameterSelection/ParameterSelectionReducer.js +63 -49
  86. data/webpack/components/ParameterSelection/ParameterSelectionSelectors.js +10 -5
  87. data/webpack/components/ParameterSelection/__fixtures__/{parameterSelectionData_1.fixtures.js → parameterSelectionData1.fixtures.js} +67 -104
  88. data/webpack/components/ParameterSelection/__fixtures__/parameterSelectionReducer.fixtures.js +22 -26
  89. data/webpack/components/ParameterSelection/__tests__/ParameterSelection.test.js +50 -36
  90. data/webpack/components/ParameterSelection/__tests__/ParameterSelectionHelper.test.js +76 -0
  91. data/webpack/components/ParameterSelection/__tests__/ParameterSelectionReducer.test.js +0 -2
  92. data/webpack/components/ParameterSelection/__tests__/ParameterSelectionSelectors.test.js +23 -25
  93. data/webpack/components/ParameterSelection/__tests__/__snapshots__/ParameterSelection.test.js.snap +100 -0
  94. data/webpack/components/ParameterSelection/__tests__/__snapshots__/ParameterSelectionReducer.test.js.snap +99 -112
  95. data/webpack/components/ParameterSelection/__tests__/__snapshots__/ParameterSelectionSelectors.test.js.snap +18 -19
  96. data/webpack/components/ParameterSelection/index.js +1 -4
  97. data/webpack/components/SyncGitRepo/SyncGitRepo.js +124 -117
  98. data/webpack/components/SyncGitRepo/SyncGitRepoActions.js +64 -74
  99. data/webpack/components/SyncGitRepo/SyncGitRepoReducer.js +17 -17
  100. data/webpack/components/SyncGitRepo/__fixtures__/syncGitRepoConfData1.fixtures.js +7 -0
  101. data/webpack/components/SyncGitRepo/__fixtures__/syncGitRepoReducer.fixtures.js +10 -18
  102. data/webpack/components/SyncGitRepo/__tests__/SyncGitRepo.test.js +80 -6
  103. data/webpack/components/SyncGitRepo/__tests__/SyncGitRepoSelectors.test.js +9 -11
  104. data/webpack/components/SyncGitRepo/__tests__/__snapshots__/SyncGitRepo.test.js.snap +192 -1
  105. data/webpack/components/SyncGitRepo/__tests__/__snapshots__/SyncGitRepoSelectors.test.js.snap +4 -4
  106. data/webpack/components/SyncGitRepo/components/FormTextInput.js +26 -21
  107. data/webpack/components/SyncGitRepo/components/ScmTypeSelector.js +29 -24
  108. data/webpack/components/SyncGitRepo/index.js +2 -5
  109. data/webpack/components/common/AddTableEntry.js +3 -10
  110. data/webpack/components/common/DeleteTableEntry.js +7 -15
  111. data/webpack/components/common/EditTableEntry.js +7 -7
  112. data/webpack/components/common/ExtSelect.js +12 -8
  113. data/webpack/components/common/ExtTextInput.js +12 -7
  114. data/webpack/components/common/LockTableEntry.js +6 -6
  115. data/webpack/components/common/RailsData.js +6 -16
  116. data/webpack/components/common/__tests__/ExtSelect.test.js +2 -2
  117. data/webpack/components/common/__tests__/RailsData.test.js +0 -2
  118. data/webpack/global_test_setup.js +11 -0
  119. data/webpack/helper.js +10 -21
  120. data/webpack/helper.test.js +17 -29
  121. data/webpack/index.js +25 -7
  122. data/webpack/js-yaml.js +1563 -1135
  123. data/webpack/reducer.js +52 -27
  124. metadata +16 -14
  125. data/webpack/components/ExistingHostSelection/__fixtures__/existingHostSelectionConfData_1.fixtures.js +0 -191
  126. data/webpack/components/ParameterSelection/__fixtures__/parameterSelection.fixtures.js +0 -153
  127. data/webpack/components/SyncGitRepo/__fixtures__/syncGitRepoConfData_1.fixtures.js +0 -7
@@ -1,51 +1,43 @@
1
- export const applicationDefinitionImportConfData_1 = {
1
+ export const applicationDefinitionImportConfData1 = {
2
2
  name: false,
3
3
  error: {
4
4
  errorMsg: '',
5
5
  status: '',
6
- statusText: ''
6
+ statusText: '',
7
7
  },
8
8
  columns: [
9
9
  {
10
10
  property: 'name',
11
11
  header: {
12
12
  label: 'Service name',
13
- formatters: [
14
- null
15
- ],
13
+ formatters: [null],
16
14
  props: {
17
15
  index: 3,
18
16
  style: {
19
- width: '20%'
20
- }
21
- }
17
+ width: '20%',
18
+ },
19
+ },
22
20
  },
23
21
  cell: {
24
- formatters: [
25
- null
26
- ]
27
- }
22
+ formatters: [null],
23
+ },
28
24
  },
29
25
  {
30
26
  property: 'hostgroup',
31
27
  header: {
32
28
  label: 'Hostgroup',
33
- formatters: [
34
- null
35
- ],
29
+ formatters: [null],
36
30
  props: {
37
31
  index: 2,
38
32
  style: {
39
- width: '20%'
40
- }
41
- }
33
+ width: '20%',
34
+ },
35
+ },
42
36
  },
43
37
  cell: {
44
- formatters: [
45
- null
46
- ]
47
- }
48
- }
38
+ formatters: [null],
39
+ },
40
+ },
49
41
  ],
50
42
  ansiblePlaybookServices: [
51
43
  {
@@ -63,7 +55,7 @@ export const applicationDefinitionImportConfData_1 = {
63
55
  name: 'CP',
64
56
  description: '',
65
57
  type: 'computeprofile',
66
- value: '1'
58
+ value: '1',
67
59
  },
68
60
  {
69
61
  id: 2,
@@ -71,16 +63,16 @@ export const applicationDefinitionImportConfData_1 = {
71
63
  name: 'LE',
72
64
  description: '',
73
65
  type: 'lifecycleenv',
74
- value: '1'
75
- }
66
+ value: '1',
67
+ },
76
68
  ],
77
69
  ansibleParameters: [
78
70
  {
79
71
  id: 0,
80
72
  name: 'dummy_var',
81
- value: '0'
82
- }
83
- ]
73
+ value: '0',
74
+ },
75
+ ],
84
76
  },
85
77
  {
86
78
  id: 2,
@@ -95,35 +87,35 @@ export const applicationDefinitionImportConfData_1 = {
95
87
  {
96
88
  id: 0,
97
89
  name: 'mysqlservice',
98
- value: 'mysqld'
90
+ value: 'mysqld',
99
91
  },
100
92
  {
101
93
  id: 1,
102
94
  name: 'mysql_port',
103
95
  value: '3306',
104
- locked: true
96
+ locked: true,
105
97
  },
106
98
  {
107
99
  id: 2,
108
100
  name: 'dbuser',
109
- value: 'webapp'
101
+ value: 'webapp',
110
102
  },
111
103
  {
112
104
  id: 3,
113
105
  name: 'dbname',
114
- value: 'ANSAP01'
106
+ value: 'ANSAP01',
115
107
  },
116
108
  {
117
109
  id: 4,
118
110
  name: 'upassword',
119
- value: 'Bond@007'
111
+ value: 'Bond@007',
120
112
  },
121
113
  {
122
114
  id: 5,
123
115
  name: 'masterpassword',
124
- value: 'MySQL@007'
125
- }
126
- ]
127
- }
128
- ]
129
- }
116
+ value: 'MySQL@007',
117
+ },
118
+ ],
119
+ },
120
+ ],
121
+ };
@@ -1,29 +1,27 @@
1
1
  import Immutable from 'seamless-immutable';
2
- import {
3
- cloneDeep,
4
- findIndex,
5
- findLastIndex,
6
- } from 'lodash';
2
+ import { cloneDeep, findIndex } from 'lodash';
7
3
 
8
- import {
9
- applicationDefinitionImportConfData_1,
10
- } from '../__fixtures__/applicationDefinitionImportConfData_1.fixtures';
4
+ import { applicationDefinitionImportConfData1 } from '../__fixtures__/applicationDefinitionImportConfData1.fixtures';
11
5
 
12
- export const successState = Immutable(applicationDefinitionImportConfData_1);
6
+ export const successState = Immutable(applicationDefinitionImportConfData1);
13
7
 
14
8
  const EDIT_ROW_ID = 2;
15
9
 
16
- const editClone = applicationDefinitionImportConfData_1;
17
- const editIndex = findIndex(editClone.ansiblePlaybookServices, { id: EDIT_ROW_ID })
18
- editClone["ansiblePlaybookServices"][editIndex].backup = cloneDeep(editClone["ansiblePlaybookServices"][editIndex]);
10
+ const editClone = applicationDefinitionImportConfData1;
11
+ const editIndex = findIndex(editClone.ansiblePlaybookServices, {
12
+ id: EDIT_ROW_ID,
13
+ });
14
+ editClone.ansiblePlaybookServices[editIndex].backup = cloneDeep(
15
+ editClone.ansiblePlaybookServices[editIndex]
16
+ );
19
17
  export const editState = Immutable(editClone);
20
18
 
21
19
  // Payload Data
22
- export const initApplicationDefinitionImportPayload = applicationDefinitionImportConfData_1;
20
+ export const initApplicationDefinitionImportPayload = applicationDefinitionImportConfData1;
23
21
  export const changeEditServicePayload = {
24
- value: "helloworld",
25
- property: "name",
22
+ value: 'helloworld',
23
+ property: 'name',
26
24
  rowData: {
27
25
  id: EDIT_ROW_ID,
28
- }
26
+ },
29
27
  };
@@ -4,15 +4,45 @@ import ApplicationDefinitionImport from '../ApplicationDefinitionImport';
4
4
 
5
5
  const noop = () => {};
6
6
 
7
+ const baseFixtures = {
8
+ location: 'Default Location',
9
+ organization: 'Default Organization',
10
+ hostgroups: { '1': 'alma8' },
11
+ ansiblePlaybookServices: [],
12
+ initApplicationDefinitionImport: noop,
13
+ addApplicationDefinitionImportService: noop,
14
+ closeAlertModal: noop,
15
+ changeEditApplicationDefinitionImportService: noop,
16
+ handleImportAnsiblePlaybook: noop,
17
+ };
18
+
7
19
  const fixtures = {
8
- 'should render application definition import': {
9
- location: "Default Location",
10
- organization: "Default Organization",
11
- hostgroups: [],
12
- ansiblePlaybookServices: [],
13
- initApplicationDefinitionImport: noop,
14
- addApplicationDefinitionImportService: noop,
15
- closeAlertModal: noop,
20
+ 'should render application definition import': baseFixtures,
21
+
22
+ 'should render application definition import with loaded archive': {
23
+ ...baseFixtures,
24
+ ansiblePlaybookServices: [
25
+ {
26
+ id: 1,
27
+ name: 'Service1',
28
+ hostgroup: '',
29
+ backup: {
30
+ id: 1,
31
+ name: 'Service1',
32
+ hostgroup: '',
33
+ },
34
+ },
35
+ {
36
+ id: 2,
37
+ name: 'Service2',
38
+ hostgroup: '',
39
+ backup: {
40
+ id: 2,
41
+ name: 'Service2',
42
+ hostgroup: '',
43
+ },
44
+ },
45
+ ],
16
46
  },
17
47
  };
18
48
 
@@ -2,7 +2,6 @@ import { testReducerSnapshotWithFixtures } from 'react-redux-test-utils';
2
2
  import reducer, { initialState } from '../ApplicationDefinitionImportReducer';
3
3
 
4
4
  import {
5
- successState,
6
5
  editState,
7
6
  initApplicationDefinitionImportPayload,
8
7
  changeEditServicePayload,
@@ -11,7 +10,6 @@ import {
11
10
  import {
12
11
  APPLICATION_DEFINITION_IMPORT_INIT,
13
12
  APPLICATION_DEFINITION_IMPORT_SERVICE_EDIT_CHANGE,
14
- APPLICATION_DEFINITION_IMPORT_SERVICE_EDIT_CANCEL,
15
13
  } from '../ApplicationDefinitionImportConstants';
16
14
 
17
15
  const fixtures = {
@@ -6,9 +6,7 @@ import {
6
6
  selectColumns,
7
7
  } from '../ApplicationDefinitionImportSelectors';
8
8
 
9
- import {
10
- applicationDefinitionImportConfData_1,
11
- } from '../__fixtures__/applicationDefinitionImportConfData_1.fixtures';
9
+ import { applicationDefinitionImportConfData1 } from '../__fixtures__/applicationDefinitionImportConfData1.fixtures';
12
10
 
13
11
  const stateFactory = obj => ({
14
12
  foremanAcd: {
@@ -17,12 +15,14 @@ const stateFactory = obj => ({
17
15
  });
18
16
 
19
17
  const fixtures = {
20
- 'should return editMode from applicationDefinitionImportConfData_1 fixtures': () =>
21
- selectEditMode(stateFactory(applicationDefinitionImportConfData_1)),
22
- 'should return services from applicationDefinitionImportConfData_1 fixtures': () =>
23
- selectAnsiblePlaybookServices(stateFactory(applicationDefinitionImportConfData_1)),
24
- 'should return columns from applicationDefinitionImportConfData_1 fixtures': () =>
25
- selectColumns(stateFactory(applicationDefinitionImportConfData_1)),
18
+ 'should return editMode from applicationDefinitionImportConfData1 fixtures': () =>
19
+ selectEditMode(stateFactory(applicationDefinitionImportConfData1)),
20
+ 'should return services from applicationDefinitionImportConfData1 fixtures': () =>
21
+ selectAnsiblePlaybookServices(
22
+ stateFactory(applicationDefinitionImportConfData1)
23
+ ),
24
+ 'should return columns from applicationDefinitionImportConfData1 fixtures': () =>
25
+ selectColumns(stateFactory(applicationDefinitionImportConfData1)),
26
26
  };
27
27
 
28
28
  describe('ApplicationDefinitionImportSelectors', () =>
@@ -2,8 +2,6 @@
2
2
 
3
3
  exports[`ApplicationDefinitionImport should render application definition import 1`] = `
4
4
  <span>
5
- <Component />
6
- <Component />
7
5
  <MessageDialog
8
6
  accessibleDescription=""
9
7
  accessibleName=""
@@ -60,3 +58,119 @@ exports[`ApplicationDefinitionImport should render application definition import
60
58
  />
61
59
  </span>
62
60
  `;
61
+
62
+ exports[`ApplicationDefinitionImport should render application definition import with loaded archive 1`] = `
63
+ <span>
64
+ <MessageDialog
65
+ accessibleDescription=""
66
+ accessibleName=""
67
+ className=""
68
+ enforceFocus={true}
69
+ footer={null}
70
+ icon={
71
+ <Icon
72
+ name="error-circle-o"
73
+ type="pf"
74
+ />
75
+ }
76
+ onHide={[Function]}
77
+ primaryAction={[Function]}
78
+ primaryActionButtonBsStyle="danger"
79
+ primaryActionButtonContent="OK"
80
+ primaryContent=""
81
+ secondaryAction={[Function]}
82
+ secondaryActionButtonBsStyle="default"
83
+ secondaryActionButtonContent={null}
84
+ secondaryContent={null}
85
+ show={false}
86
+ title=""
87
+ />
88
+ <div>
89
+ <CommonForm
90
+ className="custom-file-upload"
91
+ label="Application Definition file"
92
+ >
93
+ <input
94
+ onChange={[Function]}
95
+ type="file"
96
+ />
97
+ </CommonForm>
98
+ <CommonForm>
99
+ <Button
100
+ active={false}
101
+ block={false}
102
+ bsClass="btn"
103
+ bsStyle="default"
104
+ disabled={false}
105
+ onClick={[Function]}
106
+ >
107
+ Import
108
+
109
+ </Button>
110
+ </CommonForm>
111
+ </div>
112
+ <div
113
+ className="form-group"
114
+ >
115
+ <TablePfProvider
116
+ bordered={true}
117
+ className=""
118
+ columns={Array []}
119
+ components={
120
+ Object {
121
+ "body": Object {
122
+ "cell": [Function],
123
+ },
124
+ }
125
+ }
126
+ condensed={false}
127
+ dataTable={true}
128
+ hover={true}
129
+ inlineEdit={false}
130
+ striped={true}
131
+ >
132
+ <Header
133
+ headerRows={
134
+ Array [
135
+ Array [],
136
+ ]
137
+ }
138
+ />
139
+ <Body
140
+ onRow={[Function]}
141
+ rowKey="id"
142
+ rows={
143
+ Array [
144
+ Object {
145
+ "backup": Object {
146
+ "hostgroup": "",
147
+ "id": 1,
148
+ "name": "Service1",
149
+ },
150
+ "hostgroup": "",
151
+ "id": 1,
152
+ "name": "Service1",
153
+ },
154
+ Object {
155
+ "backup": Object {
156
+ "hostgroup": "",
157
+ "id": 2,
158
+ "name": "Service2",
159
+ },
160
+ "hostgroup": "",
161
+ "id": 2,
162
+ "name": "Service2",
163
+ },
164
+ ]
165
+ }
166
+ />
167
+ </TablePfProvider>
168
+ </div>
169
+ <RailsData
170
+ key="applications_definition_import"
171
+ parameter="services"
172
+ value="[{\\"id\\":1,\\"name\\":\\"Service1\\",\\"hostgroup\\":\\"\\",\\"backup\\":{\\"id\\":1,\\"name\\":\\"Service1\\",\\"hostgroup\\":\\"\\"}},{\\"id\\":2,\\"name\\":\\"Service2\\",\\"hostgroup\\":\\"\\",\\"backup\\":{\\"id\\":2,\\"name\\":\\"Service2\\",\\"hostgroup\\":\\"\\"}}]"
173
+ view="app_definition_import"
174
+ />
175
+ </span>
176
+ `;
@@ -1,6 +1,6 @@
1
1
  // Jest Snapshot v1, https://goo.gl/fbAQLP
2
2
 
3
- exports[`ApplicationDefinitionImportSelectors should return columns from applicationDefinitionImportConfData_1 fixtures 1`] = `
3
+ exports[`ApplicationDefinitionImportSelectors should return columns from applicationDefinitionImportConfData1 fixtures 1`] = `
4
4
  Array [
5
5
  Object {
6
6
  "cell": Object {
@@ -45,9 +45,9 @@ Array [
45
45
  ]
46
46
  `;
47
47
 
48
- exports[`ApplicationDefinitionImportSelectors should return editMode from applicationDefinitionImportConfData_1 fixtures 1`] = `undefined`;
48
+ exports[`ApplicationDefinitionImportSelectors should return editMode from applicationDefinitionImportConfData1 fixtures 1`] = `undefined`;
49
49
 
50
- exports[`ApplicationDefinitionImportSelectors should return services from applicationDefinitionImportConfData_1 fixtures 1`] = `
50
+ exports[`ApplicationDefinitionImportSelectors should return services from applicationDefinitionImportConfData1 fixtures 1`] = `
51
51
  Array [
52
52
  Object {
53
53
  "ansibleGroup": "webservers",