foreman_remote_execution 4.1.0 → 4.3.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (46) hide show
  1. checksums.yaml +4 -4
  2. data/.github/workflows/js_ci.yml +29 -0
  3. data/.github/workflows/{ci.yml → ruby_ci.yml} +22 -50
  4. data/.prettierrc +4 -0
  5. data/.rubocop.yml +13 -49
  6. data/.rubocop_todo.yml +326 -102
  7. data/Gemfile +1 -4
  8. data/app/controllers/api/v2/job_invocations_controller.rb +21 -3
  9. data/app/controllers/foreman_remote_execution/concerns/api/v2/registration_controller_extensions.rb +26 -0
  10. data/app/controllers/job_templates_controller.rb +1 -1
  11. data/app/controllers/ui_job_wizard_controller.rb +18 -0
  12. data/app/lib/actions/remote_execution/run_host_job.rb +38 -1
  13. data/app/lib/actions/remote_execution/run_hosts_job.rb +9 -1
  14. data/app/models/concerns/foreman_remote_execution/host_extensions.rb +38 -14
  15. data/app/models/foreign_input_set.rb +1 -1
  16. data/app/models/host_status/execution_status.rb +7 -0
  17. data/app/models/job_invocation.rb +2 -1
  18. data/app/models/job_invocation_composer.rb +1 -1
  19. data/app/models/remote_execution_feature.rb +5 -2
  20. data/app/models/remote_execution_provider.rb +6 -1
  21. data/app/services/remote_execution_proxy_selector.rb +3 -0
  22. data/app/views/api/v2/job_invocations/main.json.rabl +1 -1
  23. data/app/views/api/v2/registration/_form.html.erb +12 -0
  24. data/app/views/template_invocations/_output_line_set.html.erb +1 -1
  25. data/app/views/template_invocations/show.html.erb +30 -23
  26. data/app/views/templates/ssh/package_action.erb +1 -0
  27. data/config/routes.rb +5 -0
  28. data/db/migrate/20200820122057_add_proxy_selector_override_to_remote_execution_feature.rb +5 -0
  29. data/foreman_remote_execution.gemspec +1 -2
  30. data/lib/foreman_remote_execution/engine.rb +21 -2
  31. data/lib/foreman_remote_execution/version.rb +1 -1
  32. data/package.json +6 -6
  33. data/test/functional/api/v2/job_invocations_controller_test.rb +42 -3
  34. data/test/functional/api/v2/registration_controller_test.rb +73 -0
  35. data/test/functional/ui_job_wizard_controller_test.rb +16 -0
  36. data/test/unit/actions/run_hosts_job_test.rb +1 -0
  37. data/webpack/JobWizard/JobWizard.js +32 -0
  38. data/webpack/JobWizard/index.js +32 -0
  39. data/webpack/Routes/routes.js +12 -0
  40. data/webpack/__mocks__/foremanReact/history.js +1 -0
  41. data/webpack/global_index.js +4 -0
  42. data/webpack/react_app/components/TargetingHosts/TargetingHosts.js +5 -1
  43. data/webpack/react_app/components/TargetingHosts/TargetingHostsPage.js +6 -2
  44. data/webpack/react_app/components/TargetingHosts/TargetingHostsPage.scss +0 -3
  45. data/webpack/react_app/components/TargetingHosts/__tests__/__snapshots__/TargetingHostsPage.test.js.snap +1 -1
  46. metadata +24 -23
@@ -1,6 +1,3 @@
1
- .targeting-hosts-pagination {
2
- margin-top: -7px;
3
- }
4
1
  #targeting_hosts {
5
2
  min-height: 350px;
6
3
  }
@@ -62,7 +62,7 @@ exports[`TargetingHostsPage renders 1`] = `
62
62
  "perPage": 20,
63
63
  }
64
64
  }
65
- viewType="list"
65
+ viewType="table"
66
66
  />
67
67
  </div>
68
68
  `;
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.1.0
4
+ version: 4.3.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Foreman Remote Execution team
8
- autorequire:
8
+ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2020-09-01 00:00:00.000000000 Z
11
+ date: 2021-03-22 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: 0.15.1
67
+ version: 4.0.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: 0.15.1
74
+ version: 4.0.0
75
75
  - !ruby/object:Gem::Dependency
76
76
  name: factory_bot_rails
77
77
  requirement: !ruby/object:Gem::Requirement
@@ -86,20 +86,6 @@ dependencies:
86
86
  - - "~>"
87
87
  - !ruby/object:Gem::Version
88
88
  version: 4.8.0
89
- - !ruby/object:Gem::Dependency
90
- name: rubocop
91
- requirement: !ruby/object:Gem::Requirement
92
- requirements:
93
- - - "~>"
94
- - !ruby/object:Gem::Version
95
- version: 0.80.0
96
- type: :development
97
- prerelease: false
98
- version_requirements: !ruby/object:Gem::Requirement
99
- requirements:
100
- - - "~>"
101
- - !ruby/object:Gem::Version
102
- version: 0.80.0
103
89
  - !ruby/object:Gem::Dependency
104
90
  name: rdoc
105
91
  requirement: !ruby/object:Gem::Requirement
@@ -127,8 +113,10 @@ files:
127
113
  - ".babelrc.js"
128
114
  - ".eslintignore"
129
115
  - ".eslintrc"
130
- - ".github/workflows/ci.yml"
116
+ - ".github/workflows/js_ci.yml"
117
+ - ".github/workflows/ruby_ci.yml"
131
118
  - ".gitignore"
119
+ - ".prettierrc"
132
120
  - ".rubocop.yml"
133
121
  - ".rubocop_todo.yml"
134
122
  - ".tx/config"
@@ -154,11 +142,13 @@ files:
154
142
  - app/controllers/concerns/foreman/controller/parameters/job_template.rb
155
143
  - app/controllers/concerns/foreman/controller/parameters/remote_execution_feature.rb
156
144
  - app/controllers/concerns/foreman/controller/parameters/targeting.rb
145
+ - app/controllers/foreman_remote_execution/concerns/api/v2/registration_controller_extensions.rb
157
146
  - app/controllers/foreman_remote_execution/concerns/api/v2/subnets_controller_extensions.rb
158
147
  - app/controllers/job_invocations_controller.rb
159
148
  - app/controllers/job_templates_controller.rb
160
149
  - app/controllers/remote_execution_features_controller.rb
161
150
  - app/controllers/template_invocations_controller.rb
151
+ - app/controllers/ui_job_wizard_controller.rb
162
152
  - app/helpers/concerns/foreman_remote_execution/hosts_helper_extensions.rb
163
153
  - app/helpers/concerns/foreman_remote_execution/job_templates_extensions.rb
164
154
  - app/helpers/job_invocation_output_helper.rb
@@ -226,6 +216,7 @@ files:
226
216
  - app/views/api/v2/job_templates/main.json.rabl
227
217
  - app/views/api/v2/job_templates/show.json.rabl
228
218
  - app/views/api/v2/job_templates/update.json.rabl
219
+ - app/views/api/v2/registration/_form.html.erb
229
220
  - app/views/api/v2/remote_execution_features/base.json.rabl
230
221
  - app/views/api/v2/remote_execution_features/index.json.rabl
231
222
  - app/views/api/v2/remote_execution_features/main.json.rabl
@@ -328,6 +319,7 @@ files:
328
319
  - db/migrate/20180913101042_add_randomized_ordering_to_targeting.rb
329
320
  - db/migrate/20190111153330_remove_remote_execution_without_proxy_setting.rb
330
321
  - db/migrate/20200623073022_rename_sudo_password_to_effective_user_password.rb
322
+ - db/migrate/20200820122057_add_proxy_selector_override_to_remote_execution_feature.rb
331
323
  - db/seeds.d/100-assign_features_with_templates.rb
332
324
  - db/seeds.d/20-permissions.rb
333
325
  - db/seeds.d/50-notification_blueprints.rb
@@ -376,11 +368,13 @@ files:
376
368
  - test/functional/api/v2/foreign_input_sets_controller_test.rb
377
369
  - test/functional/api/v2/job_invocations_controller_test.rb
378
370
  - test/functional/api/v2/job_templates_controller_test.rb
371
+ - test/functional/api/v2/registration_controller_test.rb
379
372
  - test/functional/api/v2/remote_execution_features_controller_test.rb
380
373
  - test/functional/api/v2/template_invocations_controller_test.rb
381
374
  - test/functional/cockpit_controller_test.rb
382
375
  - test/functional/job_invocations_controller_test.rb
383
376
  - test/functional/job_templates_controller_test.rb
377
+ - test/functional/ui_job_wizard_controller_test.rb
384
378
  - test/helpers/remote_execution_helper_test.rb
385
379
  - test/models/orchestration/ssh_test.rb
386
380
  - test/support/remote_execution_helper.rb
@@ -401,13 +395,18 @@ files:
401
395
  - test/unit/renderer_scope_input.rb
402
396
  - test/unit/targeting_test.rb
403
397
  - test/unit/template_invocation_input_value_test.rb
398
+ - webpack/JobWizard/JobWizard.js
399
+ - webpack/JobWizard/index.js
400
+ - webpack/Routes/routes.js
404
401
  - webpack/__mocks__/foremanReact/common/I18n.js
405
402
  - webpack/__mocks__/foremanReact/components/Pagination/PaginationWrapper.js
406
403
  - webpack/__mocks__/foremanReact/components/SearchBar.js
407
404
  - webpack/__mocks__/foremanReact/components/common/ActionButtons/ActionButtons.js
408
405
  - webpack/__mocks__/foremanReact/constants.js
406
+ - webpack/__mocks__/foremanReact/history.js
409
407
  - webpack/__mocks__/foremanReact/redux/API/APISelectors.js
410
408
  - webpack/__mocks__/foremanReact/redux/middlewares/IntervalMiddleware/IntervalSelectors.js
409
+ - webpack/global_index.js
411
410
  - webpack/index.js
412
411
  - webpack/react_app/components/TargetingHosts/TargetingHosts.js
413
412
  - webpack/react_app/components/TargetingHosts/TargetingHostsConsts.js
@@ -443,7 +442,7 @@ homepage: https://github.com/theforeman/foreman_remote_execution
443
442
  licenses:
444
443
  - GPL-3.0
445
444
  metadata: {}
446
- post_install_message:
445
+ post_install_message:
447
446
  rdoc_options: []
448
447
  require_paths:
449
448
  - lib
@@ -458,8 +457,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
458
457
  - !ruby/object:Gem::Version
459
458
  version: '0'
460
459
  requirements: []
461
- rubygems_version: 3.0.3
462
- signing_key:
460
+ rubygems_version: 3.1.2
461
+ signing_key:
463
462
  specification_version: 4
464
463
  summary: A plugin bringing remote execution to the Foreman, completing the config
465
464
  management functionality with remote management functionality.
@@ -470,11 +469,13 @@ test_files:
470
469
  - test/functional/api/v2/foreign_input_sets_controller_test.rb
471
470
  - test/functional/api/v2/job_invocations_controller_test.rb
472
471
  - test/functional/api/v2/job_templates_controller_test.rb
472
+ - test/functional/api/v2/registration_controller_test.rb
473
473
  - test/functional/api/v2/remote_execution_features_controller_test.rb
474
474
  - test/functional/api/v2/template_invocations_controller_test.rb
475
475
  - test/functional/cockpit_controller_test.rb
476
476
  - test/functional/job_invocations_controller_test.rb
477
477
  - test/functional/job_templates_controller_test.rb
478
+ - test/functional/ui_job_wizard_controller_test.rb
478
479
  - test/helpers/remote_execution_helper_test.rb
479
480
  - test/models/orchestration/ssh_test.rb
480
481
  - test/support/remote_execution_helper.rb