foreman_virt_who_configure 0.5.18 → 0.5.19

Sign up to get free protection for your applications and to get access to all the features.
Files changed (217) hide show
  1. checksums.yaml +4 -4
  2. data/app/assets/javascripts/foreman_virt_who_configure/locale/bn/foreman_virt_who_configure.js +1 -238
  3. data/app/assets/javascripts/foreman_virt_who_configure/locale/bn_IN/foreman_virt_who_configure.js +1 -238
  4. data/app/assets/javascripts/foreman_virt_who_configure/locale/ca/foreman_virt_who_configure.js +1 -217
  5. data/app/assets/javascripts/foreman_virt_who_configure/locale/cs_CZ/foreman_virt_who_configure.js +11 -138
  6. data/app/assets/javascripts/foreman_virt_who_configure/locale/de/foreman_virt_who_configure.js +27 -67
  7. data/app/assets/javascripts/foreman_virt_who_configure/locale/de_DE/foreman_virt_who_configure.js +1 -247
  8. data/app/assets/javascripts/foreman_virt_who_configure/locale/el/foreman_virt_who_configure.js +6 -198
  9. data/app/assets/javascripts/foreman_virt_who_configure/locale/en/foreman_virt_who_configure.js +0 -249
  10. data/app/assets/javascripts/foreman_virt_who_configure/locale/en_GB/foreman_virt_who_configure.js +1 -232
  11. data/app/assets/javascripts/foreman_virt_who_configure/locale/es/foreman_virt_who_configure.js +28 -68
  12. data/app/assets/javascripts/foreman_virt_who_configure/locale/fr/foreman_virt_who_configure.js +33 -43
  13. data/app/assets/javascripts/foreman_virt_who_configure/locale/gl/foreman_virt_who_configure.js +1 -235
  14. data/app/assets/javascripts/foreman_virt_who_configure/locale/gu/foreman_virt_who_configure.js +1 -235
  15. data/app/assets/javascripts/foreman_virt_who_configure/locale/he_IL/foreman_virt_who_configure.js +0 -249
  16. data/app/assets/javascripts/foreman_virt_who_configure/locale/hi/foreman_virt_who_configure.js +1 -238
  17. data/app/assets/javascripts/foreman_virt_who_configure/locale/it/foreman_virt_who_configure.js +10 -169
  18. data/app/assets/javascripts/foreman_virt_who_configure/locale/ja/foreman_virt_who_configure.js +33 -43
  19. data/app/assets/javascripts/foreman_virt_who_configure/locale/ka/foreman_virt_who_configure.js +34 -38
  20. data/app/assets/javascripts/foreman_virt_who_configure/locale/kn/foreman_virt_who_configure.js +1 -238
  21. data/app/assets/javascripts/foreman_virt_who_configure/locale/ko/foreman_virt_who_configure.js +13 -136
  22. data/app/assets/javascripts/foreman_virt_who_configure/locale/mr/foreman_virt_who_configure.js +1 -238
  23. data/app/assets/javascripts/foreman_virt_who_configure/locale/nl_NL/foreman_virt_who_configure.js +1 -238
  24. data/app/assets/javascripts/foreman_virt_who_configure/locale/or/foreman_virt_who_configure.js +1 -238
  25. data/app/assets/javascripts/foreman_virt_who_configure/locale/pa/foreman_virt_who_configure.js +1 -238
  26. data/app/assets/javascripts/foreman_virt_who_configure/locale/pl/foreman_virt_who_configure.js +1 -232
  27. data/app/assets/javascripts/foreman_virt_who_configure/locale/pt/foreman_virt_who_configure.js +0 -249
  28. data/app/assets/javascripts/foreman_virt_who_configure/locale/pt_BR/foreman_virt_who_configure.js +28 -68
  29. data/app/assets/javascripts/foreman_virt_who_configure/locale/ru/foreman_virt_who_configure.js +13 -136
  30. data/app/assets/javascripts/foreman_virt_who_configure/locale/sl/foreman_virt_who_configure.js +1 -244
  31. data/app/assets/javascripts/foreman_virt_who_configure/locale/sv_SE/foreman_virt_who_configure.js +1 -235
  32. data/app/assets/javascripts/foreman_virt_who_configure/locale/ta/foreman_virt_who_configure.js +1 -238
  33. data/app/assets/javascripts/foreman_virt_who_configure/locale/ta_IN/foreman_virt_who_configure.js +1 -238
  34. data/app/assets/javascripts/foreman_virt_who_configure/locale/te/foreman_virt_who_configure.js +1 -238
  35. data/app/assets/javascripts/foreman_virt_who_configure/locale/tr/foreman_virt_who_configure.js +0 -249
  36. data/app/assets/javascripts/foreman_virt_who_configure/locale/zh_CN/foreman_virt_who_configure.js +33 -43
  37. data/app/assets/javascripts/foreman_virt_who_configure/locale/zh_TW/foreman_virt_who_configure.js +14 -137
  38. data/app/models/foreman_virt_who_configure/config.rb +47 -40
  39. data/app/models/foreman_virt_who_configure/output_generator.rb +105 -105
  40. data/app/models/foreman_virt_who_configure/service_user.rb +4 -4
  41. data/app/services/sso/basic_with_hidden.rb +1 -1
  42. data/config/database.yml.example +17 -0
  43. data/db/migrate/20231024171433_add_organization_id_to_service_user.rb +22 -0
  44. data/lib/foreman_virt_who_configure/engine.rb +8 -8
  45. data/lib/foreman_virt_who_configure/version.rb +1 -1
  46. data/locale/Makefile +2 -4
  47. data/locale/bn/LC_MESSAGES/foreman_virt_who_configure.mo +0 -0
  48. data/locale/bn/foreman_virt_who_configure.edit.po +961 -0
  49. data/locale/bn/foreman_virt_who_configure.po +0 -249
  50. data/locale/bn/foreman_virt_who_configure.po.time_stamp +0 -0
  51. data/locale/bn_IN/LC_MESSAGES/foreman_virt_who_configure.mo +0 -0
  52. data/locale/bn_IN/foreman_virt_who_configure.edit.po +962 -0
  53. data/locale/bn_IN/foreman_virt_who_configure.po +0 -249
  54. data/locale/bn_IN/foreman_virt_who_configure.po.time_stamp +0 -0
  55. data/locale/bqi/foreman_virt_who_configure.edit.po +958 -0
  56. data/locale/bqi/foreman_virt_who_configure.po.time_stamp +0 -0
  57. data/locale/ca/LC_MESSAGES/foreman_virt_who_configure.mo +0 -0
  58. data/locale/ca/foreman_virt_who_configure.edit.po +961 -0
  59. data/locale/ca/foreman_virt_who_configure.po +0 -249
  60. data/locale/ca/foreman_virt_who_configure.po.time_stamp +0 -0
  61. data/locale/cs_CZ/LC_MESSAGES/foreman_virt_who_configure.mo +0 -0
  62. data/locale/cs_CZ/foreman_virt_who_configure.edit.po +977 -0
  63. data/locale/cs_CZ/foreman_virt_who_configure.po +0 -249
  64. data/locale/cs_CZ/foreman_virt_who_configure.po.time_stamp +0 -0
  65. data/locale/de/LC_MESSAGES/foreman_virt_who_configure.mo +0 -0
  66. data/locale/de/foreman_virt_who_configure.edit.po +987 -0
  67. data/locale/de/foreman_virt_who_configure.po +0 -249
  68. data/locale/de/foreman_virt_who_configure.po.time_stamp +0 -0
  69. data/locale/de_AT/foreman_virt_who_configure.edit.po +958 -0
  70. data/locale/de_AT/foreman_virt_who_configure.po.time_stamp +0 -0
  71. data/locale/de_DE/LC_MESSAGES/foreman_virt_who_configure.mo +0 -0
  72. data/locale/de_DE/foreman_virt_who_configure.edit.po +964 -0
  73. data/locale/de_DE/foreman_virt_who_configure.po +0 -249
  74. data/locale/de_DE/foreman_virt_who_configure.po.time_stamp +0 -0
  75. data/locale/el/LC_MESSAGES/foreman_virt_who_configure.mo +0 -0
  76. data/locale/el/foreman_virt_who_configure.edit.po +961 -0
  77. data/locale/el/foreman_virt_who_configure.po +0 -249
  78. data/locale/el/foreman_virt_who_configure.po.time_stamp +0 -0
  79. data/locale/en/foreman_virt_who_configure.edit.po +957 -0
  80. data/locale/en/foreman_virt_who_configure.po +0 -249
  81. data/locale/en/foreman_virt_who_configure.po.time_stamp +0 -0
  82. data/locale/en_GB/LC_MESSAGES/foreman_virt_who_configure.mo +0 -0
  83. data/locale/en_GB/foreman_virt_who_configure.edit.po +963 -0
  84. data/locale/en_GB/foreman_virt_who_configure.po +0 -249
  85. data/locale/en_GB/foreman_virt_who_configure.po.time_stamp +0 -0
  86. data/locale/en_US/foreman_virt_who_configure.edit.po +958 -0
  87. data/locale/en_US/foreman_virt_who_configure.po.time_stamp +0 -0
  88. data/locale/es/LC_MESSAGES/foreman_virt_who_configure.mo +0 -0
  89. data/locale/es/foreman_virt_who_configure.edit.po +984 -0
  90. data/locale/es/foreman_virt_who_configure.po +0 -249
  91. data/locale/es/foreman_virt_who_configure.po.time_stamp +0 -0
  92. data/locale/et_EE/foreman_virt_who_configure.edit.po +958 -0
  93. data/locale/et_EE/foreman_virt_who_configure.po.time_stamp +0 -0
  94. data/locale/foreman_virt_who_configure.pot +3 -335
  95. data/locale/fr/LC_MESSAGES/foreman_virt_who_configure.mo +0 -0
  96. data/locale/fr/foreman_virt_who_configure.edit.po +982 -0
  97. data/locale/fr/foreman_virt_who_configure.po +0 -249
  98. data/locale/fr/foreman_virt_who_configure.po.time_stamp +0 -0
  99. data/locale/gl/LC_MESSAGES/foreman_virt_who_configure.mo +0 -0
  100. data/locale/gl/foreman_virt_who_configure.edit.po +961 -0
  101. data/locale/gl/foreman_virt_who_configure.po +0 -249
  102. data/locale/gl/foreman_virt_who_configure.po.time_stamp +0 -0
  103. data/locale/gu/LC_MESSAGES/foreman_virt_who_configure.mo +0 -0
  104. data/locale/gu/foreman_virt_who_configure.edit.po +961 -0
  105. data/locale/gu/foreman_virt_who_configure.po +0 -249
  106. data/locale/gu/foreman_virt_who_configure.po.time_stamp +0 -0
  107. data/locale/he_IL/foreman_virt_who_configure.edit.po +963 -0
  108. data/locale/he_IL/foreman_virt_who_configure.po +0 -249
  109. data/locale/he_IL/foreman_virt_who_configure.po.time_stamp +0 -0
  110. data/locale/hi/LC_MESSAGES/foreman_virt_who_configure.mo +0 -0
  111. data/locale/hi/foreman_virt_who_configure.edit.po +961 -0
  112. data/locale/hi/foreman_virt_who_configure.po +0 -249
  113. data/locale/hi/foreman_virt_who_configure.po.time_stamp +0 -0
  114. data/locale/id/foreman_virt_who_configure.edit.po +957 -0
  115. data/locale/id/foreman_virt_who_configure.po.time_stamp +0 -0
  116. data/locale/it/LC_MESSAGES/foreman_virt_who_configure.mo +0 -0
  117. data/locale/it/foreman_virt_who_configure.edit.po +965 -0
  118. data/locale/it/foreman_virt_who_configure.po +0 -249
  119. data/locale/it/foreman_virt_who_configure.po.time_stamp +0 -0
  120. data/locale/ja/LC_MESSAGES/foreman_virt_who_configure.mo +0 -0
  121. data/locale/ja/foreman_virt_who_configure.edit.po +979 -0
  122. data/locale/ja/foreman_virt_who_configure.po +0 -249
  123. data/locale/ja/foreman_virt_who_configure.po.time_stamp +0 -0
  124. data/locale/ka/LC_MESSAGES/foreman_virt_who_configure.mo +0 -0
  125. data/locale/ka/foreman_virt_who_configure.edit.po +976 -0
  126. data/locale/ka/foreman_virt_who_configure.po +0 -249
  127. data/locale/ka/foreman_virt_who_configure.po.time_stamp +0 -0
  128. data/locale/kn/LC_MESSAGES/foreman_virt_who_configure.mo +0 -0
  129. data/locale/kn/foreman_virt_who_configure.edit.po +961 -0
  130. data/locale/kn/foreman_virt_who_configure.po +0 -249
  131. data/locale/kn/foreman_virt_who_configure.po.time_stamp +0 -0
  132. data/locale/ko/LC_MESSAGES/foreman_virt_who_configure.mo +0 -0
  133. data/locale/ko/foreman_virt_who_configure.edit.po +963 -0
  134. data/locale/ko/foreman_virt_who_configure.po +0 -249
  135. data/locale/ko/foreman_virt_who_configure.po.time_stamp +0 -0
  136. data/locale/ml_IN/foreman_virt_who_configure.edit.po +958 -0
  137. data/locale/ml_IN/foreman_virt_who_configure.po.time_stamp +0 -0
  138. data/locale/mr/LC_MESSAGES/foreman_virt_who_configure.mo +0 -0
  139. data/locale/mr/foreman_virt_who_configure.edit.po +961 -0
  140. data/locale/mr/foreman_virt_who_configure.po +0 -249
  141. data/locale/mr/foreman_virt_who_configure.po.time_stamp +0 -0
  142. data/locale/nl_NL/LC_MESSAGES/foreman_virt_who_configure.mo +0 -0
  143. data/locale/nl_NL/foreman_virt_who_configure.edit.po +966 -0
  144. data/locale/nl_NL/foreman_virt_who_configure.po +0 -249
  145. data/locale/nl_NL/foreman_virt_who_configure.po.time_stamp +0 -0
  146. data/locale/or/LC_MESSAGES/foreman_virt_who_configure.mo +0 -0
  147. data/locale/or/foreman_virt_who_configure.edit.po +961 -0
  148. data/locale/or/foreman_virt_who_configure.po +0 -249
  149. data/locale/or/foreman_virt_who_configure.po.time_stamp +0 -0
  150. data/locale/pa/LC_MESSAGES/foreman_virt_who_configure.mo +0 -0
  151. data/locale/pa/foreman_virt_who_configure.edit.po +962 -0
  152. data/locale/pa/foreman_virt_who_configure.po +0 -249
  153. data/locale/pa/foreman_virt_who_configure.po.time_stamp +0 -0
  154. data/locale/pl/LC_MESSAGES/foreman_virt_who_configure.mo +0 -0
  155. data/locale/pl/foreman_virt_who_configure.edit.po +964 -0
  156. data/locale/pl/foreman_virt_who_configure.po +0 -249
  157. data/locale/pl/foreman_virt_who_configure.po.time_stamp +0 -0
  158. data/locale/pl_PL/foreman_virt_who_configure.edit.po +960 -0
  159. data/locale/pl_PL/foreman_virt_who_configure.po.time_stamp +0 -0
  160. data/locale/pt/foreman_virt_who_configure.edit.po +962 -0
  161. data/locale/pt/foreman_virt_who_configure.po +0 -249
  162. data/locale/pt/foreman_virt_who_configure.po.time_stamp +0 -0
  163. data/locale/pt_BR/LC_MESSAGES/foreman_virt_who_configure.mo +0 -0
  164. data/locale/pt_BR/foreman_virt_who_configure.edit.po +985 -0
  165. data/locale/pt_BR/foreman_virt_who_configure.po +0 -249
  166. data/locale/pt_BR/foreman_virt_who_configure.po.time_stamp +0 -0
  167. data/locale/ro/foreman_virt_who_configure.edit.po +958 -0
  168. data/locale/ro/foreman_virt_who_configure.po.time_stamp +0 -0
  169. data/locale/ro_RO/foreman_virt_who_configure.edit.po +959 -0
  170. data/locale/ro_RO/foreman_virt_who_configure.po.time_stamp +0 -0
  171. data/locale/ru/LC_MESSAGES/foreman_virt_who_configure.mo +0 -0
  172. data/locale/ru/foreman_virt_who_configure.edit.po +967 -0
  173. data/locale/ru/foreman_virt_who_configure.po +0 -249
  174. data/locale/ru/foreman_virt_who_configure.po.time_stamp +0 -0
  175. data/locale/sl/LC_MESSAGES/foreman_virt_who_configure.mo +0 -0
  176. data/locale/sl/foreman_virt_who_configure.edit.po +962 -0
  177. data/locale/sl/foreman_virt_who_configure.po +0 -249
  178. data/locale/sl/foreman_virt_who_configure.po.time_stamp +0 -0
  179. data/locale/sv_SE/LC_MESSAGES/foreman_virt_who_configure.mo +0 -0
  180. data/locale/sv_SE/foreman_virt_who_configure.edit.po +963 -0
  181. data/locale/sv_SE/foreman_virt_who_configure.po +0 -249
  182. data/locale/sv_SE/foreman_virt_who_configure.po.time_stamp +0 -0
  183. data/locale/ta/LC_MESSAGES/foreman_virt_who_configure.mo +0 -0
  184. data/locale/ta/foreman_virt_who_configure.edit.po +961 -0
  185. data/locale/ta/foreman_virt_who_configure.po +0 -249
  186. data/locale/ta/foreman_virt_who_configure.po.time_stamp +0 -0
  187. data/locale/ta_IN/LC_MESSAGES/foreman_virt_who_configure.mo +0 -0
  188. data/locale/ta_IN/foreman_virt_who_configure.edit.po +962 -0
  189. data/locale/ta_IN/foreman_virt_who_configure.po +0 -249
  190. data/locale/ta_IN/foreman_virt_who_configure.po.time_stamp +0 -0
  191. data/locale/te/LC_MESSAGES/foreman_virt_who_configure.mo +0 -0
  192. data/locale/te/foreman_virt_who_configure.edit.po +961 -0
  193. data/locale/te/foreman_virt_who_configure.po +0 -249
  194. data/locale/te/foreman_virt_who_configure.po.time_stamp +0 -0
  195. data/locale/tr/foreman_virt_who_configure.edit.po +961 -0
  196. data/locale/tr/foreman_virt_who_configure.po +0 -249
  197. data/locale/tr/foreman_virt_who_configure.po.time_stamp +0 -0
  198. data/locale/vi/foreman_virt_who_configure.edit.po +957 -0
  199. data/locale/vi/foreman_virt_who_configure.po.time_stamp +0 -0
  200. data/locale/vi_VN/foreman_virt_who_configure.edit.po +958 -0
  201. data/locale/vi_VN/foreman_virt_who_configure.po.time_stamp +0 -0
  202. data/locale/zh/foreman_virt_who_configure.edit.po +957 -0
  203. data/locale/zh/foreman_virt_who_configure.po.time_stamp +0 -0
  204. data/locale/zh_CN/LC_MESSAGES/foreman_virt_who_configure.mo +0 -0
  205. data/locale/zh_CN/foreman_virt_who_configure.edit.po +979 -0
  206. data/locale/zh_CN/foreman_virt_who_configure.po +0 -249
  207. data/locale/zh_CN/foreman_virt_who_configure.po.time_stamp +0 -0
  208. data/locale/zh_TW/LC_MESSAGES/foreman_virt_who_configure.mo +0 -0
  209. data/locale/zh_TW/foreman_virt_who_configure.edit.po +963 -0
  210. data/locale/zh_TW/foreman_virt_who_configure.po +0 -249
  211. data/locale/zh_TW/foreman_virt_who_configure.po.time_stamp +0 -0
  212. data/test/factories/foreman_virt_who_configure_factories.rb +2 -2
  213. data/test/functional/api/v2/configs_controller_test.rb +14 -13
  214. data/test/unit/config_test.rb +24 -12
  215. data/test/unit/output_generator_test.rb +1 -2
  216. metadata +105 -8
  217. data/locale/action_names.rb +0 -84
@@ -36,12 +36,6 @@ msgstr ""
36
36
  msgid "A plugin to make virt-who configuration easy"
37
37
  msgstr ""
38
38
 
39
- msgid "Abstract"
40
- msgstr ""
41
-
42
- msgid "Abstract async task"
43
- msgstr "抽象 async task"
44
-
45
39
  msgid "Account name by which virt-who is to connect to Nutanix AHV."
46
40
  msgstr ""
47
41
 
@@ -60,39 +54,18 @@ msgstr ""
60
54
  msgid "Account password by which virt-who is to connect to the hypervisor instance."
61
55
  msgstr ""
62
56
 
63
- msgid "Action with sub plans"
64
- msgstr "有子計畫的動作"
65
-
66
57
  msgid "Actions"
67
58
  msgstr "行動"
68
59
 
69
- msgid "Agent action"
70
- msgstr ""
71
-
72
60
  msgid "Applicable only for esx provider type. Hosts which parent (usually ComputeResource) name is specified in comma-separated list in this option will <b>NOT</b> be reported. Wildcards and regular expressions are supported, multiple records must be separated by comma. Put the value into the double-quotes if it contains special characters like comma. All new line characters will be removed in resulting configuration file, white spaces are removed from beginning and end."
73
61
  msgstr ""
74
62
 
75
63
  msgid "Applicable only for esx provider type. Only hosts which parent (usually ComputeResource) name is specified in comma-separated list in this option will be reported. Wildcards and regular expressions are supported, multiple records must be separated by comma. Put the value into the double-quotes if it contains special characters like comma. All new line characters will be removed in resulting configuration file, white spaces are removed from beginning and end."
76
64
  msgstr ""
77
65
 
78
- msgid "Attach subscriptions"
79
- msgstr "連接訂閱服務"
80
-
81
- msgid "Auto attach subscriptions"
82
- msgstr "自動連接訂閱"
83
-
84
66
  msgid "Blacklist"
85
67
  msgstr ""
86
68
 
87
- msgid "Bulk generate applicability for hosts"
88
- msgstr ""
89
-
90
- msgid "Check for long running tasks"
91
- msgstr ""
92
-
93
- msgid "Combined Profile Update"
94
- msgstr ""
95
-
96
69
  msgid "Configs"
97
70
  msgstr "配置"
98
71
 
@@ -135,78 +108,30 @@ msgstr ""
135
108
  msgid "Copy to clipboard"
136
109
  msgstr ""
137
110
 
138
- msgid "Copy version units to library"
139
- msgstr ""
140
-
141
111
  msgid "Count"
142
112
  msgstr "計數"
143
113
 
144
- msgid "Create"
145
- msgstr "建立"
146
-
147
- msgid "Create Alternate Content Source"
148
- msgstr ""
149
-
150
114
  msgid "Create Config"
151
115
  msgstr ""
152
116
 
153
- msgid "Create Export History"
154
- msgstr ""
155
-
156
- msgid "Create Import History"
157
- msgstr ""
158
-
159
- msgid "Create Syncable Export History"
160
- msgstr ""
161
-
162
117
  msgid "Create a virt-who configuration"
163
118
  msgstr ""
164
119
 
165
- msgid "Delete"
166
- msgstr "刪除"
167
-
168
- msgid "Delete Activation Key"
169
- msgstr "刪除啟動金鑰"
170
-
171
- msgid "Delete Lifecycle Environment"
172
- msgstr "刪除生命週期環境"
173
-
174
- msgid "Delete Product"
175
- msgstr "刪除產品"
176
-
177
120
  msgid "Delete a virt-who configuration"
178
121
  msgstr ""
179
122
 
180
123
  msgid "Delete virt-who configuration %s?"
181
124
  msgstr ""
182
125
 
183
- msgid "Deliver notifications about long running tasks"
184
- msgstr ""
185
-
186
126
  msgid "Deploy"
187
127
  msgstr ""
188
128
 
189
- msgid "Destroy"
190
- msgstr "銷毀"
191
-
192
- msgid "Destroy Alternate Content Source"
193
- msgstr ""
194
-
195
- msgid "Destroy Content Host"
196
- msgstr "銷毀內容主機"
197
-
198
129
  msgid "Details"
199
130
  msgstr "詳細資料"
200
131
 
201
132
  msgid "Different debug value can't be set per hypervisor, therefore it will affect all other deployed configurations on the host on which this configuration will be deployed."
202
133
  msgstr ""
203
134
 
204
- msgid "Disable"
205
- msgstr "停用"
206
-
207
- msgid "Discover"
208
- msgstr "尋找"
209
-
210
135
  msgid "Download the script"
211
136
  msgstr ""
212
137
 
@@ -216,9 +141,6 @@ msgstr "編輯"
216
141
  msgid "Edit Virt-who Config"
217
142
  msgstr ""
218
143
 
219
- msgid "Enable"
220
- msgstr "啟用"
221
-
222
144
  msgid "Enable AHV debug"
223
145
  msgstr ""
224
146
 
@@ -228,9 +150,6 @@ msgstr ""
228
150
  msgid "Enable debugging output?"
229
151
  msgstr ""
230
152
 
231
- msgid "Errata mail"
232
- msgstr "勘誤郵件"
233
-
234
153
  msgid "Every 12 hours"
235
154
  msgstr ""
236
155
 
@@ -267,18 +186,6 @@ msgstr ""
267
186
  msgid "Exclude hosts which cluster ID is specified in comma-separated list in this option will <b>NOT</b> be reported. PowerCLI command to find the domain names in VMware <code>Get-Cluster “ClusterName” | Select ID</code>. Wildcards and regular expressions are supported, multiple records must be separated by comma. Put the value into the double-quotes if it contains special characters like comma. All new line characters will be removed in resulting configuration file, white spaces are removed from beginning and end."
268
187
  msgstr ""
269
188
 
270
- msgid "Export"
271
- msgstr "匯出"
272
-
273
- msgid "Export Library"
274
- msgstr ""
275
-
276
- msgid "Export Repository"
277
- msgstr ""
278
-
279
- msgid "Fetch pxe files"
280
- msgstr ""
281
-
282
189
  msgid "Filter Hosts"
283
190
  msgstr ""
284
191
 
@@ -288,9 +195,6 @@ msgstr ""
288
195
  msgid "Filter hosts"
289
196
  msgstr ""
290
197
 
291
- msgid "Filtered index content"
292
- msgstr "已篩選的索引內容"
293
-
294
198
  msgid "Filtering"
295
199
  msgstr ""
296
200
 
@@ -306,12 +210,6 @@ msgstr ""
306
210
  msgid "General information"
307
211
  msgstr ""
308
212
 
309
- msgid "Generate host applicability"
310
- msgstr ""
311
-
312
- msgid "Generate repository applicability"
313
- msgstr ""
314
-
315
213
  msgid "HTTP Proxy"
316
214
  msgstr "HTTP 代理"
317
215
 
@@ -363,12 +261,6 @@ msgstr ""
363
261
  msgid "Hypervisor whitelist, applicable only when filtering mode is set to 1. Wildcards and regular expressions are supported, multiple records must be separated by comma."
364
262
  msgstr ""
365
263
 
366
- msgid "Hypervisors"
367
- msgstr "Hypervisor"
368
-
369
- msgid "Hypervisors update"
370
- msgstr "Hypervisor 更新"
371
-
372
264
  msgid "If you run a hybrid environment, with virtual machines running Red Hat Enterprise Linux and other operating systems, you may want to limit the scope of virt-who’s access to hosts. For example, if some hypervisors host only Microsoft Windows Server instances, there is no benefit in having those hypervisors reported by the virt-who agent."
373
265
  msgstr ""
374
266
 
@@ -381,48 +273,6 @@ msgstr ""
381
273
  msgid "Ignore proxy. A comma-separated list of hostnames or domains or ip addresses to ignore proxy settings for. Optionally this may be set to * to bypass proxy settings for all hostnames domains or ip addresses."
382
274
  msgstr ""
383
275
 
384
- msgid "Import"
385
- msgstr "匯入"
386
-
387
- msgid "Import Content View Version"
388
- msgstr ""
389
-
390
- msgid "Import Default Content View"
391
- msgstr ""
392
-
393
- msgid "Import Puppet classes"
394
- msgstr "匯入 Puppet 類別"
395
-
396
- msgid "Import Repository"
397
- msgstr ""
398
-
399
- msgid "Import facts"
400
- msgstr "匯入詳情"
401
-
402
- msgid "Incremental Update"
403
- msgstr "遞增更新"
404
-
405
- msgid "Incremental Update of Content View Version(s) "
406
- msgstr ""
407
-
408
- msgid "Index content"
409
- msgstr "索引內容"
410
-
411
- msgid "Index errata"
412
- msgstr "索引勘誤"
413
-
414
- msgid "Index module streams"
415
- msgstr ""
416
-
417
- msgid "Index package groups"
418
- msgstr "為套件群組製作索引"
419
-
420
- msgid "Install Applicable Errata"
421
- msgstr "安裝可套用的勘誤"
422
-
423
- msgid "Instance update"
424
- msgstr ""
425
-
426
276
  msgid "Interval"
427
277
  msgstr ""
428
278
 
@@ -513,9 +363,6 @@ msgstr "擁有者"
513
363
  msgid "Owner was not provided"
514
364
  msgstr ""
515
365
 
516
- msgid "Package Profile Update"
517
- msgstr "套件設定檔更新"
518
-
519
366
  msgid "Path to kubeconfig file"
520
367
  msgstr ""
521
368
 
@@ -528,54 +375,9 @@ msgstr ""
528
375
  msgid "Prism Flavor"
529
376
  msgstr ""
530
377
 
531
- msgid "Product Create"
532
- msgstr "產品建立"
533
-
534
- msgid "Promote"
535
- msgstr "Promote"
536
-
537
- msgid "Promotion to Environment"
538
- msgstr ""
539
-
540
- msgid "Publish"
541
- msgstr "發行"
542
-
543
- msgid "Publish Lifecycle Environment Repositories"
544
- msgstr ""
545
-
546
- msgid "Refresh Alternate Content Source"
547
- msgstr ""
548
-
549
- msgid "Reindex subscriptions"
550
- msgstr "重新索引訂閱服務"
551
-
552
- msgid "Remove Content"
553
- msgstr "移除內容"
554
-
555
- msgid "Remove Version"
556
- msgstr "移除版本"
557
-
558
- msgid "Remove Versions and Associations"
559
- msgstr "移除版本與相聯項目"
560
-
561
- msgid "Remove from Environment"
562
- msgstr "從環境移除"
563
-
564
- msgid "Remove subscriptions"
565
- msgstr "移除訂閱服務"
566
-
567
378
  msgid "Renders a deploy script for the specified virt-who configuration"
568
379
  msgstr ""
569
380
 
570
- msgid "Report"
571
- msgstr "回報"
572
-
573
- msgid "Republish Version Repositories"
574
- msgstr ""
575
-
576
- msgid "Run Sync Plan:"
577
- msgstr ""
578
-
579
381
  msgid "Schedule"
580
382
  msgstr "排程"
581
383
 
@@ -602,18 +404,6 @@ msgstr "狀態"
602
404
  msgid "Success"
603
405
  msgstr "成功"
604
406
 
605
- msgid "Sync capsule"
606
- msgstr ""
607
-
608
- msgid "Syncable export"
609
- msgstr ""
610
-
611
- msgid "Synchronize"
612
- msgstr "同步"
613
-
614
- msgid "Synchronize smart proxy"
615
- msgstr ""
616
-
617
407
  msgid "The configuration was not deployed yet or the virt-who was unable to report the status"
618
408
  msgstr ""
619
409
 
@@ -656,54 +446,15 @@ msgstr ""
656
446
  msgid "Unlimited"
657
447
  msgstr "無限制"
658
448
 
659
- msgid "Update"
660
- msgstr "更新"
661
-
662
- msgid "Update Alternate Content Source"
663
- msgstr ""
664
-
665
- msgid "Update CDN Configuration"
666
- msgstr ""
667
-
668
- msgid "Update Content Overrides"
669
- msgstr ""
670
-
671
449
  msgid "Update a virt-who configuration"
672
450
  msgstr ""
673
451
 
674
- msgid "Update content urls"
675
- msgstr ""
676
-
677
- msgid "Update for host"
678
- msgstr "給主機的更新"
679
-
680
- msgid "Update http proxy"
681
- msgstr ""
682
-
683
- msgid "Update http proxy details"
684
- msgstr ""
685
-
686
- msgid "Update redhat repository"
687
- msgstr ""
688
-
689
- msgid "Update release version for host"
690
- msgstr ""
691
-
692
- msgid "Updating System Purpose for host"
693
- msgstr ""
694
-
695
- msgid "Upload into"
696
- msgstr "上傳入"
697
-
698
452
  msgid "Use either hammer command or the script below to deploy this configuration. Both require root privileges. Run one of them on the target host which has access to katello-host-tools repository and will run virt-who reporting, preferably Foreman host:"
699
453
  msgstr ""
700
454
 
701
455
  msgid "VMware vCenter server’s fully qualified host name or IP address."
702
456
  msgstr ""
703
457
 
704
- msgid "Verify checksum"
705
- msgstr ""
706
-
707
458
  msgid "Virt-who Configs Status"
708
459
  msgstr ""
709
460
 
@@ -14,11 +14,11 @@ FactoryBot.define do
14
14
 
15
15
  trait :out_of_date do
16
16
  last_report_at { (1.minute.ago - 120.minutes).utc }
17
- out_of_date_at { (1.minute.ago).utc }
17
+ out_of_date_at { 1.minute.ago.utc }
18
18
  end
19
19
 
20
20
  trait :ok do
21
- last_report_at { (1.minute.ago).utc }
21
+ last_report_at { 1.minute.ago.utc }
22
22
  out_of_date_at { (1.minute.ago + 120.minutes).utc }
23
23
  end
24
24
  end
@@ -3,19 +3,20 @@ require 'test_plugin_helper'
3
3
  class ForemanVirtWhoConfigure::Api::V2::ConfigsControllerTest < ActionController::TestCase
4
4
  setup do
5
5
  @http_proxy = FactoryBot.create(:http_proxy, name: "test", url: "http://test.com")
6
- @new_config = FactoryBot.create(:virt_who_config,
7
- :name => 'my vmware',
8
- :interval => 120,
9
- :listing_mode => ForemanVirtWhoConfigure::Config::WHITELIST,
10
- :whitelist => 'a,b',
11
- :hypervisor_id => 'hostname',
12
- :hypervisor_type => 'esx',
13
- :hypervisor_server => "vmware.example.com",
14
- :hypervisor_username => "root",
15
- :debug => false,
16
- :satellite_url => "foreman.example.com",
17
- :http_proxy_id => @http_proxy.id,
18
- :no_proxy => nil
6
+ @new_config = FactoryBot.create(
7
+ :virt_who_config,
8
+ :name => 'my vmware',
9
+ :interval => 120,
10
+ :listing_mode => ForemanVirtWhoConfigure::Config::WHITELIST,
11
+ :whitelist => 'a,b',
12
+ :hypervisor_id => 'hostname',
13
+ :hypervisor_type => 'esx',
14
+ :hypervisor_server => "vmware.example.com",
15
+ :hypervisor_username => "root",
16
+ :debug => false,
17
+ :satellite_url => "foreman.example.com",
18
+ :http_proxy_id => @http_proxy.id,
19
+ :no_proxy => nil
19
20
  )
20
21
  @out_of_date_config = FactoryBot.create(:virt_who_config, :out_of_date)
21
22
  @ok_config = FactoryBot.create(:virt_who_config, :ok)
@@ -11,20 +11,33 @@ module ForemanVirtWhoConfigure
11
11
  end
12
12
 
13
13
  describe 'config is created' do
14
- let(:existing_config) { config.save; config }
14
+ let(:existing_config) do
15
+ config.save
16
+ config
17
+ end
15
18
 
16
19
  test 'config creates service user upon creation' do
17
20
  assert existing_config.service_user
18
21
  assert_equal "virt_who_reporter_#{config.id}", existing_config.service_user.username
19
22
  end
20
23
 
24
+ test 'multiple configs for same organization shares one service user' do
25
+ new_config = FactoryBot.create(:virt_who_config, organization: existing_config.organization, hypervisor_type: 'libvirt', hypervisor_server: 'libvirt.example.com')
26
+ assert_equal new_config.service_user.username, existing_config.service_user.username
27
+ end
28
+
29
+ test "multiple organizations don't share service user" do
30
+ new_config = FactoryBot.create(:virt_who_config)
31
+ refute_equal new_config.service_user.username, existing_config.service_user.username
32
+ end
33
+
21
34
  test 'config creates hidden user' do
22
35
  assert existing_config.service_user.user
23
36
  assert_equal existing_config.service_user.username, existing_config.service_user.user.login
24
37
  assert_kind_of ForemanVirtWhoConfigure::AuthSourceHiddenWithAuthentication, existing_config.service_user.user.auth_source
25
38
  end
26
39
 
27
- test 'config deletes service user and user upon removal' do
40
+ test 'last config deletes service user and user upon removal' do
28
41
  service_user = existing_config.service_user
29
42
  user = service_user.user
30
43
  assert existing_config.destroy
@@ -35,6 +48,15 @@ module ForemanVirtWhoConfigure
35
48
  user.reload
36
49
  end
37
50
  end
51
+
52
+ test 'config removal does not delete service user and user when other reference exists' do
53
+ FactoryBot.create(:virt_who_config, organization: existing_config.organization)
54
+ service_user = existing_config.service_user
55
+ user = service_user.user
56
+ assert existing_config.destroy
57
+ assert service_user.reload
58
+ assert user.reload
59
+ end
38
60
  end
39
61
 
40
62
  describe 'listing mode' do
@@ -67,11 +89,6 @@ module ForemanVirtWhoConfigure
67
89
  let(:config_1) { FactoryBot.create(:virt_who_config) }
68
90
  let(:config_2) { FactoryBot.create(:virt_who_config, :organization => another_org) }
69
91
 
70
- before do
71
- # let is lazy
72
- preload = config_1, config_2
73
- end
74
-
75
92
  test '.for_organization does not scope on any organization for nil' do
76
93
  # useful for just passing Organization.current which can be nil
77
94
  assert_includes ForemanVirtWhoConfigure::Config.for_organization(nil), config_1
@@ -82,17 +99,12 @@ module ForemanVirtWhoConfigure
82
99
  assert_includes ForemanVirtWhoConfigure::Config.for_organization(another_org), config_2
83
100
  refute_includes ForemanVirtWhoConfigure::Config.for_organization(another_org), config_1
84
101
  end
85
-
86
102
  end
87
103
 
88
104
  describe 'statuses and expiration' do
89
105
  let(:out_of_date_config) { FactoryBot.create(:virt_who_config, :out_of_date) }
90
106
  let(:ok_config) { FactoryBot.create(:virt_who_config, :ok) }
91
107
  let(:unknown_config) { FactoryBot.create(:virt_who_config) }
92
- before do
93
- # let is lazy
94
- preload = out_of_date_config, ok_config, unknown_config
95
- end
96
108
 
97
109
  test 'scoped search definitions work correctly' do
98
110
  assert_equal [ok_config], ForemanVirtWhoConfigure::Config.search_for('status = ok')
@@ -10,8 +10,7 @@ module ForemanVirtWhoConfigure
10
10
  test 'empty password is replaced by fake value so that virt-who runs in an non-interactive mode' do
11
11
  config.hypervisor_password = nil
12
12
  config.hypervisor_type = 'libvirt'
13
- # (echo bGlidmlydF9mYWtlX3Bhc3N3b3Jk|base64 -d) = OutputGenerator::LIBVIRT_FAKE_PASSWORD
14
- assert_includes output, 'virt-who-password --password $(echo bGlidmlydF9mYWtlX3Bhc3N3b3Jk|base64 -d)'
13
+ assert_includes output, 'virt-who-password --password $(echo bGlidmlydF9mYWtlX3Bhc3N3b3Jk|base64 -d)'
15
14
  end
16
15
  end
17
16