foreman_leapp 2.0.3 → 2.0.5

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 815c2de3def891d8d23547a78937d3a85cd9998a2e4e6d46f97ac3f77a7fcd2e
4
- data.tar.gz: c276ec42e54ed4d6dd98acc249b2de961372698a1bdf045ca462662cfb50c6bc
3
+ metadata.gz: 3ab2b680299f37a54a1d6463cfb4182f3f225f45ce3c74ece1fa85c43ca78bc4
4
+ data.tar.gz: 8f53d714c059f1697cfd8e001b18722e031254b74b852f291d77478173892b26
5
5
  SHA512:
6
- metadata.gz: b5aadf3851821b208b593ce42a05b66a3c5a13af879cf6f79fa79b15dc49f7aee6aabdd7109ff552ea6eaf6b88691ce8b39292b14680d89843b0e1f6df7be919
7
- data.tar.gz: 05f9a5f005ee281ad6f635bb211bc12728b9847315f19cbc0ba54202f04ff91c541355f070a4ec77f1eacc1585ffab4c70cb67c671fef7b51794090feb097160
6
+ metadata.gz: 7fd6eaed188b8932a412371b1d8971ab660f54927594487756086337b2c8d77aa250cc19ce869c3d10a9699834687e59686a65c7e4f2630910d5432b68fc6fcd
7
+ data.tar.gz: ad7bc193c7b5383217aa0cc83e351775cd278f808c34c353d6a1d17e8deace44c650decdb280b8a4f9980e666d73584e1687a678958729cd345602fc0a12065c
@@ -3,7 +3,7 @@
3
3
  "locale_data": {
4
4
  "foreman_leapp": {
5
5
  "": {
6
- "Project-Id-Version": "foreman_leapp 2.0.0",
6
+ "Project-Id-Version": "foreman_leapp 2.0.3",
7
7
  "Report-Msgid-Bugs-To": "",
8
8
  "PO-Revision-Date": "2022-10-12 12:00+0000",
9
9
  "Last-Translator": "Bryan Kearney <bryan.kearney@gmail.com>, 2023",
@@ -3,149 +3,10 @@
3
3
  "locale_data": {
4
4
  "foreman_leapp": {
5
5
  "": {
6
- "Project-Id-Version": "foreman_leapp 1.0.0",
7
- "Report-Msgid-Bugs-To": "",
8
- "PO-Revision-Date": "2024-09-19 13:05+0200",
9
- "Last-Translator": "FULL NAME <EMAIL@ADDRESS>",
10
- "Language-Team": "LANGUAGE <LL@li.org>",
11
- "Language": "",
12
- "MIME-Version": "1.0",
13
- "Content-Type": "text/plain; charset=UTF-8",
14
- "Content-Transfer-Encoding": "8bit",
15
- "Plural-Forms": "nplurals=INTEGER; plural=EXPRESSION;",
16
6
  "lang": "en",
17
7
  "domain": "foreman_leapp",
18
- "plural_forms": "nplurals=INTEGER; plural=EXPRESSION;"
19
- },
20
- "A Foreman plugin to support inplace RHEL upgrades with Leapp utility.": [
21
- ""
22
- ],
23
- "All": [
24
- ""
25
- ],
26
- "Command": [
27
- ""
28
- ],
29
- "Could not retrieve data: %(status) - %(msg)": [
30
- ""
31
- ],
32
- "Failed to fetch preupgrade reports from server.": [
33
- ""
34
- ],
35
- "Fix Selected": [
36
- ""
37
- ],
38
- "Fix Type": [
39
- ""
40
- ],
41
- "Has Remediation": [
42
- ""
43
- ],
44
- "Has Remediation?": [
45
- ""
46
- ],
47
- "High": [
48
- ""
49
- ],
50
- "High Risk Factor": [
51
- ""
52
- ],
53
- "Hint": [
54
- ""
55
- ],
56
- "Host": [
57
- ""
58
- ],
59
- "Info": [
60
- ""
61
- ],
62
- "Inhibitor": [
63
- ""
64
- ],
65
- "Inhibitor?": [
66
- ""
67
- ],
68
- "Leapp preupgrade report": [
69
- ""
70
- ],
71
- "Links": [
72
- ""
73
- ],
74
- "List Preupgrade reports": [
75
- ""
76
- ],
77
- "List Preupgrade reports for Job invocation": [
78
- ""
79
- ],
80
- "Low": [
81
- ""
82
- ],
83
- "Low Risk Factor": [
84
- ""
85
- ],
86
- "Medium": [
87
- ""
88
- ],
89
- "Medium Risk Factor": [
90
- ""
91
- ],
92
- "Missing one of the required permissions: view_hosts": [
93
- ""
94
- ],
95
- "No": [
96
- ""
97
- ],
98
- "No Preupgrade Report Available": [
99
- ""
100
- ],
101
- "Preupgrade check with Leapp": [
102
- ""
103
- ],
104
- "Remediation plan": [
105
- ""
106
- ],
107
- "Risk Factor": [
108
- ""
109
- ],
110
- "Run Leapp upgrade job for RHEL host": [
111
- ""
112
- ],
113
- "Run Remediation plan with Leapp": [
114
- ""
115
- ],
116
- "Run Upgrade": [
117
- ""
118
- ],
119
- "Show Preupgrade report": [
120
- ""
121
- ],
122
- "Summary": [
123
- ""
124
- ],
125
- "Tags": [
126
- ""
127
- ],
128
- "The preupgrade report could not be generated, check the job details for the reason": [
129
- ""
130
- ],
131
- "The preupgrade report will be available after the job finishes": [
132
- ""
133
- ],
134
- "This issue inhibits the upgrade.": [
135
- ""
136
- ],
137
- "Title": [
138
- ""
139
- ],
140
- "Upgrade with Leapp": [
141
- ""
142
- ],
143
- "Upgradeability check for RHEL host": [
144
- ""
145
- ],
146
- "Yes": [
147
- ""
148
- ]
8
+ "plural_forms": null
9
+ }
149
10
  }
150
11
  }
151
12
  };
@@ -3,7 +3,7 @@
3
3
  "locale_data": {
4
4
  "foreman_leapp": {
5
5
  "": {
6
- "Project-Id-Version": "foreman_leapp 2.0.0",
6
+ "Project-Id-Version": "foreman_leapp 2.0.3",
7
7
  "Report-Msgid-Bugs-To": "",
8
8
  "PO-Revision-Date": "2022-10-12 12:00+0000",
9
9
  "Last-Translator": "Ewoud Kohl van Wijngaarden <ewoud+transifex@kohlvanwijngaarden.nl>, 2023",
@@ -3,7 +3,7 @@
3
3
  "locale_data": {
4
4
  "foreman_leapp": {
5
5
  "": {
6
- "Project-Id-Version": "foreman_leapp 2.0.0",
6
+ "Project-Id-Version": "foreman_leapp 2.0.3",
7
7
  "Report-Msgid-Bugs-To": "",
8
8
  "PO-Revision-Date": "2022-10-12 12:00+0000",
9
9
  "Last-Translator": "Ewoud Kohl van Wijngaarden <ewoud+transifex@kohlvanwijngaarden.nl>, 2023",
@@ -3,7 +3,7 @@
3
3
  "locale_data": {
4
4
  "foreman_leapp": {
5
5
  "": {
6
- "Project-Id-Version": "foreman_leapp 2.0.0",
6
+ "Project-Id-Version": "foreman_leapp 2.0.3",
7
7
  "Report-Msgid-Bugs-To": "",
8
8
  "PO-Revision-Date": "2022-10-12 12:00+0000",
9
9
  "Last-Translator": "Temuri Doghonadze <temuri.doghonadze@gmail.com>, 2023",
@@ -0,0 +1,151 @@
1
+ locales['foreman_leapp'] = locales['foreman_leapp'] || {}; locales['foreman_leapp']['ko'] = {
2
+ "domain": "foreman_leapp",
3
+ "locale_data": {
4
+ "foreman_leapp": {
5
+ "": {
6
+ "Project-Id-Version": "foreman_leapp 1.0.0",
7
+ "Report-Msgid-Bugs-To": "",
8
+ "PO-Revision-Date": "2022-10-12 12:00+0000",
9
+ "Last-Translator": "Ewoud Kohl van Wijngaarden <ewoud+transifex@kohlvanwijngaarden.nl>, 2025",
10
+ "Language-Team": "Korean (https://app.transifex.com/foreman/teams/114/ko/)",
11
+ "MIME-Version": "1.0",
12
+ "Content-Type": "text/plain; charset=UTF-8",
13
+ "Content-Transfer-Encoding": "8bit",
14
+ "Language": "ko",
15
+ "Plural-Forms": "nplurals=1; plural=0;",
16
+ "lang": "ko",
17
+ "domain": "foreman_leapp",
18
+ "plural_forms": "nplurals=1; plural=0;"
19
+ },
20
+ "A Foreman plugin to support inplace RHEL upgrades with Leapp utility.": [
21
+ "Leapp 유틸리티를 사용하여 기존 RHEL 업그레이드를 지원하는 Foreman 플러그인입니다."
22
+ ],
23
+ "All": [
24
+ "모두"
25
+ ],
26
+ "Command": [
27
+ "명령어"
28
+ ],
29
+ "Could not retrieve data: %(status) - %(msg)": [
30
+ "%(status) - %(msg) 데이터를 검색할 수 없습니다:"
31
+ ],
32
+ "Failed to fetch preupgrade reports from server.": [
33
+ "서버에서 사전 업그레이드 보고서를 가져오지 못했습니다."
34
+ ],
35
+ "Fix Selected": [
36
+ "선택한 항목 수정"
37
+ ],
38
+ "Fix Type": [
39
+ "수정 유형"
40
+ ],
41
+ "Has Remediation": [
42
+ "수정 계획 있음"
43
+ ],
44
+ "Has Remediation?": [
45
+ "수정 계획?"
46
+ ],
47
+ "High": [
48
+ "높음"
49
+ ],
50
+ "High Risk Factor": [
51
+ "높은 리스크 요소"
52
+ ],
53
+ "Hint": [
54
+ "힌트"
55
+ ],
56
+ "Host": [
57
+ "호스트 "
58
+ ],
59
+ "Info": [
60
+ "정보 "
61
+ ],
62
+ "Inhibitor": [
63
+ "억제 요인"
64
+ ],
65
+ "Inhibitor?": [
66
+ "억제 요인?"
67
+ ],
68
+ "Leapp preupgrade report": [
69
+ "Leapp 사전 업그레이드 보고서"
70
+ ],
71
+ "Links": [
72
+ "링크"
73
+ ],
74
+ "List Preupgrade reports": [
75
+ "사전 업그레이드 보고서 목록"
76
+ ],
77
+ "List Preupgrade reports for Job invocation": [
78
+ "작업 호출을 위한 사전 업그레이드 보고서 목록"
79
+ ],
80
+ "Low": [
81
+ "낮음"
82
+ ],
83
+ "Low Risk Factor": [
84
+ "낮은 리스크 요소"
85
+ ],
86
+ "Medium": [
87
+ "중간"
88
+ ],
89
+ "Medium Risk Factor": [
90
+ "중간 리스크 요소"
91
+ ],
92
+ "Missing one of the required permissions: view_hosts": [
93
+ "필수 권한 중 하나가 없습니다: view_hosts"
94
+ ],
95
+ "No": [
96
+ "아니오 "
97
+ ],
98
+ "No Preupgrade Report Available": [
99
+ "사전 업그레이드 보고서가 없습니다"
100
+ ],
101
+ "Preupgrade check with Leapp": [
102
+ "Leapp으로 업그레이드 전 확인"
103
+ ],
104
+ "Remediation plan": [
105
+ "수정 계획"
106
+ ],
107
+ "Risk Factor": [
108
+ "리스크 요소"
109
+ ],
110
+ "Run Leapp upgrade job for RHEL host": [
111
+ "RHEL 호스트에 대한 Leapp 업그레이드 작업 실행"
112
+ ],
113
+ "Run Remediation plan with Leapp": [
114
+ "Leapp으로 수정 계획 실행"
115
+ ],
116
+ "Run Upgrade": [
117
+ "업그레이드 실행"
118
+ ],
119
+ "Show Preupgrade report": [
120
+ "사전 업그레이드 보고서 표시"
121
+ ],
122
+ "Summary": [
123
+ "요약"
124
+ ],
125
+ "Tags": [
126
+ "태그"
127
+ ],
128
+ "The preupgrade report could not be generated, check the job details for the reason": [
129
+ "사전 업그레이드 보고서를 생성할 수 없습니다. 해당 사유에 대한 작업 세부 정보를 확인하세요."
130
+ ],
131
+ "The preupgrade report will be available after the job finishes": [
132
+ "작업이 완료되면 사전 업그레이드 보고서를 사용할 수 있습니다."
133
+ ],
134
+ "This issue inhibits the upgrade.": [
135
+ "이 문제로 인해 업그레이드가 불가능합니다."
136
+ ],
137
+ "Title": [
138
+ "제목"
139
+ ],
140
+ "Upgrade with Leapp": [
141
+ "Leapp으로 업그레이드"
142
+ ],
143
+ "Upgradeability check for RHEL host": [
144
+ "RHEL 호스트에 대한 업그레이드 가능성 확인"
145
+ ],
146
+ "Yes": [
147
+ "예 "
148
+ ]
149
+ }
150
+ }
151
+ };
@@ -3,7 +3,7 @@
3
3
  "locale_data": {
4
4
  "foreman_leapp": {
5
5
  "": {
6
- "Project-Id-Version": "foreman_leapp 2.0.0",
6
+ "Project-Id-Version": "foreman_leapp 2.0.3",
7
7
  "Report-Msgid-Bugs-To": "",
8
8
  "PO-Revision-Date": "2022-10-12 12:00+0000",
9
9
  "Last-Translator": "Ewoud Kohl van Wijngaarden <ewoud+transifex@kohlvanwijngaarden.nl>, 2023",
@@ -3,10 +3,16 @@
3
3
  module Helpers
4
4
  module JobHelper
5
5
  class << self
6
+ # Returns true if the given feature is present in the job_invocation's job_features,
7
+ # or if a matching RemoteExecutionFeature exists for the job_template.
6
8
  def correct_feature?(job_invocation, feature)
7
- RemoteExecutionFeature.where(job_template_id: job_invocation.pattern_template_invocations
8
- .first
9
- .template_id, label: feature).any?
9
+ # check if the feature exists in the DB for the job_template
10
+ template_id = job_invocation.pattern_template_invocations.first.template_id
11
+ return true if RemoteExecutionFeature.exists?(job_template_id: template_id, label: feature)
12
+
13
+ # Fallback: check if the feature is present in job_features
14
+ job_features = Array(job_invocation.task&.input&.[]('job_features'))
15
+ job_features.include?(feature)
10
16
  end
11
17
  end
12
18
  end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module ForemanLeapp
4
- VERSION = '2.0.3'
4
+ VERSION = '2.0.5'
5
5
  end
Binary file
@@ -10,9 +10,10 @@
10
10
  # Lukas Kallies <github.com@luke-web.de>, 2022
11
11
  # Bryan Kearney <bryan.kearney@gmail.com>, 2023
12
12
  #
13
+ #, fuzzy
13
14
  msgid ""
14
15
  msgstr ""
15
- "Project-Id-Version: foreman_leapp 2.0.0\n"
16
+ "Project-Id-Version: foreman_leapp 2.0.3\n"
16
17
  "Report-Msgid-Bugs-To: \n"
17
18
  "PO-Revision-Date: 2022-10-12 12:00+0000\n"
18
19
  "Last-Translator: Bryan Kearney <bryan.kearney@gmail.com>, 2023\n"
@@ -1,147 +0,0 @@
1
- # SOME DESCRIPTIVE TITLE.
2
- # Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER
3
- # This file is distributed under the same license as the foreman_leapp package.
4
- # FIRST AUTHOR <EMAIL@ADDRESS>, YEAR.
5
- #
6
- #, fuzzy
7
- msgid ""
8
- msgstr ""
9
- "Project-Id-Version: foreman_leapp 1.0.0\n"
10
- "Report-Msgid-Bugs-To: \n"
11
- "PO-Revision-Date: 2024-09-19 13:05+0200\n"
12
- "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
13
- "Language-Team: LANGUAGE <LL@li.org>\n"
14
- "Language: \n"
15
- "MIME-Version: 1.0\n"
16
- "Content-Type: text/plain; charset=UTF-8\n"
17
- "Content-Transfer-Encoding: 8bit\n"
18
- "Plural-Forms: nplurals=INTEGER; plural=EXPRESSION;\n"
19
-
20
- msgid "A Foreman plugin to support inplace RHEL upgrades with Leapp utility."
21
- msgstr ""
22
-
23
- msgid "All"
24
- msgstr ""
25
-
26
- msgid "Command"
27
- msgstr ""
28
-
29
- msgid "Could not retrieve data: %(status) - %(msg)"
30
- msgstr ""
31
-
32
- msgid "Failed to fetch preupgrade reports from server."
33
- msgstr ""
34
-
35
- msgid "Fix Selected"
36
- msgstr ""
37
-
38
- msgid "Fix Type"
39
- msgstr ""
40
-
41
- msgid "Has Remediation"
42
- msgstr ""
43
-
44
- msgid "Has Remediation?"
45
- msgstr ""
46
-
47
- msgid "High"
48
- msgstr ""
49
-
50
- msgid "High Risk Factor"
51
- msgstr ""
52
-
53
- msgid "Hint"
54
- msgstr ""
55
-
56
- msgid "Host"
57
- msgstr ""
58
-
59
- msgid "Info"
60
- msgstr ""
61
-
62
- msgid "Inhibitor"
63
- msgstr ""
64
-
65
- msgid "Inhibitor?"
66
- msgstr ""
67
-
68
- msgid "Leapp preupgrade report"
69
- msgstr ""
70
-
71
- msgid "Links"
72
- msgstr ""
73
-
74
- msgid "List Preupgrade reports"
75
- msgstr ""
76
-
77
- msgid "List Preupgrade reports for Job invocation"
78
- msgstr ""
79
-
80
- msgid "Low"
81
- msgstr ""
82
-
83
- msgid "Low Risk Factor"
84
- msgstr ""
85
-
86
- msgid "Medium"
87
- msgstr ""
88
-
89
- msgid "Medium Risk Factor"
90
- msgstr ""
91
-
92
- msgid "Missing one of the required permissions: view_hosts"
93
- msgstr ""
94
-
95
- msgid "No"
96
- msgstr ""
97
-
98
- msgid "No Preupgrade Report Available"
99
- msgstr ""
100
-
101
- msgid "Preupgrade check with Leapp"
102
- msgstr ""
103
-
104
- msgid "Remediation plan"
105
- msgstr ""
106
-
107
- msgid "Risk Factor"
108
- msgstr ""
109
-
110
- msgid "Run Leapp upgrade job for RHEL host"
111
- msgstr ""
112
-
113
- msgid "Run Remediation plan with Leapp"
114
- msgstr ""
115
-
116
- msgid "Run Upgrade"
117
- msgstr ""
118
-
119
- msgid "Show Preupgrade report"
120
- msgstr ""
121
-
122
- msgid "Summary"
123
- msgstr ""
124
-
125
- msgid "Tags"
126
- msgstr ""
127
-
128
- msgid "The preupgrade report could not be generated, check the job details for the reason"
129
- msgstr ""
130
-
131
- msgid "The preupgrade report will be available after the job finishes"
132
- msgstr ""
133
-
134
- msgid "This issue inhibits the upgrade."
135
- msgstr ""
136
-
137
- msgid "Title"
138
- msgstr ""
139
-
140
- msgid "Upgrade with Leapp"
141
- msgstr ""
142
-
143
- msgid "Upgradeability check for RHEL host"
144
- msgstr ""
145
-
146
- msgid "Yes"
147
- msgstr ""
Binary file
@@ -11,9 +11,10 @@
11
11
  # Amit Upadhye <aupadhye@redhat.com>, 2023
12
12
  # Ewoud Kohl van Wijngaarden <ewoud+transifex@kohlvanwijngaarden.nl>, 2023
13
13
  #
14
+ #, fuzzy
14
15
  msgid ""
15
16
  msgstr ""
16
- "Project-Id-Version: foreman_leapp 2.0.0\n"
17
+ "Project-Id-Version: foreman_leapp 2.0.3\n"
17
18
  "Report-Msgid-Bugs-To: \n"
18
19
  "PO-Revision-Date: 2022-10-12 12:00+0000\n"
19
20
  "Last-Translator: Ewoud Kohl van Wijngaarden <ewoud+transifex@kohlvanwijngaarde"
Binary file
@@ -10,9 +10,10 @@
10
10
  # Bryan Kearney <bryan.kearney@gmail.com>, 2023
11
11
  # Ewoud Kohl van Wijngaarden <ewoud+transifex@kohlvanwijngaarden.nl>, 2023
12
12
  #
13
+ #, fuzzy
13
14
  msgid ""
14
15
  msgstr ""
15
- "Project-Id-Version: foreman_leapp 2.0.0\n"
16
+ "Project-Id-Version: foreman_leapp 2.0.3\n"
16
17
  "Report-Msgid-Bugs-To: \n"
17
18
  "PO-Revision-Date: 2022-10-12 12:00+0000\n"
18
19
  "Last-Translator: Ewoud Kohl van Wijngaarden <ewoud+transifex@kohlvanwijngaarde"
Binary file
@@ -6,9 +6,10 @@
6
6
  # Translators:
7
7
  # Temuri Doghonadze <temuri.doghonadze@gmail.com>, 2023
8
8
  #
9
+ #, fuzzy
9
10
  msgid ""
10
11
  msgstr ""
11
- "Project-Id-Version: foreman_leapp 2.0.0\n"
12
+ "Project-Id-Version: foreman_leapp 2.0.3\n"
12
13
  "Report-Msgid-Bugs-To: \n"
13
14
  "PO-Revision-Date: 2022-10-12 12:00+0000\n"
14
15
  "Last-Translator: Temuri Doghonadze <temuri.doghonadze@gmail.com>, 2023\n"
@@ -0,0 +1,153 @@
1
+ # SOME DESCRIPTIVE TITLE.
2
+ # Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER
3
+ # This file is distributed under the same license as the foreman_leapp package.
4
+ # FIRST AUTHOR <EMAIL@ADDRESS>, YEAR.
5
+ #
6
+ # Translators:
7
+ # 0868a4d1af5275b3f70b0a6dac4c99a4, 2022
8
+ # Bryan Kearney <bryan.kearney@gmail.com>, 2022
9
+ # Ewoud Kohl van Wijngaarden <ewoud+transifex@kohlvanwijngaarden.nl>, 2025
10
+ #
11
+ #, fuzzy
12
+ msgid ""
13
+ msgstr ""
14
+ "Project-Id-Version: foreman_leapp 1.0.0\n"
15
+ "Report-Msgid-Bugs-To: \n"
16
+ "PO-Revision-Date: 2022-10-12 12:00+0000\n"
17
+ "Last-Translator: Ewoud Kohl van Wijngaarden <ewoud+transifex@kohlvanwijngaarde"
18
+ "n.nl>, 2025\n"
19
+ "Language-Team: Korean (https://app.transifex.com/foreman/teams/114/ko/)\n"
20
+ "MIME-Version: 1.0\n"
21
+ "Content-Type: text/plain; charset=UTF-8\n"
22
+ "Content-Transfer-Encoding: 8bit\n"
23
+ "Language: ko\n"
24
+ "Plural-Forms: nplurals=1; plural=0;\n"
25
+
26
+ msgid "A Foreman plugin to support inplace RHEL upgrades with Leapp utility."
27
+ msgstr "Leapp 유틸리티를 사용하여 기존 RHEL 업그레이드를 지원하는 Foreman 플러그인입니다."
28
+
29
+ msgid "All"
30
+ msgstr "모두"
31
+
32
+ msgid "Command"
33
+ msgstr "명령어"
34
+
35
+ msgid "Could not retrieve data: %(status) - %(msg)"
36
+ msgstr "%(status) - %(msg) 데이터를 검색할 수 없습니다:"
37
+
38
+ msgid "Failed to fetch preupgrade reports from server."
39
+ msgstr "서버에서 사전 업그레이드 보고서를 가져오지 못했습니다."
40
+
41
+ msgid "Fix Selected"
42
+ msgstr "선택한 항목 수정"
43
+
44
+ msgid "Fix Type"
45
+ msgstr "수정 유형"
46
+
47
+ msgid "Has Remediation"
48
+ msgstr "수정 계획 있음"
49
+
50
+ msgid "Has Remediation?"
51
+ msgstr "수정 계획?"
52
+
53
+ msgid "High"
54
+ msgstr "높음"
55
+
56
+ msgid "High Risk Factor"
57
+ msgstr "높은 리스크 요소"
58
+
59
+ msgid "Hint"
60
+ msgstr "힌트"
61
+
62
+ msgid "Host"
63
+ msgstr "호스트 "
64
+
65
+ msgid "Info"
66
+ msgstr "정보 "
67
+
68
+ msgid "Inhibitor"
69
+ msgstr "억제 요인"
70
+
71
+ msgid "Inhibitor?"
72
+ msgstr "억제 요인?"
73
+
74
+ msgid "Leapp preupgrade report"
75
+ msgstr "Leapp 사전 업그레이드 보고서"
76
+
77
+ msgid "Links"
78
+ msgstr "링크"
79
+
80
+ msgid "List Preupgrade reports"
81
+ msgstr "사전 업그레이드 보고서 목록"
82
+
83
+ msgid "List Preupgrade reports for Job invocation"
84
+ msgstr "작업 호출을 위한 사전 업그레이드 보고서 목록"
85
+
86
+ msgid "Low"
87
+ msgstr "낮음"
88
+
89
+ msgid "Low Risk Factor"
90
+ msgstr "낮은 리스크 요소"
91
+
92
+ msgid "Medium"
93
+ msgstr "중간"
94
+
95
+ msgid "Medium Risk Factor"
96
+ msgstr "중간 리스크 요소"
97
+
98
+ msgid "Missing one of the required permissions: view_hosts"
99
+ msgstr "필수 권한 중 하나가 없습니다: view_hosts"
100
+
101
+ msgid "No"
102
+ msgstr "아니오 "
103
+
104
+ msgid "No Preupgrade Report Available"
105
+ msgstr "사전 업그레이드 보고서가 없습니다"
106
+
107
+ msgid "Preupgrade check with Leapp"
108
+ msgstr "Leapp으로 업그레이드 전 확인"
109
+
110
+ msgid "Remediation plan"
111
+ msgstr "수정 계획"
112
+
113
+ msgid "Risk Factor"
114
+ msgstr "리스크 요소"
115
+
116
+ msgid "Run Leapp upgrade job for RHEL host"
117
+ msgstr "RHEL 호스트에 대한 Leapp 업그레이드 작업 실행"
118
+
119
+ msgid "Run Remediation plan with Leapp"
120
+ msgstr "Leapp으로 수정 계획 실행"
121
+
122
+ msgid "Run Upgrade"
123
+ msgstr "업그레이드 실행"
124
+
125
+ msgid "Show Preupgrade report"
126
+ msgstr "사전 업그레이드 보고서 표시"
127
+
128
+ msgid "Summary"
129
+ msgstr "요약"
130
+
131
+ msgid "Tags"
132
+ msgstr "태그"
133
+
134
+ msgid "The preupgrade report could not be generated, check the job details for the reason"
135
+ msgstr "사전 업그레이드 보고서를 생성할 수 없습니다. 해당 사유에 대한 작업 세부 정보를 확인하세요."
136
+
137
+ msgid "The preupgrade report will be available after the job finishes"
138
+ msgstr "작업이 완료되면 사전 업그레이드 보고서를 사용할 수 있습니다."
139
+
140
+ msgid "This issue inhibits the upgrade."
141
+ msgstr "이 문제로 인해 업그레이드가 불가능합니다."
142
+
143
+ msgid "Title"
144
+ msgstr "제목"
145
+
146
+ msgid "Upgrade with Leapp"
147
+ msgstr "Leapp으로 업그레이드"
148
+
149
+ msgid "Upgradeability check for RHEL host"
150
+ msgstr "RHEL 호스트에 대한 업그레이드 가능성 확인"
151
+
152
+ msgid "Yes"
153
+ msgstr "예 "
@@ -8,9 +8,10 @@
8
8
  # Amit Upadhye <aupadhye@redhat.com>, 2023
9
9
  # Ewoud Kohl van Wijngaarden <ewoud+transifex@kohlvanwijngaarden.nl>, 2023
10
10
  #
11
+ #, fuzzy
11
12
  msgid ""
12
13
  msgstr ""
13
- "Project-Id-Version: foreman_leapp 2.0.0\n"
14
+ "Project-Id-Version: foreman_leapp 2.0.3\n"
14
15
  "Report-Msgid-Bugs-To: \n"
15
16
  "PO-Revision-Date: 2022-10-12 12:00+0000\n"
16
17
  "Last-Translator: Ewoud Kohl van Wijngaarden <ewoud+transifex@kohlvanwijngaarde"
@@ -8,22 +8,63 @@ module Helpers
8
8
 
9
9
  let(:job_template) do
10
10
  FactoryBot.create(:job_template, template: 'echo "1"', job_category: 'leapp',
11
- provider_type: 'SSH', name: 'Leapp preupgrade')
11
+ provider_type: 'SSH', name: 'Leapp preupgrade')
12
+ end
13
+ let(:job_invocation) { FactoryBot.create(:job_invocation, :with_task) }
14
+ let(:feature_label) { 'leapp_preupgrade' }
15
+
16
+ setup do
17
+ FactoryBot.create(:template_invocation, template: job_template, job_invocation: job_invocation)
12
18
  end
13
- let(:job_invocation) { FactoryBot.create(:job_invocation) }
14
19
 
15
20
  describe 'correct_feature?' do
16
- setup do
17
- RemoteExecutionFeature.find_by(label: 'leapp_preupgrade').update(job_template: job_template)
18
- FactoryBot.create(:template_invocation, template: job_template, job_invocation: job_invocation)
21
+ test 'returns true when feature is listed in job_features' do
22
+ job_invocation.task.stubs(:input).returns({ 'job_features' => [feature_label] })
23
+ assert helper.correct_feature?(job_invocation, feature_label)
24
+ end
25
+
26
+ test 'returns false when job_features does not include the feature and DB has no match' do
27
+ job_invocation.task.stubs(:input).returns({ 'job_features' => ['some_other_feature'] })
28
+ assert_not helper.correct_feature?(job_invocation, feature_label)
29
+ end
30
+
31
+ test 'returns true when job_features does not include the feature but DB does match' do
32
+ RemoteExecutionFeature.find_by(label: feature_label).update(job_template: job_template)
33
+ job_invocation.task.stubs(:input).returns({ 'job_features' => ['some_other_feature'] })
34
+ assert helper.correct_feature?(job_invocation, feature_label)
35
+ end
36
+
37
+ test 'returns true when job_features key is missing but DB matches' do
38
+ RemoteExecutionFeature.find_by(label: feature_label).update(job_template: job_template)
39
+ job_invocation.task.stubs(:input).returns({})
40
+ assert helper.correct_feature?(job_invocation, feature_label)
41
+ end
42
+
43
+ test 'returns false when job_features key is missing and DB does not match' do
44
+ job_invocation.task.stubs(:input).returns({})
45
+ assert_not helper.correct_feature?(job_invocation, feature_label)
46
+ end
47
+
48
+ test 'returns false when job_features is nil and DB does not match' do
49
+ job_invocation.task.stubs(:input).returns({ 'job_features' => nil })
50
+ assert_not helper.correct_feature?(job_invocation, feature_label)
51
+ end
52
+
53
+ test 'returns true when job_features is nil but DB matches' do
54
+ RemoteExecutionFeature.find_by(label: feature_label).update(job_template: job_template)
55
+ job_invocation.task.stubs(:input).returns({ 'job_features' => nil })
56
+ assert helper.correct_feature?(job_invocation, feature_label)
19
57
  end
20
58
 
21
- it 'correct feature' do
22
- assert helper.correct_feature?(job_invocation, 'leapp_preupgrade')
59
+ test 'returns false when task is nil and feature not found in DB' do
60
+ job_invocation.stubs(:task).returns(nil)
61
+ assert_not helper.correct_feature?(job_invocation, feature_label)
23
62
  end
24
63
 
25
- it 'wrong feature' do
26
- assert_not helper.correct_feature?(job_invocation, 'leapp_preupgrade2')
64
+ test 'returns true when task is nil but DB matches' do
65
+ RemoteExecutionFeature.find_by(label: feature_label).update(job_template: job_template)
66
+ job_invocation.stubs(:task).returns(nil)
67
+ assert helper.correct_feature?(job_invocation, feature_label)
27
68
  end
28
69
  end
29
70
  end
metadata CHANGED
@@ -1,14 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: foreman_leapp
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.0.3
4
+ version: 2.0.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Foreman Leapp team
8
- autorequire:
9
8
  bindir: bin
10
9
  cert_chain: []
11
- date: 2024-12-17 00:00:00.000000000 Z
10
+ date: 2025-07-02 00:00:00.000000000 Z
12
11
  dependencies:
13
12
  - !ruby/object:Gem::Dependency
14
13
  name: foreman_remote_execution
@@ -67,6 +66,7 @@ files:
67
66
  - app/assets/javascripts/foreman_leapp/locale/fr/foreman_leapp.js
68
67
  - app/assets/javascripts/foreman_leapp/locale/ja/foreman_leapp.js
69
68
  - app/assets/javascripts/foreman_leapp/locale/ka/foreman_leapp.js
69
+ - app/assets/javascripts/foreman_leapp/locale/ko/foreman_leapp.js
70
70
  - app/assets/javascripts/foreman_leapp/locale/zh_CN/foreman_leapp.js
71
71
  - app/controllers/api/v2/preupgrade_reports_controller.rb
72
72
  - app/controllers/concerns/api/v2/api_authorizer.rb
@@ -115,6 +115,8 @@ files:
115
115
  - locale/ja/foreman_leapp.po
116
116
  - locale/ka/LC_MESSAGES/foreman_leapp.mo
117
117
  - locale/ka/foreman_leapp.po
118
+ - locale/ko/LC_MESSAGES/foreman_leapp.mo
119
+ - locale/ko/foreman_leapp.po
118
120
  - locale/zh_CN/LC_MESSAGES/foreman_leapp.mo
119
121
  - locale/zh_CN/foreman_leapp.po
120
122
  - package.json
@@ -198,7 +200,6 @@ homepage: https://github.com/theforeman/foreman_leapp
198
200
  licenses:
199
201
  - GPL-3.0
200
202
  metadata: {}
201
- post_install_message:
202
203
  rdoc_options: []
203
204
  require_paths:
204
205
  - lib
@@ -213,8 +214,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
213
214
  - !ruby/object:Gem::Version
214
215
  version: '0'
215
216
  requirements: []
216
- rubygems_version: 3.5.23
217
- signing_key:
217
+ rubygems_version: 3.6.2
218
218
  specification_version: 4
219
219
  summary: A Foreman plugin for Leapp utility.
220
220
  test_files: