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,51 +1,43 @@
|
|
1
|
-
export const
|
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
|
-
|
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
|
-
|
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(
|
6
|
+
export const successState = Immutable(applicationDefinitionImportConfData1);
|
13
7
|
|
14
8
|
const EDIT_ROW_ID = 2;
|
15
9
|
|
16
|
-
const editClone =
|
17
|
-
const editIndex = findIndex(editClone.ansiblePlaybookServices, {
|
18
|
-
|
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 =
|
20
|
+
export const initApplicationDefinitionImportPayload = applicationDefinitionImportConfData1;
|
23
21
|
export const changeEditServicePayload = {
|
24
|
-
value:
|
25
|
-
property:
|
22
|
+
value: 'helloworld',
|
23
|
+
property: 'name',
|
26
24
|
rowData: {
|
27
25
|
id: EDIT_ROW_ID,
|
28
|
-
}
|
26
|
+
},
|
29
27
|
};
|
data/webpack/components/ApplicationDefinitionImport/__tests__/ApplicationDefinitionImport.test.js
CHANGED
@@ -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
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
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
|
21
|
-
selectEditMode(stateFactory(
|
22
|
-
'should return services from
|
23
|
-
selectAnsiblePlaybookServices(
|
24
|
-
|
25
|
-
|
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
|
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
|
48
|
+
exports[`ApplicationDefinitionImportSelectors should return editMode from applicationDefinitionImportConfData1 fixtures 1`] = `undefined`;
|
49
49
|
|
50
|
-
exports[`ApplicationDefinitionImportSelectors should return services from
|
50
|
+
exports[`ApplicationDefinitionImportSelectors should return services from applicationDefinitionImportConfData1 fixtures 1`] = `
|
51
51
|
Array [
|
52
52
|
Object {
|
53
53
|
"ansibleGroup": "webservers",
|