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.
- checksums.yaml +4 -4
- 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
@@ -1,11 +1,5 @@
|
|
1
1
|
import Immutable from 'seamless-immutable';
|
2
2
|
|
3
|
-
import {
|
4
|
-
cloneDeep,
|
5
|
-
findIndex,
|
6
|
-
findLastIndex,
|
7
|
-
} from 'lodash';
|
8
|
-
|
9
3
|
import {
|
10
4
|
APPLICATION_INSTANCE_REPORT_INIT,
|
11
5
|
APPLICATION_INSTANCE_REPORT_SET_ACTIVE_HOST,
|
@@ -28,13 +22,13 @@ const applicationInstanceReport = (state = initialState, action) => {
|
|
28
22
|
}
|
29
23
|
case APPLICATION_INSTANCE_REPORT_SET_ACTIVE_HOST: {
|
30
24
|
return state.merge({
|
31
|
-
loading: true,
|
32
25
|
activeHostId: payload.activeHostId,
|
33
|
-
})
|
26
|
+
});
|
34
27
|
}
|
35
28
|
case APPLICATION_INSTANCE_REPORT_LOAD_REPORT_REQUEST: {
|
36
|
-
|
37
|
-
|
29
|
+
return state.merge({
|
30
|
+
loading: true,
|
31
|
+
});
|
38
32
|
}
|
39
33
|
case APPLICATION_INSTANCE_REPORT_LOAD_REPORT_SUCCESS: {
|
40
34
|
return state.merge({
|
@@ -42,11 +36,14 @@ const applicationInstanceReport = (state = initialState, action) => {
|
|
42
36
|
initialConfigureState: payload.initialConfigureState,
|
43
37
|
initialConfigureJobUrl: payload.initialConfigureJobUrl,
|
44
38
|
hosts: payload.hosts,
|
39
|
+
loading: false,
|
45
40
|
});
|
46
41
|
}
|
47
42
|
case APPLICATION_INSTANCE_REPORT_LOAD_REPORT_FAILURE: {
|
48
|
-
|
49
|
-
|
43
|
+
return state.merge({
|
44
|
+
error: payload.error,
|
45
|
+
loading: false,
|
46
|
+
});
|
50
47
|
}
|
51
48
|
default: {
|
52
49
|
return state;
|
@@ -1,8 +1,14 @@
|
|
1
|
-
const applicationInstanceReport = state =>
|
1
|
+
const applicationInstanceReport = state =>
|
2
|
+
state.foremanAcd.applicationInstanceReport;
|
2
3
|
|
3
4
|
export const selectHosts = state => applicationInstanceReport(state).hosts;
|
4
|
-
export const selectActiveHostId = state =>
|
5
|
-
|
6
|
-
export const
|
7
|
-
|
8
|
-
export const
|
5
|
+
export const selectActiveHostId = state =>
|
6
|
+
applicationInstanceReport(state).activeHostId;
|
7
|
+
export const selectDeploymentState = state =>
|
8
|
+
applicationInstanceReport(state).deploymentState;
|
9
|
+
export const selectInitialConfigureState = state =>
|
10
|
+
applicationInstanceReport(state).initialConfigureState;
|
11
|
+
export const selectInitialConfigureJobUrl = state =>
|
12
|
+
applicationInstanceReport(state).initialConfigureJobUrl;
|
13
|
+
export const selectShowInitialConfigureJob = state =>
|
14
|
+
applicationInstanceReport(state).showInitialConfigureJob;
|
@@ -1,9 +1,9 @@
|
|
1
|
-
export const
|
1
|
+
export const applicationInstanceReportData1 = {
|
2
2
|
name: false,
|
3
3
|
error: {
|
4
4
|
errorMsg: '',
|
5
5
|
status: '',
|
6
|
-
statusText: ''
|
6
|
+
statusText: '',
|
7
7
|
},
|
8
8
|
hosts: [
|
9
9
|
{
|
@@ -18,15 +18,16 @@ export const applicationInstanceReportData_1 = {
|
|
18
18
|
timestamp: '2021-03-12T09:52:10.190Z',
|
19
19
|
status: 'completed',
|
20
20
|
priority: 3,
|
21
|
-
created: 1615542728.8466988
|
21
|
+
created: 1615542728.8466988,
|
22
22
|
},
|
23
23
|
{
|
24
24
|
id: 'Query instance details for great-web-app-db-1.deploy3.dev.atix',
|
25
|
-
name:
|
25
|
+
name:
|
26
|
+
'Query instance details for great-web-app-db-1.deploy3.dev.atix',
|
26
27
|
timestamp: '2021-03-12T09:52:10.385Z',
|
27
28
|
status: 'completed',
|
28
29
|
priority: 5,
|
29
|
-
created: 1615542728.8474095
|
30
|
+
created: 1615542728.8474095,
|
30
31
|
},
|
31
32
|
{
|
32
33
|
id: 'dhcp_create_192.168.171.103',
|
@@ -34,55 +35,65 @@ export const applicationInstanceReportData_1 = {
|
|
34
35
|
timestamp: '2021-03-12T09:52:10.584Z',
|
35
36
|
status: 'completed',
|
36
37
|
priority: 10,
|
37
|
-
created: 1615542728.0081317
|
38
|
+
created: 1615542728.0081317,
|
38
39
|
},
|
39
40
|
{
|
40
41
|
id: 'Create IPv4 DNS record for great-web-app-db-1.deploy3.dev.atix',
|
41
|
-
name:
|
42
|
+
name:
|
43
|
+
'Create IPv4 DNS record for great-web-app-db-1.deploy3.dev.atix',
|
42
44
|
timestamp: '2021-03-12T09:52:10.679Z',
|
43
45
|
status: 'completed',
|
44
46
|
priority: 10,
|
45
|
-
created: 1615542728.04177
|
47
|
+
created: 1615542728.04177,
|
46
48
|
},
|
47
49
|
{
|
48
|
-
id:
|
49
|
-
|
50
|
+
id:
|
51
|
+
'Create Reverse IPv4 DNS record for great-web-app-db-1.deploy3.dev.atix',
|
52
|
+
name:
|
53
|
+
'Create Reverse IPv4 DNS record for great-web-app-db-1.deploy3.dev.atix',
|
50
54
|
timestamp: '2021-03-12T09:52:10.798Z',
|
51
55
|
status: 'completed',
|
52
56
|
priority: 10,
|
53
|
-
created: 1615542728.0424814
|
57
|
+
created: 1615542728.0424814,
|
54
58
|
},
|
55
59
|
{
|
56
|
-
id:
|
57
|
-
|
60
|
+
id:
|
61
|
+
'Deploy TFTP PXELinux config for great-web-app-db-1.deploy3.dev.atix',
|
62
|
+
name:
|
63
|
+
'Deploy TFTP PXELinux config for great-web-app-db-1.deploy3.dev.atix',
|
58
64
|
timestamp: '2021-03-12T09:52:11.178Z',
|
59
65
|
status: 'completed',
|
60
66
|
priority: 20,
|
61
|
-
created: 1615542728.0881674
|
67
|
+
created: 1615542728.0881674,
|
62
68
|
},
|
63
69
|
{
|
64
|
-
id:
|
65
|
-
|
70
|
+
id:
|
71
|
+
'Deploy TFTP PXEGrub2 config for great-web-app-db-1.deploy3.dev.atix',
|
72
|
+
name:
|
73
|
+
'Deploy TFTP PXEGrub2 config for great-web-app-db-1.deploy3.dev.atix',
|
66
74
|
timestamp: '2021-03-12T09:52:11.615Z',
|
67
75
|
status: 'completed',
|
68
76
|
priority: 20,
|
69
|
-
created: 1615542728.0883749
|
77
|
+
created: 1615542728.0883749,
|
70
78
|
},
|
71
79
|
{
|
72
|
-
id:
|
73
|
-
|
80
|
+
id:
|
81
|
+
'Deploy TFTP PXEGrub config for great-web-app-db-1.deploy3.dev.atix',
|
82
|
+
name:
|
83
|
+
'Deploy TFTP PXEGrub config for great-web-app-db-1.deploy3.dev.atix',
|
74
84
|
timestamp: '2021-03-12T09:52:11.642Z',
|
75
85
|
status: 'completed',
|
76
86
|
priority: 20,
|
77
|
-
created: 1615542728.088634
|
87
|
+
created: 1615542728.088634,
|
78
88
|
},
|
79
89
|
{
|
80
90
|
id: 'Deploy TFTP iPXE config for great-web-app-db-1.deploy3.dev.atix',
|
81
|
-
name:
|
91
|
+
name:
|
92
|
+
'Deploy TFTP iPXE config for great-web-app-db-1.deploy3.dev.atix',
|
82
93
|
timestamp: '2021-03-12T09:52:11.874Z',
|
83
94
|
status: 'completed',
|
84
95
|
priority: 20,
|
85
|
-
created: 1615542728.0888274
|
96
|
+
created: 1615542728.0888274,
|
86
97
|
},
|
87
98
|
{
|
88
99
|
id: 'Fetch TFTP boot files for great-web-app-db-1.deploy3.dev.atix',
|
@@ -90,7 +101,7 @@ export const applicationInstanceReportData_1 = {
|
|
90
101
|
timestamp: '2021-03-12T09:52:11.981Z',
|
91
102
|
status: 'completed',
|
92
103
|
priority: 25,
|
93
|
-
created: 1615542728.0894718
|
104
|
+
created: 1615542728.0894718,
|
94
105
|
},
|
95
106
|
{
|
96
107
|
id: 'Power up compute instance great-web-app-db-1.deploy3.dev.atix',
|
@@ -98,26 +109,30 @@ export const applicationInstanceReportData_1 = {
|
|
98
109
|
timestamp: '2021-03-12T09:52:12.950Z',
|
99
110
|
status: 'completed',
|
100
111
|
priority: 1000,
|
101
|
-
created: 1615542728.8482428
|
112
|
+
created: 1615542728.8482428,
|
102
113
|
},
|
103
114
|
{
|
104
|
-
id:
|
105
|
-
|
115
|
+
id:
|
116
|
+
'Cleanup PuppetCA certificates for great-web-app-db-1.deploy3.dev.atix',
|
117
|
+
name:
|
118
|
+
'Cleanup PuppetCA certificates for great-web-app-db-1.deploy3.dev.atix',
|
106
119
|
timestamp: '2021-03-12T09:52:13.390Z',
|
107
120
|
status: 'completed',
|
108
121
|
priority: 51,
|
109
|
-
created: 1615542728.8508224
|
122
|
+
created: 1615542728.8508224,
|
110
123
|
},
|
111
124
|
{
|
112
|
-
id:
|
113
|
-
|
125
|
+
id:
|
126
|
+
'Enable PuppetCA autosigning for great-web-app-db-1.deploy3.dev.atix',
|
127
|
+
name:
|
128
|
+
'Enable PuppetCA autosigning for great-web-app-db-1.deploy3.dev.atix',
|
114
129
|
timestamp: '2021-03-12T09:52:13.442Z',
|
115
130
|
status: 'completed',
|
116
131
|
priority: 55,
|
117
|
-
created: 1615542728.8514216
|
118
|
-
}
|
132
|
+
created: 1615542728.8514216,
|
133
|
+
},
|
119
134
|
],
|
120
|
-
powerStatusUrl: '/api/v2/hosts/great-web-app-db-1.deploy3.dev.atix/power'
|
135
|
+
powerStatusUrl: '/api/v2/hosts/great-web-app-db-1.deploy3.dev.atix/power',
|
121
136
|
},
|
122
137
|
{
|
123
138
|
id: 9,
|
@@ -131,15 +146,16 @@ export const applicationInstanceReportData_1 = {
|
|
131
146
|
timestamp: '2021-03-12T09:52:14.825Z',
|
132
147
|
status: 'completed',
|
133
148
|
priority: 3,
|
134
|
-
created: 1615542733.824889
|
149
|
+
created: 1615542733.824889,
|
135
150
|
},
|
136
151
|
{
|
137
152
|
id: 'Query instance details for great-web-app-web-1.deploy3.dev.atix',
|
138
|
-
name:
|
153
|
+
name:
|
154
|
+
'Query instance details for great-web-app-web-1.deploy3.dev.atix',
|
139
155
|
timestamp: '2021-03-12T09:52:15.007Z',
|
140
156
|
status: 'completed',
|
141
157
|
priority: 5,
|
142
|
-
created: 1615542733.825672
|
158
|
+
created: 1615542733.825672,
|
143
159
|
},
|
144
160
|
{
|
145
161
|
id: 'dhcp_create_192.168.171.104',
|
@@ -147,90 +163,108 @@ export const applicationInstanceReportData_1 = {
|
|
147
163
|
timestamp: '2021-03-12T09:52:15.181Z',
|
148
164
|
status: 'completed',
|
149
165
|
priority: 10,
|
150
|
-
created: 1615542733.5710943
|
166
|
+
created: 1615542733.5710943,
|
151
167
|
},
|
152
168
|
{
|
153
169
|
id: 'Create IPv4 DNS record for great-web-app-web-1.deploy3.dev.atix',
|
154
|
-
name:
|
170
|
+
name:
|
171
|
+
'Create IPv4 DNS record for great-web-app-web-1.deploy3.dev.atix',
|
155
172
|
timestamp: '2021-03-12T09:52:15.251Z',
|
156
173
|
status: 'completed',
|
157
174
|
priority: 10,
|
158
|
-
created: 1615542733.599793
|
175
|
+
created: 1615542733.599793,
|
159
176
|
},
|
160
177
|
{
|
161
|
-
id:
|
162
|
-
|
178
|
+
id:
|
179
|
+
'Create Reverse IPv4 DNS record for great-web-app-web-1.deploy3.dev.atix',
|
180
|
+
name:
|
181
|
+
'Create Reverse IPv4 DNS record for great-web-app-web-1.deploy3.dev.atix',
|
163
182
|
timestamp: '2021-03-12T09:52:15.328Z',
|
164
183
|
status: 'completed',
|
165
184
|
priority: 10,
|
166
|
-
created: 1615542733.600369
|
185
|
+
created: 1615542733.600369,
|
167
186
|
},
|
168
187
|
{
|
169
|
-
id:
|
170
|
-
|
188
|
+
id:
|
189
|
+
'Deploy TFTP PXELinux config for great-web-app-web-1.deploy3.dev.atix',
|
190
|
+
name:
|
191
|
+
'Deploy TFTP PXELinux config for great-web-app-web-1.deploy3.dev.atix',
|
171
192
|
timestamp: '2021-03-12T09:52:15.681Z',
|
172
193
|
status: 'completed',
|
173
194
|
priority: 20,
|
174
|
-
created: 1615542733.6356068
|
195
|
+
created: 1615542733.6356068,
|
175
196
|
},
|
176
197
|
{
|
177
|
-
id:
|
178
|
-
|
198
|
+
id:
|
199
|
+
'Deploy TFTP PXEGrub2 config for great-web-app-web-1.deploy3.dev.atix',
|
200
|
+
name:
|
201
|
+
'Deploy TFTP PXEGrub2 config for great-web-app-web-1.deploy3.dev.atix',
|
179
202
|
timestamp: '2021-03-12T09:52:16.152Z',
|
180
203
|
status: 'completed',
|
181
204
|
priority: 20,
|
182
|
-
created: 1615542733.635817
|
205
|
+
created: 1615542733.635817,
|
183
206
|
},
|
184
207
|
{
|
185
|
-
id:
|
186
|
-
|
208
|
+
id:
|
209
|
+
'Deploy TFTP PXEGrub config for great-web-app-web-1.deploy3.dev.atix',
|
210
|
+
name:
|
211
|
+
'Deploy TFTP PXEGrub config for great-web-app-web-1.deploy3.dev.atix',
|
187
212
|
timestamp: '2021-03-12T09:52:16.183Z',
|
188
213
|
status: 'completed',
|
189
214
|
priority: 20,
|
190
|
-
created: 1615542733.6360064
|
215
|
+
created: 1615542733.6360064,
|
191
216
|
},
|
192
217
|
{
|
193
|
-
id:
|
194
|
-
|
218
|
+
id:
|
219
|
+
'Deploy TFTP iPXE config for great-web-app-web-1.deploy3.dev.atix',
|
220
|
+
name:
|
221
|
+
'Deploy TFTP iPXE config for great-web-app-web-1.deploy3.dev.atix',
|
195
222
|
timestamp: '2021-03-12T09:52:16.417Z',
|
196
223
|
status: 'completed',
|
197
224
|
priority: 20,
|
198
|
-
created: 1615542733.6362345
|
225
|
+
created: 1615542733.6362345,
|
199
226
|
},
|
200
227
|
{
|
201
228
|
id: 'Fetch TFTP boot files for great-web-app-web-1.deploy3.dev.atix',
|
202
|
-
name:
|
229
|
+
name:
|
230
|
+
'Fetch TFTP boot files for great-web-app-web-1.deploy3.dev.atix',
|
203
231
|
timestamp: '2021-03-12T09:52:16.523Z',
|
204
232
|
status: 'completed',
|
205
233
|
priority: 25,
|
206
|
-
created: 1615542733.6365006
|
234
|
+
created: 1615542733.6365006,
|
207
235
|
},
|
208
236
|
{
|
209
237
|
id: 'Power up compute instance great-web-app-web-1.deploy3.dev.atix',
|
210
|
-
name:
|
238
|
+
name:
|
239
|
+
'Power up compute instance great-web-app-web-1.deploy3.dev.atix',
|
211
240
|
timestamp: '2021-03-12T09:52:17.533Z',
|
212
241
|
status: 'completed',
|
213
242
|
priority: 1000,
|
214
|
-
created: 1615542733.8267431
|
243
|
+
created: 1615542733.8267431,
|
215
244
|
},
|
216
245
|
{
|
217
|
-
id:
|
218
|
-
|
246
|
+
id:
|
247
|
+
'Cleanup PuppetCA certificates for great-web-app-web-1.deploy3.dev.atix',
|
248
|
+
name:
|
249
|
+
'Cleanup PuppetCA certificates for great-web-app-web-1.deploy3.dev.atix',
|
219
250
|
timestamp: '2021-03-12T09:52:17.944Z',
|
220
251
|
status: 'completed',
|
221
252
|
priority: 51,
|
222
|
-
created: 1615542733.8292165
|
253
|
+
created: 1615542733.8292165,
|
223
254
|
},
|
224
255
|
{
|
225
|
-
id:
|
226
|
-
|
256
|
+
id:
|
257
|
+
'Enable PuppetCA autosigning for great-web-app-web-1.deploy3.dev.atix',
|
258
|
+
name:
|
259
|
+
'Enable PuppetCA autosigning for great-web-app-web-1.deploy3.dev.atix',
|
227
260
|
timestamp: '2021-03-12T09:52:17.995Z',
|
228
261
|
status: 'completed',
|
229
262
|
priority: 55,
|
230
|
-
created: 1615542733.8294067
|
231
|
-
}
|
263
|
+
created: 1615542733.8294067,
|
264
|
+
},
|
232
265
|
],
|
233
|
-
powerStatusUrl:
|
266
|
+
powerStatusUrl:
|
267
|
+
'/api/v2/hosts/great-web-app-web-1.deploy3.dev.atix/power',
|
234
268
|
},
|
235
269
|
{
|
236
270
|
id: 10,
|
@@ -244,15 +278,16 @@ export const applicationInstanceReportData_1 = {
|
|
244
278
|
timestamp: '2021-03-12T09:52:19.221Z',
|
245
279
|
status: 'completed',
|
246
280
|
priority: 3,
|
247
|
-
created: 1615542738.3446305
|
281
|
+
created: 1615542738.3446305,
|
248
282
|
},
|
249
283
|
{
|
250
284
|
id: 'Query instance details for great-web-app-web-2.deploy3.dev.atix',
|
251
|
-
name:
|
285
|
+
name:
|
286
|
+
'Query instance details for great-web-app-web-2.deploy3.dev.atix',
|
252
287
|
timestamp: '2021-03-12T09:52:19.419Z',
|
253
288
|
status: 'completed',
|
254
289
|
priority: 5,
|
255
|
-
created: 1615542738.3449144
|
290
|
+
created: 1615542738.3449144,
|
256
291
|
},
|
257
292
|
{
|
258
293
|
id: 'dhcp_create_192.168.171.105',
|
@@ -260,90 +295,108 @@ export const applicationInstanceReportData_1 = {
|
|
260
295
|
timestamp: '2021-03-12T09:52:19.668Z',
|
261
296
|
status: 'completed',
|
262
297
|
priority: 10,
|
263
|
-
created: 1615542738.1321318
|
298
|
+
created: 1615542738.1321318,
|
264
299
|
},
|
265
300
|
{
|
266
301
|
id: 'Create IPv4 DNS record for great-web-app-web-2.deploy3.dev.atix',
|
267
|
-
name:
|
302
|
+
name:
|
303
|
+
'Create IPv4 DNS record for great-web-app-web-2.deploy3.dev.atix',
|
268
304
|
timestamp: '2021-03-12T09:52:19.749Z',
|
269
305
|
status: 'completed',
|
270
306
|
priority: 10,
|
271
|
-
created: 1615542738.1576574
|
307
|
+
created: 1615542738.1576574,
|
272
308
|
},
|
273
309
|
{
|
274
|
-
id:
|
275
|
-
|
310
|
+
id:
|
311
|
+
'Create Reverse IPv4 DNS record for great-web-app-web-2.deploy3.dev.atix',
|
312
|
+
name:
|
313
|
+
'Create Reverse IPv4 DNS record for great-web-app-web-2.deploy3.dev.atix',
|
276
314
|
timestamp: '2021-03-12T09:52:19.859Z',
|
277
315
|
status: 'completed',
|
278
316
|
priority: 10,
|
279
|
-
created: 1615542738.1582346
|
317
|
+
created: 1615542738.1582346,
|
280
318
|
},
|
281
319
|
{
|
282
|
-
id:
|
283
|
-
|
320
|
+
id:
|
321
|
+
'Deploy TFTP PXELinux config for great-web-app-web-2.deploy3.dev.atix',
|
322
|
+
name:
|
323
|
+
'Deploy TFTP PXELinux config for great-web-app-web-2.deploy3.dev.atix',
|
284
324
|
timestamp: '2021-03-12T09:52:20.221Z',
|
285
325
|
status: 'completed',
|
286
326
|
priority: 20,
|
287
|
-
created: 1615542738.1885784
|
327
|
+
created: 1615542738.1885784,
|
288
328
|
},
|
289
329
|
{
|
290
|
-
id:
|
291
|
-
|
330
|
+
id:
|
331
|
+
'Deploy TFTP PXEGrub2 config for great-web-app-web-2.deploy3.dev.atix',
|
332
|
+
name:
|
333
|
+
'Deploy TFTP PXEGrub2 config for great-web-app-web-2.deploy3.dev.atix',
|
292
334
|
timestamp: '2021-03-12T09:52:20.604Z',
|
293
335
|
status: 'completed',
|
294
336
|
priority: 20,
|
295
|
-
created: 1615542738.1888642
|
337
|
+
created: 1615542738.1888642,
|
296
338
|
},
|
297
339
|
{
|
298
|
-
id:
|
299
|
-
|
340
|
+
id:
|
341
|
+
'Deploy TFTP PXEGrub config for great-web-app-web-2.deploy3.dev.atix',
|
342
|
+
name:
|
343
|
+
'Deploy TFTP PXEGrub config for great-web-app-web-2.deploy3.dev.atix',
|
300
344
|
timestamp: '2021-03-12T09:52:20.636Z',
|
301
345
|
status: 'completed',
|
302
346
|
priority: 20,
|
303
|
-
created: 1615542738.1890883
|
347
|
+
created: 1615542738.1890883,
|
304
348
|
},
|
305
349
|
{
|
306
|
-
id:
|
307
|
-
|
350
|
+
id:
|
351
|
+
'Deploy TFTP iPXE config for great-web-app-web-2.deploy3.dev.atix',
|
352
|
+
name:
|
353
|
+
'Deploy TFTP iPXE config for great-web-app-web-2.deploy3.dev.atix',
|
308
354
|
timestamp: '2021-03-12T09:52:20.895Z',
|
309
355
|
status: 'completed',
|
310
356
|
priority: 20,
|
311
|
-
created: 1615542738.1892834
|
357
|
+
created: 1615542738.1892834,
|
312
358
|
},
|
313
359
|
{
|
314
360
|
id: 'Fetch TFTP boot files for great-web-app-web-2.deploy3.dev.atix',
|
315
|
-
name:
|
361
|
+
name:
|
362
|
+
'Fetch TFTP boot files for great-web-app-web-2.deploy3.dev.atix',
|
316
363
|
timestamp: '2021-03-12T09:52:20.992Z',
|
317
364
|
status: 'completed',
|
318
365
|
priority: 25,
|
319
|
-
created: 1615542738.1898031
|
366
|
+
created: 1615542738.1898031,
|
320
367
|
},
|
321
368
|
{
|
322
369
|
id: 'Power up compute instance great-web-app-web-2.deploy3.dev.atix',
|
323
|
-
name:
|
370
|
+
name:
|
371
|
+
'Power up compute instance great-web-app-web-2.deploy3.dev.atix',
|
324
372
|
timestamp: '2021-03-12T09:52:21.864Z',
|
325
373
|
status: 'completed',
|
326
374
|
priority: 1000,
|
327
|
-
created: 1615542738.3453662
|
375
|
+
created: 1615542738.3453662,
|
328
376
|
},
|
329
377
|
{
|
330
|
-
id:
|
331
|
-
|
378
|
+
id:
|
379
|
+
'Cleanup PuppetCA certificates for great-web-app-web-2.deploy3.dev.atix',
|
380
|
+
name:
|
381
|
+
'Cleanup PuppetCA certificates for great-web-app-web-2.deploy3.dev.atix',
|
332
382
|
timestamp: '2021-03-12T09:52:22.316Z',
|
333
383
|
status: 'completed',
|
334
384
|
priority: 51,
|
335
|
-
created: 1615542738.34748
|
385
|
+
created: 1615542738.34748,
|
336
386
|
},
|
337
387
|
{
|
338
|
-
id:
|
339
|
-
|
388
|
+
id:
|
389
|
+
'Enable PuppetCA autosigning for great-web-app-web-2.deploy3.dev.atix',
|
390
|
+
name:
|
391
|
+
'Enable PuppetCA autosigning for great-web-app-web-2.deploy3.dev.atix',
|
340
392
|
timestamp: '2021-03-12T09:52:22.368Z',
|
341
393
|
status: 'completed',
|
342
394
|
priority: 55,
|
343
|
-
created: 1615542738.3476808
|
344
|
-
}
|
395
|
+
created: 1615542738.3476808,
|
396
|
+
},
|
345
397
|
],
|
346
|
-
powerStatusUrl:
|
347
|
-
|
348
|
-
|
349
|
-
|
398
|
+
powerStatusUrl:
|
399
|
+
'/api/v2/hosts/great-web-app-web-2.deploy3.dev.atix/power',
|
400
|
+
},
|
401
|
+
],
|
402
|
+
};
|
@@ -1,20 +1,13 @@
|
|
1
1
|
import Immutable from 'seamless-immutable';
|
2
|
-
import {
|
3
|
-
cloneDeep,
|
4
|
-
findIndex,
|
5
|
-
findLastIndex,
|
6
|
-
} from 'lodash';
|
7
2
|
|
8
|
-
import {
|
9
|
-
applicationInstanceReportData_1,
|
10
|
-
} from '../__fixtures__/applicationInstanceReportData_1.fixtures';
|
3
|
+
import { applicationInstanceReportData1 } from '../__fixtures__/applicationInstanceReportData1.fixtures';
|
11
4
|
|
12
|
-
export const successState = Immutable(
|
5
|
+
export const successState = Immutable(applicationInstanceReportData1);
|
13
6
|
|
14
7
|
const ACTIVE_HOST_ID = 2;
|
15
8
|
|
16
9
|
// Payload Data
|
17
|
-
export const initApplicationInstanceReportPayload =
|
10
|
+
export const initApplicationInstanceReportPayload = applicationInstanceReportData1;
|
18
11
|
export const setActiveHostPayload = {
|
19
12
|
activeHostId: ACTIVE_HOST_ID,
|
20
13
|
};
|
data/webpack/components/ApplicationInstanceReport/__tests__/ApplicationInstanceReport.test.js
CHANGED
@@ -6,40 +6,46 @@ const noop = () => {};
|
|
6
6
|
|
7
7
|
const hostData = [
|
8
8
|
{
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
9
|
+
id: 8,
|
10
|
+
name: 'great-web-app-db-1',
|
11
|
+
build: false,
|
12
|
+
hostUrl: '/hosts/great-web-app-db-1.deploy3.dev.atix',
|
13
|
+
progress_report: [],
|
14
|
+
powerStatusUrl: '/api/v2/hosts/great-web-app-db-1.deploy3.dev.atix/power',
|
15
15
|
},
|
16
16
|
{
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
17
|
+
id: 9,
|
18
|
+
name: 'great-web-app-web-1',
|
19
|
+
build: false,
|
20
|
+
hostUrl: '/hosts/great-web-app-web-1.deploy3.dev.atix',
|
21
|
+
progress_report: [],
|
22
|
+
powerStatusUrl: '/api/v2/hosts/great-web-app-web-1.deploy3.dev.atix/power',
|
23
23
|
},
|
24
24
|
{
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
}
|
25
|
+
id: 10,
|
26
|
+
name: 'great-web-app-web-2',
|
27
|
+
build: false,
|
28
|
+
hostUrl: '/hosts/great-web-app-web-2.deploy3.dev.atix',
|
29
|
+
progress_report: [],
|
30
|
+
powerStatusUrl: '/api/v2/hosts/great-web-app-web-2.deploy3.dev.atix/power',
|
31
|
+
},
|
32
32
|
];
|
33
33
|
|
34
34
|
const fixtures = {
|
35
35
|
'should render application instance report': {
|
36
36
|
data: {
|
37
|
-
appInstanceName:
|
38
|
-
deployTaskUrl:
|
39
|
-
configureJobUrl:
|
37
|
+
appInstanceName: 'instance name',
|
38
|
+
deployTaskUrl: 'deploy/task/url',
|
39
|
+
configureJobUrl: 'configure/job/url',
|
40
40
|
hosts: hostData,
|
41
|
+
deploymentState: 'finished',
|
42
|
+
appInstanceId: 1,
|
43
|
+
reportDataUrl: '/acd/ui_acd_report_data/__id__',
|
44
|
+
initialConfigureState: 'unconfigured',
|
41
45
|
},
|
42
46
|
initApplicationInstanceReport: noop,
|
47
|
+
loadReportData: noop,
|
48
|
+
setActiveHost: noop,
|
43
49
|
},
|
44
50
|
};
|
45
51
|
|