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.
- checksums.yaml +4 -4
- data/README.md +5 -19
- data/app/controllers/ui_acd_controller.rb +1 -1
- data/db/migrate/20210503122809_add_git_url_to_ansible_playbooks.rb +1 -1
- data/lib/foreman_acd/engine.rb +4 -10
- data/lib/foreman_acd/plugin.rb +1 -1
- data/lib/foreman_acd/version.rb +1 -1
- data/package.json +5 -3
- data/test/controllers/ui_acd_controller_test.rb +1 -1
- 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 +16 -14
- 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
@@ -2,14 +2,14 @@ import React from 'react';
|
|
2
2
|
import PropTypes from 'prop-types';
|
3
3
|
import TextInput from 'foremanReact/components/common/forms/TextInput';
|
4
4
|
|
5
|
-
const ExtTextInput= ({
|
5
|
+
const ExtTextInput = ({
|
6
6
|
hidden,
|
7
7
|
editable,
|
8
8
|
viewText,
|
9
9
|
label,
|
10
10
|
onChange,
|
11
11
|
additionalData,
|
12
|
-
}) =>{
|
12
|
+
}) => {
|
13
13
|
if (hidden) {
|
14
14
|
return null;
|
15
15
|
}
|
@@ -17,17 +17,17 @@ const ExtTextInput= ({
|
|
17
17
|
if (!editable) {
|
18
18
|
return (
|
19
19
|
<div className="form-group">
|
20
|
-
|
21
|
-
|
20
|
+
<label className="col-md-2 control-label">{label}</label>
|
21
|
+
<div className="col-md-4">{viewText}</div>
|
22
22
|
</div>
|
23
23
|
);
|
24
24
|
}
|
25
25
|
|
26
26
|
return (
|
27
27
|
<TextInput
|
28
|
-
|
29
|
-
|
30
|
-
|
28
|
+
label={label}
|
29
|
+
value={viewText}
|
30
|
+
onChange={e => onChange(e.target.value, additionalData)}
|
31
31
|
/>
|
32
32
|
);
|
33
33
|
};
|
@@ -36,8 +36,13 @@ ExtTextInput.propTypes = {
|
|
36
36
|
hidden: PropTypes.bool.isRequired,
|
37
37
|
editable: PropTypes.bool.isRequired,
|
38
38
|
viewText: PropTypes.string,
|
39
|
+
label: PropTypes.string.isRequired,
|
39
40
|
onChange: PropTypes.func.isRequired,
|
40
41
|
additionalData: PropTypes.object,
|
41
42
|
};
|
43
|
+
ExtTextInput.defaultProps = {
|
44
|
+
viewText: '',
|
45
|
+
additionalData: {},
|
46
|
+
};
|
42
47
|
|
43
48
|
export default ExtTextInput;
|
@@ -1,9 +1,6 @@
|
|
1
1
|
import React from 'react';
|
2
2
|
import PropTypes from 'prop-types';
|
3
|
-
import {
|
4
|
-
Icon,
|
5
|
-
Button,
|
6
|
-
} from 'patternfly-react';
|
3
|
+
import { Icon, Button } from 'patternfly-react';
|
7
4
|
import { translate as __ } from 'foremanReact/common/I18n';
|
8
5
|
|
9
6
|
const LockTableEntry = ({
|
@@ -11,7 +8,7 @@ const LockTableEntry = ({
|
|
11
8
|
disabled,
|
12
9
|
onLockTableEntry,
|
13
10
|
additionalData,
|
14
|
-
}) =>{
|
11
|
+
}) => {
|
15
12
|
if (hidden) {
|
16
13
|
return null;
|
17
14
|
}
|
@@ -42,7 +39,7 @@ const LockTableEntry = ({
|
|
42
39
|
<Button
|
43
40
|
bsStyle="default"
|
44
41
|
disabled={disabled}
|
45
|
-
onClick={() => onLockTableEntry(additionalData)
|
42
|
+
onClick={() => onLockTableEntry(additionalData)}
|
46
43
|
>
|
47
44
|
<Icon type="pf" name={lockButton} title={__(lockButtonTitle)} />
|
48
45
|
</Button>
|
@@ -56,5 +53,8 @@ LockTableEntry.propTypes = {
|
|
56
53
|
onLockTableEntry: PropTypes.func.isRequired,
|
57
54
|
additionalData: PropTypes.object.isRequired,
|
58
55
|
};
|
56
|
+
LockTableEntry.defaultProps = {
|
57
|
+
hidden: false,
|
58
|
+
};
|
59
59
|
|
60
60
|
export default LockTableEntry;
|
@@ -1,27 +1,17 @@
|
|
1
1
|
import React from 'react';
|
2
2
|
import PropTypes from 'prop-types';
|
3
3
|
|
4
|
-
const RailsData = ({
|
5
|
-
view
|
6
|
-
parameter
|
7
|
-
value,
|
8
|
-
}) => {
|
9
|
-
const id = "foreman_acd_"+ view +"_"+ parameter;
|
10
|
-
const name = "foreman_acd_"+ view +"["+ parameter +"]";
|
4
|
+
const RailsData = ({ view, parameter, value }) => {
|
5
|
+
const id = `foreman_acd_${view}_${parameter}`;
|
6
|
+
const name = `foreman_acd_${view}[${parameter}]`;
|
11
7
|
|
12
|
-
return
|
13
|
-
|
14
|
-
id={id}
|
15
|
-
name={name}
|
16
|
-
value={value}
|
17
|
-
type="hidden"
|
18
|
-
/>
|
19
|
-
);
|
20
|
-
}
|
8
|
+
return <input id={id} name={name} value={value} type="hidden" />;
|
9
|
+
};
|
21
10
|
|
22
11
|
RailsData.propTypes = {
|
23
12
|
view: PropTypes.string.isRequired,
|
24
13
|
parameter: PropTypes.string.isRequired,
|
14
|
+
value: PropTypes.string.isRequired,
|
25
15
|
};
|
26
16
|
|
27
17
|
export default RailsData;
|
@@ -11,7 +11,7 @@ const fixtures = {
|
|
11
11
|
viewText: '',
|
12
12
|
selectValue: '1',
|
13
13
|
onChange: noop,
|
14
|
-
options: { first: 'first', second: 'second'},
|
14
|
+
options: { first: 'first', second: 'second' },
|
15
15
|
additionalData: { moreData: 'moooore' },
|
16
16
|
},
|
17
17
|
'should render hidden selection field': {
|
@@ -29,7 +29,7 @@ const fixtures = {
|
|
29
29
|
viewText: 'Awesome Text',
|
30
30
|
selectValue: '0',
|
31
31
|
onChange: noop,
|
32
|
-
options: { first: 'first', second: 'second'},
|
32
|
+
options: { first: 'first', second: 'second' },
|
33
33
|
additionalData: {},
|
34
34
|
},
|
35
35
|
};
|
@@ -0,0 +1,11 @@
|
|
1
|
+
// runs before each test to make sure console.error output will
|
2
|
+
// fail a test (i.e. default PropType missing). Check the error
|
3
|
+
// output and traceback for actual error.
|
4
|
+
global.console.error = (error, stack) => {
|
5
|
+
/* eslint-disable-next-line no-console */
|
6
|
+
if (stack) console.log(stack); // Prints out original stack trace
|
7
|
+
throw new Error(error);
|
8
|
+
};
|
9
|
+
|
10
|
+
// Increase jest timeout as some tests using multiple http mocks can time out on CI systems.
|
11
|
+
jest.setTimeout(10000);
|
data/webpack/helper.js
CHANGED
@@ -1,21 +1,11 @@
|
|
1
1
|
import React from 'react';
|
2
|
-
import {
|
3
|
-
Table,
|
4
|
-
} from 'patternfly-react';
|
2
|
+
import { Table } from 'patternfly-react';
|
5
3
|
|
6
4
|
// Some small helper methods
|
7
5
|
|
8
6
|
function arrayToObject(arr, id, value) {
|
9
|
-
|
10
|
-
for (
|
11
|
-
rv[arr[i][id]] = arr[i][value];
|
12
|
-
return rv;
|
13
|
-
}
|
14
|
-
|
15
|
-
function arrayToObjectObj(arr, id) {
|
16
|
-
var rv = {};
|
17
|
-
for (var i = 0; i < arr.length; ++i)
|
18
|
-
rv[arr[i][id]] = arr[i];
|
7
|
+
const rv = {};
|
8
|
+
for (let i = 0; i < arr.length; ++i) rv[arr[i][id]] = arr[i][value];
|
19
9
|
return rv;
|
20
10
|
}
|
21
11
|
|
@@ -26,20 +16,20 @@ function shortHostname(fqdn) {
|
|
26
16
|
function EasyHeaderFormatter(value, { column }) {
|
27
17
|
return (
|
28
18
|
<Table.Heading aria-label={column.header.label} {...column.header.props}>
|
29
|
-
|
19
|
+
{value}
|
30
20
|
</Table.Heading>
|
31
21
|
);
|
32
22
|
}
|
33
23
|
|
34
24
|
function supportedPluginsToHiddenParameterTypes(supportedPlugins) {
|
35
|
-
|
25
|
+
const hiddenParameterTypes = [];
|
36
26
|
|
37
|
-
if (supportedPlugins
|
38
|
-
hiddenParameterTypes.push(
|
27
|
+
if (supportedPlugins.puppet === false) {
|
28
|
+
hiddenParameterTypes.push('puppetenv');
|
39
29
|
}
|
40
30
|
|
41
|
-
if (supportedPlugins
|
42
|
-
hiddenParameterTypes.push(
|
31
|
+
if (supportedPlugins.katello === false) {
|
32
|
+
hiddenParameterTypes.push('lifecycleenv');
|
43
33
|
}
|
44
34
|
|
45
35
|
return hiddenParameterTypes;
|
@@ -47,8 +37,7 @@ function supportedPluginsToHiddenParameterTypes(supportedPlugins) {
|
|
47
37
|
|
48
38
|
export {
|
49
39
|
arrayToObject,
|
50
|
-
arrayToObjectObj,
|
51
40
|
shortHostname,
|
52
41
|
EasyHeaderFormatter,
|
53
|
-
supportedPluginsToHiddenParameterTypes
|
42
|
+
supportedPluginsToHiddenParameterTypes,
|
54
43
|
};
|
data/webpack/helper.test.js
CHANGED
@@ -1,56 +1,44 @@
|
|
1
1
|
import {
|
2
2
|
arrayToObject,
|
3
|
-
arrayToObjectObj,
|
4
3
|
EasyHeaderFormatter,
|
5
4
|
supportedPluginsToHiddenParameterTypes,
|
6
5
|
} from './helper';
|
7
6
|
|
8
7
|
describe('helper', () => {
|
9
|
-
const testArray = []
|
8
|
+
const testArray = [];
|
10
9
|
testArray[0] = { id: 'i1', value: 'v1' };
|
11
10
|
testArray[1] = { id: 'i2', value: 'v2' };
|
12
11
|
testArray[2] = { id: 'i3', value: 'v3' };
|
13
12
|
|
14
|
-
it('creates
|
15
|
-
expect(arrayToObject(testArray, 'id', 'value')).toEqual(
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
}
|
21
|
-
);
|
22
|
-
});
|
23
|
-
|
24
|
-
it('creates a object from an array', () => {
|
25
|
-
expect(arrayToObjectObj(testArray, 'id')).toEqual(
|
26
|
-
{
|
27
|
-
i1: { id: 'i1', value: 'v1' },
|
28
|
-
i2: { id: 'i2', value: 'v2' },
|
29
|
-
i3: { id: 'i3', value: 'v3' },
|
30
|
-
}
|
31
|
-
);
|
13
|
+
it('creates an object from an array and select value', () => {
|
14
|
+
expect(arrayToObject(testArray, 'id', 'value')).toEqual({
|
15
|
+
i1: 'v1',
|
16
|
+
i2: 'v2',
|
17
|
+
i3: 'v3',
|
18
|
+
});
|
32
19
|
});
|
33
20
|
|
34
21
|
it('formats a nice, easy header', () => {
|
35
|
-
expect(
|
22
|
+
expect(
|
23
|
+
EasyHeaderFormatter('MyValue', {
|
24
|
+
column: { header: { label: 'TheLabel', props: { p1: '1' } } },
|
25
|
+
})
|
26
|
+
).toMatchSnapshot();
|
36
27
|
});
|
37
28
|
|
38
29
|
it('creates hidden parameter definition by supported plugins 1', () => {
|
39
|
-
expect(supportedPluginsToHiddenParameterTypes({ puppet: false})).toEqual(
|
40
|
-
|
41
|
-
);
|
30
|
+
expect(supportedPluginsToHiddenParameterTypes({ puppet: false })).toEqual([
|
31
|
+
'puppetenv',
|
32
|
+
]);
|
42
33
|
});
|
43
34
|
|
44
35
|
it('creates hidden parameter definition by supported plugins 2', () => {
|
45
|
-
expect(supportedPluginsToHiddenParameterTypes({ puppet: true})).toEqual(
|
36
|
+
expect(supportedPluginsToHiddenParameterTypes({ puppet: true })).toEqual(
|
46
37
|
[]
|
47
38
|
);
|
48
39
|
});
|
49
40
|
|
50
41
|
it('creates hidden parameter definition by supported plugins 3', () => {
|
51
|
-
expect(supportedPluginsToHiddenParameterTypes({})).toEqual(
|
52
|
-
[]
|
53
|
-
);
|
42
|
+
expect(supportedPluginsToHiddenParameterTypes({})).toEqual([]);
|
54
43
|
});
|
55
44
|
});
|
56
|
-
|
data/webpack/index.js
CHANGED
@@ -12,10 +12,28 @@ import reducer from './reducer';
|
|
12
12
|
|
13
13
|
injectReducer('foremanAcd', reducer);
|
14
14
|
|
15
|
-
componentRegistry.register({
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
componentRegistry.register({ name: '
|
20
|
-
componentRegistry.register({
|
21
|
-
|
15
|
+
componentRegistry.register({
|
16
|
+
name: 'ParameterSelection',
|
17
|
+
type: ParameterSelection,
|
18
|
+
});
|
19
|
+
componentRegistry.register({ name: 'SyncGitRepo', type: SyncGitRepo });
|
20
|
+
componentRegistry.register({
|
21
|
+
name: 'ApplicationDefinition',
|
22
|
+
type: ApplicationDefinition,
|
23
|
+
});
|
24
|
+
componentRegistry.register({
|
25
|
+
name: 'ApplicationDefinitionImport',
|
26
|
+
type: ApplicationDefinitionImport,
|
27
|
+
});
|
28
|
+
componentRegistry.register({
|
29
|
+
name: 'ApplicationInstance',
|
30
|
+
type: ApplicationInstance,
|
31
|
+
});
|
32
|
+
componentRegistry.register({
|
33
|
+
name: 'ApplicationInstanceReport',
|
34
|
+
type: ApplicationInstanceReport,
|
35
|
+
});
|
36
|
+
componentRegistry.register({
|
37
|
+
name: 'ExistingHostSelection',
|
38
|
+
type: ExistingHostSelection,
|
39
|
+
});
|