foreman_remote_execution 4.3.1 → 4.4.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (67) hide show
  1. checksums.yaml +4 -4
  2. data/app/controllers/api/v2/job_invocations_controller.rb +16 -0
  3. data/app/controllers/foreman_remote_execution/concerns/api/v2/registration_commands_controller_extensions.rb +19 -0
  4. data/app/helpers/remote_execution_helper.rb +27 -0
  5. data/app/lib/foreman_remote_execution/provider_input.rb +29 -0
  6. data/app/models/invocation_provider_input_value.rb +12 -0
  7. data/app/models/job_invocation.rb +4 -0
  8. data/app/models/job_invocation_composer.rb +13 -0
  9. data/app/models/remote_execution_provider.rb +17 -2
  10. data/app/models/setting/remote_execution.rb +10 -0
  11. data/app/models/template_invocation.rb +2 -0
  12. data/app/services/renderer_methods.rb +12 -0
  13. data/app/views/job_invocations/_form.html.erb +8 -0
  14. data/db/migrate/20210312074713_add_provider_inputs.rb +10 -0
  15. data/foreman_remote_execution.gemspec +1 -1
  16. data/lib/foreman_remote_execution/engine.rb +5 -6
  17. data/lib/foreman_remote_execution/version.rb +1 -1
  18. data/locale/action_names.rb +1 -0
  19. data/locale/de/foreman_remote_execution.po +77 -27
  20. data/locale/en/foreman_remote_execution.po +77 -27
  21. data/locale/en_GB/foreman_remote_execution.po +77 -27
  22. data/locale/es/foreman_remote_execution.po +77 -27
  23. data/locale/foreman_remote_execution.pot +241 -163
  24. data/locale/fr/foreman_remote_execution.po +77 -27
  25. data/locale/ja/foreman_remote_execution.po +77 -27
  26. data/locale/ko/foreman_remote_execution.po +77 -27
  27. data/locale/pt_BR/foreman_remote_execution.po +77 -27
  28. data/locale/ru/foreman_remote_execution.po +77 -27
  29. data/locale/zh_CN/foreman_remote_execution.po +77 -27
  30. data/locale/zh_TW/foreman_remote_execution.po +77 -27
  31. data/package.json +3 -2
  32. data/test/helpers/remote_execution_helper_test.rb +16 -0
  33. data/test/unit/job_invocation_composer_test.rb +41 -1
  34. data/test/unit/job_invocation_report_template_test.rb +57 -0
  35. data/webpack/JobWizard/JobWizard.js +30 -7
  36. data/webpack/JobWizard/JobWizard.scss +12 -0
  37. data/webpack/JobWizard/JobWizardConstants.js +5 -0
  38. data/webpack/JobWizard/JobWizardSelectors.js +21 -0
  39. data/webpack/JobWizard/__tests__/JobWizard.test.js +20 -0
  40. data/webpack/JobWizard/__tests__/__snapshots__/JobWizard.test.js.snap +83 -0
  41. data/webpack/JobWizard/steps/CategoryAndTemplate/CategoryAndTemplate.js +77 -0
  42. data/webpack/JobWizard/steps/CategoryAndTemplate/CategoryAndTemplate.test.js +45 -0
  43. data/webpack/JobWizard/steps/CategoryAndTemplate/__snapshots__/CategoryAndTemplate.test.js.snap +64 -0
  44. data/webpack/JobWizard/steps/CategoryAndTemplate/index.js +86 -0
  45. data/webpack/JobWizard/steps/form/GroupedSelectField.js +88 -0
  46. data/webpack/JobWizard/steps/form/SelectField.js +39 -0
  47. data/webpack/JobWizard/steps/form/__tests__/GroupedSelectField.test.js +38 -0
  48. data/webpack/JobWizard/steps/form/__tests__/SelectField.test.js +23 -0
  49. data/webpack/JobWizard/steps/form/__tests__/__snapshots__/GroupedSelectField.test.js.snap +36 -0
  50. data/webpack/JobWizard/steps/form/__tests__/__snapshots__/SelectField.test.js.snap +22 -0
  51. data/webpack/__mocks__/foremanReact/common/helpers.js +1 -0
  52. data/webpack/__mocks__/foremanReact/redux/API/index.js +5 -0
  53. data/webpack/__mocks__/foremanReact/routes/common/PageLayout/PageLayout.js +10 -0
  54. data/webpack/fills_index.js +11 -0
  55. data/webpack/global_index.js +4 -0
  56. data/webpack/index.js +0 -4
  57. data/webpack/react_app/components/RecentJobsCard/RecentJobsCard.js +87 -0
  58. data/webpack/react_app/components/RecentJobsCard/constants.js +1 -0
  59. data/webpack/react_app/components/RecentJobsCard/index.js +1 -0
  60. data/webpack/react_app/components/RecentJobsCard/styles.css +15 -0
  61. data/webpack/react_app/components/RegistrationExtension/RexInterface.js +50 -0
  62. data/webpack/react_app/components/RegistrationExtension/__tests__/RexInterface.test.js +9 -0
  63. data/webpack/react_app/components/RegistrationExtension/__tests__/__snapshots__/RexInterface.test.js.snap +35 -0
  64. data/webpack/react_app/extend/fills.js +10 -0
  65. data/webpack/react_app/extend/reducers.js +4 -0
  66. metadata +39 -5
  67. data/app/views/api/v2/registration/_form.html.erb +0 -12
@@ -0,0 +1,4 @@
1
+ import { registerReducer } from 'foremanReact/common/MountingService';
2
+ import rootReducer from '../redux/reducers';
3
+
4
+ export default registerReducer('foremanRemoteExecutionReducers', rootReducer);
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: foreman_remote_execution
3
3
  version: !ruby/object:Gem::Version
4
- version: 4.3.1
4
+ version: 4.4.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Foreman Remote Execution team
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-04-09 00:00:00.000000000 Z
11
+ date: 2021-05-10 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: deface
@@ -64,14 +64,14 @@ dependencies:
64
64
  requirements:
65
65
  - - ">="
66
66
  - !ruby/object:Gem::Version
67
- version: 4.0.0
67
+ version: 4.1.0
68
68
  type: :runtime
69
69
  prerelease: false
70
70
  version_requirements: !ruby/object:Gem::Requirement
71
71
  requirements:
72
72
  - - ">="
73
73
  - !ruby/object:Gem::Version
74
- version: 4.0.0
74
+ version: 4.1.0
75
75
  - !ruby/object:Gem::Dependency
76
76
  name: factory_bot_rails
77
77
  requirement: !ruby/object:Gem::Requirement
@@ -142,6 +142,7 @@ files:
142
142
  - app/controllers/concerns/foreman/controller/parameters/job_template.rb
143
143
  - app/controllers/concerns/foreman/controller/parameters/remote_execution_feature.rb
144
144
  - app/controllers/concerns/foreman/controller/parameters/targeting.rb
145
+ - app/controllers/foreman_remote_execution/concerns/api/v2/registration_commands_controller_extensions.rb
145
146
  - app/controllers/foreman_remote_execution/concerns/api/v2/registration_controller_extensions.rb
146
147
  - app/controllers/foreman_remote_execution/concerns/api/v2/subnets_controller_extensions.rb
147
148
  - app/controllers/job_invocations_controller.rb
@@ -158,6 +159,7 @@ files:
158
159
  - app/lib/actions/middleware/bind_job_invocation.rb
159
160
  - app/lib/actions/remote_execution/run_host_job.rb
160
161
  - app/lib/actions/remote_execution/run_hosts_job.rb
162
+ - app/lib/foreman_remote_execution/provider_input.rb
161
163
  - app/lib/foreman_remote_execution/renderer/scope/input.rb
162
164
  - app/lib/proxy_api/remote_execution_ssh.rb
163
165
  - app/mailers/.gitkeep
@@ -180,6 +182,7 @@ files:
180
182
  - app/models/foreign_input_set.rb
181
183
  - app/models/host_status/execution_status.rb
182
184
  - app/models/input_template_renderer.rb
185
+ - app/models/invocation_provider_input_value.rb
183
186
  - app/models/job_invocation.rb
184
187
  - app/models/job_invocation_composer.rb
185
188
  - app/models/job_invocation_task_group.rb
@@ -198,6 +201,7 @@ files:
198
201
  - app/overrides/subnet_proxies.rb
199
202
  - app/services/default_proxy_proxy_selector.rb
200
203
  - app/services/remote_execution_proxy_selector.rb
204
+ - app/services/renderer_methods.rb
201
205
  - app/services/ui_notifications/remote_execution_jobs/base_job_finish.rb
202
206
  - app/views/api/v2/foreign_input_sets/base.json.rabl
203
207
  - app/views/api/v2/foreign_input_sets/create.json.rabl
@@ -216,7 +220,6 @@ files:
216
220
  - app/views/api/v2/job_templates/main.json.rabl
217
221
  - app/views/api/v2/job_templates/show.json.rabl
218
222
  - app/views/api/v2/job_templates/update.json.rabl
219
- - app/views/api/v2/registration/_form.html.erb
220
223
  - app/views/api/v2/remote_execution_features/base.json.rabl
221
224
  - app/views/api/v2/remote_execution_features/index.json.rabl
222
225
  - app/views/api/v2/remote_execution_features/main.json.rabl
@@ -320,6 +323,7 @@ files:
320
323
  - db/migrate/20190111153330_remove_remote_execution_without_proxy_setting.rb
321
324
  - db/migrate/20200623073022_rename_sudo_password_to_effective_user_password.rb
322
325
  - db/migrate/20200820122057_add_proxy_selector_override_to_remote_execution_feature.rb
326
+ - db/migrate/20210312074713_add_provider_inputs.rb
323
327
  - db/seeds.d/100-assign_features_with_templates.rb
324
328
  - db/seeds.d/20-permissions.rb
325
329
  - db/seeds.d/50-notification_blueprints.rb
@@ -387,6 +391,7 @@ files:
387
391
  - test/unit/execution_task_status_mapper_test.rb
388
392
  - test/unit/input_template_renderer_test.rb
389
393
  - test/unit/job_invocation_composer_test.rb
394
+ - test/unit/job_invocation_report_template_test.rb
390
395
  - test/unit/job_invocation_test.rb
391
396
  - test/unit/job_template_effective_user_test.rb
392
397
  - test/unit/job_template_test.rb
@@ -396,18 +401,44 @@ files:
396
401
  - test/unit/targeting_test.rb
397
402
  - test/unit/template_invocation_input_value_test.rb
398
403
  - webpack/JobWizard/JobWizard.js
404
+ - webpack/JobWizard/JobWizard.scss
405
+ - webpack/JobWizard/JobWizardConstants.js
406
+ - webpack/JobWizard/JobWizardSelectors.js
407
+ - webpack/JobWizard/__tests__/JobWizard.test.js
408
+ - webpack/JobWizard/__tests__/__snapshots__/JobWizard.test.js.snap
399
409
  - webpack/JobWizard/index.js
410
+ - webpack/JobWizard/steps/CategoryAndTemplate/CategoryAndTemplate.js
411
+ - webpack/JobWizard/steps/CategoryAndTemplate/CategoryAndTemplate.test.js
412
+ - webpack/JobWizard/steps/CategoryAndTemplate/__snapshots__/CategoryAndTemplate.test.js.snap
413
+ - webpack/JobWizard/steps/CategoryAndTemplate/index.js
414
+ - webpack/JobWizard/steps/form/GroupedSelectField.js
415
+ - webpack/JobWizard/steps/form/SelectField.js
416
+ - webpack/JobWizard/steps/form/__tests__/GroupedSelectField.test.js
417
+ - webpack/JobWizard/steps/form/__tests__/SelectField.test.js
418
+ - webpack/JobWizard/steps/form/__tests__/__snapshots__/GroupedSelectField.test.js.snap
419
+ - webpack/JobWizard/steps/form/__tests__/__snapshots__/SelectField.test.js.snap
400
420
  - webpack/Routes/routes.js
401
421
  - webpack/__mocks__/foremanReact/common/I18n.js
422
+ - webpack/__mocks__/foremanReact/common/helpers.js
402
423
  - webpack/__mocks__/foremanReact/components/Pagination/PaginationWrapper.js
403
424
  - webpack/__mocks__/foremanReact/components/SearchBar.js
404
425
  - webpack/__mocks__/foremanReact/components/common/ActionButtons/ActionButtons.js
405
426
  - webpack/__mocks__/foremanReact/constants.js
406
427
  - webpack/__mocks__/foremanReact/history.js
407
428
  - webpack/__mocks__/foremanReact/redux/API/APISelectors.js
429
+ - webpack/__mocks__/foremanReact/redux/API/index.js
408
430
  - webpack/__mocks__/foremanReact/redux/middlewares/IntervalMiddleware/IntervalSelectors.js
431
+ - webpack/__mocks__/foremanReact/routes/common/PageLayout/PageLayout.js
432
+ - webpack/fills_index.js
409
433
  - webpack/global_index.js
410
434
  - webpack/index.js
435
+ - webpack/react_app/components/RecentJobsCard/RecentJobsCard.js
436
+ - webpack/react_app/components/RecentJobsCard/constants.js
437
+ - webpack/react_app/components/RecentJobsCard/index.js
438
+ - webpack/react_app/components/RecentJobsCard/styles.css
439
+ - webpack/react_app/components/RegistrationExtension/RexInterface.js
440
+ - webpack/react_app/components/RegistrationExtension/__tests__/RexInterface.test.js
441
+ - webpack/react_app/components/RegistrationExtension/__tests__/__snapshots__/RexInterface.test.js.snap
411
442
  - webpack/react_app/components/TargetingHosts/TargetingHosts.js
412
443
  - webpack/react_app/components/TargetingHosts/TargetingHostsConsts.js
413
444
  - webpack/react_app/components/TargetingHosts/TargetingHostsHelpers.js
@@ -431,6 +462,8 @@ files:
431
462
  - webpack/react_app/components/jobInvocations/AggregateStatus/index.js
432
463
  - webpack/react_app/components/jobInvocations/AggregateStatus/index.test.js
433
464
  - webpack/react_app/components/jobInvocations/index.js
465
+ - webpack/react_app/extend/fills.js
466
+ - webpack/react_app/extend/reducers.js
434
467
  - webpack/react_app/redux/actions/jobInvocations/index.js
435
468
  - webpack/react_app/redux/consts.js
436
469
  - webpack/react_app/redux/reducers/index.js
@@ -488,6 +521,7 @@ test_files:
488
521
  - test/unit/execution_task_status_mapper_test.rb
489
522
  - test/unit/input_template_renderer_test.rb
490
523
  - test/unit/job_invocation_composer_test.rb
524
+ - test/unit/job_invocation_report_template_test.rb
491
525
  - test/unit/job_invocation_test.rb
492
526
  - test/unit/job_template_effective_user_test.rb
493
527
  - test/unit/job_template_test.rb
@@ -1,12 +0,0 @@
1
- <div class='form-group'>
2
- <label class='col-md-2 control-label'>
3
- <%= _('Remote Execution Interface') %>
4
- <% help = _('Identifier of the Host interface for Remote execution') %>
5
- <a rel="popover" data-content="<%= help %>" data-trigger="focus" data-container="body" data-html="true" tabindex="-1">
6
- <span class="pficon pficon-info "></span>
7
- </a>
8
- </label>
9
- <div class='col-md-4'>
10
- <%= text_field_tag 'remote_execution_interface', params[:remote_execution_interface], class: 'form-control' %>
11
- </div>
12
- </div>