foreman_remote_execution 18.0.1 → 18.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/app/assets/javascripts/foreman_remote_execution/locale/fr/foreman_remote_execution.js +28 -28
- data/app/assets/javascripts/foreman_remote_execution/locale/ja/foreman_remote_execution.js +48 -48
- data/app/assets/javascripts/foreman_remote_execution/locale/ko/foreman_remote_execution.js +29 -29
- data/app/assets/javascripts/foreman_remote_execution/locale/zh_CN/foreman_remote_execution.js +22 -22
- data/app/assets/javascripts/foreman_remote_execution/template_invocation.js +0 -170
- data/app/assets/stylesheets/foreman_remote_execution/job_invocations.scss +0 -6
- data/app/controllers/job_invocations_controller.rb +2 -99
- data/app/controllers/template_invocations_controller.rb +5 -3
- data/app/helpers/job_invocations_helper.rb +0 -49
- data/app/helpers/remote_execution_helper.rb +23 -123
- data/config/routes.rb +0 -6
- data/lib/foreman_remote_execution/plugin.rb +2 -2
- data/lib/foreman_remote_execution/version.rb +1 -1
- data/locale/foreman_remote_execution.pot +2 -2
- data/locale/fr/LC_MESSAGES/foreman_remote_execution.mo +0 -0
- data/locale/fr/foreman_remote_execution.po +28 -28
- data/locale/ja/LC_MESSAGES/foreman_remote_execution.mo +0 -0
- data/locale/ja/foreman_remote_execution.po +48 -48
- data/locale/ko/LC_MESSAGES/foreman_remote_execution.mo +0 -0
- data/locale/ko/foreman_remote_execution.po +29 -29
- data/locale/zh_CN/LC_MESSAGES/foreman_remote_execution.mo +0 -0
- data/locale/zh_CN/foreman_remote_execution.po +22 -22
- data/package.json +1 -14
- data/test/functional/job_invocations_controller_test.rb +0 -77
- data/test/functional/template_invocations_controller_test.rb +35 -0
- data/webpack/JobInvocationDetail/JobInvocationConstants.js +5 -0
- data/webpack/JobInvocationDetail/JobInvocationToolbarButtons.js +0 -10
- data/webpack/JobInvocationDetail/TemplateInvocation.js +12 -69
- data/webpack/JobInvocationDetail/TemplateInvocationComponents/OutputCodeBlock.js +94 -72
- data/webpack/JobInvocationDetail/TemplateInvocationHelpers.js +33 -0
- data/webpack/JobInvocationDetail/__tests__/JobInvocationDetailEmptyState.test.js +1 -1
- data/webpack/JobInvocationDetail/__tests__/MainInformation.test.js +0 -6
- data/webpack/JobInvocationDetail/__tests__/OutputCodeBlock.test.js +1 -1
- data/webpack/JobInvocationDetail/__tests__/TableToolbarActions.test.js +1 -1
- data/webpack/JobInvocationDetail/__tests__/TemplateInvocation.test.js +5 -1
- data/webpack/JobInvocationDetail/__tests__/TemplateInvocationHelpers.test.js +94 -0
- data/webpack/JobInvocationDetail/__tests__/TemplateInvocationPolling.test.js +338 -139
- data/webpack/JobInvocationDetail/useTemplateInvocationOutputPolling.js +185 -0
- data/webpack/JobWizard/JobWizardPageRerun.js +0 -10
- data/webpack/JobWizard/__tests__/autofill.test.js +23 -0
- data/webpack/JobWizard/__tests__/integration.test.js +1 -1
- data/webpack/JobWizard/autofill.js +18 -4
- data/webpack/JobWizard/index.js +1 -18
- data/webpack/JobWizard/steps/HostsAndInputs/__tests__/HostsAndInputs.test.js +49 -1
- data/webpack/global_index.js +0 -2
- data/webpack/index.js +0 -15
- data/webpack/react_app/components/RegistrationExtension/__tests__/RexInterface.test.js +1 -1
- metadata +7 -53
- data/app/assets/stylesheets/foreman_remote_execution/modal_window.scss +0 -4
- data/app/helpers/job_invocations_chart_helper.rb +0 -80
- data/app/views/job_invocations/_card_results.html.erb +0 -12
- data/app/views/job_invocations/_card_schedule.html.erb +0 -33
- data/app/views/job_invocations/_card_target_hosts.html.erb +0 -57
- data/app/views/job_invocations/_card_user_input.html.erb +0 -16
- data/app/views/job_invocations/_description_fields.html.erb +0 -4
- data/app/views/job_invocations/_form.html.erb +0 -144
- data/app/views/job_invocations/_preview_hosts_modal.html.erb +0 -15
- data/app/views/job_invocations/_rerun_taxonomies.html.erb +0 -22
- data/app/views/job_invocations/_tab_hosts.html.erb +0 -11
- data/app/views/job_invocations/_tab_overview.html.erb +0 -41
- data/app/views/job_invocations/_tab_preview_templates.html.erb +0 -20
- data/app/views/job_invocations/_user_input.html.erb +0 -21
- data/app/views/job_invocations/new.html.erb +0 -9
- data/app/views/job_invocations/refresh.js.erb +0 -4
- data/app/views/job_invocations/show.html.erb +0 -59
- data/app/views/job_invocations/show.js.erb +0 -12
- data/app/views/job_invocations/show.json.erb +0 -5
- data/test/support/remote_execution_helper.rb +0 -5
- data/webpack/react_app/components/TargetingHosts/TargetingHosts.js +0 -62
- data/webpack/react_app/components/TargetingHosts/TargetingHostsConsts.js +0 -2
- data/webpack/react_app/components/TargetingHosts/TargetingHostsHelpers.js +0 -10
- data/webpack/react_app/components/TargetingHosts/TargetingHostsLabelsRow.js +0 -45
- data/webpack/react_app/components/TargetingHosts/TargetingHostsLabelsRow.scss +0 -30
- data/webpack/react_app/components/TargetingHosts/TargetingHostsPage.js +0 -78
- data/webpack/react_app/components/TargetingHosts/TargetingHostsPage.scss +0 -3
- data/webpack/react_app/components/TargetingHosts/TargetingHostsSelectors.js +0 -25
- data/webpack/react_app/components/TargetingHosts/__tests__/HostItem.test.js +0 -76
- data/webpack/react_app/components/TargetingHosts/__tests__/HostStatus.test.js +0 -6
- data/webpack/react_app/components/TargetingHosts/__tests__/TargetingHosts.test.js +0 -6
- data/webpack/react_app/components/TargetingHosts/__tests__/TargetingHostsPage.test.js +0 -9
- data/webpack/react_app/components/TargetingHosts/__tests__/TargetingHostsSelectors.test.js +0 -31
- data/webpack/react_app/components/TargetingHosts/__tests__/__snapshots__/HostStatus.test.js.snap +0 -12
- data/webpack/react_app/components/TargetingHosts/__tests__/__snapshots__/TargetingHosts.test.js.snap +0 -96
- data/webpack/react_app/components/TargetingHosts/__tests__/__snapshots__/TargetingHostsPage.test.js.snap +0 -75
- data/webpack/react_app/components/TargetingHosts/__tests__/__snapshots__/TargetingHostsSelectors.test.js.snap +0 -16
- data/webpack/react_app/components/TargetingHosts/__tests__/fixtures.js +0 -56
- data/webpack/react_app/components/TargetingHosts/components/HostItem.js +0 -39
- data/webpack/react_app/components/TargetingHosts/components/HostStatus.js +0 -54
- data/webpack/react_app/components/TargetingHosts/index.js +0 -150
- data/webpack/react_app/components/jobInvocations/AggregateStatus/index.js +0 -60
- data/webpack/react_app/components/jobInvocations/AggregateStatus/index.test.js +0 -76
- data/webpack/react_app/components/jobInvocations/index.js +0 -94
- data/webpack/react_app/extend/reducers.js +0 -5
- data/webpack/react_app/redux/actions/jobInvocations/index.js +0 -87
- data/webpack/react_app/redux/consts.js +0 -5
- data/webpack/react_app/redux/reducers/index.js +0 -6
- data/webpack/react_app/redux/reducers/jobInvocations/index.fixtures.js +0 -46
- data/webpack/react_app/redux/reducers/jobInvocations/index.js +0 -34
- data/webpack/react_app/redux/reducers/jobInvocations/index.test.js +0 -43
|
@@ -132,7 +132,7 @@ msgid "Alphabetical"
|
|
|
132
132
|
msgstr "알파벳순"
|
|
133
133
|
|
|
134
134
|
msgid "Already on the review step"
|
|
135
|
-
msgstr ""
|
|
135
|
+
msgstr "이미 검토 단계에 있습니다."
|
|
136
136
|
|
|
137
137
|
msgid "An error occurred while fetching the template invocation details."
|
|
138
138
|
msgstr "템플릿 호출 세부 정보를 가져오는 동안 오류가 발생했습니다."
|
|
@@ -264,28 +264,28 @@ msgid "Copy to clipboard"
|
|
|
264
264
|
msgstr "클립보드에 복사"
|
|
265
265
|
|
|
266
266
|
msgid "Could not abort the job %s: %s"
|
|
267
|
-
msgstr ""
|
|
267
|
+
msgstr "%s 작업을 중단할 수 없습니다: %s"
|
|
268
268
|
|
|
269
269
|
msgid "Could not abort the task"
|
|
270
270
|
msgstr "작업을 중단할 수 없습니다"
|
|
271
271
|
|
|
272
272
|
msgid "Could not cancel recurring logic %s: %s"
|
|
273
|
-
msgstr ""
|
|
273
|
+
msgstr "반복 논리 %s를 취소할 수 없습니다: %s"
|
|
274
274
|
|
|
275
275
|
msgid "Could not cancel the job %s: %s"
|
|
276
|
-
msgstr ""
|
|
276
|
+
msgstr "%s 작업을 취소할 수 없습니다: %s"
|
|
277
277
|
|
|
278
278
|
msgid "Could not cancel the task"
|
|
279
279
|
msgstr "작업을 취소할 수 없습니다"
|
|
280
280
|
|
|
281
281
|
msgid "Could not disable recurring logic %s: %s"
|
|
282
|
-
msgstr ""
|
|
282
|
+
msgstr "반복 논리 %s를 비활성화할 수 없습니다: %s"
|
|
283
283
|
|
|
284
284
|
msgid "Could not display data for job invocation."
|
|
285
285
|
msgstr "작업 호출에 대한 데이터를 표시할 수 없습니다."
|
|
286
286
|
|
|
287
287
|
msgid "Could not enable recurring logic %s: %s"
|
|
288
|
-
msgstr ""
|
|
288
|
+
msgstr "반복 논리 %s를 활성화할 수 없습니다: %s"
|
|
289
289
|
|
|
290
290
|
msgid "Could not find any suitable interface for execution"
|
|
291
291
|
msgstr "실행에 적합한 인터페이스를 찾을 수 없습니다."
|
|
@@ -318,7 +318,7 @@ msgid "Create a job template"
|
|
|
318
318
|
msgstr "작업 템플릿 생성"
|
|
319
319
|
|
|
320
320
|
msgid "Create a new job invocation"
|
|
321
|
-
msgstr ""
|
|
321
|
+
msgstr "새로운 작업 호출 생성"
|
|
322
322
|
|
|
323
323
|
msgid "Create a recurring job"
|
|
324
324
|
msgstr "반복 작업 생성"
|
|
@@ -366,7 +366,7 @@ msgid "Daily"
|
|
|
366
366
|
msgstr "매일"
|
|
367
367
|
|
|
368
368
|
msgid "Date must be in the future"
|
|
369
|
-
msgstr "날짜는
|
|
369
|
+
msgstr "날짜는 미래 시점이어야 합니다."
|
|
370
370
|
|
|
371
371
|
msgid "Days"
|
|
372
372
|
msgstr "일"
|
|
@@ -411,7 +411,7 @@ msgid "Designation of a special purpose"
|
|
|
411
411
|
msgstr "특수 목적의 지정"
|
|
412
412
|
|
|
413
413
|
msgid "Directory on the host where remote execution jobs in push mode place and run their scripts. You can override this setting per host with the `remote_execution_remote_working_dir` host parameter."
|
|
414
|
-
msgstr ""
|
|
414
|
+
msgstr "푸시 모드에서 원격 실행 작업이 스크립트를 배치하고 실행하는 호스트의 디렉터리입니다. `remote_execution_remote_working_dir` 호스트 매개변수를 사용하여 호스트별로 이 설정을 재정의할 수 있습니다."
|
|
415
415
|
|
|
416
416
|
msgid "Disable recurring"
|
|
417
417
|
msgstr "반복을 비활성화합니다"
|
|
@@ -432,7 +432,7 @@ msgid "Dynamic query"
|
|
|
432
432
|
msgstr "동적 쿼리"
|
|
433
433
|
|
|
434
434
|
msgid "Edit %s"
|
|
435
|
-
msgstr "%s 편집
|
|
435
|
+
msgstr "%s 편집"
|
|
436
436
|
|
|
437
437
|
msgid "Edit Job Template"
|
|
438
438
|
msgstr "작업 템플릿 편집"
|
|
@@ -549,7 +549,7 @@ msgid "Failed rendering template: %s"
|
|
|
549
549
|
msgstr "템플릿 렌더링 실패: %s"
|
|
550
550
|
|
|
551
551
|
msgid "Failed to load host invocation data"
|
|
552
|
-
msgstr ""
|
|
552
|
+
msgstr "호스트 호출 데이터 로드 실패"
|
|
553
553
|
|
|
554
554
|
msgid "Failed:"
|
|
555
555
|
msgstr "실패함:"
|
|
@@ -606,7 +606,7 @@ msgid "Get raw output for a host"
|
|
|
606
606
|
msgstr "호스트에 대한 원시 출력 가져오기"
|
|
607
607
|
|
|
608
608
|
msgid "Go to job invocations"
|
|
609
|
-
msgstr ""
|
|
609
|
+
msgstr "작업 호출로 이동"
|
|
610
610
|
|
|
611
611
|
msgid "Has to be a positive number"
|
|
612
612
|
msgstr "양수여야 합니다"
|
|
@@ -675,10 +675,10 @@ msgid "Include all inputs from the foreign template"
|
|
|
675
675
|
msgstr "외부 템플릿의 모든 입력 포함"
|
|
676
676
|
|
|
677
677
|
msgid "Include hosts and template invocations in the response. Defaults to true for backwards compatibility. Pass false to skip serializing all hosts."
|
|
678
|
-
msgstr ""
|
|
678
|
+
msgstr "응답에 호스트 및 템플릿 호출을 포함합니다. 이전 버전과의 호환성을 위해 기본값은 true입니다. 모든 호스트 직렬화를 건너뛰려면 false를 전달합니다."
|
|
679
679
|
|
|
680
680
|
msgid "Include per-host task and permission data in the response"
|
|
681
|
-
msgstr ""
|
|
681
|
+
msgstr "응답에 호스트별 작업 및 권한 데이터를 포함합니다."
|
|
682
682
|
|
|
683
683
|
msgid "Indicates that the action should be cancelled if it cannot be started before this time."
|
|
684
684
|
msgstr "이 시간 전에 시작할 수 없는 경우 작업을 취소한다는 것을 나타냅니다."
|
|
@@ -849,7 +849,7 @@ msgid "Minute can only be a number between 0-59"
|
|
|
849
849
|
msgstr "분은 0~59 사이의 숫자만 가능합니다."
|
|
850
850
|
|
|
851
851
|
msgid "Missing permissions to generate report templates"
|
|
852
|
-
msgstr ""
|
|
852
|
+
msgstr "보고서 템플릿을 생성하는 데 필요한 권한이 없습니다."
|
|
853
853
|
|
|
854
854
|
msgid "Missing the required permissions: ${missingPermissions.join( ', ' )}"
|
|
855
855
|
msgstr "필수 권한이 없습니다: ${missingPermissions.join( ', ' )}"
|
|
@@ -861,7 +861,7 @@ msgid "Must select a bookmark or enter a search query"
|
|
|
861
861
|
msgstr "북마크를 선택하거나 검색 쿼리를 입력해야 합니다."
|
|
862
862
|
|
|
863
863
|
msgid "N/A"
|
|
864
|
-
msgstr "해당 없음
|
|
864
|
+
msgstr "해당 없음"
|
|
865
865
|
|
|
866
866
|
msgid "Name"
|
|
867
867
|
msgstr "이름 "
|
|
@@ -1131,10 +1131,10 @@ msgid "Remote execution job"
|
|
|
1131
1131
|
msgstr "원격 실행 프록시"
|
|
1132
1132
|
|
|
1133
1133
|
msgid "Remote working directory"
|
|
1134
|
-
msgstr ""
|
|
1134
|
+
msgstr "원격 작업 디렉토리"
|
|
1135
1135
|
|
|
1136
1136
|
msgid "Remote working directory \"%{current_value}\" is not an absolute path"
|
|
1137
|
-
msgstr ""
|
|
1137
|
+
msgstr "원격 작업 디렉토리 \"%{current_value}\"이/가 절대 경로가 아닙니다."
|
|
1138
1138
|
|
|
1139
1139
|
msgid "Repeat a maximum of N times"
|
|
1140
1140
|
msgstr "최대 N번 반복"
|
|
@@ -1149,7 +1149,7 @@ msgid "Repeats"
|
|
|
1149
1149
|
msgstr "반복"
|
|
1150
1150
|
|
|
1151
1151
|
msgid "Report template not found or not configured properly"
|
|
1152
|
-
msgstr ""
|
|
1152
|
+
msgstr "보고서 템플릿을 찾을 수 없거나 올바르게 구성되지 않았습니다."
|
|
1153
1153
|
|
|
1154
1154
|
msgid "Rerun"
|
|
1155
1155
|
msgstr "재실행"
|
|
@@ -1356,7 +1356,7 @@ msgid "Show job invocation"
|
|
|
1356
1356
|
msgstr "작업 호출 표시"
|
|
1357
1357
|
|
|
1358
1358
|
msgid "Show job status for each host, only applicable when include_hosts is true"
|
|
1359
|
-
msgstr ""
|
|
1359
|
+
msgstr "각 호스트의 작업 상태를 표시합니다. 이 기능은 include_hosts가 true인 경우에만 적용됩니다."
|
|
1360
1360
|
|
|
1361
1361
|
msgid "Show job template details"
|
|
1362
1362
|
msgstr "작업 템플릿 정보 표시"
|
|
@@ -1374,7 +1374,7 @@ msgid "Smart proxy"
|
|
|
1374
1374
|
msgstr "스마트 프록시"
|
|
1375
1375
|
|
|
1376
1376
|
msgid "Snippet"
|
|
1377
|
-
msgstr "
|
|
1377
|
+
msgstr "스니펫"
|
|
1378
1378
|
|
|
1379
1379
|
msgid "Start"
|
|
1380
1380
|
msgstr "시작"
|
|
@@ -1410,7 +1410,7 @@ msgid "Static query"
|
|
|
1410
1410
|
msgstr "정적 쿼리"
|
|
1411
1411
|
|
|
1412
1412
|
msgid "Status"
|
|
1413
|
-
msgstr "상태
|
|
1413
|
+
msgstr "상태"
|
|
1414
1414
|
|
|
1415
1415
|
msgid "Submit"
|
|
1416
1416
|
msgstr "보내기"
|
|
@@ -1558,7 +1558,7 @@ msgid "This can happen if the host is removed or moved to another organization o
|
|
|
1558
1558
|
msgstr "작업이 시작된 후 호스트가 제거되거나 다른 조직이나 위치로 이동된 경우 이러한 문제가 발생할 수 있습니다."
|
|
1559
1559
|
|
|
1560
1560
|
msgid "This template is locked for editing."
|
|
1561
|
-
msgstr "이 템플릿은
|
|
1561
|
+
msgstr "이 템플릿은 편집이 잠금되어 있습니다. "
|
|
1562
1562
|
|
|
1563
1563
|
msgid "This template is locked. Please clone it to a new template to customize."
|
|
1564
1564
|
msgstr "이 템플릿은 잠겨 있습니다. 사용자 정의하려면 이를 새 템플릿에 복제하십시오. "
|
|
@@ -1669,10 +1669,10 @@ msgid "Unable to save template. Correct highlighted errors"
|
|
|
1669
1669
|
msgstr "템플릿을 저장할 수 없습니다. 강조된 오류를 수정합니다."
|
|
1670
1670
|
|
|
1671
1671
|
msgid "Unknown"
|
|
1672
|
-
msgstr "알 수 없음
|
|
1672
|
+
msgstr "알 수 없음"
|
|
1673
1673
|
|
|
1674
1674
|
msgid "Unknown error."
|
|
1675
|
-
msgstr ""
|
|
1675
|
+
msgstr "알 수 없는 오류입니다."
|
|
1676
1676
|
|
|
1677
1677
|
msgid "Unknown execution status"
|
|
1678
1678
|
msgstr "알 수 없는 실행 상태"
|
|
@@ -1765,7 +1765,7 @@ msgid "Whether it should be allowed to override the effective user from the invo
|
|
|
1765
1765
|
msgstr "호출할 유효 사용자를 덮어쓰도록 허용할지 여부입니다."
|
|
1766
1766
|
|
|
1767
1767
|
msgid "Whether or not the template is locked for editing"
|
|
1768
|
-
msgstr "
|
|
1768
|
+
msgstr "템플릿 편집 잠금 여부"
|
|
1769
1769
|
|
|
1770
1770
|
msgid "Whether the current user login should be used as the effective user"
|
|
1771
1771
|
msgstr "현재 사용자 로그인을 유효 사용자로 사용할지 여부입니다."
|
|
@@ -1822,7 +1822,7 @@ msgid "host already has an execution interface"
|
|
|
1822
1822
|
msgstr "호스트에 실행 인터페이스가 이미 있습니다."
|
|
1823
1823
|
|
|
1824
1824
|
msgid "host method"
|
|
1825
|
-
msgstr ""
|
|
1825
|
+
msgstr "호스트 메서드"
|
|
1826
1826
|
|
|
1827
1827
|
msgid "hosts"
|
|
1828
1828
|
msgstr "호스트"
|
|
@@ -1852,10 +1852,10 @@ msgid "is month (range: 1-12)"
|
|
|
1852
1852
|
msgstr "월(범위: 1-12)"
|
|
1853
1853
|
|
|
1854
1854
|
msgid "job invocation"
|
|
1855
|
-
msgstr ""
|
|
1855
|
+
msgstr "작업 호출"
|
|
1856
1856
|
|
|
1857
1857
|
msgid "must be an absolute path"
|
|
1858
|
-
msgstr ""
|
|
1858
|
+
msgstr "절대 경로여야 합니다."
|
|
1859
1859
|
|
|
1860
1860
|
msgid "no"
|
|
1861
1861
|
msgstr "no"
|
|
Binary file
|
|
@@ -135,7 +135,7 @@ msgid "Alphabetical"
|
|
|
135
135
|
msgstr "按字母"
|
|
136
136
|
|
|
137
137
|
msgid "Already on the review step"
|
|
138
|
-
msgstr ""
|
|
138
|
+
msgstr "已在审阅步骤中"
|
|
139
139
|
|
|
140
140
|
msgid "An error occurred while fetching the template invocation details."
|
|
141
141
|
msgstr "在获取模板调用详情时出错。"
|
|
@@ -267,28 +267,28 @@ msgid "Copy to clipboard"
|
|
|
267
267
|
msgstr "复制到剪贴板"
|
|
268
268
|
|
|
269
269
|
msgid "Could not abort the job %s: %s"
|
|
270
|
-
msgstr ""
|
|
270
|
+
msgstr "无法中止作业 %s: %s"
|
|
271
271
|
|
|
272
272
|
msgid "Could not abort the task"
|
|
273
273
|
msgstr "无法中止作业"
|
|
274
274
|
|
|
275
275
|
msgid "Could not cancel recurring logic %s: %s"
|
|
276
|
-
msgstr ""
|
|
276
|
+
msgstr "无法取消循环逻辑 %s:%s"
|
|
277
277
|
|
|
278
278
|
msgid "Could not cancel the job %s: %s"
|
|
279
|
-
msgstr ""
|
|
279
|
+
msgstr "无法取消作业 %s: %s"
|
|
280
280
|
|
|
281
281
|
msgid "Could not cancel the task"
|
|
282
282
|
msgstr "无法取消作业"
|
|
283
283
|
|
|
284
284
|
msgid "Could not disable recurring logic %s: %s"
|
|
285
|
-
msgstr ""
|
|
285
|
+
msgstr "无法禁用重复逻辑 %s:%s"
|
|
286
286
|
|
|
287
287
|
msgid "Could not display data for job invocation."
|
|
288
288
|
msgstr "无法显示用于作业调用的数据。"
|
|
289
289
|
|
|
290
290
|
msgid "Could not enable recurring logic %s: %s"
|
|
291
|
-
msgstr ""
|
|
291
|
+
msgstr "无法启用重复逻辑 %s:%s"
|
|
292
292
|
|
|
293
293
|
msgid "Could not find any suitable interface for execution"
|
|
294
294
|
msgstr "无法找到适合执行的接口"
|
|
@@ -321,7 +321,7 @@ msgid "Create a job template"
|
|
|
321
321
|
msgstr "创建作业模板"
|
|
322
322
|
|
|
323
323
|
msgid "Create a new job invocation"
|
|
324
|
-
msgstr ""
|
|
324
|
+
msgstr "创建新作业调用"
|
|
325
325
|
|
|
326
326
|
msgid "Create a recurring job"
|
|
327
327
|
msgstr "创建一个重复运行的作业"
|
|
@@ -414,7 +414,7 @@ msgid "Designation of a special purpose"
|
|
|
414
414
|
msgstr "设计特殊目的"
|
|
415
415
|
|
|
416
416
|
msgid "Directory on the host where remote execution jobs in push mode place and run their scripts. You can override this setting per host with the `remote_execution_remote_working_dir` host parameter."
|
|
417
|
-
msgstr ""
|
|
417
|
+
msgstr "主机上以推送模式运行的远程执行作业存放并运行其脚本的目录。。您可以使用 'remote_execution_remote_working_dir' 主机参数覆盖每个主机的设置。"
|
|
418
418
|
|
|
419
419
|
msgid "Disable recurring"
|
|
420
420
|
msgstr "禁用重复"
|
|
@@ -552,7 +552,7 @@ msgid "Failed rendering template: %s"
|
|
|
552
552
|
msgstr "呈现模板失败:%s"
|
|
553
553
|
|
|
554
554
|
msgid "Failed to load host invocation data"
|
|
555
|
-
msgstr ""
|
|
555
|
+
msgstr "加载主机调用数据失败"
|
|
556
556
|
|
|
557
557
|
msgid "Failed:"
|
|
558
558
|
msgstr "失败:"
|
|
@@ -609,7 +609,7 @@ msgid "Get raw output for a host"
|
|
|
609
609
|
msgstr "获取主机的原始输出"
|
|
610
610
|
|
|
611
611
|
msgid "Go to job invocations"
|
|
612
|
-
msgstr ""
|
|
612
|
+
msgstr "返回到作业调用"
|
|
613
613
|
|
|
614
614
|
msgid "Has to be a positive number"
|
|
615
615
|
msgstr "必须为一个正数"
|
|
@@ -678,10 +678,10 @@ msgid "Include all inputs from the foreign template"
|
|
|
678
678
|
msgstr "在外部模板中包含所有输入格式"
|
|
679
679
|
|
|
680
680
|
msgid "Include hosts and template invocations in the response. Defaults to true for backwards compatibility. Pass false to skip serializing all hosts."
|
|
681
|
-
msgstr ""
|
|
681
|
+
msgstr "在响应中包含主机和模板调用。为了向后兼容,默认为 true。设置为 false 来跳过所有主机的序列化。"
|
|
682
682
|
|
|
683
683
|
msgid "Include per-host task and permission data in the response"
|
|
684
|
-
msgstr ""
|
|
684
|
+
msgstr "在响应中包含每个主机的任务和权限数据"
|
|
685
685
|
|
|
686
686
|
msgid "Indicates that the action should be cancelled if it cannot be started before this time."
|
|
687
687
|
msgstr "这代表,如果操作无法在这个时间前开始则操作应该被取消。"
|
|
@@ -852,7 +852,7 @@ msgid "Minute can only be a number between 0-59"
|
|
|
852
852
|
msgstr "分钟只能是一个 0-59 之间的数字"
|
|
853
853
|
|
|
854
854
|
msgid "Missing permissions to generate report templates"
|
|
855
|
-
msgstr ""
|
|
855
|
+
msgstr "缺少生成报告模板的权限"
|
|
856
856
|
|
|
857
857
|
msgid "Missing the required permissions: ${missingPermissions.join( ', ' )}"
|
|
858
858
|
msgstr "缺少所需的权限:${missingPermissions.join( ', ' )}"
|
|
@@ -1098,7 +1098,7 @@ msgid "Recurring logic"
|
|
|
1098
1098
|
msgstr "重复逻辑"
|
|
1099
1099
|
|
|
1100
1100
|
msgid "Recurring logic %s cancelled successfully."
|
|
1101
|
-
msgstr "
|
|
1101
|
+
msgstr "成功取消循环逻辑 %s。"
|
|
1102
1102
|
|
|
1103
1103
|
msgid "Recurring logic %s disabled successfully."
|
|
1104
1104
|
msgstr "成功禁用重复逻辑 %s。"
|
|
@@ -1134,10 +1134,10 @@ msgid "Remote execution job"
|
|
|
1134
1134
|
msgstr "远程执行作业"
|
|
1135
1135
|
|
|
1136
1136
|
msgid "Remote working directory"
|
|
1137
|
-
msgstr ""
|
|
1137
|
+
msgstr "远程工作目录"
|
|
1138
1138
|
|
|
1139
1139
|
msgid "Remote working directory \"%{current_value}\" is not an absolute path"
|
|
1140
|
-
msgstr ""
|
|
1140
|
+
msgstr "远程工作目录 \"%{current_value}\" 不是绝对路径"
|
|
1141
1141
|
|
|
1142
1142
|
msgid "Repeat a maximum of N times"
|
|
1143
1143
|
msgstr "最多重复 N 次"
|
|
@@ -1152,7 +1152,7 @@ msgid "Repeats"
|
|
|
1152
1152
|
msgstr "重复"
|
|
1153
1153
|
|
|
1154
1154
|
msgid "Report template not found or not configured properly"
|
|
1155
|
-
msgstr ""
|
|
1155
|
+
msgstr "报告模板未找到或未正确配置"
|
|
1156
1156
|
|
|
1157
1157
|
msgid "Rerun"
|
|
1158
1158
|
msgstr "重新运行"
|
|
@@ -1359,7 +1359,7 @@ msgid "Show job invocation"
|
|
|
1359
1359
|
msgstr "显示作业调用"
|
|
1360
1360
|
|
|
1361
1361
|
msgid "Show job status for each host, only applicable when include_hosts is true"
|
|
1362
|
-
msgstr ""
|
|
1362
|
+
msgstr "显示每个主机的作业状态,仅在 include_hosts 为 true 时才适用"
|
|
1363
1363
|
|
|
1364
1364
|
msgid "Show job template details"
|
|
1365
1365
|
msgstr "显示作业模板详情"
|
|
@@ -1675,7 +1675,7 @@ msgid "Unknown"
|
|
|
1675
1675
|
msgstr "未知"
|
|
1676
1676
|
|
|
1677
1677
|
msgid "Unknown error."
|
|
1678
|
-
msgstr ""
|
|
1678
|
+
msgstr "未知错误"
|
|
1679
1679
|
|
|
1680
1680
|
msgid "Unknown execution status"
|
|
1681
1681
|
msgstr "未知的执行状态"
|
|
@@ -1825,7 +1825,7 @@ msgid "host already has an execution interface"
|
|
|
1825
1825
|
msgstr "主机已有一个执行接口"
|
|
1826
1826
|
|
|
1827
1827
|
msgid "host method"
|
|
1828
|
-
msgstr ""
|
|
1828
|
+
msgstr "主机方法"
|
|
1829
1829
|
|
|
1830
1830
|
msgid "hosts"
|
|
1831
1831
|
msgstr "主机"
|
|
@@ -1855,10 +1855,10 @@ msgid "is month (range: 1-12)"
|
|
|
1855
1855
|
msgstr "月份(范围:1-12)"
|
|
1856
1856
|
|
|
1857
1857
|
msgid "job invocation"
|
|
1858
|
-
msgstr ""
|
|
1858
|
+
msgstr "工作调用"
|
|
1859
1859
|
|
|
1860
1860
|
msgid "must be an absolute path"
|
|
1861
|
-
msgstr ""
|
|
1861
|
+
msgstr "必须是绝对路径"
|
|
1862
1862
|
|
|
1863
1863
|
msgid "no"
|
|
1864
1864
|
msgstr "否"
|
data/package.json
CHANGED
|
@@ -3,12 +3,7 @@
|
|
|
3
3
|
"version": "1.0.0",
|
|
4
4
|
"license": "GPL-3.0",
|
|
5
5
|
"scripts": {
|
|
6
|
-
"lint": "
|
|
7
|
-
"lint:custom": "eslint ./webpack",
|
|
8
|
-
"test": "tfm-test --plugin --config jest.config.js",
|
|
9
|
-
"test:watch": "tfm-test --plugin --config jest.config.js --watchAll",
|
|
10
|
-
"test:current": "tfm-test --plugin --config jest.config.js --watch",
|
|
11
|
-
"publish-coverage": "tfm-publish-coverage"
|
|
6
|
+
"lint:custom": "eslint ./webpack"
|
|
12
7
|
},
|
|
13
8
|
"repository": {
|
|
14
9
|
"type": "git",
|
|
@@ -19,11 +14,6 @@
|
|
|
19
14
|
},
|
|
20
15
|
"devDependencies": {
|
|
21
16
|
"@babel/core": "^7.7.0",
|
|
22
|
-
"@theforeman/builder": ">= 15.0.1",
|
|
23
|
-
"@theforeman/eslint-plugin-foreman": ">= 15.0.1",
|
|
24
|
-
"@theforeman/eslint-plugin-rules": ">= 15.0.1",
|
|
25
|
-
"@theforeman/test": ">= 15.0.1",
|
|
26
|
-
"@theforeman/vendor-dev": ">= 15.0.1",
|
|
27
17
|
"babel-eslint": "^10.0.0",
|
|
28
18
|
"eslint": "^6.8.0",
|
|
29
19
|
"prettier": "^1.19.1",
|
|
@@ -32,8 +22,5 @@
|
|
|
32
22
|
"graphql": "^15.5.0",
|
|
33
23
|
"victory-core": "~36.8.6",
|
|
34
24
|
"victory-pie": "~36.8.6"
|
|
35
|
-
},
|
|
36
|
-
"peerDependencies": {
|
|
37
|
-
"@theforeman/vendor": ">= 15.0.1"
|
|
38
25
|
}
|
|
39
26
|
}
|
|
@@ -1,65 +1,8 @@
|
|
|
1
1
|
# frozen_string_literal: true
|
|
2
2
|
|
|
3
3
|
require 'test_plugin_helper'
|
|
4
|
-
require_relative '../support/remote_execution_helper'
|
|
5
4
|
|
|
6
5
|
class JobInvocationsControllerTest < ActionController::TestCase
|
|
7
|
-
test 'should parse inputs coming from the URL params' do
|
|
8
|
-
template = FactoryBot.create(:job_template, :with_input)
|
|
9
|
-
feature = FactoryBot.create(:remote_execution_feature,
|
|
10
|
-
:job_template => template)
|
|
11
|
-
params = {
|
|
12
|
-
feature: feature.label,
|
|
13
|
-
inputs: { template.template_inputs.first.name => 'foobar' },
|
|
14
|
-
}
|
|
15
|
-
|
|
16
|
-
get :new, params: params, session: set_session_user
|
|
17
|
-
template_invocation_params = [
|
|
18
|
-
{
|
|
19
|
-
'input_values' =>
|
|
20
|
-
[
|
|
21
|
-
{
|
|
22
|
-
'value' => 'foobar',
|
|
23
|
-
'template_input_id' => template.template_inputs.first.id,
|
|
24
|
-
},
|
|
25
|
-
],
|
|
26
|
-
'template_id' => template.id,
|
|
27
|
-
},
|
|
28
|
-
]
|
|
29
|
-
assert_equal(template_invocation_params,
|
|
30
|
-
assigns(:composer).params['template_invocations'])
|
|
31
|
-
end
|
|
32
|
-
|
|
33
|
-
test 'should allow no inputs' do
|
|
34
|
-
template = FactoryBot.create(:job_template)
|
|
35
|
-
feature = FactoryBot.create(:remote_execution_feature,
|
|
36
|
-
:job_template => template)
|
|
37
|
-
params = {
|
|
38
|
-
feature: feature.label,
|
|
39
|
-
}
|
|
40
|
-
get :new, params: params, session: set_session_user
|
|
41
|
-
template_invocation_params = [
|
|
42
|
-
{
|
|
43
|
-
'template_id' => template.id,
|
|
44
|
-
'input_values' => {},
|
|
45
|
-
},
|
|
46
|
-
]
|
|
47
|
-
assert_equal(template_invocation_params,
|
|
48
|
-
assigns(:composer).params['template_invocations'])
|
|
49
|
-
end
|
|
50
|
-
|
|
51
|
-
test 'new via GET and POST' do
|
|
52
|
-
template = FactoryBot.create(:job_template, :with_input)
|
|
53
|
-
feature = FactoryBot.create(:remote_execution_feature, job_template: template)
|
|
54
|
-
params = { feature: feature.label, inputs: { template.template_inputs.first.name => 'foobar' } }
|
|
55
|
-
|
|
56
|
-
get :new, params: params, session: set_session_user
|
|
57
|
-
assert_response :success
|
|
58
|
-
|
|
59
|
-
post :new, params: params, session: set_session_user
|
|
60
|
-
assert_response :success
|
|
61
|
-
end
|
|
62
|
-
|
|
63
6
|
context '#report' do
|
|
64
7
|
setup do
|
|
65
8
|
@invocation = FactoryBot.create(:job_invocation, :with_template, :with_task)
|
|
@@ -167,16 +110,6 @@ class JobInvocationsControllerTest < ActionController::TestCase
|
|
|
167
110
|
assert 2, assigns(:job_invocations).size
|
|
168
111
|
end
|
|
169
112
|
|
|
170
|
-
test '#show' do
|
|
171
|
-
get :show, params: { id: @invocation2.id }, session: prepare_user(@admin)
|
|
172
|
-
assert_response :success
|
|
173
|
-
end
|
|
174
|
-
|
|
175
|
-
test '#rerun' do
|
|
176
|
-
get :rerun, params: { id: @invocation2.id }, session: prepare_user(@admin)
|
|
177
|
-
assert_response :success
|
|
178
|
-
end
|
|
179
|
-
|
|
180
113
|
test '#cancel' do
|
|
181
114
|
ForemanTasks::Task.any_instance.expects(:cancel).returns(true)
|
|
182
115
|
post :cancel, params: { id: @invocation2.id }, session: prepare_user(@admin)
|
|
@@ -192,16 +125,6 @@ class JobInvocationsControllerTest < ActionController::TestCase
|
|
|
192
125
|
assert_equal @invocation2, assigns(:job_invocations)[0]
|
|
193
126
|
end
|
|
194
127
|
|
|
195
|
-
test '#show' do
|
|
196
|
-
get :show, params: { id: @invocation.id }, session: prepare_user(@user)
|
|
197
|
-
assert_response :not_found
|
|
198
|
-
end
|
|
199
|
-
|
|
200
|
-
test '#rerun' do
|
|
201
|
-
get :rerun, params: { id: @invocation.id }, session: prepare_user(@user)
|
|
202
|
-
assert_response :not_found
|
|
203
|
-
end
|
|
204
|
-
|
|
205
128
|
test 'cancel' do
|
|
206
129
|
post :cancel, params: { id: @invocation.id }, session: prepare_user(@user)
|
|
207
130
|
assert_response :not_found
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
require 'test_plugin_helper'
|
|
4
|
+
|
|
5
|
+
class TemplateInvocationsControllerTest < ActionController::TestCase
|
|
6
|
+
setup do
|
|
7
|
+
@invocation = FactoryBot.create(:job_invocation, :with_template, :with_task)
|
|
8
|
+
@template_invocation = @invocation.template_invocations.first
|
|
9
|
+
ForemanTasks::Task.any_instance.stubs(:main_action).returns(OpenStruct.new(:live_output => [], :output => {}))
|
|
10
|
+
ForemanTasks::Task.any_instance.stubs(:execution_plan).returns(OpenStruct.new(:actions => [nil, OpenStruct.new(:input => { 'script' => '' })]))
|
|
11
|
+
ForemanTasks::Task.any_instance.stubs(:cancellable?).returns(false)
|
|
12
|
+
end
|
|
13
|
+
|
|
14
|
+
test 'should not show template invocation for a job invocation outside the permission filter' do
|
|
15
|
+
user = setup_user 'view', 'hosts'
|
|
16
|
+
setup_user 'view', 'job_invocations', "id != #{@invocation.id}"
|
|
17
|
+
|
|
18
|
+
get :show_template_invocation_by_host,
|
|
19
|
+
params: { id: @invocation.id, host_id: @template_invocation.host_id },
|
|
20
|
+
session: set_session_user(user)
|
|
21
|
+
|
|
22
|
+
assert_response :not_found
|
|
23
|
+
end
|
|
24
|
+
|
|
25
|
+
test 'should not show template invocation for a host outside the permission filter' do
|
|
26
|
+
user = setup_user 'view', 'job_invocations'
|
|
27
|
+
setup_user 'view', 'hosts', "name != #{@template_invocation.host.name}"
|
|
28
|
+
|
|
29
|
+
get :show_template_invocation_by_host,
|
|
30
|
+
params: { id: @invocation.id, host_id: @template_invocation.host_id },
|
|
31
|
+
session: set_session_user(user)
|
|
32
|
+
|
|
33
|
+
assert_response :not_found
|
|
34
|
+
end
|
|
35
|
+
end
|
|
@@ -16,6 +16,8 @@ export const DIRECT_OPEN_HOST_LIMIT = 3;
|
|
|
16
16
|
export const AWAITING_STATUS_FILTER = '(job_invocation.result = N/A)';
|
|
17
17
|
|
|
18
18
|
export const AUTO_REFRESH_INTERVAL_MS = 5000;
|
|
19
|
+
export const OUTPUT_REFRESH_INTERVAL_MS = 1000;
|
|
20
|
+
export const OUTPUT_MAX_REFRESH_INTERVAL_MS = 3000;
|
|
19
21
|
export const DEFAULT_CHART_LEGEND_WIDTH = 270;
|
|
20
22
|
export const CLIPBOARD_COPIED_EXIT_DELAY_MS = 1500;
|
|
21
23
|
export const CLIPBOARD_DEFAULT_EXIT_DELAY_MS = 600;
|
|
@@ -23,6 +25,9 @@ export const CLIPBOARD_DEFAULT_EXIT_DELAY_MS = 600;
|
|
|
23
25
|
export const showTemplateInvocationUrl = (hostID, jobID) =>
|
|
24
26
|
`/show_template_invocation_by_host/${hostID}/job_invocation/${jobID}`;
|
|
25
27
|
|
|
28
|
+
export const templateInvocationOutputUrl = (hostID, jobID) =>
|
|
29
|
+
`/api/job_invocations/${jobID}/hosts/${hostID}`;
|
|
30
|
+
|
|
26
31
|
export const templateInvocationPageUrl = (hostID, jobID) =>
|
|
27
32
|
`/job_invocations_detail/${jobID}/host_invocation/${hostID}`;
|
|
28
33
|
|
|
@@ -2,7 +2,6 @@ import PropTypes from 'prop-types';
|
|
|
2
2
|
import React, { useCallback, useMemo, useState } from 'react';
|
|
3
3
|
import { useDispatch, useSelector } from 'react-redux';
|
|
4
4
|
import { Button, Split, SplitItem } from '@patternfly/react-core';
|
|
5
|
-
import { UndoIcon } from '@patternfly/react-icons';
|
|
6
5
|
import {
|
|
7
6
|
Dropdown,
|
|
8
7
|
DropdownItem,
|
|
@@ -153,15 +152,6 @@ const JobInvocationToolbarButtons = ({ jobId, data }) => {
|
|
|
153
152
|
{__('Abort')}
|
|
154
153
|
</DropdownItem>,
|
|
155
154
|
...recurrenceDropdownItems,
|
|
156
|
-
<DropdownSeparator ouiaId="dropdown-separator-2" key="separator-2" />,
|
|
157
|
-
<DropdownItem
|
|
158
|
-
ouiaId="legacy-ui-dropdown-item"
|
|
159
|
-
icon={<UndoIcon />}
|
|
160
|
-
href={`/legacy/job_invocations/${jobId}`}
|
|
161
|
-
key="legacy-ui"
|
|
162
|
-
>
|
|
163
|
-
{__('Legacy UI')}
|
|
164
|
-
</DropdownItem>,
|
|
165
155
|
],
|
|
166
156
|
[
|
|
167
157
|
canCancelJobInvocations,
|