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.
- checksums.yaml +4 -4
- data/README.md +1 -2
- data/lib/foreman_acd/version.rb +1 -1
- data/package.json +5 -3
- data/webpack/components/ApplicationDefinition/ApplicationDefinition.js +210 -121
- data/webpack/components/ApplicationDefinition/ApplicationDefinitionActions.js +79 -91
- data/webpack/components/ApplicationDefinition/ApplicationDefinitionConstants.js +30 -15
- data/webpack/components/ApplicationDefinition/ApplicationDefinitionHelper.js +15 -15
- data/webpack/components/ApplicationDefinition/ApplicationDefinitionReducer.js +96 -63
- data/webpack/components/ApplicationDefinition/ApplicationDefinitionSelectors.js +22 -11
- data/webpack/components/ApplicationDefinition/__fixtures__/{applicationDefinitionConfData_1.fixtures.js → applicationDefinitionConfData1.fixtures.js} +77 -105
- data/webpack/components/ApplicationDefinition/__fixtures__/applicationDefinitionReducer.fixtures.js +49 -29
- data/webpack/components/ApplicationDefinition/__tests__/ApplicationDefinition.test.js +4 -4
- data/webpack/components/ApplicationDefinition/__tests__/ApplicationDefinitionHelper.test.js +16 -0
- data/webpack/components/ApplicationDefinition/__tests__/ApplicationDefinitionReducer.test.js +0 -5
- data/webpack/components/ApplicationDefinition/__tests__/ApplicationDefinitionSelectors.test.js +25 -25
- data/webpack/components/ApplicationDefinition/__tests__/__snapshots__/ApplicationDefinitionReducer.test.js.snap +9 -1
- data/webpack/components/ApplicationDefinition/__tests__/__snapshots__/ApplicationDefinitionSelectors.test.js.snap +11 -11
- data/webpack/components/ApplicationDefinition/components/AnsiblePlaybookSelector.js +30 -25
- data/webpack/components/ApplicationDefinition/components/__tests__/AnsiblePlaybookSelector.test.js +3 -3
- data/webpack/components/ApplicationDefinition/index.js +0 -1
- data/webpack/components/ApplicationDefinitionImport/ApplicationDefinitionImport.js +91 -105
- data/webpack/components/ApplicationDefinitionImport/ApplicationDefinitionImportActions.js +59 -84
- data/webpack/components/ApplicationDefinitionImport/ApplicationDefinitionImportConstants.js +12 -6
- data/webpack/components/ApplicationDefinitionImport/ApplicationDefinitionImportReducer.js +21 -27
- data/webpack/components/ApplicationDefinitionImport/ApplicationDefinitionImportSelectors.js +14 -7
- data/webpack/components/ApplicationDefinitionImport/__fixtures__/{applicationDefinitionImportConfData_1.fixtures.js → applicationDefinitionImportConfData1.fixtures.js} +32 -40
- data/webpack/components/ApplicationDefinitionImport/__fixtures__/applicationDefinitionImportReducer.fixtures.js +14 -16
- data/webpack/components/ApplicationDefinitionImport/__tests__/ApplicationDefinitionImport.test.js +38 -8
- data/webpack/components/ApplicationDefinitionImport/__tests__/ApplicationDefinitionImportReducer.test.js +0 -2
- data/webpack/components/ApplicationDefinitionImport/__tests__/ApplicationDefinitionImportSelectors.test.js +9 -9
- data/webpack/components/ApplicationDefinitionImport/__tests__/__snapshots__/ApplicationDefinitionImport.test.js.snap +116 -2
- data/webpack/components/ApplicationDefinitionImport/__tests__/__snapshots__/ApplicationDefinitionImportSelectors.test.js.snap +3 -3
- data/webpack/components/ApplicationInstance/ApplicationInstance.js +344 -193
- data/webpack/components/ApplicationInstance/ApplicationInstanceActions.js +92 -105
- data/webpack/components/ApplicationInstance/ApplicationInstanceConstants.js +34 -17
- data/webpack/components/ApplicationInstance/ApplicationInstanceHelper.js +4 -7
- data/webpack/components/ApplicationInstance/ApplicationInstanceReducer.js +114 -74
- data/webpack/components/ApplicationInstance/ApplicationInstanceSelectors.js +18 -9
- data/webpack/components/ApplicationInstance/__fixtures__/{applicationInstanceConfData_1.fixtures.js → applicationInstanceConfData1.fixtures.js} +68 -86
- data/webpack/components/ApplicationInstance/__fixtures__/applicationInstanceReducer.fixtures.js +24 -32
- data/webpack/components/ApplicationInstance/__tests__/ApplicationInstance.test.js +75 -10
- data/webpack/components/ApplicationInstance/__tests__/ApplicationInstanceReducer.test.js +0 -8
- data/webpack/components/ApplicationInstance/__tests__/ApplicationInstanceSelectors.test.js +27 -27
- data/webpack/components/ApplicationInstance/__tests__/__snapshots__/ApplicationInstance.test.js.snap +606 -2
- data/webpack/components/ApplicationInstance/__tests__/__snapshots__/ApplicationInstanceSelectors.test.js.snap +12 -12
- data/webpack/components/ApplicationInstance/components/AppDefinitionSelector.js +32 -25
- data/webpack/components/ApplicationInstance/components/Service.js +7 -18
- data/webpack/components/ApplicationInstance/components/ServiceCounter.js +25 -18
- data/webpack/components/ApplicationInstance/index.js +0 -1
- data/webpack/components/ApplicationInstanceReport/ApplicationInstanceReport.js +167 -110
- data/webpack/components/ApplicationInstanceReport/ApplicationInstanceReportActions.js +20 -25
- data/webpack/components/ApplicationInstanceReport/ApplicationInstanceReportConstants.js +10 -5
- data/webpack/components/ApplicationInstanceReport/ApplicationInstanceReportReducer.js +9 -12
- data/webpack/components/ApplicationInstanceReport/ApplicationInstanceReportSelectors.js +12 -6
- data/webpack/components/ApplicationInstanceReport/__fixtures__/{applicationInstanceReportData_1.fixtures.js → applicationInstanceReportData1.fixtures.js} +154 -101
- data/webpack/components/ApplicationInstanceReport/__fixtures__/applicationInstanceReportReducer.fixtures.js +3 -10
- data/webpack/components/ApplicationInstanceReport/__tests__/ApplicationInstanceReport.test.js +28 -22
- data/webpack/components/ApplicationInstanceReport/__tests__/ApplicationInstanceReportSelectors.test.js +5 -7
- data/webpack/components/ApplicationInstanceReport/__tests__/__snapshots__/ApplicationInstanceReportReducer.test.js.snap +0 -1
- data/webpack/components/ApplicationInstanceReport/__tests__/__snapshots__/ApplicationInstanceReportSelectors.test.js.snap +2 -2
- data/webpack/components/ApplicationInstanceReport/components/ReportViewer.js +9 -5
- data/webpack/components/ApplicationInstanceReport/components/__tests__/ReportViewer.test.js +1 -3
- data/webpack/components/ExistingHostSelection/ExistingHostSelection.js +35 -56
- data/webpack/components/ExistingHostSelection/ExistingHostSelectionActions.js +21 -28
- data/webpack/components/ExistingHostSelection/ExistingHostSelectionConstants.js +6 -3
- data/webpack/components/ExistingHostSelection/ExistingHostSelectionReducer.js +16 -19
- data/webpack/components/ExistingHostSelection/ExistingHostSelectionSelectors.js +8 -4
- data/webpack/components/ExistingHostSelection/__fixtures__/existingHostSelectionConfData1.fixtures.js +187 -0
- data/webpack/components/ExistingHostSelection/__fixtures__/existingHostSelectionReducer.fixtures.js +13 -24
- data/webpack/components/ExistingHostSelection/__tests__/ExistingHostSelection.test.js +3 -2
- data/webpack/components/ExistingHostSelection/__tests__/ExistingHostSelectionSelectors.test.js +11 -14
- data/webpack/components/ExistingHostSelection/__tests__/__snapshots__/ExistingHostSelectionSelectors.test.js.snap +5 -5
- data/webpack/components/ExistingHostSelection/components/ServiceSelector.js +31 -25
- data/webpack/components/ExistingHostSelection/components/__tests__/ServiceSelector.test.js +3 -9
- data/webpack/components/ParameterSelection/ParameterSelection.js +258 -174
- data/webpack/components/ParameterSelection/ParameterSelectionActions.js +110 -100
- data/webpack/components/ParameterSelection/ParameterSelectionConstants.js +22 -11
- data/webpack/components/ParameterSelection/ParameterSelectionHelper.js +13 -11
- data/webpack/components/ParameterSelection/ParameterSelectionReducer.js +63 -49
- data/webpack/components/ParameterSelection/ParameterSelectionSelectors.js +10 -5
- data/webpack/components/ParameterSelection/__fixtures__/{parameterSelectionData_1.fixtures.js → parameterSelectionData1.fixtures.js} +67 -104
- data/webpack/components/ParameterSelection/__fixtures__/parameterSelectionReducer.fixtures.js +22 -26
- data/webpack/components/ParameterSelection/__tests__/ParameterSelection.test.js +50 -36
- data/webpack/components/ParameterSelection/__tests__/ParameterSelectionHelper.test.js +76 -0
- data/webpack/components/ParameterSelection/__tests__/ParameterSelectionReducer.test.js +0 -2
- data/webpack/components/ParameterSelection/__tests__/ParameterSelectionSelectors.test.js +23 -25
- data/webpack/components/ParameterSelection/__tests__/__snapshots__/ParameterSelection.test.js.snap +100 -0
- data/webpack/components/ParameterSelection/__tests__/__snapshots__/ParameterSelectionReducer.test.js.snap +99 -112
- data/webpack/components/ParameterSelection/__tests__/__snapshots__/ParameterSelectionSelectors.test.js.snap +18 -19
- data/webpack/components/ParameterSelection/index.js +1 -4
- data/webpack/components/SyncGitRepo/SyncGitRepo.js +124 -117
- data/webpack/components/SyncGitRepo/SyncGitRepoActions.js +64 -74
- data/webpack/components/SyncGitRepo/SyncGitRepoReducer.js +17 -17
- data/webpack/components/SyncGitRepo/__fixtures__/syncGitRepoConfData1.fixtures.js +7 -0
- data/webpack/components/SyncGitRepo/__fixtures__/syncGitRepoReducer.fixtures.js +10 -18
- data/webpack/components/SyncGitRepo/__tests__/SyncGitRepo.test.js +80 -6
- data/webpack/components/SyncGitRepo/__tests__/SyncGitRepoSelectors.test.js +9 -11
- data/webpack/components/SyncGitRepo/__tests__/__snapshots__/SyncGitRepo.test.js.snap +192 -1
- data/webpack/components/SyncGitRepo/__tests__/__snapshots__/SyncGitRepoSelectors.test.js.snap +4 -4
- data/webpack/components/SyncGitRepo/components/FormTextInput.js +26 -21
- data/webpack/components/SyncGitRepo/components/ScmTypeSelector.js +29 -24
- data/webpack/components/SyncGitRepo/index.js +2 -5
- data/webpack/components/common/AddTableEntry.js +3 -10
- data/webpack/components/common/DeleteTableEntry.js +7 -15
- data/webpack/components/common/EditTableEntry.js +7 -7
- data/webpack/components/common/ExtSelect.js +12 -8
- data/webpack/components/common/ExtTextInput.js +12 -7
- data/webpack/components/common/LockTableEntry.js +6 -6
- data/webpack/components/common/RailsData.js +6 -16
- data/webpack/components/common/__tests__/ExtSelect.test.js +2 -2
- data/webpack/components/common/__tests__/RailsData.test.js +0 -2
- data/webpack/global_test_setup.js +11 -0
- data/webpack/helper.js +10 -21
- data/webpack/helper.test.js +17 -29
- data/webpack/index.js +25 -7
- data/webpack/js-yaml.js +1563 -1135
- data/webpack/reducer.js +52 -27
- metadata +13 -11
- data/webpack/components/ExistingHostSelection/__fixtures__/existingHostSelectionConfData_1.fixtures.js +0 -191
- data/webpack/components/ParameterSelection/__fixtures__/parameterSelection.fixtures.js +0 -153
- data/webpack/components/SyncGitRepo/__fixtures__/syncGitRepoConfData_1.fixtures.js +0 -7
data/webpack/reducer.js
CHANGED
@@ -1,5 +1,3 @@
|
|
1
|
-
import { combineReducers } from 'redux';
|
2
|
-
|
3
1
|
import parameterSelectionParameters from './components/ParameterSelection/ParameterSelectionReducer';
|
4
2
|
import applicationDefinitionConf from './components/ApplicationDefinition/ApplicationDefinitionReducer';
|
5
3
|
import applicationDefinitionImportConf from './components/ApplicationDefinitionImport/ApplicationDefinitionImportReducer';
|
@@ -20,42 +18,69 @@ import {
|
|
20
18
|
} from './components/ApplicationInstance/ApplicationInstanceConstants';
|
21
19
|
|
22
20
|
const rootReducer = (state = {}, action) => {
|
21
|
+
const paramState = parameterSelectionParameters(
|
22
|
+
state.parameterSelectionParameters,
|
23
|
+
action
|
24
|
+
);
|
25
|
+
const appInsReportState = applicationInstanceReport(
|
26
|
+
state.applicationInstanceReport,
|
27
|
+
action
|
28
|
+
);
|
23
29
|
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
action.payload.parameterSelection =
|
30
|
+
if (
|
31
|
+
action.type ===
|
32
|
+
APPLICATION_DEFINITION_FOREMAN_PARAMETER_SELECTION_MODAL_CLOSE
|
33
|
+
) {
|
34
|
+
action.payload.parameterSelection = paramState.parameters;
|
29
35
|
}
|
30
|
-
if (
|
31
|
-
action.
|
36
|
+
if (
|
37
|
+
action.type ===
|
38
|
+
APPLICATION_DEFINITION_ANSIBLE_PARAMETER_SELECTION_MODAL_CLOSE
|
39
|
+
) {
|
40
|
+
action.payload.parameterSelection = paramState.parameters;
|
32
41
|
}
|
33
|
-
const
|
34
|
-
|
42
|
+
const appDefState = applicationDefinitionConf(
|
43
|
+
state.applicationDefinitionConf,
|
44
|
+
action
|
45
|
+
);
|
46
|
+
const appDefImportState = applicationDefinitionImportConf(
|
47
|
+
state.applicationDefinitionImportConf,
|
48
|
+
action
|
49
|
+
);
|
35
50
|
|
36
|
-
if (
|
37
|
-
action.
|
51
|
+
if (
|
52
|
+
action.type === APPLICATION_INSTANCE_FOREMAN_PARAMETER_SELECTION_MODAL_CLOSE
|
53
|
+
) {
|
54
|
+
action.payload.parameterSelection = paramState.parameters;
|
38
55
|
}
|
39
|
-
if (
|
40
|
-
action.
|
56
|
+
if (
|
57
|
+
action.type === APPLICATION_INSTANCE_ANSIBLE_PARAMETER_SELECTION_MODAL_CLOSE
|
58
|
+
) {
|
59
|
+
action.payload.parameterSelection = paramState.parameters;
|
41
60
|
}
|
42
61
|
|
43
|
-
const
|
44
|
-
|
45
|
-
action
|
62
|
+
const exHostState = existingHostSelectionConf(
|
63
|
+
state.existingHostSelectionConf,
|
64
|
+
action
|
65
|
+
);
|
66
|
+
if (action.type === APPLICATION_INSTANCE_ADD_EXISTING_HOSTS_MODAL_CLOSE) {
|
67
|
+
action.payload.selectedHosts = exHostState.selectedHosts;
|
46
68
|
}
|
47
69
|
|
48
|
-
const
|
49
|
-
|
70
|
+
const appInsState = applicationInstanceConf(
|
71
|
+
state.applicationInstanceConf,
|
72
|
+
action
|
73
|
+
);
|
74
|
+
const syncGitRepoState = syncGitRepoConf(state.syncGitRepoConf, action);
|
50
75
|
|
51
76
|
return {
|
52
|
-
applicationDefinitionConf:
|
53
|
-
applicationDefinitionImportConf:
|
54
|
-
applicationInstanceConf:
|
55
|
-
applicationInstanceReport:
|
56
|
-
existingHostSelectionConf:
|
57
|
-
parameterSelectionParameters:
|
58
|
-
syncGitRepoConf:
|
77
|
+
applicationDefinitionConf: appDefState,
|
78
|
+
applicationDefinitionImportConf: appDefImportState,
|
79
|
+
applicationInstanceConf: appInsState,
|
80
|
+
applicationInstanceReport: appInsReportState,
|
81
|
+
existingHostSelectionConf: exHostState,
|
82
|
+
parameterSelectionParameters: paramState,
|
83
|
+
syncGitRepoConf: syncGitRepoState,
|
59
84
|
};
|
60
85
|
};
|
61
86
|
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: foreman_acd
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.10.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- ATIX AG
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2024-
|
11
|
+
date: 2024-09-26 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rubocop
|
@@ -215,9 +215,10 @@ files:
|
|
215
215
|
- webpack/components/ApplicationDefinition/ApplicationDefinitionHelper.js
|
216
216
|
- webpack/components/ApplicationDefinition/ApplicationDefinitionReducer.js
|
217
217
|
- webpack/components/ApplicationDefinition/ApplicationDefinitionSelectors.js
|
218
|
-
- webpack/components/ApplicationDefinition/__fixtures__/
|
218
|
+
- webpack/components/ApplicationDefinition/__fixtures__/applicationDefinitionConfData1.fixtures.js
|
219
219
|
- webpack/components/ApplicationDefinition/__fixtures__/applicationDefinitionReducer.fixtures.js
|
220
220
|
- webpack/components/ApplicationDefinition/__tests__/ApplicationDefinition.test.js
|
221
|
+
- webpack/components/ApplicationDefinition/__tests__/ApplicationDefinitionHelper.test.js
|
221
222
|
- webpack/components/ApplicationDefinition/__tests__/ApplicationDefinitionReducer.test.js
|
222
223
|
- webpack/components/ApplicationDefinition/__tests__/ApplicationDefinitionSelectors.test.js
|
223
224
|
- webpack/components/ApplicationDefinition/__tests__/__snapshots__/ApplicationDefinition.test.js.snap
|
@@ -233,7 +234,7 @@ files:
|
|
233
234
|
- webpack/components/ApplicationDefinitionImport/ApplicationDefinitionImportConstants.js
|
234
235
|
- webpack/components/ApplicationDefinitionImport/ApplicationDefinitionImportReducer.js
|
235
236
|
- webpack/components/ApplicationDefinitionImport/ApplicationDefinitionImportSelectors.js
|
236
|
-
- webpack/components/ApplicationDefinitionImport/__fixtures__/
|
237
|
+
- webpack/components/ApplicationDefinitionImport/__fixtures__/applicationDefinitionImportConfData1.fixtures.js
|
237
238
|
- webpack/components/ApplicationDefinitionImport/__fixtures__/applicationDefinitionImportReducer.fixtures.js
|
238
239
|
- webpack/components/ApplicationDefinitionImport/__tests__/ApplicationDefinitionImport.test.js
|
239
240
|
- webpack/components/ApplicationDefinitionImport/__tests__/ApplicationDefinitionImportReducer.test.js
|
@@ -249,7 +250,7 @@ files:
|
|
249
250
|
- webpack/components/ApplicationInstance/ApplicationInstanceHelper.js
|
250
251
|
- webpack/components/ApplicationInstance/ApplicationInstanceReducer.js
|
251
252
|
- webpack/components/ApplicationInstance/ApplicationInstanceSelectors.js
|
252
|
-
- webpack/components/ApplicationInstance/__fixtures__/
|
253
|
+
- webpack/components/ApplicationInstance/__fixtures__/applicationInstanceConfData1.fixtures.js
|
253
254
|
- webpack/components/ApplicationInstance/__fixtures__/applicationInstanceReducer.fixtures.js
|
254
255
|
- webpack/components/ApplicationInstance/__tests__/ApplicationInstance.test.js
|
255
256
|
- webpack/components/ApplicationInstance/__tests__/ApplicationInstanceReducer.test.js
|
@@ -268,7 +269,7 @@ files:
|
|
268
269
|
- webpack/components/ApplicationInstanceReport/ApplicationInstanceReportConstants.js
|
269
270
|
- webpack/components/ApplicationInstanceReport/ApplicationInstanceReportReducer.js
|
270
271
|
- webpack/components/ApplicationInstanceReport/ApplicationInstanceReportSelectors.js
|
271
|
-
- webpack/components/ApplicationInstanceReport/__fixtures__/
|
272
|
+
- webpack/components/ApplicationInstanceReport/__fixtures__/applicationInstanceReportData1.fixtures.js
|
272
273
|
- webpack/components/ApplicationInstanceReport/__fixtures__/applicationInstanceReportReducer.fixtures.js
|
273
274
|
- webpack/components/ApplicationInstanceReport/__tests__/ApplicationInstanceReport.test.js
|
274
275
|
- webpack/components/ApplicationInstanceReport/__tests__/ApplicationInstanceReportReducer.test.js
|
@@ -287,7 +288,7 @@ files:
|
|
287
288
|
- webpack/components/ExistingHostSelection/ExistingHostSelectionHelper.js
|
288
289
|
- webpack/components/ExistingHostSelection/ExistingHostSelectionReducer.js
|
289
290
|
- webpack/components/ExistingHostSelection/ExistingHostSelectionSelectors.js
|
290
|
-
- webpack/components/ExistingHostSelection/__fixtures__/
|
291
|
+
- webpack/components/ExistingHostSelection/__fixtures__/existingHostSelectionConfData1.fixtures.js
|
291
292
|
- webpack/components/ExistingHostSelection/__fixtures__/existingHostSelectionReducer.fixtures.js
|
292
293
|
- webpack/components/ExistingHostSelection/__tests__/ExistingHostSelection.test.js
|
293
294
|
- webpack/components/ExistingHostSelection/__tests__/ExistingHostSelectionReducer.test.js
|
@@ -306,10 +307,10 @@ files:
|
|
306
307
|
- webpack/components/ParameterSelection/ParameterSelectionHelper.js
|
307
308
|
- webpack/components/ParameterSelection/ParameterSelectionReducer.js
|
308
309
|
- webpack/components/ParameterSelection/ParameterSelectionSelectors.js
|
309
|
-
- webpack/components/ParameterSelection/__fixtures__/
|
310
|
-
- webpack/components/ParameterSelection/__fixtures__/parameterSelectionData_1.fixtures.js
|
310
|
+
- webpack/components/ParameterSelection/__fixtures__/parameterSelectionData1.fixtures.js
|
311
311
|
- webpack/components/ParameterSelection/__fixtures__/parameterSelectionReducer.fixtures.js
|
312
312
|
- webpack/components/ParameterSelection/__tests__/ParameterSelection.test.js
|
313
|
+
- webpack/components/ParameterSelection/__tests__/ParameterSelectionHelper.test.js
|
313
314
|
- webpack/components/ParameterSelection/__tests__/ParameterSelectionReducer.test.js
|
314
315
|
- webpack/components/ParameterSelection/__tests__/ParameterSelectionSelectors.test.js
|
315
316
|
- webpack/components/ParameterSelection/__tests__/__snapshots__/ParameterSelection.test.js.snap
|
@@ -322,7 +323,7 @@ files:
|
|
322
323
|
- webpack/components/SyncGitRepo/SyncGitRepoConstants.js
|
323
324
|
- webpack/components/SyncGitRepo/SyncGitRepoReducer.js
|
324
325
|
- webpack/components/SyncGitRepo/SyncGitRepoSelectors.js
|
325
|
-
- webpack/components/SyncGitRepo/__fixtures__/
|
326
|
+
- webpack/components/SyncGitRepo/__fixtures__/syncGitRepoConfData1.fixtures.js
|
326
327
|
- webpack/components/SyncGitRepo/__fixtures__/syncGitRepoReducer.fixtures.js
|
327
328
|
- webpack/components/SyncGitRepo/__tests__/SyncGitRepo.test.js
|
328
329
|
- webpack/components/SyncGitRepo/__tests__/SyncGitRepoReducer.test.js
|
@@ -352,6 +353,7 @@ files:
|
|
352
353
|
- webpack/components/common/__tests__/__snapshots__/ExtSelect.test.js.snap
|
353
354
|
- webpack/components/common/__tests__/__snapshots__/LockTableEntry.test.js.snap
|
354
355
|
- webpack/components/common/__tests__/__snapshots__/RailsData.test.js.snap
|
356
|
+
- webpack/global_test_setup.js
|
355
357
|
- webpack/helper.js
|
356
358
|
- webpack/helper.test.js
|
357
359
|
- webpack/index.js
|
@@ -380,7 +382,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
380
382
|
- !ruby/object:Gem::Version
|
381
383
|
version: '0'
|
382
384
|
requirements: []
|
383
|
-
rubygems_version: 3.3.
|
385
|
+
rubygems_version: 3.3.27
|
384
386
|
signing_key:
|
385
387
|
specification_version: 4
|
386
388
|
summary: Foreman plugin to provide application centric deployment and self service
|
@@ -1,191 +0,0 @@
|
|
1
|
-
export const existingHostSelectionConfData_1 = {
|
2
|
-
serviceId: 2,
|
3
|
-
error: {
|
4
|
-
errorMsg: '',
|
5
|
-
status: '',
|
6
|
-
statusText: ''
|
7
|
-
},
|
8
|
-
allHosts: [
|
9
|
-
{
|
10
|
-
id: 5,
|
11
|
-
hostname: 'isaac-anselm',
|
12
|
-
service: '1',
|
13
|
-
description: '',
|
14
|
-
foremanParameters: [],
|
15
|
-
ansibleParameters: [],
|
16
|
-
}
|
17
|
-
],
|
18
|
-
alreadyUsedHosts: [
|
19
|
-
{
|
20
|
-
value: 'isaac-anselm',
|
21
|
-
label: 'isaac-anselm',
|
22
|
-
disabled: true,
|
23
|
-
tooltipText: 'Host already used for this application instance'
|
24
|
-
}
|
25
|
-
],
|
26
|
-
selectedHosts: [],
|
27
|
-
hostsInHostgroup: {
|
28
|
-
'3': {
|
29
|
-
ip: null,
|
30
|
-
ip6: '',
|
31
|
-
environment_id: null,
|
32
|
-
environment_name: null,
|
33
|
-
last_report: null,
|
34
|
-
mac: '00:11:22:33:44:a1',
|
35
|
-
realm_id: null,
|
36
|
-
realm_name: null,
|
37
|
-
sp_mac: null,
|
38
|
-
sp_ip: null,
|
39
|
-
sp_name: null,
|
40
|
-
domain_id: 1,
|
41
|
-
domain_name: 'mylocal',
|
42
|
-
architecture_id: 1,
|
43
|
-
architecture_name: 'x86_64',
|
44
|
-
operatingsystem_id: 1,
|
45
|
-
operatingsystem_name: 'centos 7',
|
46
|
-
subnet_id: 1,
|
47
|
-
subnet_name: 'mylocal',
|
48
|
-
subnet6_id: null,
|
49
|
-
subnet6_name: null,
|
50
|
-
sp_subnet_id: null,
|
51
|
-
ptable_id: 118,
|
52
|
-
ptable_name: 'Kickstart default',
|
53
|
-
medium_id: 1,
|
54
|
-
medium_name: 'CentOS 7 mirror',
|
55
|
-
pxe_loader: 'PXELinux BIOS',
|
56
|
-
build: true,
|
57
|
-
comment: '',
|
58
|
-
disk: '',
|
59
|
-
installed_at: null,
|
60
|
-
model_id: null,
|
61
|
-
hostgroup_id: 1,
|
62
|
-
owner_id: 4,
|
63
|
-
owner_name: 'Admin User',
|
64
|
-
owner_type: 'User',
|
65
|
-
enabled: true,
|
66
|
-
managed: true,
|
67
|
-
use_image: null,
|
68
|
-
image_file: '',
|
69
|
-
uuid: null,
|
70
|
-
compute_resource_id: null,
|
71
|
-
compute_resource_name: null,
|
72
|
-
compute_profile_id: null,
|
73
|
-
compute_profile_name: null,
|
74
|
-
capabilities: [
|
75
|
-
'build'
|
76
|
-
],
|
77
|
-
provision_method: 'build',
|
78
|
-
certname: 'isaac-anselm.mylocal',
|
79
|
-
image_id: null,
|
80
|
-
image_name: null,
|
81
|
-
created_at: '2021-08-05 11:16:34 +0200',
|
82
|
-
updated_at: '2021-08-05 11:16:34 +0200',
|
83
|
-
last_compile: null,
|
84
|
-
global_status: 0,
|
85
|
-
global_status_label: 'Error',
|
86
|
-
uptime_seconds: null,
|
87
|
-
organization_id: 1,
|
88
|
-
organization_name: 'Default Organization',
|
89
|
-
location_id: 2,
|
90
|
-
location_name: 'Default Location',
|
91
|
-
puppet_status: 0,
|
92
|
-
model_name: null,
|
93
|
-
build_status: 2,
|
94
|
-
build_status_label: 'Token expired',
|
95
|
-
name: 'isaac-anselm.mylocal',
|
96
|
-
id: 3,
|
97
|
-
puppet_proxy_id: null,
|
98
|
-
puppet_proxy_name: null,
|
99
|
-
puppet_ca_proxy_id: null,
|
100
|
-
puppet_ca_proxy_name: null,
|
101
|
-
puppet_proxy: null,
|
102
|
-
puppet_ca_proxy: null,
|
103
|
-
hostgroup_name: 'base',
|
104
|
-
hostgroup_title: 'base'
|
105
|
-
},
|
106
|
-
'7': {
|
107
|
-
ip: null,
|
108
|
-
ip6: null,
|
109
|
-
environment_id: null,
|
110
|
-
environment_name: null,
|
111
|
-
last_report: null,
|
112
|
-
mac: '00:11:22:33:60:15',
|
113
|
-
realm_id: null,
|
114
|
-
realm_name: null,
|
115
|
-
sp_mac: null,
|
116
|
-
sp_ip: null,
|
117
|
-
sp_name: null,
|
118
|
-
domain_id: 1,
|
119
|
-
domain_name: 'mylocal',
|
120
|
-
architecture_id: 1,
|
121
|
-
architecture_name: 'x86_64',
|
122
|
-
operatingsystem_id: 1,
|
123
|
-
operatingsystem_name: 'centos 7',
|
124
|
-
subnet_id: 1,
|
125
|
-
subnet_name: 'mylocal',
|
126
|
-
subnet6_id: null,
|
127
|
-
subnet6_name: null,
|
128
|
-
sp_subnet_id: null,
|
129
|
-
ptable_id: 118,
|
130
|
-
ptable_name: 'Kickstart default',
|
131
|
-
medium_id: 1,
|
132
|
-
medium_name: 'CentOS 7 mirror',
|
133
|
-
pxe_loader: 'PXELinux BIOS',
|
134
|
-
build: true,
|
135
|
-
comment: null,
|
136
|
-
disk: null,
|
137
|
-
installed_at: null,
|
138
|
-
model_id: null,
|
139
|
-
hostgroup_id: 1,
|
140
|
-
owner_id: 4,
|
141
|
-
owner_name: 'Admin User',
|
142
|
-
owner_type: 'User',
|
143
|
-
enabled: true,
|
144
|
-
managed: true,
|
145
|
-
use_image: null,
|
146
|
-
image_file: '',
|
147
|
-
uuid: null,
|
148
|
-
compute_resource_id: null,
|
149
|
-
compute_resource_name: null,
|
150
|
-
compute_profile_id: null,
|
151
|
-
compute_profile_name: null,
|
152
|
-
capabilities: [
|
153
|
-
'build'
|
154
|
-
],
|
155
|
-
provision_method: 'build',
|
156
|
-
certname: 'lllllll.mylocal',
|
157
|
-
image_id: null,
|
158
|
-
image_name: null,
|
159
|
-
created_at: '2021-08-19 14:00:20 +0200',
|
160
|
-
updated_at: '2021-08-19 14:00:20 +0200',
|
161
|
-
last_compile: null,
|
162
|
-
global_status: 0,
|
163
|
-
global_status_label: 'Error',
|
164
|
-
uptime_seconds: null,
|
165
|
-
organization_id: 1,
|
166
|
-
organization_name: 'Default Organization',
|
167
|
-
location_id: 2,
|
168
|
-
location_name: 'Default Location',
|
169
|
-
puppet_status: 0,
|
170
|
-
model_name: null,
|
171
|
-
build_status: 2,
|
172
|
-
build_status_label: 'Token expired',
|
173
|
-
name: 'lllllll.mylocal',
|
174
|
-
id: 7,
|
175
|
-
puppet_proxy_id: null,
|
176
|
-
puppet_proxy_name: null,
|
177
|
-
puppet_ca_proxy_id: null,
|
178
|
-
puppet_ca_proxy_name: null,
|
179
|
-
puppet_proxy: null,
|
180
|
-
puppet_ca_proxy: null,
|
181
|
-
hostgroup_name: 'base',
|
182
|
-
hostgroup_title: 'base'
|
183
|
-
}
|
184
|
-
},
|
185
|
-
availableHosts: [
|
186
|
-
{
|
187
|
-
value: 'lllllll',
|
188
|
-
label: 'lllllll'
|
189
|
-
}
|
190
|
-
]
|
191
|
-
}
|
@@ -1,153 +0,0 @@
|
|
1
|
-
export const newDefinition = {
|
2
|
-
mode: "newDefinition",
|
3
|
-
serviceDefinition: {
|
4
|
-
id: 1,
|
5
|
-
name: "Test123",
|
6
|
-
hostgroup_id: 1
|
7
|
-
},
|
8
|
-
};
|
9
|
-
export const editDefinition = {
|
10
|
-
mode: "editDefinition",
|
11
|
-
serviceDefinition: {
|
12
|
-
id: 1,
|
13
|
-
name: "Test123",
|
14
|
-
hostgroup_id: 1
|
15
|
-
},
|
16
|
-
parameters: [
|
17
|
-
{
|
18
|
-
id: 1,
|
19
|
-
name: "PuppetEnv",
|
20
|
-
description: "",
|
21
|
-
type: "puppetenv",
|
22
|
-
value: "2"
|
23
|
-
},
|
24
|
-
{
|
25
|
-
id: 2,
|
26
|
-
name: "PW",
|
27
|
-
description: "",
|
28
|
-
type: "password",
|
29
|
-
value: "rooot"
|
30
|
-
},
|
31
|
-
{
|
32
|
-
id: 3,
|
33
|
-
name: "Blub",
|
34
|
-
description: "",
|
35
|
-
type: "hostparam",
|
36
|
-
value: "awesome"
|
37
|
-
},
|
38
|
-
{
|
39
|
-
id: 4,
|
40
|
-
name: "111allo",
|
41
|
-
description: "",
|
42
|
-
type: "ip",
|
43
|
-
value: "1.1.1.1"
|
44
|
-
},
|
45
|
-
{
|
46
|
-
id: 5,
|
47
|
-
name: "1111aasdfasf",
|
48
|
-
description: "",
|
49
|
-
type: "hostname",
|
50
|
-
value: "dername"
|
51
|
-
},
|
52
|
-
{
|
53
|
-
id: 6,
|
54
|
-
name: "222nocheiner",
|
55
|
-
description: "",
|
56
|
-
type: "hostparam",
|
57
|
-
value: ""
|
58
|
-
},
|
59
|
-
{
|
60
|
-
id: 7,
|
61
|
-
name: "aaaaa",
|
62
|
-
description: "aa",
|
63
|
-
type: "ptable",
|
64
|
-
value: ""
|
65
|
-
},
|
66
|
-
{
|
67
|
-
id: 8,
|
68
|
-
name: "aaa",
|
69
|
-
description: "",
|
70
|
-
type: "hostparam",
|
71
|
-
value: "2134234"
|
72
|
-
}
|
73
|
-
]
|
74
|
-
};
|
75
|
-
|
76
|
-
export const newInstance = {
|
77
|
-
mode: "newInstance",
|
78
|
-
applications: {
|
79
|
-
"1": "Test123",
|
80
|
-
"2": "sowasvonneu"
|
81
|
-
},
|
82
|
-
serviceDefinition: {
|
83
|
-
id: 1,
|
84
|
-
name: "Test123",
|
85
|
-
hostgroup_id: 1
|
86
|
-
},
|
87
|
-
};
|
88
|
-
export const editInstance = {
|
89
|
-
mode: "editInstance",
|
90
|
-
serviceDefinition: {
|
91
|
-
id: 1,
|
92
|
-
name: "Test123",
|
93
|
-
hostgroup_id: 1
|
94
|
-
},
|
95
|
-
parameters: [
|
96
|
-
{
|
97
|
-
id: 1,
|
98
|
-
name: "PuppetEnv",
|
99
|
-
description: "",
|
100
|
-
type: "puppetenv",
|
101
|
-
value: "2"
|
102
|
-
},
|
103
|
-
{
|
104
|
-
id: 2,
|
105
|
-
name: "PW",
|
106
|
-
description: "",
|
107
|
-
type: "password",
|
108
|
-
value: "rooot"
|
109
|
-
},
|
110
|
-
{
|
111
|
-
id: 3,
|
112
|
-
name: "Blub",
|
113
|
-
description: "",
|
114
|
-
type: "hostparam",
|
115
|
-
value: "awesome"
|
116
|
-
},
|
117
|
-
{
|
118
|
-
id: 4,
|
119
|
-
name: "111allo",
|
120
|
-
description: "",
|
121
|
-
type: "ip",
|
122
|
-
value: "1.1.1.1"
|
123
|
-
},
|
124
|
-
{
|
125
|
-
id: 5,
|
126
|
-
name: "1111aasdfasf",
|
127
|
-
description: "",
|
128
|
-
type: "hostname",
|
129
|
-
value: "dername"
|
130
|
-
},
|
131
|
-
{
|
132
|
-
id: 6,
|
133
|
-
name: "222nocheiner",
|
134
|
-
description: "",
|
135
|
-
type: "hostparam",
|
136
|
-
value: "adfasdf"
|
137
|
-
},
|
138
|
-
{
|
139
|
-
id: 7,
|
140
|
-
name: "aaaaa",
|
141
|
-
description: "aa",
|
142
|
-
type: "ptable",
|
143
|
-
value: "104"
|
144
|
-
},
|
145
|
-
{
|
146
|
-
id: 8,
|
147
|
-
name: "aaa",
|
148
|
-
description: "",
|
149
|
-
type: "hostparam",
|
150
|
-
value: "2134234"
|
151
|
-
}
|
152
|
-
]
|
153
|
-
};
|