foreman_acd 0.6.0 → 0.7.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/controllers/foreman_acd/ansible_playbooks_controller.rb +75 -0
- data/app/controllers/foreman_acd/app_instances_controller.rb +19 -2
- data/app/controllers/foreman_acd/concerns/ansible_playbook_parameters.rb +1 -1
- data/app/controllers/foreman_acd/remote_execution_controller.rb +37 -21
- data/app/lib/actions/foreman_acd/deploy_all_hosts.rb +12 -7
- data/app/lib/actions/foreman_acd/run_configurator.rb +10 -7
- data/app/models/concerns/foreman_acd/host_managed_extensions.rb +2 -2
- data/app/models/foreman_acd/acd_provider.rb +7 -1
- data/app/models/foreman_acd/ansible_playbook.rb +2 -1
- data/app/models/foreman_acd/app_instance.rb +1 -1
- data/app/services/foreman_acd/acd_proxy_proxy_selector.rb +17 -0
- data/app/services/foreman_acd/app_configurator.rb +59 -15
- data/app/services/foreman_acd/app_deployer.rb +8 -2
- data/app/services/foreman_acd/inventory_creator.rb +14 -0
- data/app/views/foreman_acd/ansible_playbooks/_form.html.erb +41 -7
- data/app/views/foreman_acd/app_definitions/_form.html.erb +1 -1
- data/app/views/foreman_acd/app_instances/_form.html.erb +1 -1
- data/app/views/foreman_acd/app_instances/index.html.erb +5 -3
- data/app/views/foreman_acd/app_instances/report.html.erb +1 -1
- data/app/views/templates/job/run_acd_ansible_playbook.erb +1 -1
- data/config/routes.rb +3 -0
- data/db/migrate/20210316151145_add_git_commit_to_ansible_playbooks.rb +8 -0
- data/db/migrate/20210503122809_add_git_url_to_ansible_playbooks.rb +8 -0
- data/db/seeds.d/75-job_templates.rb +1 -1
- data/lib/foreman_acd.rb +12 -0
- data/lib/foreman_acd/engine.rb +26 -4
- data/lib/foreman_acd/plugin.rb +0 -9
- data/lib/foreman_acd/version.rb +1 -1
- data/lib/tasks/foreman_acd_tasks.rake +0 -12
- data/package.json +8 -8
- data/test/controllers/ansible_playbooks_controller_test.rb +1 -1
- data/test/controllers/app_instances_controller_test.rb +8 -3
- data/test/controllers/ui_acd_controller_test.rb +22 -6
- data/test/factories/foreman_acd_factories.rb +18 -4
- data/test/models/acd_provider_test.rb +37 -0
- data/test/models/ansible_playbook_test.rb +11 -0
- data/test/models/app_definition_test.rb +1 -1
- data/test/models/app_instance_test.rb +2 -0
- data/test/models/concerns/host_extensions_test.rb +26 -0
- data/test/models/foreman_host_test.rb +12 -0
- data/webpack/__mocks__/foremanReact/API.js +2 -0
- data/webpack/__mocks__/foremanReact/common/I18n.js +3 -0
- data/webpack/__mocks__/foremanReact/common/helpers.js +2 -0
- data/webpack/__mocks__/foremanReact/components/ForemanModal.js +7 -0
- data/webpack/__mocks__/foremanReact/components/common/forms/CommonForm.js +2 -0
- data/webpack/__mocks__/foremanReact/components/common/forms/TextInput.js +2 -0
- data/webpack/__mocks__/foremanReact/components/hosts/powerStatus.js +1 -0
- data/webpack/__snapshots__/helper.test.js.snap +14 -0
- data/webpack/components/ApplicationDefinition/ApplicationDefinition.js +1 -1
- data/webpack/components/ApplicationDefinition/__fixtures__/applicationDefinitionConfData_1.fixtures.js +288 -0
- data/webpack/components/ApplicationDefinition/__fixtures__/applicationDefinitionReducer.fixtures.js +79 -0
- data/webpack/components/ApplicationDefinition/__tests__/ApplicationDefinition.test.js +25 -0
- data/webpack/components/ApplicationDefinition/__tests__/ApplicationDefinitionReducer.test.js +119 -0
- data/webpack/components/ApplicationDefinition/__tests__/ApplicationDefinitionSelectors.test.js +41 -0
- data/webpack/components/ApplicationDefinition/__tests__/__snapshots__/ApplicationDefinition.test.js.snap +200 -0
- data/webpack/components/ApplicationDefinition/__tests__/__snapshots__/ApplicationDefinitionReducer.test.js.snap +3033 -0
- data/webpack/components/ApplicationDefinition/__tests__/__snapshots__/ApplicationDefinitionSelectors.test.js.snap +299 -0
- data/webpack/components/ApplicationDefinition/components/AnsiblePlaybookSelector.js +1 -0
- data/webpack/components/ApplicationDefinition/components/__tests__/AnsiblePlaybookSelector.test.js +41 -0
- data/webpack/components/ApplicationDefinition/components/__tests__/__snapshots__/AnsiblePlaybookSelector.test.js.snap +121 -0
- data/webpack/components/ApplicationInstance/ApplicationInstance.js +3 -5
- data/webpack/components/ApplicationInstance/__fixtures__/applicationInstanceConfData_1.fixtures.js +263 -0
- data/webpack/components/ApplicationInstance/__fixtures__/applicationInstanceReducer.fixtures.js +78 -0
- data/webpack/components/ApplicationInstance/__tests__/ApplicationInstance.test.js +23 -0
- data/webpack/components/ApplicationInstance/__tests__/ApplicationInstanceReducer.test.js +119 -0
- data/webpack/components/ApplicationInstance/__tests__/ApplicationInstanceSelectors.test.js +44 -0
- data/webpack/components/ApplicationInstance/__tests__/__snapshots__/ApplicationInstance.test.js.snap +209 -0
- data/webpack/components/ApplicationInstance/__tests__/__snapshots__/ApplicationInstanceReducer.test.js.snap +2719 -0
- data/webpack/components/ApplicationInstance/__tests__/__snapshots__/ApplicationInstanceSelectors.test.js.snap +276 -0
- data/webpack/components/ApplicationInstanceReport/__fixtures__/applicationInstanceReportData_1.fixtures.js +349 -0
- data/webpack/components/ApplicationInstanceReport/__fixtures__/applicationInstanceReportReducer.fixtures.js +20 -0
- data/webpack/components/ApplicationInstanceReport/__tests__/ApplicationInstanceReport.test.js +47 -0
- data/webpack/components/ApplicationInstanceReport/__tests__/ApplicationInstanceReportReducer.test.js +41 -0
- data/webpack/components/ApplicationInstanceReport/__tests__/ApplicationInstanceReportSelectors.test.js +26 -0
- data/webpack/components/ApplicationInstanceReport/__tests__/__snapshots__/ApplicationInstanceReport.test.js.snap +130 -0
- data/webpack/components/ApplicationInstanceReport/__tests__/__snapshots__/ApplicationInstanceReportReducer.test.js.snap +718 -0
- data/webpack/components/ApplicationInstanceReport/__tests__/__snapshots__/ApplicationInstanceReportSelectors.test.js.snap +347 -0
- data/webpack/components/ApplicationInstanceReport/components/__tests__/ReportViewer.test.js +24 -0
- data/webpack/components/ApplicationInstanceReport/components/__tests__/__snapshots__/ReportViewer.test.js.snap +24 -0
- data/webpack/components/ParameterSelection/ParameterSelectionReducer.js +2 -21
- data/webpack/components/ParameterSelection/__fixtures__/parameterSelectionData_1.fixtures.js +116 -84
- data/webpack/components/ParameterSelection/__fixtures__/parameterSelectionReducer.fixtures.js +10 -4
- data/webpack/components/ParameterSelection/__tests__/ParameterSelection.test.js +36 -46
- data/webpack/components/ParameterSelection/__tests__/ParameterSelectionReducer.test.js +31 -25
- data/webpack/components/ParameterSelection/__tests__/ParameterSelectionSelectors.test.js +6 -6
- data/webpack/components/ParameterSelection/__tests__/__snapshots__/ParameterSelection.test.js.snap +2 -126
- data/webpack/components/ParameterSelection/__tests__/__snapshots__/ParameterSelectionReducer.test.js.snap +1483 -872
- data/webpack/components/ParameterSelection/__tests__/__snapshots__/ParameterSelectionSelectors.test.js.snap +117 -79
- data/webpack/components/SyncGitRepo/SyncGitRepo.js +210 -0
- data/webpack/components/SyncGitRepo/SyncGitRepo.scss +1 -0
- data/webpack/components/SyncGitRepo/SyncGitRepoActions.js +124 -0
- data/webpack/components/SyncGitRepo/SyncGitRepoConstants.js +9 -0
- data/webpack/components/SyncGitRepo/SyncGitRepoReducer.js +80 -0
- data/webpack/components/SyncGitRepo/SyncGitRepoSelectors.js +6 -0
- data/webpack/components/SyncGitRepo/__fixtures__/syncGitRepoConfData_1.fixtures.js +7 -0
- data/webpack/components/SyncGitRepo/__fixtures__/syncGitRepoReducer.fixtures.js +44 -0
- data/webpack/components/SyncGitRepo/__tests__/SyncGitRepo.test.js +27 -0
- data/webpack/components/SyncGitRepo/__tests__/SyncGitRepoReducer.test.js +95 -0
- data/webpack/components/SyncGitRepo/__tests__/SyncGitRepoSelectors.test.js +32 -0
- data/webpack/components/SyncGitRepo/__tests__/__snapshots__/SyncGitRepo.test.js.snap +30 -0
- data/webpack/components/SyncGitRepo/__tests__/__snapshots__/SyncGitRepoReducer.test.js.snap +137 -0
- data/webpack/components/SyncGitRepo/__tests__/__snapshots__/SyncGitRepoSelectors.test.js.snap +13 -0
- data/webpack/components/SyncGitRepo/components/FormTextInput.js +42 -0
- data/webpack/components/SyncGitRepo/components/ScmTypeSelector.js +46 -0
- data/webpack/components/SyncGitRepo/index.js +28 -0
- data/webpack/components/common/ExtTextInput.js +43 -0
- data/webpack/components/common/__tests__/EditTableEntry.test.js +53 -0
- data/webpack/components/common/__tests__/LockTableEntry.test.js +35 -0
- data/webpack/components/common/__tests__/__snapshots__/DeleteTableEntry.test.js.snap +2 -2
- data/webpack/components/common/__tests__/__snapshots__/EditTableEntry.test.js.snap +81 -0
- data/webpack/components/common/__tests__/__snapshots__/LockTableEntry.test.js.snap +60 -0
- data/webpack/helper.js +15 -1
- data/webpack/helper.test.js +37 -0
- data/webpack/index.js +2 -0
- data/webpack/reducer.js +4 -0
- metadata +92 -11
- data/webpack/components/common/EasyHeaderFormatter.js +0 -18
- data/webpack/components/common/__tests__/__snapshots__/AddParameter.test.js.snap +0 -35
- data/webpack/components/common/__tests__/__snapshots__/DeleteParameter.test.js.snap +0 -41
@@ -0,0 +1,60 @@
|
|
1
|
+
// Jest Snapshot v1, https://goo.gl/fbAQLP
|
2
|
+
|
3
|
+
exports[`LockTableEntry should render disabled button 1`] = `
|
4
|
+
<span>
|
5
|
+
<Button
|
6
|
+
active={false}
|
7
|
+
block={false}
|
8
|
+
bsClass="btn"
|
9
|
+
bsStyle="default"
|
10
|
+
disabled={true}
|
11
|
+
onClick={[Function]}
|
12
|
+
>
|
13
|
+
<Icon
|
14
|
+
name="unlocked"
|
15
|
+
title="this entry is unlocked"
|
16
|
+
type="pf"
|
17
|
+
/>
|
18
|
+
</Button>
|
19
|
+
</span>
|
20
|
+
`;
|
21
|
+
|
22
|
+
exports[`LockTableEntry should render hidden button 1`] = `""`;
|
23
|
+
|
24
|
+
exports[`LockTableEntry should render locked table entry 1`] = `
|
25
|
+
<span>
|
26
|
+
<Button
|
27
|
+
active={false}
|
28
|
+
block={false}
|
29
|
+
bsClass="btn"
|
30
|
+
bsStyle="default"
|
31
|
+
disabled={false}
|
32
|
+
onClick={[Function]}
|
33
|
+
>
|
34
|
+
<Icon
|
35
|
+
name="locked"
|
36
|
+
title="unlock this entry"
|
37
|
+
type="pf"
|
38
|
+
/>
|
39
|
+
</Button>
|
40
|
+
</span>
|
41
|
+
`;
|
42
|
+
|
43
|
+
exports[`LockTableEntry should render unlock table entry 1`] = `
|
44
|
+
<span>
|
45
|
+
<Button
|
46
|
+
active={false}
|
47
|
+
block={false}
|
48
|
+
bsClass="btn"
|
49
|
+
bsStyle="default"
|
50
|
+
disabled={false}
|
51
|
+
onClick={[Function]}
|
52
|
+
>
|
53
|
+
<Icon
|
54
|
+
name="unlocked"
|
55
|
+
title="lock this entry"
|
56
|
+
type="pf"
|
57
|
+
/>
|
58
|
+
</Button>
|
59
|
+
</span>
|
60
|
+
`;
|
data/webpack/helper.js
CHANGED
@@ -1,3 +1,8 @@
|
|
1
|
+
import React from 'react';
|
2
|
+
import {
|
3
|
+
Table,
|
4
|
+
} from 'patternfly-react';
|
5
|
+
|
1
6
|
// Some small helper methods
|
2
7
|
|
3
8
|
function arrayToObject(arr, id, value) {
|
@@ -14,7 +19,16 @@ function arrayToObjectObj(arr, id) {
|
|
14
19
|
return rv;
|
15
20
|
}
|
16
21
|
|
22
|
+
function EasyHeaderFormatter(value, { column }) {
|
23
|
+
return (
|
24
|
+
<Table.Heading aria-label={column.header.label} {...column.header.props}>
|
25
|
+
{value}
|
26
|
+
</Table.Heading>
|
27
|
+
);
|
28
|
+
}
|
29
|
+
|
17
30
|
export {
|
18
31
|
arrayToObject,
|
19
|
-
arrayToObjectObj
|
32
|
+
arrayToObjectObj,
|
33
|
+
EasyHeaderFormatter
|
20
34
|
};
|
@@ -0,0 +1,37 @@
|
|
1
|
+
import {
|
2
|
+
arrayToObject,
|
3
|
+
arrayToObjectObj,
|
4
|
+
EasyHeaderFormatter,
|
5
|
+
} from './helper';
|
6
|
+
|
7
|
+
describe('helper', () => {
|
8
|
+
const testArray = []
|
9
|
+
testArray[0] = { id: 'i1', value: 'v1' };
|
10
|
+
testArray[1] = { id: 'i2', value: 'v2' };
|
11
|
+
testArray[2] = { id: 'i3', value: 'v3' };
|
12
|
+
|
13
|
+
it('creates a object from an array', () => {
|
14
|
+
expect(arrayToObject(testArray, 'id', 'value')).toEqual(
|
15
|
+
{
|
16
|
+
i1: 'v1',
|
17
|
+
i2: 'v2',
|
18
|
+
i3: 'v3'
|
19
|
+
}
|
20
|
+
);
|
21
|
+
});
|
22
|
+
|
23
|
+
it('creates a object from an array', () => {
|
24
|
+
expect(arrayToObjectObj(testArray, 'id')).toEqual(
|
25
|
+
{
|
26
|
+
i1: { id: 'i1', value: 'v1' },
|
27
|
+
i2: { id: 'i2', value: 'v2' },
|
28
|
+
i3: { id: 'i3', value: 'v3' },
|
29
|
+
}
|
30
|
+
);
|
31
|
+
});
|
32
|
+
|
33
|
+
it('creates a object from an array', () => {
|
34
|
+
expect(EasyHeaderFormatter('MyValue', { column: { header: { label: 'TheLabel', props: { p1: '1' } } } })).toMatchSnapshot();
|
35
|
+
});
|
36
|
+
});
|
37
|
+
|
data/webpack/index.js
CHANGED
@@ -1,6 +1,7 @@
|
|
1
1
|
import componentRegistry from 'foremanReact/components/componentRegistry';
|
2
2
|
import injectReducer from 'foremanReact/redux/reducers/registerReducer';
|
3
3
|
import ParameterSelection from './components/ParameterSelection';
|
4
|
+
import SyncGitRepo from './components/SyncGitRepo';
|
4
5
|
import ApplicationDefinition from './components/ApplicationDefinition';
|
5
6
|
import ApplicationInstance from './components/ApplicationInstance';
|
6
7
|
import ApplicationInstanceReport from './components/ApplicationInstanceReport';
|
@@ -9,6 +10,7 @@ import reducer from './reducer';
|
|
9
10
|
injectReducer('foremanAcd', reducer);
|
10
11
|
|
11
12
|
componentRegistry.register({ name: 'ParameterSelection', type: ParameterSelection, });
|
13
|
+
componentRegistry.register({ name: 'SyncGitRepo', type: SyncGitRepo, });
|
12
14
|
componentRegistry.register({ name: 'ApplicationDefinition', type: ApplicationDefinition, });
|
13
15
|
componentRegistry.register({ name: 'ApplicationInstance', type: ApplicationInstance, });
|
14
16
|
componentRegistry.register({ name: 'ApplicationInstanceReport', type: ApplicationInstanceReport, });
|
data/webpack/reducer.js
CHANGED
@@ -4,6 +4,7 @@ import parameterSelectionParameters from './components/ParameterSelection/Parame
|
|
4
4
|
import applicationDefinitionConf from './components/ApplicationDefinition/ApplicationDefinitionReducer';
|
5
5
|
import applicationInstanceConf from './components/ApplicationInstance/ApplicationInstanceReducer';
|
6
6
|
import applicationInstanceReport from './components/ApplicationInstanceReport/ApplicationInstanceReportReducer';
|
7
|
+
import syncGitRepoConf from './components/SyncGitRepo/SyncGitRepoReducer';
|
7
8
|
|
8
9
|
import {
|
9
10
|
APPLICATION_DEFINITION_FOREMAN_PARAMETER_SELECTION_MODAL_CLOSE,
|
@@ -36,11 +37,14 @@ const rootReducer = (state = {}, action) => {
|
|
36
37
|
}
|
37
38
|
const app_ins_state = applicationInstanceConf(state.applicationInstanceConf, action);
|
38
39
|
|
40
|
+
const sync_git_repo_state = syncGitRepoConf(state.syncGitRepoConf, action);
|
41
|
+
|
39
42
|
return {
|
40
43
|
applicationDefinitionConf: app_def_state,
|
41
44
|
applicationInstanceConf: app_ins_state,
|
42
45
|
parameterSelectionParameters: param_state,
|
43
46
|
applicationInstanceReport: app_ins_report_state,
|
47
|
+
syncGitRepoConf: sync_git_repo_state,
|
44
48
|
};
|
45
49
|
};
|
46
50
|
|
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.7.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: 2021-
|
11
|
+
date: 2021-05-31 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rubocop
|
@@ -16,28 +16,28 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - "~>"
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: 0.
|
19
|
+
version: 0.89.0
|
20
20
|
type: :development
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
24
|
- - "~>"
|
25
25
|
- !ruby/object:Gem::Version
|
26
|
-
version: 0.
|
26
|
+
version: 0.89.0
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: rubocop-rails
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
30
30
|
requirements:
|
31
31
|
- - "~>"
|
32
32
|
- !ruby/object:Gem::Version
|
33
|
-
version: 2.
|
33
|
+
version: 2.8.1
|
34
34
|
type: :development
|
35
35
|
prerelease: false
|
36
36
|
version_requirements: !ruby/object:Gem::Requirement
|
37
37
|
requirements:
|
38
38
|
- - "~>"
|
39
39
|
- !ruby/object:Gem::Version
|
40
|
-
version: 2.
|
40
|
+
version: 2.8.1
|
41
41
|
- !ruby/object:Gem::Dependency
|
42
42
|
name: foreman_remote_execution
|
43
43
|
requirement: !ruby/object:Gem::Requirement
|
@@ -66,6 +66,20 @@ dependencies:
|
|
66
66
|
- - ">="
|
67
67
|
- !ruby/object:Gem::Version
|
68
68
|
version: '0.10'
|
69
|
+
- !ruby/object:Gem::Dependency
|
70
|
+
name: git
|
71
|
+
requirement: !ruby/object:Gem::Requirement
|
72
|
+
requirements:
|
73
|
+
- - ">="
|
74
|
+
- !ruby/object:Gem::Version
|
75
|
+
version: '0'
|
76
|
+
type: :runtime
|
77
|
+
prerelease: false
|
78
|
+
version_requirements: !ruby/object:Gem::Requirement
|
79
|
+
requirements:
|
80
|
+
- - ">="
|
81
|
+
- !ruby/object:Gem::Version
|
82
|
+
version: '0'
|
69
83
|
description: Foreman plugin to provide application centric deployment and self service
|
70
84
|
portal
|
71
85
|
email:
|
@@ -100,6 +114,7 @@ files:
|
|
100
114
|
- app/models/foreman_acd/app_instance.rb
|
101
115
|
- app/models/foreman_acd/foreman_host.rb
|
102
116
|
- app/models/foreman_acd/taxonomy_extensions.rb
|
117
|
+
- app/services/foreman_acd/acd_proxy_proxy_selector.rb
|
103
118
|
- app/services/foreman_acd/app_configurator.rb
|
104
119
|
- app/services/foreman_acd/app_deployer.rb
|
105
120
|
- app/services/foreman_acd/inventory_creator.rb
|
@@ -150,6 +165,8 @@ files:
|
|
150
165
|
- db/migrate/20210209091014_rename_acd_tables.rb
|
151
166
|
- db/migrate/20210216083522_add_last_progress_report.rb
|
152
167
|
- db/migrate/20210216091529_add_last_deploy_task.rb
|
168
|
+
- db/migrate/20210316151145_add_git_commit_to_ansible_playbooks.rb
|
169
|
+
- db/migrate/20210503122809_add_git_url_to_ansible_playbooks.rb
|
153
170
|
- db/seeds.d/62_acd_proxy_feature.rb
|
154
171
|
- db/seeds.d/75-job_templates.rb
|
155
172
|
- lib/foreman_acd.rb
|
@@ -169,10 +186,22 @@ files:
|
|
169
186
|
- test/controllers/app_instances_controller_test.rb
|
170
187
|
- test/controllers/ui_acd_controller_test.rb
|
171
188
|
- test/factories/foreman_acd_factories.rb
|
189
|
+
- test/models/acd_provider_test.rb
|
190
|
+
- test/models/ansible_playbook_test.rb
|
172
191
|
- test/models/app_definition_test.rb
|
173
192
|
- test/models/app_instance_test.rb
|
193
|
+
- test/models/concerns/host_extensions_test.rb
|
194
|
+
- test/models/foreman_host_test.rb
|
174
195
|
- test/test_plugin_helper.rb
|
196
|
+
- webpack/__mocks__/foremanReact/API.js
|
197
|
+
- webpack/__mocks__/foremanReact/common/I18n.js
|
198
|
+
- webpack/__mocks__/foremanReact/common/helpers.js
|
199
|
+
- webpack/__mocks__/foremanReact/components/ForemanModal.js
|
200
|
+
- webpack/__mocks__/foremanReact/components/common/forms/CommonForm.js
|
175
201
|
- webpack/__mocks__/foremanReact/components/common/forms/Select.js
|
202
|
+
- webpack/__mocks__/foremanReact/components/common/forms/TextInput.js
|
203
|
+
- webpack/__mocks__/foremanReact/components/hosts/powerStatus.js
|
204
|
+
- webpack/__snapshots__/helper.test.js.snap
|
176
205
|
- webpack/components/ApplicationDefinition/ApplicationDefinition.js
|
177
206
|
- webpack/components/ApplicationDefinition/ApplicationDefinition.scss
|
178
207
|
- webpack/components/ApplicationDefinition/ApplicationDefinitionActions.js
|
@@ -180,7 +209,17 @@ files:
|
|
180
209
|
- webpack/components/ApplicationDefinition/ApplicationDefinitionHelper.js
|
181
210
|
- webpack/components/ApplicationDefinition/ApplicationDefinitionReducer.js
|
182
211
|
- webpack/components/ApplicationDefinition/ApplicationDefinitionSelectors.js
|
212
|
+
- webpack/components/ApplicationDefinition/__fixtures__/applicationDefinitionConfData_1.fixtures.js
|
213
|
+
- webpack/components/ApplicationDefinition/__fixtures__/applicationDefinitionReducer.fixtures.js
|
214
|
+
- webpack/components/ApplicationDefinition/__tests__/ApplicationDefinition.test.js
|
215
|
+
- webpack/components/ApplicationDefinition/__tests__/ApplicationDefinitionReducer.test.js
|
216
|
+
- webpack/components/ApplicationDefinition/__tests__/ApplicationDefinitionSelectors.test.js
|
217
|
+
- webpack/components/ApplicationDefinition/__tests__/__snapshots__/ApplicationDefinition.test.js.snap
|
218
|
+
- webpack/components/ApplicationDefinition/__tests__/__snapshots__/ApplicationDefinitionReducer.test.js.snap
|
219
|
+
- webpack/components/ApplicationDefinition/__tests__/__snapshots__/ApplicationDefinitionSelectors.test.js.snap
|
183
220
|
- webpack/components/ApplicationDefinition/components/AnsiblePlaybookSelector.js
|
221
|
+
- webpack/components/ApplicationDefinition/components/__tests__/AnsiblePlaybookSelector.test.js
|
222
|
+
- webpack/components/ApplicationDefinition/components/__tests__/__snapshots__/AnsiblePlaybookSelector.test.js.snap
|
184
223
|
- webpack/components/ApplicationDefinition/index.js
|
185
224
|
- webpack/components/ApplicationInstance/ApplicationInstance.js
|
186
225
|
- webpack/components/ApplicationInstance/ApplicationInstance.scss
|
@@ -188,6 +227,14 @@ files:
|
|
188
227
|
- webpack/components/ApplicationInstance/ApplicationInstanceConstants.js
|
189
228
|
- webpack/components/ApplicationInstance/ApplicationInstanceReducer.js
|
190
229
|
- webpack/components/ApplicationInstance/ApplicationInstanceSelectors.js
|
230
|
+
- webpack/components/ApplicationInstance/__fixtures__/applicationInstanceConfData_1.fixtures.js
|
231
|
+
- webpack/components/ApplicationInstance/__fixtures__/applicationInstanceReducer.fixtures.js
|
232
|
+
- webpack/components/ApplicationInstance/__tests__/ApplicationInstance.test.js
|
233
|
+
- webpack/components/ApplicationInstance/__tests__/ApplicationInstanceReducer.test.js
|
234
|
+
- webpack/components/ApplicationInstance/__tests__/ApplicationInstanceSelectors.test.js
|
235
|
+
- webpack/components/ApplicationInstance/__tests__/__snapshots__/ApplicationInstance.test.js.snap
|
236
|
+
- webpack/components/ApplicationInstance/__tests__/__snapshots__/ApplicationInstanceReducer.test.js.snap
|
237
|
+
- webpack/components/ApplicationInstance/__tests__/__snapshots__/ApplicationInstanceSelectors.test.js.snap
|
191
238
|
- webpack/components/ApplicationInstance/components/AppDefinitionSelector.js
|
192
239
|
- webpack/components/ApplicationInstance/components/Service.js
|
193
240
|
- webpack/components/ApplicationInstance/components/ServiceCounter.js
|
@@ -198,7 +245,17 @@ files:
|
|
198
245
|
- webpack/components/ApplicationInstanceReport/ApplicationInstanceReportConstants.js
|
199
246
|
- webpack/components/ApplicationInstanceReport/ApplicationInstanceReportReducer.js
|
200
247
|
- webpack/components/ApplicationInstanceReport/ApplicationInstanceReportSelectors.js
|
248
|
+
- webpack/components/ApplicationInstanceReport/__fixtures__/applicationInstanceReportData_1.fixtures.js
|
249
|
+
- webpack/components/ApplicationInstanceReport/__fixtures__/applicationInstanceReportReducer.fixtures.js
|
250
|
+
- webpack/components/ApplicationInstanceReport/__tests__/ApplicationInstanceReport.test.js
|
251
|
+
- webpack/components/ApplicationInstanceReport/__tests__/ApplicationInstanceReportReducer.test.js
|
252
|
+
- webpack/components/ApplicationInstanceReport/__tests__/ApplicationInstanceReportSelectors.test.js
|
253
|
+
- webpack/components/ApplicationInstanceReport/__tests__/__snapshots__/ApplicationInstanceReport.test.js.snap
|
254
|
+
- webpack/components/ApplicationInstanceReport/__tests__/__snapshots__/ApplicationInstanceReportReducer.test.js.snap
|
255
|
+
- webpack/components/ApplicationInstanceReport/__tests__/__snapshots__/ApplicationInstanceReportSelectors.test.js.snap
|
201
256
|
- webpack/components/ApplicationInstanceReport/components/ReportViewer.js
|
257
|
+
- webpack/components/ApplicationInstanceReport/components/__tests__/ReportViewer.test.js
|
258
|
+
- webpack/components/ApplicationInstanceReport/components/__tests__/__snapshots__/ReportViewer.test.js.snap
|
202
259
|
- webpack/components/ApplicationInstanceReport/index.js
|
203
260
|
- webpack/components/ParameterSelection/ParameterSelection.js
|
204
261
|
- webpack/components/ParameterSelection/ParameterSelection.scss
|
@@ -217,24 +274,44 @@ files:
|
|
217
274
|
- webpack/components/ParameterSelection/__tests__/__snapshots__/ParameterSelectionReducer.test.js.snap
|
218
275
|
- webpack/components/ParameterSelection/__tests__/__snapshots__/ParameterSelectionSelectors.test.js.snap
|
219
276
|
- webpack/components/ParameterSelection/index.js
|
277
|
+
- webpack/components/SyncGitRepo/SyncGitRepo.js
|
278
|
+
- webpack/components/SyncGitRepo/SyncGitRepo.scss
|
279
|
+
- webpack/components/SyncGitRepo/SyncGitRepoActions.js
|
280
|
+
- webpack/components/SyncGitRepo/SyncGitRepoConstants.js
|
281
|
+
- webpack/components/SyncGitRepo/SyncGitRepoReducer.js
|
282
|
+
- webpack/components/SyncGitRepo/SyncGitRepoSelectors.js
|
283
|
+
- webpack/components/SyncGitRepo/__fixtures__/syncGitRepoConfData_1.fixtures.js
|
284
|
+
- webpack/components/SyncGitRepo/__fixtures__/syncGitRepoReducer.fixtures.js
|
285
|
+
- webpack/components/SyncGitRepo/__tests__/SyncGitRepo.test.js
|
286
|
+
- webpack/components/SyncGitRepo/__tests__/SyncGitRepoReducer.test.js
|
287
|
+
- webpack/components/SyncGitRepo/__tests__/SyncGitRepoSelectors.test.js
|
288
|
+
- webpack/components/SyncGitRepo/__tests__/__snapshots__/SyncGitRepo.test.js.snap
|
289
|
+
- webpack/components/SyncGitRepo/__tests__/__snapshots__/SyncGitRepoReducer.test.js.snap
|
290
|
+
- webpack/components/SyncGitRepo/__tests__/__snapshots__/SyncGitRepoSelectors.test.js.snap
|
291
|
+
- webpack/components/SyncGitRepo/components/FormTextInput.js
|
292
|
+
- webpack/components/SyncGitRepo/components/ScmTypeSelector.js
|
293
|
+
- webpack/components/SyncGitRepo/index.js
|
220
294
|
- webpack/components/common/AddTableEntry.js
|
221
295
|
- webpack/components/common/DeleteTableEntry.js
|
222
|
-
- webpack/components/common/EasyHeaderFormatter.js
|
223
296
|
- webpack/components/common/EditTableEntry.js
|
224
297
|
- webpack/components/common/ExtSelect.js
|
298
|
+
- webpack/components/common/ExtTextInput.js
|
225
299
|
- webpack/components/common/LockTableEntry.js
|
226
300
|
- webpack/components/common/RailsData.js
|
227
301
|
- webpack/components/common/__tests__/AddTableEntry.test.js
|
228
302
|
- webpack/components/common/__tests__/DeleteTableEntry.test.js
|
303
|
+
- webpack/components/common/__tests__/EditTableEntry.test.js
|
229
304
|
- webpack/components/common/__tests__/ExtSelect.test.js
|
305
|
+
- webpack/components/common/__tests__/LockTableEntry.test.js
|
230
306
|
- webpack/components/common/__tests__/RailsData.test.js
|
231
|
-
- webpack/components/common/__tests__/__snapshots__/AddParameter.test.js.snap
|
232
307
|
- webpack/components/common/__tests__/__snapshots__/AddTableEntry.test.js.snap
|
233
|
-
- webpack/components/common/__tests__/__snapshots__/DeleteParameter.test.js.snap
|
234
308
|
- webpack/components/common/__tests__/__snapshots__/DeleteTableEntry.test.js.snap
|
309
|
+
- webpack/components/common/__tests__/__snapshots__/EditTableEntry.test.js.snap
|
235
310
|
- webpack/components/common/__tests__/__snapshots__/ExtSelect.test.js.snap
|
311
|
+
- webpack/components/common/__tests__/__snapshots__/LockTableEntry.test.js.snap
|
236
312
|
- webpack/components/common/__tests__/__snapshots__/RailsData.test.js.snap
|
237
313
|
- webpack/helper.js
|
314
|
+
- webpack/helper.test.js
|
238
315
|
- webpack/index.js
|
239
316
|
- webpack/reducer.js
|
240
317
|
- webpack/test_setup.js
|
@@ -248,9 +325,9 @@ require_paths:
|
|
248
325
|
- lib
|
249
326
|
required_ruby_version: !ruby/object:Gem::Requirement
|
250
327
|
requirements:
|
251
|
-
- - "
|
328
|
+
- - "~>"
|
252
329
|
- !ruby/object:Gem::Version
|
253
|
-
version: '
|
330
|
+
version: '2.5'
|
254
331
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
255
332
|
requirements:
|
256
333
|
- - ">="
|
@@ -266,8 +343,12 @@ summary: Foreman plugin to provide application centric deployment and self servi
|
|
266
343
|
test_files:
|
267
344
|
- test/factories/foreman_acd_factories.rb
|
268
345
|
- test/test_plugin_helper.rb
|
346
|
+
- test/models/ansible_playbook_test.rb
|
269
347
|
- test/models/app_instance_test.rb
|
348
|
+
- test/models/concerns/host_extensions_test.rb
|
270
349
|
- test/models/app_definition_test.rb
|
350
|
+
- test/models/acd_provider_test.rb
|
351
|
+
- test/models/foreman_host_test.rb
|
271
352
|
- test/controllers/ui_acd_controller_test.rb
|
272
353
|
- test/controllers/app_definitions_controller_test.rb
|
273
354
|
- test/controllers/app_instances_controller_test.rb
|
@@ -1,18 +0,0 @@
|
|
1
|
-
import React from 'react';
|
2
|
-
import PropTypes from 'prop-types';
|
3
|
-
import {
|
4
|
-
Table,
|
5
|
-
} from 'patternfly-react';
|
6
|
-
|
7
|
-
const EasyHeaderFormatter = (value, { column }) => (
|
8
|
-
<Table.Heading aria-label={column.header.label} {...column.header.props}>
|
9
|
-
{value}
|
10
|
-
</Table.Heading>
|
11
|
-
);
|
12
|
-
|
13
|
-
EasyHeaderFormatter.propTypes = {
|
14
|
-
value: PropTypes.string.isRequired,
|
15
|
-
column: PropTypes.object.isRequired,
|
16
|
-
};
|
17
|
-
|
18
|
-
export default EasyHeaderFormatter;
|
@@ -1,35 +0,0 @@
|
|
1
|
-
// Jest Snapshot v1, https://goo.gl/fbAQLP
|
2
|
-
|
3
|
-
exports[`AddParameter should render add parameter 1`] = `
|
4
|
-
<Button
|
5
|
-
active={false}
|
6
|
-
block={false}
|
7
|
-
bsClass="btn"
|
8
|
-
bsStyle="default"
|
9
|
-
disabled={false}
|
10
|
-
onClick={[Function]}
|
11
|
-
>
|
12
|
-
<Icon
|
13
|
-
name="plus"
|
14
|
-
type="fa"
|
15
|
-
/>
|
16
|
-
</Button>
|
17
|
-
`;
|
18
|
-
|
19
|
-
exports[`AddParameter should render disabled button 1`] = `
|
20
|
-
<Button
|
21
|
-
active={false}
|
22
|
-
block={false}
|
23
|
-
bsClass="btn"
|
24
|
-
bsStyle="default"
|
25
|
-
disabled={true}
|
26
|
-
onClick={[Function]}
|
27
|
-
>
|
28
|
-
<Icon
|
29
|
-
name="plus"
|
30
|
-
type="fa"
|
31
|
-
/>
|
32
|
-
</Button>
|
33
|
-
`;
|
34
|
-
|
35
|
-
exports[`AddParameter should render hidden button 1`] = `""`;
|