foreman_remote_execution 3.3.4 → 4.1.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (57) hide show
  1. checksums.yaml +4 -4
  2. data/.github/workflows/ci.yml +1 -1
  3. data/app/controllers/api/v2/job_invocations_controller.rb +1 -0
  4. data/app/controllers/foreman_remote_execution/concerns/api/v2/subnets_controller_extensions.rb +21 -0
  5. data/app/controllers/job_invocations_controller.rb +22 -8
  6. data/app/helpers/job_invocations_helper.rb +3 -2
  7. data/app/lib/actions/remote_execution/run_host_job.rb +1 -1
  8. data/app/lib/actions/remote_execution/run_hosts_job.rb +4 -3
  9. data/app/lib/foreman_remote_execution/renderer/scope/input.rb +35 -0
  10. data/app/models/concerns/api/v2/interfaces_controller_extensions.rb +13 -0
  11. data/app/models/concerns/foreman_remote_execution/orchestration/ssh.rb +11 -4
  12. data/app/models/job_invocation.rb +11 -4
  13. data/app/models/job_invocation_composer.rb +2 -2
  14. data/app/models/remote_execution_provider.rb +2 -2
  15. data/app/models/setting/remote_execution.rb +2 -2
  16. data/app/models/ssh_execution_provider.rb +1 -1
  17. data/app/views/api/v2/interfaces/execution_flag.json.rabl +1 -0
  18. data/app/views/api/v2/job_invocations/base.json.rabl +1 -0
  19. data/app/views/api/v2/job_invocations/main.json.rabl +1 -1
  20. data/app/views/api/v2/subnets/remote_execution_proxies.json.rabl +3 -0
  21. data/app/views/job_invocations/_form.html.erb +1 -1
  22. data/app/views/job_invocations/_tab_hosts.html.erb +1 -20
  23. data/app/views/job_invocations/_tab_overview.html.erb +13 -1
  24. data/app/views/job_invocations/show.html.erb +9 -0
  25. data/app/views/job_invocations/show.js.erb +5 -0
  26. data/app/views/job_invocations/show.json.erb +2 -1
  27. data/db/migrate/20200623073022_rename_sudo_password_to_effective_user_password.rb +34 -0
  28. data/db/seeds.d/20-permissions.rb +9 -0
  29. data/lib/foreman_remote_execution/engine.rb +19 -1
  30. data/lib/foreman_remote_execution/version.rb +1 -1
  31. data/test/functional/api/v2/job_invocations_controller_test.rb +65 -2
  32. data/test/functional/job_invocations_controller_test.rb +71 -0
  33. data/test/models/orchestration/ssh_test.rb +1 -1
  34. data/test/support/remote_execution_helper.rb +5 -0
  35. data/test/unit/actions/run_host_job_test.rb +3 -3
  36. data/test/unit/actions/run_hosts_job_test.rb +2 -2
  37. data/test/unit/job_invocation_composer_test.rb +5 -5
  38. data/test/unit/remote_execution_provider_test.rb +6 -6
  39. data/webpack/__mocks__/foremanReact/components/Pagination/PaginationWrapper.js +2 -0
  40. data/webpack/__mocks__/foremanReact/components/SearchBar.js +2 -0
  41. data/webpack/__mocks__/foremanReact/constants.js +21 -0
  42. data/webpack/__mocks__/foremanReact/redux/API/APISelectors.js +2 -0
  43. data/webpack/__mocks__/foremanReact/redux/middlewares/IntervalMiddleware/IntervalSelectors.js +1 -0
  44. data/webpack/react_app/components/TargetingHosts/TargetingHosts.js +21 -15
  45. data/webpack/react_app/components/TargetingHosts/TargetingHostsHelpers.js +10 -0
  46. data/webpack/react_app/components/TargetingHosts/TargetingHostsPage.js +62 -0
  47. data/webpack/react_app/components/TargetingHosts/TargetingHostsPage.scss +6 -0
  48. data/webpack/react_app/components/TargetingHosts/TargetingHostsSelectors.js +10 -2
  49. data/webpack/react_app/components/TargetingHosts/__tests__/TargetingHostsPage.test.js +9 -0
  50. data/webpack/react_app/components/TargetingHosts/__tests__/TargetingHostsSelectors.test.js +26 -0
  51. data/webpack/react_app/components/TargetingHosts/__tests__/__snapshots__/TargetingHosts.test.js.snap +16 -1
  52. data/webpack/react_app/components/TargetingHosts/__tests__/__snapshots__/TargetingHostsPage.test.js.snap +68 -0
  53. data/webpack/react_app/components/TargetingHosts/__tests__/__snapshots__/TargetingHostsSelectors.test.js.snap +11 -0
  54. data/webpack/react_app/components/TargetingHosts/__tests__/fixtures.js +35 -19
  55. data/webpack/react_app/components/TargetingHosts/index.js +73 -13
  56. metadata +22 -3
  57. data/webpack/react_app/components/TargetingHosts/TargetingHostsActions.js +0 -8
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: 3.3.4
4
+ version: 4.1.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: 2020-07-20 00:00:00.000000000 Z
11
+ date: 2020-09-01 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: deface
@@ -154,6 +154,7 @@ files:
154
154
  - app/controllers/concerns/foreman/controller/parameters/job_template.rb
155
155
  - app/controllers/concerns/foreman/controller/parameters/remote_execution_feature.rb
156
156
  - app/controllers/concerns/foreman/controller/parameters/targeting.rb
157
+ - app/controllers/foreman_remote_execution/concerns/api/v2/subnets_controller_extensions.rb
157
158
  - app/controllers/job_invocations_controller.rb
158
159
  - app/controllers/job_templates_controller.rb
159
160
  - app/controllers/remote_execution_features_controller.rb
@@ -170,6 +171,7 @@ files:
170
171
  - app/lib/foreman_remote_execution/renderer/scope/input.rb
171
172
  - app/lib/proxy_api/remote_execution_ssh.rb
172
173
  - app/mailers/.gitkeep
174
+ - app/models/concerns/api/v2/interfaces_controller_extensions.rb
173
175
  - app/models/concerns/foreman_remote_execution/bookmark_extensions.rb
174
176
  - app/models/concerns/foreman_remote_execution/errors_flattener.rb
175
177
  - app/models/concerns/foreman_remote_execution/foreman_tasks_cleaner_extensions.rb
@@ -212,6 +214,7 @@ files:
212
214
  - app/views/api/v2/foreign_input_sets/index.json.rabl
213
215
  - app/views/api/v2/foreign_input_sets/main.json.rabl
214
216
  - app/views/api/v2/foreign_input_sets/show.json.rabl
217
+ - app/views/api/v2/interfaces/execution_flag.json.rabl
215
218
  - app/views/api/v2/job_invocations/base.json.rabl
216
219
  - app/views/api/v2/job_invocations/create.json.rabl
217
220
  - app/views/api/v2/job_invocations/index.json.rabl
@@ -228,6 +231,7 @@ files:
228
231
  - app/views/api/v2/remote_execution_features/main.json.rabl
229
232
  - app/views/api/v2/remote_execution_features/show.json.rabl
230
233
  - app/views/api/v2/smart_proxies/pubkey.json.rabl
234
+ - app/views/api/v2/subnets/remote_execution_proxies.json.rabl
231
235
  - app/views/api/v2/template_invocations/base.json.rabl
232
236
  - app/views/api/v2/template_invocations/template_invocations.json.rabl
233
237
  - app/views/dashboard/.gitkeep
@@ -249,6 +253,7 @@ files:
249
253
  - app/views/job_invocations/new.html.erb
250
254
  - app/views/job_invocations/refresh.js.erb
251
255
  - app/views/job_invocations/show.html.erb
256
+ - app/views/job_invocations/show.js.erb
252
257
  - app/views/job_invocations/show.json.erb
253
258
  - app/views/job_invocations/welcome.html.erb
254
259
  - app/views/job_templates/_custom_tab_headers.html.erb
@@ -322,7 +327,9 @@ files:
322
327
  - db/migrate/20180411160809_add_sudo_password_to_job_invocation.rb
323
328
  - db/migrate/20180913101042_add_randomized_ordering_to_targeting.rb
324
329
  - db/migrate/20190111153330_remove_remote_execution_without_proxy_setting.rb
330
+ - db/migrate/20200623073022_rename_sudo_password_to_effective_user_password.rb
325
331
  - db/seeds.d/100-assign_features_with_templates.rb
332
+ - db/seeds.d/20-permissions.rb
326
333
  - db/seeds.d/50-notification_blueprints.rb
327
334
  - db/seeds.d/60-ssh_proxy_feature.rb
328
335
  - db/seeds.d/70-job_templates.rb
@@ -376,6 +383,7 @@ files:
376
383
  - test/functional/job_templates_controller_test.rb
377
384
  - test/helpers/remote_execution_helper_test.rb
378
385
  - test/models/orchestration/ssh_test.rb
386
+ - test/support/remote_execution_helper.rb
379
387
  - test/test_plugin_helper.rb
380
388
  - test/unit/actions/run_host_job_test.rb
381
389
  - test/unit/actions/run_hosts_job_test.rb
@@ -394,19 +402,29 @@ files:
394
402
  - test/unit/targeting_test.rb
395
403
  - test/unit/template_invocation_input_value_test.rb
396
404
  - webpack/__mocks__/foremanReact/common/I18n.js
405
+ - webpack/__mocks__/foremanReact/components/Pagination/PaginationWrapper.js
406
+ - webpack/__mocks__/foremanReact/components/SearchBar.js
397
407
  - webpack/__mocks__/foremanReact/components/common/ActionButtons/ActionButtons.js
398
408
  - webpack/__mocks__/foremanReact/constants.js
409
+ - webpack/__mocks__/foremanReact/redux/API/APISelectors.js
410
+ - webpack/__mocks__/foremanReact/redux/middlewares/IntervalMiddleware/IntervalSelectors.js
399
411
  - webpack/index.js
400
412
  - webpack/react_app/components/TargetingHosts/TargetingHosts.js
401
- - webpack/react_app/components/TargetingHosts/TargetingHostsActions.js
402
413
  - webpack/react_app/components/TargetingHosts/TargetingHostsConsts.js
414
+ - webpack/react_app/components/TargetingHosts/TargetingHostsHelpers.js
415
+ - webpack/react_app/components/TargetingHosts/TargetingHostsPage.js
416
+ - webpack/react_app/components/TargetingHosts/TargetingHostsPage.scss
403
417
  - webpack/react_app/components/TargetingHosts/TargetingHostsSelectors.js
404
418
  - webpack/react_app/components/TargetingHosts/__tests__/HostItem.test.js
405
419
  - webpack/react_app/components/TargetingHosts/__tests__/HostStatus.test.js
406
420
  - webpack/react_app/components/TargetingHosts/__tests__/TargetingHosts.test.js
421
+ - webpack/react_app/components/TargetingHosts/__tests__/TargetingHostsPage.test.js
422
+ - webpack/react_app/components/TargetingHosts/__tests__/TargetingHostsSelectors.test.js
407
423
  - webpack/react_app/components/TargetingHosts/__tests__/__snapshots__/HostItem.test.js.snap
408
424
  - webpack/react_app/components/TargetingHosts/__tests__/__snapshots__/HostStatus.test.js.snap
409
425
  - webpack/react_app/components/TargetingHosts/__tests__/__snapshots__/TargetingHosts.test.js.snap
426
+ - webpack/react_app/components/TargetingHosts/__tests__/__snapshots__/TargetingHostsPage.test.js.snap
427
+ - webpack/react_app/components/TargetingHosts/__tests__/__snapshots__/TargetingHostsSelectors.test.js.snap
410
428
  - webpack/react_app/components/TargetingHosts/__tests__/fixtures.js
411
429
  - webpack/react_app/components/TargetingHosts/components/HostItem.js
412
430
  - webpack/react_app/components/TargetingHosts/components/HostStatus.js
@@ -459,6 +477,7 @@ test_files:
459
477
  - test/functional/job_templates_controller_test.rb
460
478
  - test/helpers/remote_execution_helper_test.rb
461
479
  - test/models/orchestration/ssh_test.rb
480
+ - test/support/remote_execution_helper.rb
462
481
  - test/test_plugin_helper.rb
463
482
  - test/unit/actions/run_host_job_test.rb
464
483
  - test/unit/actions/run_hosts_job_test.rb
@@ -1,8 +0,0 @@
1
- import { getURI } from 'foremanReact/common/urlHelpers';
2
- import { get } from 'foremanReact/redux/API';
3
- import { withInterval } from 'foremanReact/redux/middlewares/IntervalMiddleware';
4
- import { TARGETING_HOSTS } from './TargetingHostsConsts';
5
-
6
- const url = getURI().addQuery('format', 'json');
7
- export const getData = () =>
8
- withInterval(get({ key: TARGETING_HOSTS, url }), 1000);