foreman_snapshot_management 2.0.2 → 3.0.0

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.
Files changed (58) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +6 -4
  3. data/Rakefile +1 -1
  4. data/app/assets/javascripts/foreman_snapshot_management/locale/cs_CZ/foreman_snapshot_management.js +203 -0
  5. data/app/assets/javascripts/foreman_snapshot_management/locale/de/foreman_snapshot_management.js +201 -0
  6. data/app/assets/javascripts/foreman_snapshot_management/locale/el/foreman_snapshot_management.js +201 -0
  7. data/app/assets/javascripts/foreman_snapshot_management/locale/en/foreman_snapshot_management.js +198 -0
  8. data/app/assets/javascripts/foreman_snapshot_management/locale/fr/foreman_snapshot_management.js +203 -0
  9. data/app/assets/javascripts/foreman_snapshot_management/locale/ja/foreman_snapshot_management.js +199 -0
  10. data/app/assets/javascripts/foreman_snapshot_management/locale/ka/foreman_snapshot_management.js +201 -0
  11. data/app/assets/javascripts/foreman_snapshot_management/locale/zh_CN/foreman_snapshot_management.js +199 -0
  12. data/app/controllers/api/v2/snapshots_controller.rb +7 -3
  13. data/app/controllers/concerns/foreman/controller/parameters/snapshot.rb +1 -1
  14. data/app/controllers/foreman_snapshot_management/snapshots_controller.rb +20 -4
  15. data/app/helpers/foreman_snapshot_management/hosts_helper.rb +16 -0
  16. data/app/models/concerns/fog_extensions/proxmox/snapshots/mock.rb +1 -1
  17. data/app/models/concerns/fog_extensions/vsphere/snapshots/mock.rb +2 -2
  18. data/app/models/concerns/fog_extensions/vsphere/snapshots/real.rb +1 -1
  19. data/app/models/foreman_snapshot_management/proxmox_extensions.rb +5 -4
  20. data/app/models/foreman_snapshot_management/snapshot.rb +10 -9
  21. data/app/models/foreman_snapshot_management/vmware_extensions.rb +13 -3
  22. data/app/views/foreman_snapshot_management/snapshots/_index.html.erb +2 -1
  23. data/app/views/foreman_snapshot_management/snapshots/select_multiple_host.html.erb +5 -3
  24. data/config/routes.rb +1 -1
  25. data/lib/foreman_snapshot_management/engine.rb +24 -29
  26. data/lib/foreman_snapshot_management/version.rb +1 -1
  27. data/lib/tasks/foreman_snapshot_management_tasks.rake +1 -1
  28. data/locale/Makefile +8 -5
  29. data/locale/cs_CZ/LC_MESSAGES/foreman_snapshot_management.mo +0 -0
  30. data/locale/cs_CZ/foreman_snapshot_management.po +203 -0
  31. data/locale/de/LC_MESSAGES/foreman_snapshot_management.mo +0 -0
  32. data/locale/de/foreman_snapshot_management.po +22 -14
  33. data/locale/el/LC_MESSAGES/foreman_snapshot_management.mo +0 -0
  34. data/locale/el/foreman_snapshot_management.po +198 -0
  35. data/locale/en/LC_MESSAGES/foreman_snapshot_management.mo +0 -0
  36. data/locale/en/foreman_snapshot_management.po +22 -13
  37. data/locale/foreman_snapshot_management.pot +56 -35
  38. data/locale/fr/LC_MESSAGES/foreman_snapshot_management.mo +0 -0
  39. data/locale/fr/foreman_snapshot_management.po +204 -0
  40. data/locale/ja/LC_MESSAGES/foreman_snapshot_management.mo +0 -0
  41. data/locale/ja/foreman_snapshot_management.po +197 -0
  42. data/locale/ka/LC_MESSAGES/foreman_snapshot_management.mo +0 -0
  43. data/locale/ka/foreman_snapshot_management.po +198 -0
  44. data/locale/zh_CN/LC_MESSAGES/foreman_snapshot_management.mo +0 -0
  45. data/locale/zh_CN/foreman_snapshot_management.po +199 -0
  46. data/package.json +4 -3
  47. data/test/controllers/api/v2/snapshots_test.rb +1 -1
  48. data/test/controllers/foreman_snapshot_management/snapshots_controller_test.rb +18 -3
  49. data/webpack/components/SnapshotManagement/SnapshotManagement.js +2 -0
  50. data/webpack/components/SnapshotManagement/components/SnapshotForm/SnapshotForm.js +53 -11
  51. data/webpack/components/SnapshotManagement/components/SnapshotForm/__tests__/__snapshots__/SnapshotForm.test.js.snap +262 -24
  52. data/webpack/components/SnapshotManagementCard/SnapshotManagementCard.js +64 -0
  53. data/webpack/components/SnapshotManagementCard/__tests__/SnapshotManagementCard.test.js +54 -0
  54. data/webpack/components/SnapshotManagementCard/__tests__/__snapshots__/SnapshotManagementCard.test.js.snap +117 -0
  55. data/webpack/components/SnapshotManagementCard/index.js +1 -0
  56. data/webpack/global_index.js +13 -0
  57. metadata +33 -10
  58. data/app/helpers/concerns/foreman_snapshot_management/hosts_helper_extension.rb +0 -9
@@ -0,0 +1,197 @@
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_snapshot_management package.
4
+ # FIRST AUTHOR <EMAIL@ADDRESS>, YEAR.
5
+ #
6
+ # Translators:
7
+ # Bryan Kearney <bryan.kearney@gmail.com>, 2021
8
+ # Amit Upadhye <aupadhye@redhat.com>, 2022
9
+ #
10
+ msgid ""
11
+ msgstr ""
12
+ "Project-Id-Version: foreman_snapshot_management 2.0.2\n"
13
+ "Report-Msgid-Bugs-To: \n"
14
+ "PO-Revision-Date: 2019-10-22 11:54+0000\n"
15
+ "Last-Translator: Amit Upadhye <aupadhye@redhat.com>, 2022\n"
16
+ "Language-Team: Japanese (https://www.transifex.com/foreman/teams/114/ja/)\n"
17
+ "MIME-Version: 1.0\n"
18
+ "Content-Type: text/plain; charset=UTF-8\n"
19
+ "Content-Transfer-Encoding: 8bit\n"
20
+ "Language: ja\n"
21
+ "Plural-Forms: nplurals=1; plural=0;\n"
22
+
23
+ msgid "Action"
24
+ msgstr "アクション"
25
+
26
+ msgid "Create Snapshot"
27
+ msgstr "スナップショットの作成"
28
+
29
+ msgid "Create Snapshot for %s"
30
+ msgstr "%s のスナップショットの作成"
31
+
32
+ msgid "Create a snapshot"
33
+ msgstr "スナップショットの作成"
34
+
35
+ msgid "Created %{snapshots} for %{num} %{hosts}"
36
+ msgstr "%{num} 個の %{hosts} に対して %{snapshots} を作成済み"
37
+
38
+ msgid "Delete"
39
+ msgstr "削除"
40
+
41
+ msgid "Delete Snapshot \"%s\"?"
42
+ msgstr "スナップショット \"%s\" を削除しますか ?"
43
+
44
+ msgid "Delete a snapshot"
45
+ msgstr "スナップショットの削除"
46
+
47
+ msgid "Description"
48
+ msgstr "説明"
49
+
50
+ msgid "Description of this snapshot"
51
+ msgstr "このスナップショットの説明"
52
+
53
+ msgid "Error occurred while creating Snapshot for:%s"
54
+ msgstr "スナップショットの作成中にエラーが発生しました: %s"
55
+
56
+ msgid "Error occurred while creating Snapshot: %s"
57
+ msgstr "スナップショットの作成中にエラーが発生しました: %s"
58
+
59
+ msgid "Error occurred while removing Snapshot: %s"
60
+ msgstr "スナップショットの削除中にエラーが発生しました: %s"
61
+
62
+ msgid "Error occurred while rolling back VM: %s"
63
+ msgstr "仮想マシンのロールバック中にエラーが発生しました: %s"
64
+
65
+ msgid "Error occurred while updating Snapshot: %s"
66
+ msgstr "スナップショットの更新中にエラーが発生しました: %s"
67
+
68
+ msgid "Failed to load snapshot list"
69
+ msgstr "スナップショットリストの読み込みに失敗しました"
70
+
71
+ msgid "Failed to update Snapshot: %s"
72
+ msgstr "スナップショットの更新に失敗しました: %s"
73
+
74
+ msgid "Foreman-plugin to manage snapshots in a virtual-hardware environments."
75
+ msgstr "仮想ハードウェア環境でスナップショットを管理する Foreman-plugin。"
76
+
77
+ msgid "List all snapshots"
78
+ msgstr "全スナップショットの一覧表示"
79
+
80
+ msgid "Loading Snapshots information ..."
81
+ msgstr "スナップショット情報の読み込み中 ..."
82
+
83
+ msgid "Memory"
84
+ msgstr ""
85
+
86
+ msgid "N/A"
87
+ msgstr "N/A"
88
+
89
+ msgid "Name"
90
+ msgstr "名前"
91
+
92
+ msgid "Name must contain at least 2 characters starting with alphabet. Valid characters are A-Z a-z 0-9 _"
93
+ msgstr "名前には、アルファベットが少なくとも 2 文字含まれている必要があります。使用できる文字は A-Z a-z 0-9 _ です。"
94
+
95
+ msgid "Name of this snapshot"
96
+ msgstr "このスナップショットの名前"
97
+
98
+ msgid "No capable hosts found."
99
+ msgstr "機能するホストが見つかりませんでした。"
100
+
101
+ msgid "No capable hosts selected"
102
+ msgstr "有効にできるホストが選択されていません"
103
+
104
+ msgid "No hosts were found with that id, name or query filter"
105
+ msgstr "その ID、名前またはクエリーフィルターを使ってホストを見つけることができませんでした"
106
+
107
+ msgid "Quiesce"
108
+ msgstr ""
109
+
110
+ msgid "Revert Host to a snapshot"
111
+ msgstr "ホストをスナップショットに戻す"
112
+
113
+ msgid "Rollback"
114
+ msgstr "ロールバック"
115
+
116
+ msgid "Rollback to \"%s\"?"
117
+ msgstr "\"%s\" へロールバックしますか ?"
118
+
119
+ msgid "Select Snapshot Mode between mutually exclusive options, 'Memory' (includes RAM) and 'Quiesce'."
120
+ msgstr ""
121
+
122
+ msgid "Snapshot"
123
+ msgid_plural "Snapshots"
124
+ msgstr[0] "スナップショット"
125
+
126
+ msgid "Snapshot Mode"
127
+ msgstr ""
128
+
129
+ msgid "Snapshot name cannot be changed"
130
+ msgstr "スナップショット名は変更できません"
131
+
132
+ msgid "Snapshot successfully created!"
133
+ msgstr "スナップショットが正常に作成されました!"
134
+
135
+ msgid "Snapshots"
136
+ msgstr "スナップショット"
137
+
138
+ msgid "Something went wrong while selecting hosts - %s"
139
+ msgstr "ホストの選択中に問題が発生しました: %s"
140
+
141
+ msgid "Successfully removed Snapshot \"%s\" from host %s"
142
+ msgstr "ホスト %s からスナップショット \"%s\" を正常に削除しました"
143
+
144
+ msgid "Successfully rolled back Snapshot \"%s\" on host %s"
145
+ msgstr "ホスト %s でスナップショット \"%s\" が正常にロールバックされました"
146
+
147
+ msgid "Successfully updated Snapshot \"%s\""
148
+ msgstr "スナップショット \"%s\" を正常に更新しました。"
149
+
150
+ msgid "Unable to create Proxmox Snapshot"
151
+ msgstr "Proxmox スナップショットを作成できません"
152
+
153
+ msgid "Unable to create VMWare Snapshot"
154
+ msgstr "VMWare スナップショットを作成できません"
155
+
156
+ msgid "Unable to create VMWare Snapshot with Quiesce. Check Power and VMWare Tools status."
157
+ msgstr "Quiesce で VMWare スナップショットを作成できません。Power and VMWare Tools のステータスを確認してください。"
158
+
159
+ msgid "Unable to create VMWare Snapshot. Cannot set both Memory and Quiesce options."
160
+ msgstr "VMWare スナップショットの作成ができません。Memory オプションと Quiesce オプションの両方を設定できません。"
161
+
162
+ msgid "Unable to remove Proxmox Snapshot"
163
+ msgstr "Proxmox スナップショットを削除できません"
164
+
165
+ msgid "Unable to remove VMWare Snapshot"
166
+ msgstr "VMWare スナップショットを削除できません"
167
+
168
+ msgid "Unable to revert Proxmox Snapshot"
169
+ msgstr "Proxmox スナップショットを元に戻すことができません"
170
+
171
+ msgid "Unable to revert VMWare Snapshot"
172
+ msgstr "VMWare スナップショットを元に戻すことができません"
173
+
174
+ msgid "Unable to update Proxmox Snapshot"
175
+ msgstr "Proxmox スナップショットを更新できません"
176
+
177
+ msgid "Unable to update VMWare Snapshot"
178
+ msgstr "VMWare スナップショットを更新できません"
179
+
180
+ msgid "Update a snapshot"
181
+ msgstr "スナップショットの更新"
182
+
183
+ msgid "VM successfully rolled back."
184
+ msgstr "VM が正常にロールバックされました。"
185
+
186
+ msgid "Whether to include the Quiesce state in the snapshot"
187
+ msgstr "スナップショットに Quiesce 状態を含めるかどうか。"
188
+
189
+ msgid "Whether to include the RAM state in the snapshot"
190
+ msgstr "スナップショットに RAM 状態を含めるかどうか"
191
+
192
+ msgid "edit entry"
193
+ msgstr "エントリーの編集"
194
+
195
+ msgid "host"
196
+ msgid_plural "hosts"
197
+ msgstr[0] "ホスト"
@@ -0,0 +1,198 @@
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_snapshot_management package.
4
+ # FIRST AUTHOR <EMAIL@ADDRESS>, YEAR.
5
+ #
6
+ # Translators:
7
+ # Temuri Doghonadze <temuri.doghonadze@gmail.com>, 2022
8
+ #
9
+ msgid ""
10
+ msgstr ""
11
+ "Project-Id-Version: foreman_snapshot_management 2.0.2\n"
12
+ "Report-Msgid-Bugs-To: \n"
13
+ "PO-Revision-Date: 2019-10-22 11:54+0000\n"
14
+ "Last-Translator: Temuri Doghonadze <temuri.doghonadze@gmail.com>, 2022\n"
15
+ "Language-Team: Georgian (https://www.transifex.com/foreman/teams/114/ka/)\n"
16
+ "MIME-Version: 1.0\n"
17
+ "Content-Type: text/plain; charset=UTF-8\n"
18
+ "Content-Transfer-Encoding: 8bit\n"
19
+ "Language: ka\n"
20
+ "Plural-Forms: nplurals=2; plural=(n!=1);\n"
21
+
22
+ msgid "Action"
23
+ msgstr "მოქმედება"
24
+
25
+ msgid "Create Snapshot"
26
+ msgstr "სწრაფი ასლის შექმნა"
27
+
28
+ msgid "Create Snapshot for %s"
29
+ msgstr "%s-ის სწრაფი ასლის შექმნა"
30
+
31
+ msgid "Create a snapshot"
32
+ msgstr "სწრაფი ასლის შექმნა"
33
+
34
+ msgid "Created %{snapshots} for %{num} %{hosts}"
35
+ msgstr "შექმნილია %{snapshots} %{num} %{hosts}-სთვის"
36
+
37
+ msgid "Delete"
38
+ msgstr "წაშლა"
39
+
40
+ msgid "Delete Snapshot \"%s\"?"
41
+ msgstr "წავშალო სწრაფი ასლი \"%s\"?"
42
+
43
+ msgid "Delete a snapshot"
44
+ msgstr "სწრაფი ასლის წაშლა"
45
+
46
+ msgid "Description"
47
+ msgstr "აღწერა"
48
+
49
+ msgid "Description of this snapshot"
50
+ msgstr "სწრაფი ასლის აღწერა"
51
+
52
+ msgid "Error occurred while creating Snapshot for:%s"
53
+ msgstr "სწრაფი ასლის შექმნის შეცდომა: %s"
54
+
55
+ msgid "Error occurred while creating Snapshot: %s"
56
+ msgstr "სწრაფი ასლის შექმნის შეცდომა: %s"
57
+
58
+ msgid "Error occurred while removing Snapshot: %s"
59
+ msgstr "სწრაფი ასლის წაშლის შეცდომა: %s"
60
+
61
+ msgid "Error occurred while rolling back VM: %s"
62
+ msgstr "შეცდომა ვმ-ს დაბრუნებისას: %s"
63
+
64
+ msgid "Error occurred while updating Snapshot: %s"
65
+ msgstr "შეცდომა სწრაფი ასლის განახლებისას: %s"
66
+
67
+ msgid "Failed to load snapshot list"
68
+ msgstr "სწრაფი ასლების სიის ჩატვირთვის შეცდომა"
69
+
70
+ msgid "Failed to update Snapshot: %s"
71
+ msgstr "სწრაფი ასლის განახლების შეცდომა"
72
+
73
+ msgid "Foreman-plugin to manage snapshots in a virtual-hardware environments."
74
+ msgstr "Foreman-ის დამატება ვირტუალურ გარემოში სწრაფი ასლების სამართავად."
75
+
76
+ msgid "List all snapshots"
77
+ msgstr "სწრაფი ასლების სია"
78
+
79
+ msgid "Loading Snapshots information ..."
80
+ msgstr "სწრაფი ასლების ინფორმაციის ჩატვირთვა ..."
81
+
82
+ msgid "Memory"
83
+ msgstr ""
84
+
85
+ msgid "N/A"
86
+ msgstr "არარსებული"
87
+
88
+ msgid "Name"
89
+ msgstr "სახელი"
90
+
91
+ msgid "Name must contain at least 2 characters starting with alphabet. Valid characters are A-Z a-z 0-9 _"
92
+ msgstr "სახელი უნდა შეიცავდეს მინიმუმ 2 სიმბოლოს დაწყებული ასოებით. მისაღები სიმბოლოებია A-Z a-z 0-9 _"
93
+
94
+ msgid "Name of this snapshot"
95
+ msgstr "სწრაფი ასლის სახელი"
96
+
97
+ msgid "No capable hosts found."
98
+ msgstr "შესაძლებლობის მქონე ჰოსტები ნაპოვნი არაა."
99
+
100
+ msgid "No capable hosts selected"
101
+ msgstr "შესაძლებლობის მქონე ჰოსტები მონიშნული არაა"
102
+
103
+ msgid "No hosts were found with that id, name or query filter"
104
+ msgstr "მითითებული ID-ით, სახელით ან საძებნი სტრიქონით ჰოსტები ნაპოვნი არაა"
105
+
106
+ msgid "Quiesce"
107
+ msgstr ""
108
+
109
+ msgid "Revert Host to a snapshot"
110
+ msgstr "ჰოსტის სწრაფ ასლზე დაბრუნება"
111
+
112
+ msgid "Rollback"
113
+ msgstr "უკან დაბრუნება"
114
+
115
+ msgid "Rollback to \"%s\"?"
116
+ msgstr "დავაბრუნო \"%s\"-ზე?"
117
+
118
+ msgid "Select Snapshot Mode between mutually exclusive options, 'Memory' (includes RAM) and 'Quiesce'."
119
+ msgstr ""
120
+
121
+ msgid "Snapshot"
122
+ msgid_plural "Snapshots"
123
+ msgstr[0] "სწრაფი ასლი"
124
+ msgstr[1] "სწრაფი ასლები"
125
+
126
+ msgid "Snapshot Mode"
127
+ msgstr ""
128
+
129
+ msgid "Snapshot name cannot be changed"
130
+ msgstr "სწრაფი ასლის სახელის შეცვლა შეუძლებელია"
131
+
132
+ msgid "Snapshot successfully created!"
133
+ msgstr "სწრაფი ასლი წარმატებით შეიქმნა!"
134
+
135
+ msgid "Snapshots"
136
+ msgstr "სწრაფი ასლები"
137
+
138
+ msgid "Something went wrong while selecting hosts - %s"
139
+ msgstr "შეცდომა ჰოსტების მონიშვნისას - %s"
140
+
141
+ msgid "Successfully removed Snapshot \"%s\" from host %s"
142
+ msgstr "სწრაფი ასლის (%s) წაშლა ჰოსტიდან %s წარმატებით დასრულდა"
143
+
144
+ msgid "Successfully rolled back Snapshot \"%s\" on host %s"
145
+ msgstr "ჰოსტი %s წარმატებით დაბრუნდა სწრაფ ასლზე \"%s\""
146
+
147
+ msgid "Successfully updated Snapshot \"%s\""
148
+ msgstr "სწრაფი ასლი (%s) წარმატებით განახლდა"
149
+
150
+ msgid "Unable to create Proxmox Snapshot"
151
+ msgstr "Proxmox-ის სწრაფი ასლის შექმნა შეუძლებელია"
152
+
153
+ msgid "Unable to create VMWare Snapshot"
154
+ msgstr "VMWare-ის სწრაფი ასლის შექმნა შეუძლებელია"
155
+
156
+ msgid "Unable to create VMWare Snapshot with Quiesce. Check Power and VMWare Tools status."
157
+ msgstr "Quiesce-ით VMWare-ის სწრაფი ასლის შექმნა შეუძლებელია. შეამოწმეთ მისი კვება და VMWare Tools-ის მდგომარეობა."
158
+
159
+ msgid "Unable to create VMWare Snapshot. Cannot set both Memory and Quiesce options."
160
+ msgstr "VMWare-ის სწრაფი ასლის შექმნის შეცდომა. Quiesce -ის და მეხსიერების პარამეტრების ერთდროული დაყენება შეუძლებელია."
161
+
162
+ msgid "Unable to remove Proxmox Snapshot"
163
+ msgstr "Proxmox-ის სწრაფი ასლის წაშლა შეუძლებელია"
164
+
165
+ msgid "Unable to remove VMWare Snapshot"
166
+ msgstr "VMWare-ის სწრაფი ასლის წაშლა შეუძლებელია"
167
+
168
+ msgid "Unable to revert Proxmox Snapshot"
169
+ msgstr "Proxmox-ის სწრაფი ასლის დაბრუნება შეუძლებელია"
170
+
171
+ msgid "Unable to revert VMWare Snapshot"
172
+ msgstr "VMWare-ის სწრაფი ასლის დაბრუნება შეუძლებელია"
173
+
174
+ msgid "Unable to update Proxmox Snapshot"
175
+ msgstr "Proxmox-ის სწრაფი ასლის განახლება შეუძლებელია"
176
+
177
+ msgid "Unable to update VMWare Snapshot"
178
+ msgstr "VMWare-ის სწრაფი ასლის განახლება შეუძლებელია"
179
+
180
+ msgid "Update a snapshot"
181
+ msgstr "სწრაფი ასლის განახლება"
182
+
183
+ msgid "VM successfully rolled back."
184
+ msgstr "ვმ-ი წარმატებით დაბრუნდა."
185
+
186
+ msgid "Whether to include the Quiesce state in the snapshot"
187
+ msgstr "იქნება თუ არა ჩასმული სწრაფ ასლში Quiesce -ის მდგომარეობა"
188
+
189
+ msgid "Whether to include the RAM state in the snapshot"
190
+ msgstr "სწრაფ ასლში ოპერატიული მეხსიერების მდგომარეობის შენახვა"
191
+
192
+ msgid "edit entry"
193
+ msgstr "ჩანაწერის ჩასწორება"
194
+
195
+ msgid "host"
196
+ msgid_plural "hosts"
197
+ msgstr[0] "ჰოსტი"
198
+ msgstr[1] "ჰოსტი"
@@ -0,0 +1,199 @@
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_snapshot_management package.
4
+ # FIRST AUTHOR <EMAIL@ADDRESS>, YEAR.
5
+ #
6
+ # Translators:
7
+ # 0868a4d1af5275b3f70b0a6dac4c99a4, 2019
8
+ # Bryan Kearney <bryan.kearney@gmail.com>, 2019
9
+ # Amit Upadhye <aupadhye@redhat.com>, 2022
10
+ #
11
+ msgid ""
12
+ msgstr ""
13
+ "Project-Id-Version: foreman_snapshot_management 2.0.2\n"
14
+ "Report-Msgid-Bugs-To: \n"
15
+ "PO-Revision-Date: 2019-10-22 11:54+0000\n"
16
+ "Last-Translator: Amit Upadhye <aupadhye@redhat.com>, 2022\n"
17
+ "Language-Team: Chinese (China) (https://www.transifex.com/foreman/teams/114/zh"
18
+ "_CN/)\n"
19
+ "MIME-Version: 1.0\n"
20
+ "Content-Type: text/plain; charset=UTF-8\n"
21
+ "Content-Transfer-Encoding: 8bit\n"
22
+ "Language: zh_CN\n"
23
+ "Plural-Forms: nplurals=1; plural=0;\n"
24
+
25
+ msgid "Action"
26
+ msgstr "操作"
27
+
28
+ msgid "Create Snapshot"
29
+ msgstr "创建快照"
30
+
31
+ msgid "Create Snapshot for %s"
32
+ msgstr "为 %s 创建快照"
33
+
34
+ msgid "Create a snapshot"
35
+ msgstr "创建快照"
36
+
37
+ msgid "Created %{snapshots} for %{num} %{hosts}"
38
+ msgstr "为 %{num} %{hosts} 创建的 %{snapshots}"
39
+
40
+ msgid "Delete"
41
+ msgstr "刪除"
42
+
43
+ msgid "Delete Snapshot \"%s\"?"
44
+ msgstr "删除快照 \"%s\"?"
45
+
46
+ msgid "Delete a snapshot"
47
+ msgstr "删除快照"
48
+
49
+ msgid "Description"
50
+ msgstr "描述"
51
+
52
+ msgid "Description of this snapshot"
53
+ msgstr "此快照的描述"
54
+
55
+ msgid "Error occurred while creating Snapshot for:%s"
56
+ msgstr "创建产品时发生错误:%s"
57
+
58
+ msgid "Error occurred while creating Snapshot: %s"
59
+ msgstr "创建快照时出现错误:%s"
60
+
61
+ msgid "Error occurred while removing Snapshot: %s"
62
+ msgstr "删除快照时发生错误:%s"
63
+
64
+ msgid "Error occurred while rolling back VM: %s"
65
+ msgstr "回滚虚拟机时出现错误:%s"
66
+
67
+ msgid "Error occurred while updating Snapshot: %s"
68
+ msgstr "更新快照时发生错误:%s"
69
+
70
+ msgid "Failed to load snapshot list"
71
+ msgstr "加载快照列表失败"
72
+
73
+ msgid "Failed to update Snapshot: %s"
74
+ msgstr "更新快照失败:%s"
75
+
76
+ msgid "Foreman-plugin to manage snapshots in a virtual-hardware environments."
77
+ msgstr "Foreman-plugin,用于在虚拟硬件环境中管理快照。"
78
+
79
+ msgid "List all snapshots"
80
+ msgstr "列出所有快照"
81
+
82
+ msgid "Loading Snapshots information ..."
83
+ msgstr "加载快照信息..."
84
+
85
+ msgid "Memory"
86
+ msgstr ""
87
+
88
+ msgid "N/A"
89
+ msgstr "不适用"
90
+
91
+ msgid "Name"
92
+ msgstr "名称"
93
+
94
+ msgid "Name must contain at least 2 characters starting with alphabet. Valid characters are A-Z a-z 0-9 _"
95
+ msgstr "名称必须至少包含以字面开头的 2 个字符。有效字符为 A-Z a-z 0-9 _"
96
+
97
+ msgid "Name of this snapshot"
98
+ msgstr "此快照的名称"
99
+
100
+ msgid "No capable hosts found."
101
+ msgstr "未找到可用的主机。"
102
+
103
+ msgid "No capable hosts selected"
104
+ msgstr "没有选择可用的主机"
105
+
106
+ msgid "No hosts were found with that id, name or query filter"
107
+ msgstr "未找到符合此 id、名称或者查询过滤器的主机"
108
+
109
+ msgid "Quiesce"
110
+ msgstr ""
111
+
112
+ msgid "Revert Host to a snapshot"
113
+ msgstr "将主机恢复到快照"
114
+
115
+ msgid "Rollback"
116
+ msgstr "回滚rollback"
117
+
118
+ msgid "Rollback to \"%s\"?"
119
+ msgstr "回滚到 \"%s\"?"
120
+
121
+ msgid "Select Snapshot Mode between mutually exclusive options, 'Memory' (includes RAM) and 'Quiesce'."
122
+ msgstr ""
123
+
124
+ msgid "Snapshot"
125
+ msgid_plural "Snapshots"
126
+ msgstr[0] "快照"
127
+
128
+ msgid "Snapshot Mode"
129
+ msgstr ""
130
+
131
+ msgid "Snapshot name cannot be changed"
132
+ msgstr "无法更改快照名称"
133
+
134
+ msgid "Snapshot successfully created!"
135
+ msgstr "成功创建快照!"
136
+
137
+ msgid "Snapshots"
138
+ msgstr "快照"
139
+
140
+ msgid "Something went wrong while selecting hosts - %s"
141
+ msgstr "选择主机时出错 - %s"
142
+
143
+ msgid "Successfully removed Snapshot \"%s\" from host %s"
144
+ msgstr "成功从主机 %s 中删除快照 \"%s\""
145
+
146
+ msgid "Successfully rolled back Snapshot \"%s\" on host %s"
147
+ msgstr "在主机 %s 上成功回滚快照 \"%s\""
148
+
149
+ msgid "Successfully updated Snapshot \"%s\""
150
+ msgstr "成功更新快照 \"%s\""
151
+
152
+ msgid "Unable to create Proxmox Snapshot"
153
+ msgstr "无法创建 Proxmox 快照"
154
+
155
+ msgid "Unable to create VMWare Snapshot"
156
+ msgstr "无法创建 VMWare 快照"
157
+
158
+ msgid "Unable to create VMWare Snapshot with Quiesce. Check Power and VMWare Tools status."
159
+ msgstr "无法使用 Quiesce 创建 VMWare 快照。检查 Power 和 VMWare 工具状态。"
160
+
161
+ msgid "Unable to create VMWare Snapshot. Cannot set both Memory and Quiesce options."
162
+ msgstr "无法创建 VMWare 快照。无法同时设置 Memory 和 Quiesce 选项。"
163
+
164
+ msgid "Unable to remove Proxmox Snapshot"
165
+ msgstr "无法删除 Proxmox 快照"
166
+
167
+ msgid "Unable to remove VMWare Snapshot"
168
+ msgstr "无法删除 VMWare 快照"
169
+
170
+ msgid "Unable to revert Proxmox Snapshot"
171
+ msgstr "无法恢复 Proxmox 快照"
172
+
173
+ msgid "Unable to revert VMWare Snapshot"
174
+ msgstr "无法恢复 VMWare 快照"
175
+
176
+ msgid "Unable to update Proxmox Snapshot"
177
+ msgstr "无法更新 Proxmox 快照"
178
+
179
+ msgid "Unable to update VMWare Snapshot"
180
+ msgstr "无法更新 VMWare 快照"
181
+
182
+ msgid "Update a snapshot"
183
+ msgstr "更新快照"
184
+
185
+ msgid "VM successfully rolled back."
186
+ msgstr "虚拟机成功回滚。"
187
+
188
+ msgid "Whether to include the Quiesce state in the snapshot"
189
+ msgstr "是否在快照中包含 Quiesce 状态"
190
+
191
+ msgid "Whether to include the RAM state in the snapshot"
192
+ msgstr "是否在快照中包含 RAM 状态"
193
+
194
+ msgid "edit entry"
195
+ msgstr "编辑条目"
196
+
197
+ msgid "host"
198
+ msgid_plural "hosts"
199
+ msgstr[0] "主机"
data/package.json CHANGED
@@ -1,14 +1,15 @@
1
1
  {
2
2
  "name": "foreman_snapshot_management",
3
- "version": "2.0.1",
3
+ "version": "3.0.0",
4
4
  "description": "Foreman-plugin to manage snapshots in a virtual-hardware environments.",
5
5
  "main": "index.js",
6
6
  "scripts": {
7
7
  "lint": "tfm-lint --plugin -d /webpack",
8
8
  "stylelint": "stylelint webpack/**/*.scss",
9
9
  "test": "tfm-test --config jest.config.js",
10
- "test:watch": "tfm-test --plugin --watchAll",
11
- "test:current": "tfm-test --plugin --watch",
10
+ "test:compat": "tfm-test --config jest.config.js --testPathIgnorePatterns='SnapshotManagementCard'",
11
+ "test:watch": "tfm-test --config jest.config.js --plugin --watchAll",
12
+ "test:current": "tfm-test --config jest.config.js --plugin --watch",
12
13
  "publish-coverage": "tfm-publish-coverage",
13
14
  "stories": "tfm-stories --plugin",
14
15
  "stories:build": "tfm-build-stories --plugin",
@@ -6,7 +6,7 @@ class Api::V2::SnapshotsControllerTest < ActionController::TestCase
6
6
  let(:tax_location) { Location.find_by(name: 'Location 1') }
7
7
  let(:tax_organization) { Organization.find_by(name: 'Organization 1') }
8
8
  let(:compute_resource) do
9
- cr = FactoryBot.create(:compute_resource, :vmware, :uuid => 'Solutions', :locations => [tax_location], organizations: [tax_organization])
9
+ cr = FactoryBot.create(:compute_resource, :vmware, :uuid => 'Solutions', :locations => [tax_location], :organizations => [tax_organization])
10
10
  ComputeResource.find_by(id: cr.id)
11
11
  end
12
12
  let(:uuid) { '5032c8a5-9c5e-ba7a-3804-832a03e16381' }
@@ -7,11 +7,11 @@ module ForemanSnapshotManagement
7
7
  let(:tax_location) { Location.find_by(name: 'Location 1') }
8
8
  let(:tax_organization) { Organization.find_by(name: 'Organization 1') }
9
9
  let(:compute_resource) do
10
- cr = FactoryBot.create(:compute_resource, :vmware, :uuid => 'Solutions', :locations => [tax_location], organizations: [tax_organization])
10
+ cr = FactoryBot.create(:compute_resource, :vmware, :uuid => 'Solutions', :locations => [tax_location], :organizations => [tax_organization])
11
11
  ComputeResource.find_by(id: cr.id)
12
12
  end
13
13
  let(:uuid) { '5032c8a5-9c5e-ba7a-3804-832a03e16381' }
14
- let(:uuid2) { 'a7169e20-74d3-4367-afc2-d355716e7555' }
14
+ let(:uuid2) { '502916a3-b42e-17c7-43ce-b3206e9524dc' }
15
15
  let(:host) { FactoryBot.create(:host, :managed, :compute_resource => compute_resource, :uuid => uuid) }
16
16
  let(:host2) { FactoryBot.create(:host, :managed, :compute_resource => compute_resource, :uuid => uuid2) }
17
17
  let(:snapshot_id) { 'snapshot-0101' }
@@ -64,8 +64,23 @@ module ForemanSnapshotManagement
64
64
  end
65
65
  end
66
66
 
67
- test 'create valid multiple' do
67
+ test 'create valid multiple with memory' do
68
+ post :create_multiple_host, params: { :host_ids => [host.id, host2.id], :snapshot => { :name => 'test', :snapshot_mode => 'memory' } }, session: set_session_user
69
+ puts @response
70
+ assert_redirected_to hosts_url
71
+ assert_includes flash[:notice] || flash[:success], 'Created Snapshots for 2 hosts'
72
+ end
73
+
74
+ test 'create valid multiple with quiesce' do
75
+ post :create_multiple_host, params: { :host_ids => [host.id], :snapshot => { :name => 'test', :snapshot_mode => 'quiesce' } }, session: set_session_user
76
+ puts @response
77
+ assert_redirected_to hosts_url
78
+ assert_includes flash[:notice] || flash[:success], 'Created Snapshot for 1 host'
79
+ end
80
+
81
+ test 'create valid multiple without specific mode' do
68
82
  post :create_multiple_host, params: { :host_ids => [host.id, host2.id], :snapshot => { :name => 'test' } }, session: set_session_user
83
+ puts @response
69
84
  assert_redirected_to hosts_url
70
85
  assert_includes flash[:notice] || flash[:success], 'Created Snapshots for 2 hosts'
71
86
  end
@@ -67,6 +67,7 @@ SnapshotManagement.propTypes = {
67
67
  capabilities: PropTypes.shape({
68
68
  editSnapshotName: PropTypes.bool,
69
69
  limitSnapshotNameFormat: PropTypes.bool,
70
+ quiesceOption: PropTypes.bool,
70
71
  }),
71
72
  };
72
73
 
@@ -78,6 +79,7 @@ SnapshotManagement.defaultProps = {
78
79
  capabilities: {
79
80
  editSnapshotName: true,
80
81
  limitSnapshotNameFormat: false,
82
+ quiesceOption: false,
81
83
  },
82
84
  };
83
85