foreman_remote_execution 12.0.5 → 13.0.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (89) hide show
  1. checksums.yaml +4 -4
  2. data/.github/workflows/js_ci.yml +1 -1
  3. data/.github/workflows/ruby_ci.yml +16 -81
  4. data/.packit.yaml +8 -3
  5. data/app/assets/javascripts/foreman_remote_execution/locale/de/foreman_remote_execution.js +23 -14
  6. data/app/assets/javascripts/foreman_remote_execution/locale/en/foreman_remote_execution.js +22 -4
  7. data/app/assets/javascripts/foreman_remote_execution/locale/en_GB/foreman_remote_execution.js +23 -14
  8. data/app/assets/javascripts/foreman_remote_execution/locale/es/foreman_remote_execution.js +23 -14
  9. data/app/assets/javascripts/foreman_remote_execution/locale/fr/foreman_remote_execution.js +23 -14
  10. data/app/assets/javascripts/foreman_remote_execution/locale/ja/foreman_remote_execution.js +23 -14
  11. data/app/assets/javascripts/foreman_remote_execution/locale/ka/foreman_remote_execution.js +23 -14
  12. data/app/assets/javascripts/foreman_remote_execution/locale/ko/foreman_remote_execution.js +23 -14
  13. data/app/assets/javascripts/foreman_remote_execution/locale/pt_BR/foreman_remote_execution.js +23 -14
  14. data/app/assets/javascripts/foreman_remote_execution/locale/ru/foreman_remote_execution.js +23 -14
  15. data/app/assets/javascripts/foreman_remote_execution/locale/zh_CN/foreman_remote_execution.js +23 -14
  16. data/app/assets/javascripts/foreman_remote_execution/locale/zh_TW/foreman_remote_execution.js +23 -14
  17. data/app/controllers/ui_job_wizard_controller.rb +1 -1
  18. data/app/helpers/job_invocations_helper.rb +1 -1
  19. data/app/helpers/remote_execution_helper.rb +2 -2
  20. data/app/lib/actions/remote_execution/proxy_action.rb +1 -1
  21. data/app/lib/actions/remote_execution/run_host_job.rb +9 -3
  22. data/app/models/host_status/execution_status.rb +2 -2
  23. data/app/views/job_invocations/_preview_hosts_list.html.erb +1 -1
  24. data/app/views/job_invocations/show.html.erb +12 -5
  25. data/app/views/job_invocations/show.js.erb +8 -1
  26. data/app/views/job_invocations/welcome.html.erb +1 -1
  27. data/app/views/template_invocations/_refresh.js.erb +10 -4
  28. data/app/views/template_invocations/show.html.erb +2 -2
  29. data/lib/foreman_remote_execution/engine.rb +1 -1
  30. data/lib/foreman_remote_execution/version.rb +1 -1
  31. data/locale/de/LC_MESSAGES/foreman_remote_execution.mo +0 -0
  32. data/locale/de/foreman_remote_execution.po +24 -6
  33. data/locale/en/foreman_remote_execution.po +24 -6
  34. data/locale/en_GB/LC_MESSAGES/foreman_remote_execution.mo +0 -0
  35. data/locale/en_GB/foreman_remote_execution.po +24 -6
  36. data/locale/es/LC_MESSAGES/foreman_remote_execution.mo +0 -0
  37. data/locale/es/foreman_remote_execution.po +24 -6
  38. data/locale/foreman_remote_execution.pot +170 -142
  39. data/locale/fr/LC_MESSAGES/foreman_remote_execution.mo +0 -0
  40. data/locale/fr/foreman_remote_execution.po +24 -6
  41. data/locale/ja/LC_MESSAGES/foreman_remote_execution.mo +0 -0
  42. data/locale/ja/foreman_remote_execution.po +24 -6
  43. data/locale/ka/LC_MESSAGES/foreman_remote_execution.mo +0 -0
  44. data/locale/ka/foreman_remote_execution.po +24 -6
  45. data/locale/ko/LC_MESSAGES/foreman_remote_execution.mo +0 -0
  46. data/locale/ko/foreman_remote_execution.po +24 -6
  47. data/locale/pt_BR/LC_MESSAGES/foreman_remote_execution.mo +0 -0
  48. data/locale/pt_BR/foreman_remote_execution.po +24 -6
  49. data/locale/ru/LC_MESSAGES/foreman_remote_execution.mo +0 -0
  50. data/locale/ru/foreman_remote_execution.po +24 -6
  51. data/locale/zh_CN/LC_MESSAGES/foreman_remote_execution.mo +0 -0
  52. data/locale/zh_CN/foreman_remote_execution.po +24 -6
  53. data/locale/zh_TW/LC_MESSAGES/foreman_remote_execution.mo +0 -0
  54. data/locale/zh_TW/foreman_remote_execution.po +24 -6
  55. data/package.json +1 -5
  56. data/test/functional/api/v2/job_invocations_controller_test.rb +7 -7
  57. data/test/functional/api/v2/template_invocations_controller_test.rb +3 -3
  58. data/test/helpers/remote_execution_helper_test.rb +8 -7
  59. data/test/unit/actions/run_host_job_test.rb +1 -1
  60. data/test/unit/actions/run_hosts_job_test.rb +11 -11
  61. data/test/unit/concerns/foreman_tasks_cleaner_extensions_test.rb +5 -5
  62. data/test/unit/concerns/host_extensions_test.rb +34 -34
  63. data/test/unit/concerns/nic_extensions_test.rb +1 -1
  64. data/test/unit/execution_task_status_mapper_test.rb +10 -10
  65. data/test/unit/input_template_renderer_test.rb +53 -49
  66. data/test/unit/job_invocation_composer_test.rb +78 -78
  67. data/test/unit/job_invocation_test.rb +25 -25
  68. data/test/unit/job_template_effective_user_test.rb +3 -3
  69. data/test/unit/job_template_test.rb +28 -28
  70. data/test/unit/remote_execution_feature_test.rb +14 -14
  71. data/test/unit/remote_execution_provider_test.rb +39 -39
  72. data/test/unit/renderer_scope_input_test.rb +6 -6
  73. data/test/unit/targeting_test.rb +32 -32
  74. data/webpack/JobWizard/JobWizardConstants.js +4 -0
  75. data/webpack/JobWizard/JobWizardSelectors.js +31 -3
  76. data/webpack/JobWizard/PermissionDenied.js +64 -0
  77. data/webpack/JobWizard/__tests__/fixtures.js +3 -3
  78. data/webpack/JobWizard/autofill.js +8 -4
  79. data/webpack/JobWizard/index.js +40 -1
  80. data/webpack/JobWizard/steps/CategoryAndTemplate/CategoryAndTemplate.js +26 -5
  81. data/webpack/JobWizard/steps/HostsAndInputs/HostPreviewModal.js +3 -3
  82. data/webpack/JobWizard/steps/HostsAndInputs/SelectGQL.js +1 -0
  83. data/webpack/JobWizard/steps/HostsAndInputs/SelectedChips.js +13 -6
  84. data/webpack/JobWizard/steps/HostsAndInputs/hosts.gql +1 -0
  85. data/webpack/JobWizard/steps/HostsAndInputs/index.js +21 -1
  86. data/webpack/JobWizard/steps/ReviewDetails/index.js +3 -2
  87. data/webpack/JobWizard/steps/form/SearchSelect.js +3 -1
  88. data/webpack/JobWizard/steps/form/__tests__/SelectSearch.test.js +2 -0
  89. metadata +3 -2
@@ -79,6 +79,9 @@ msgstr ""
79
79
  msgid "Abort Job"
80
80
  msgstr ""
81
81
 
82
+ msgid "Access denied"
83
+ msgstr ""
84
+
82
85
  msgid "Actions"
83
86
  msgstr ""
84
87
 
@@ -124,6 +127,9 @@ msgstr ""
124
127
  msgid "At minute"
125
128
  msgstr ""
126
129
 
130
+ msgid "Awaiting start"
131
+ msgstr ""
132
+
127
133
  msgid "Back"
128
134
  msgstr ""
129
135
 
@@ -370,9 +376,6 @@ msgstr ""
370
376
  msgid "Ends"
371
377
  msgstr ""
372
378
 
373
- msgid "Error"
374
- msgstr ""
375
-
376
379
  msgid "Error loading data from proxy"
377
380
  msgstr ""
378
381
 
@@ -703,6 +706,9 @@ msgstr ""
703
706
  msgid "Minute can only be a number between 0-59"
704
707
  msgstr ""
705
708
 
709
+ msgid "Missing the required permissions: ${missingPermissions.join( ', ' )}"
710
+ msgstr ""
711
+
706
712
  msgid "Monthly"
707
713
  msgstr ""
708
714
 
@@ -733,9 +739,6 @@ msgstr ""
733
739
  msgid "No Target Hosts"
734
740
  msgstr ""
735
741
 
736
- msgid "No execution finished yet"
737
- msgstr ""
738
-
739
742
  msgid "No hosts found."
740
743
  msgstr ""
741
744
 
@@ -751,6 +754,9 @@ msgstr ""
751
754
  msgid "Not all required inputs have values. Missing inputs: %s"
752
755
  msgstr ""
753
756
 
757
+ msgid "Not available"
758
+ msgstr ""
759
+
754
760
  msgid "Not yet"
755
761
  msgstr ""
756
762
 
@@ -802,6 +808,9 @@ msgstr ""
802
808
  msgid "Perform no more executions after this time"
803
809
  msgstr ""
804
810
 
811
+ msgid "Permission Denied"
812
+ msgstr ""
813
+
805
814
  msgid "Please enter a search query"
806
815
  msgstr ""
807
816
 
@@ -811,6 +820,9 @@ msgstr ""
811
820
  msgid "Please refine your search."
812
821
  msgstr ""
813
822
 
823
+ msgid "Please request the required permissions listed below from a Foreman administrator:"
824
+ msgstr ""
825
+
814
826
  msgid "Please select at least one host"
815
827
  msgstr ""
816
828
 
@@ -844,6 +856,9 @@ msgstr ""
844
856
  msgid "Problem with previewing the template: %{error}. Note that you must save template input changes before you try to preview it."
845
857
  msgstr ""
846
858
 
859
+ msgid "Proceed Anyway"
860
+ msgstr ""
861
+
847
862
  msgid "Provider type"
848
863
  msgstr ""
849
864
 
@@ -1458,6 +1473,9 @@ msgstr ""
1458
1473
  msgid "You are not allowed to see the currently assigned template. Saving the form now would unassign the template."
1459
1474
  msgstr ""
1460
1475
 
1476
+ msgid "You are not authorized to perform this action."
1477
+ msgstr ""
1478
+
1461
1479
  msgid "You have %s results to display. Showing first %s results"
1462
1480
  msgstr ""
1463
1481
 
@@ -80,6 +80,9 @@ msgstr ""
80
80
  msgid "Abort Job"
81
81
  msgstr ""
82
82
 
83
+ msgid "Access denied"
84
+ msgstr ""
85
+
83
86
  msgid "Actions"
84
87
  msgstr "Actions"
85
88
 
@@ -125,6 +128,9 @@ msgstr ""
125
128
  msgid "At minute"
126
129
  msgstr ""
127
130
 
131
+ msgid "Awaiting start"
132
+ msgstr ""
133
+
128
134
  msgid "Back"
129
135
  msgstr ""
130
136
 
@@ -371,9 +377,6 @@ msgstr ""
371
377
  msgid "Ends"
372
378
  msgstr ""
373
379
 
374
- msgid "Error"
375
- msgstr "Error"
376
-
377
380
  msgid "Error loading data from proxy"
378
381
  msgstr ""
379
382
 
@@ -704,6 +707,9 @@ msgstr ""
704
707
  msgid "Minute can only be a number between 0-59"
705
708
  msgstr ""
706
709
 
710
+ msgid "Missing the required permissions: ${missingPermissions.join( ', ' )}"
711
+ msgstr ""
712
+
707
713
  msgid "Monthly"
708
714
  msgstr ""
709
715
 
@@ -734,9 +740,6 @@ msgstr ""
734
740
  msgid "No Target Hosts"
735
741
  msgstr ""
736
742
 
737
- msgid "No execution finished yet"
738
- msgstr ""
739
-
740
743
  msgid "No hosts found."
741
744
  msgstr ""
742
745
 
@@ -752,6 +755,9 @@ msgstr ""
752
755
  msgid "Not all required inputs have values. Missing inputs: %s"
753
756
  msgstr ""
754
757
 
758
+ msgid "Not available"
759
+ msgstr ""
760
+
755
761
  msgid "Not yet"
756
762
  msgstr ""
757
763
 
@@ -803,6 +809,9 @@ msgstr ""
803
809
  msgid "Perform no more executions after this time"
804
810
  msgstr ""
805
811
 
812
+ msgid "Permission Denied"
813
+ msgstr ""
814
+
806
815
  msgid "Please enter a search query"
807
816
  msgstr ""
808
817
 
@@ -812,6 +821,9 @@ msgstr ""
812
821
  msgid "Please refine your search."
813
822
  msgstr ""
814
823
 
824
+ msgid "Please request the required permissions listed below from a Foreman administrator:"
825
+ msgstr ""
826
+
815
827
  msgid "Please select at least one host"
816
828
  msgstr ""
817
829
 
@@ -845,6 +857,9 @@ msgstr ""
845
857
  msgid "Problem with previewing the template: %{error}. Note that you must save template input changes before you try to preview it."
846
858
  msgstr ""
847
859
 
860
+ msgid "Proceed Anyway"
861
+ msgstr ""
862
+
848
863
  msgid "Provider type"
849
864
  msgstr ""
850
865
 
@@ -1459,6 +1474,9 @@ msgstr ""
1459
1474
  msgid "You are not allowed to see the currently assigned template. Saving the form now would unassign the template."
1460
1475
  msgstr ""
1461
1476
 
1477
+ msgid "You are not authorized to perform this action."
1478
+ msgstr ""
1479
+
1462
1480
  msgid "You have %s results to display. Showing first %s results"
1463
1481
  msgstr ""
1464
1482
 
@@ -80,6 +80,9 @@ msgstr "Un usuario que se debe utilizar para ejecutar el script. Si es distinto
80
80
  msgid "Abort Job"
81
81
  msgstr "Abortar trabajo"
82
82
 
83
+ msgid "Access denied"
84
+ msgstr ""
85
+
83
86
  msgid "Actions"
84
87
  msgstr "Acciones"
85
88
 
@@ -125,6 +128,9 @@ msgstr "En"
125
128
  msgid "At minute"
126
129
  msgstr "En el minuto"
127
130
 
131
+ msgid "Awaiting start"
132
+ msgstr ""
133
+
128
134
  msgid "Back"
129
135
  msgstr ""
130
136
 
@@ -371,9 +377,6 @@ msgstr "La hora de finalización debe ser posterior a la de inicio"
371
377
  msgid "Ends"
372
378
  msgstr "Finales"
373
379
 
374
- msgid "Error"
375
- msgstr "Error"
376
-
377
380
  msgid "Error loading data from proxy"
378
381
  msgstr "Error al cargar los datos del proxy"
379
382
 
@@ -704,6 +707,9 @@ msgstr "Selección manual"
704
707
  msgid "Minute can only be a number between 0-59"
705
708
  msgstr ""
706
709
 
710
+ msgid "Missing the required permissions: ${missingPermissions.join( ', ' )}"
711
+ msgstr ""
712
+
707
713
  msgid "Monthly"
708
714
  msgstr "Mensual"
709
715
 
@@ -734,9 +740,6 @@ msgstr "No (anulación)"
734
740
  msgid "No Target Hosts"
735
741
  msgstr "No hay hosts de destino"
736
742
 
737
- msgid "No execution finished yet"
738
- msgstr "Aún no finalizó ninguna ejecución."
739
-
740
743
  msgid "No hosts found."
741
744
  msgstr "No se encontraron hosts."
742
745
 
@@ -752,6 +755,9 @@ msgstr "No hay ninguna plantilla mapeada a la funcionalidad %{feature_name}."
752
755
  msgid "Not all required inputs have values. Missing inputs: %s"
753
756
  msgstr "No todas las entradas requeridas tienen valores. Entradas que faltan: %s"
754
757
 
758
+ msgid "Not available"
759
+ msgstr ""
760
+
755
761
  msgid "Not yet"
756
762
  msgstr ""
757
763
 
@@ -803,6 +809,9 @@ msgstr "Realizar una sola ejecución de Puppet"
803
809
  msgid "Perform no more executions after this time"
804
810
  msgstr "No ejecutar más después de esta cantidad de veces"
805
811
 
812
+ msgid "Permission Denied"
813
+ msgstr ""
814
+
806
815
  msgid "Please enter a search query"
807
816
  msgstr ""
808
817
 
@@ -812,6 +821,9 @@ msgstr ""
812
821
  msgid "Please refine your search."
813
822
  msgstr "Afine su búsqueda."
814
823
 
824
+ msgid "Please request the required permissions listed below from a Foreman administrator:"
825
+ msgstr ""
826
+
815
827
  msgid "Please select at least one host"
816
828
  msgstr ""
817
829
 
@@ -845,6 +857,9 @@ msgstr "Frase de contraseña de clave privada"
845
857
  msgid "Problem with previewing the template: %{error}. Note that you must save template input changes before you try to preview it."
846
858
  msgstr "Ha ocurrido un problema al hacer una vista previa de la plantilla: %{error}. Tenga en cuenta que debe guardar los cambios de la entrada de la plantilla antes de intentar obtener una vista previa."
847
859
 
860
+ msgid "Proceed Anyway"
861
+ msgstr ""
862
+
848
863
  msgid "Provider type"
849
864
  msgstr "Tipo de proveedor"
850
865
 
@@ -1460,6 +1475,9 @@ msgstr "Sí (anulación)"
1460
1475
  msgid "You are not allowed to see the currently assigned template. Saving the form now would unassign the template."
1461
1476
  msgstr "No puede ver la plantilla actualmente asignada. Si guarda el formulario ahora, se eliminará la asignación de la plantilla."
1462
1477
 
1478
+ msgid "You are not authorized to perform this action."
1479
+ msgstr ""
1480
+
1463
1481
  msgid "You have %s results to display. Showing first %s results"
1464
1482
  msgstr "Tienes %s resultados para mostrar. Mostrando primeros resultados %s "
1465
1483