foreman_virt_who_configure 0.5.18 → 0.5.20

Sign up to get free protection for your applications and to get access to all the features.
Files changed (122) 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/lib/actions/foreman_virt_who_configure/config/report.rb +2 -3
  39. data/app/models/foreman_virt_who_configure/config.rb +47 -40
  40. data/app/models/foreman_virt_who_configure/output_generator.rb +105 -105
  41. data/app/models/foreman_virt_who_configure/service_user.rb +4 -4
  42. data/app/services/sso/basic_with_hidden.rb +1 -1
  43. data/config/database.yml.example +17 -0
  44. data/db/migrate/20231024171433_add_organization_id_to_service_user.rb +22 -0
  45. data/lib/foreman_virt_who_configure/engine.rb +8 -8
  46. data/lib/foreman_virt_who_configure/version.rb +1 -1
  47. data/locale/Makefile +2 -4
  48. data/locale/bn/LC_MESSAGES/foreman_virt_who_configure.mo +0 -0
  49. data/locale/bn/foreman_virt_who_configure.po +0 -249
  50. data/locale/bn_IN/LC_MESSAGES/foreman_virt_who_configure.mo +0 -0
  51. data/locale/bn_IN/foreman_virt_who_configure.po +0 -249
  52. data/locale/ca/LC_MESSAGES/foreman_virt_who_configure.mo +0 -0
  53. data/locale/ca/foreman_virt_who_configure.po +0 -249
  54. data/locale/cs_CZ/LC_MESSAGES/foreman_virt_who_configure.mo +0 -0
  55. data/locale/cs_CZ/foreman_virt_who_configure.po +0 -249
  56. data/locale/de/LC_MESSAGES/foreman_virt_who_configure.mo +0 -0
  57. data/locale/de/foreman_virt_who_configure.po +0 -249
  58. data/locale/de_DE/LC_MESSAGES/foreman_virt_who_configure.mo +0 -0
  59. data/locale/de_DE/foreman_virt_who_configure.po +0 -249
  60. data/locale/el/LC_MESSAGES/foreman_virt_who_configure.mo +0 -0
  61. data/locale/el/foreman_virt_who_configure.po +0 -249
  62. data/locale/en/foreman_virt_who_configure.po +0 -249
  63. data/locale/en_GB/LC_MESSAGES/foreman_virt_who_configure.mo +0 -0
  64. data/locale/en_GB/foreman_virt_who_configure.po +0 -249
  65. data/locale/es/LC_MESSAGES/foreman_virt_who_configure.mo +0 -0
  66. data/locale/es/foreman_virt_who_configure.po +0 -249
  67. data/locale/foreman_virt_who_configure.pot +3 -335
  68. data/locale/fr/LC_MESSAGES/foreman_virt_who_configure.mo +0 -0
  69. data/locale/fr/foreman_virt_who_configure.po +0 -249
  70. data/locale/gl/LC_MESSAGES/foreman_virt_who_configure.mo +0 -0
  71. data/locale/gl/foreman_virt_who_configure.po +0 -249
  72. data/locale/gu/LC_MESSAGES/foreman_virt_who_configure.mo +0 -0
  73. data/locale/gu/foreman_virt_who_configure.po +0 -249
  74. data/locale/he_IL/foreman_virt_who_configure.po +0 -249
  75. data/locale/hi/LC_MESSAGES/foreman_virt_who_configure.mo +0 -0
  76. data/locale/hi/foreman_virt_who_configure.po +0 -249
  77. data/locale/it/LC_MESSAGES/foreman_virt_who_configure.mo +0 -0
  78. data/locale/it/foreman_virt_who_configure.po +0 -249
  79. data/locale/ja/LC_MESSAGES/foreman_virt_who_configure.mo +0 -0
  80. data/locale/ja/foreman_virt_who_configure.po +0 -249
  81. data/locale/ka/LC_MESSAGES/foreman_virt_who_configure.mo +0 -0
  82. data/locale/ka/foreman_virt_who_configure.po +0 -249
  83. data/locale/kn/LC_MESSAGES/foreman_virt_who_configure.mo +0 -0
  84. data/locale/kn/foreman_virt_who_configure.po +0 -249
  85. data/locale/ko/LC_MESSAGES/foreman_virt_who_configure.mo +0 -0
  86. data/locale/ko/foreman_virt_who_configure.po +0 -249
  87. data/locale/mr/LC_MESSAGES/foreman_virt_who_configure.mo +0 -0
  88. data/locale/mr/foreman_virt_who_configure.po +0 -249
  89. data/locale/nl_NL/LC_MESSAGES/foreman_virt_who_configure.mo +0 -0
  90. data/locale/nl_NL/foreman_virt_who_configure.po +0 -249
  91. data/locale/or/LC_MESSAGES/foreman_virt_who_configure.mo +0 -0
  92. data/locale/or/foreman_virt_who_configure.po +0 -249
  93. data/locale/pa/LC_MESSAGES/foreman_virt_who_configure.mo +0 -0
  94. data/locale/pa/foreman_virt_who_configure.po +0 -249
  95. data/locale/pl/LC_MESSAGES/foreman_virt_who_configure.mo +0 -0
  96. data/locale/pl/foreman_virt_who_configure.po +0 -249
  97. data/locale/pt/foreman_virt_who_configure.po +0 -249
  98. data/locale/pt_BR/LC_MESSAGES/foreman_virt_who_configure.mo +0 -0
  99. data/locale/pt_BR/foreman_virt_who_configure.po +0 -249
  100. data/locale/ru/LC_MESSAGES/foreman_virt_who_configure.mo +0 -0
  101. data/locale/ru/foreman_virt_who_configure.po +0 -249
  102. data/locale/sl/LC_MESSAGES/foreman_virt_who_configure.mo +0 -0
  103. data/locale/sl/foreman_virt_who_configure.po +0 -249
  104. data/locale/sv_SE/LC_MESSAGES/foreman_virt_who_configure.mo +0 -0
  105. data/locale/sv_SE/foreman_virt_who_configure.po +0 -249
  106. data/locale/ta/LC_MESSAGES/foreman_virt_who_configure.mo +0 -0
  107. data/locale/ta/foreman_virt_who_configure.po +0 -249
  108. data/locale/ta_IN/LC_MESSAGES/foreman_virt_who_configure.mo +0 -0
  109. data/locale/ta_IN/foreman_virt_who_configure.po +0 -249
  110. data/locale/te/LC_MESSAGES/foreman_virt_who_configure.mo +0 -0
  111. data/locale/te/foreman_virt_who_configure.po +0 -249
  112. data/locale/tr/foreman_virt_who_configure.po +0 -249
  113. data/locale/zh_CN/LC_MESSAGES/foreman_virt_who_configure.mo +0 -0
  114. data/locale/zh_CN/foreman_virt_who_configure.po +0 -249
  115. data/locale/zh_TW/LC_MESSAGES/foreman_virt_who_configure.mo +0 -0
  116. data/locale/zh_TW/foreman_virt_who_configure.po +0 -249
  117. data/test/factories/foreman_virt_who_configure_factories.rb +2 -2
  118. data/test/functional/api/v2/configs_controller_test.rb +14 -13
  119. data/test/unit/config_test.rb +24 -12
  120. data/test/unit/output_generator_test.rb +1 -2
  121. metadata +8 -7
  122. 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
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: foreman_virt_who_configure
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.18
4
+ version: 0.5.20
5
5
  platform: ruby
6
6
  authors:
7
7
  - Foreman virt-who-configure team
8
- autorequire:
8
+ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-09-26 00:00:00.000000000 Z
11
+ date: 2024-01-18 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: katello
@@ -132,6 +132,7 @@ files:
132
132
  - app/views/foreman_virt_who_configure/configs/steps/_general_information_form.erb
133
133
  - app/views/foreman_virt_who_configure/configs/steps/_schedule_form.erb
134
134
  - app/views/foreman_virt_who_configure/configs/welcome.html.erb
135
+ - config/database.yml.example
135
136
  - config/routes.rb
136
137
  - db/migrate/20170102152649_create_service_users.rb
137
138
  - db/migrate/20170102152650_create_configs.rb
@@ -149,12 +150,12 @@ files:
149
150
  - db/migrate/20210608100743_delete_rhevm_profiles.rb
150
151
  - db/migrate/20210910184516_add_ahv_to_config.rb
151
152
  - db/migrate/20230210152216_remove_ahv_update_interval_from_config.rb
153
+ - db/migrate/20231024171433_add_organization_id_to_service_user.rb
152
154
  - lib/foreman_virt_who_configure.rb
153
155
  - lib/foreman_virt_who_configure/engine.rb
154
156
  - lib/foreman_virt_who_configure/version.rb
155
157
  - lib/tasks/foreman_virt_who_configure_tasks.rake
156
158
  - locale/Makefile
157
- - locale/action_names.rb
158
159
  - locale/bn/LC_MESSAGES/foreman_virt_who_configure.mo
159
160
  - locale/bn/foreman_virt_who_configure.po
160
161
  - locale/bn_IN/LC_MESSAGES/foreman_virt_who_configure.mo
@@ -239,7 +240,7 @@ homepage: https://github.com/theforeman/foreman_virt_who_configure
239
240
  licenses:
240
241
  - GPLv3
241
242
  metadata: {}
242
- post_install_message:
243
+ post_install_message:
243
244
  rdoc_options: []
244
245
  require_paths:
245
246
  - lib
@@ -254,8 +255,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
254
255
  - !ruby/object:Gem::Version
255
256
  version: '0'
256
257
  requirements: []
257
- rubygems_version: 3.4.10
258
- signing_key:
258
+ rubygems_version: 3.1.6
259
+ signing_key:
259
260
  specification_version: 4
260
261
  summary: A plugin to make virt-who configuration easy
261
262
  test_files:
@@ -1,84 +0,0 @@
1
- # Autogenerated!
2
- _("Abstract async task")
3
- _("Abstract")
4
- _("Action with sub plans")
5
- _("Agent action")
6
- _("Attach subscriptions")
7
- _("Auto attach subscriptions")
8
- _("Bulk generate applicability for hosts")
9
- _("Check for long running tasks")
10
- _("Combined Profile Update")
11
- _("Copy version units to library")
12
- _("Create Alternate Content Source")
13
- _("Create Export History")
14
- _("Create Import History")
15
- _("Create Syncable Export History")
16
- _("Create")
17
- _("Delete Activation Key")
18
- _("Delete Lifecycle Environment")
19
- _("Delete Product")
20
- _("Delete")
21
- _("Deliver notifications about long running tasks")
22
- _("Destroy Alternate Content Source")
23
- _("Destroy Content Host")
24
- _("Destroy")
25
- _("Disable")
26
- _("Discover")
27
- _("Enable")
28
- _("Errata mail")
29
- _("Export Library")
30
- _("Export Repository")
31
- _("Export")
32
- _("Fetch pxe files")
33
- _("Filtered index content")
34
- _("Generate host applicability")
35
- _("Generate repository applicability")
36
- _("Hypervisors update")
37
- _("Hypervisors")
38
- _("Import Content View Version")
39
- _("Import Default Content View")
40
- _("Import Puppet classes")
41
- _("Import Repository")
42
- _("Import facts")
43
- _("Import")
44
- _("Incremental Update of Content View Version(s) ")
45
- _("Incremental Update")
46
- _("Index content")
47
- _("Index errata")
48
- _("Index module streams")
49
- _("Index package groups")
50
- _("Install Applicable Errata")
51
- _("Instance update")
52
- _("Package Profile Update")
53
- _("Product Create")
54
- _("Promote")
55
- _("Promotion to Environment")
56
- _("Publish Lifecycle Environment Repositories")
57
- _("Publish")
58
- _("Refresh Alternate Content Source")
59
- _("Reindex subscriptions")
60
- _("Remove Content")
61
- _("Remove Version")
62
- _("Remove Versions and Associations")
63
- _("Remove from Environment")
64
- _("Remove subscriptions")
65
- _("Report")
66
- _("Republish Version Repositories")
67
- _("Run Sync Plan:")
68
- _("Sync capsule")
69
- _("Syncable export")
70
- _("Synchronize smart proxy")
71
- _("Synchronize")
72
- _("Update Alternate Content Source")
73
- _("Update CDN Configuration")
74
- _("Update Content Overrides")
75
- _("Update content urls")
76
- _("Update for host")
77
- _("Update http proxy details")
78
- _("Update http proxy")
79
- _("Update redhat repository")
80
- _("Update release version for host")
81
- _("Update")
82
- _("Updating System Purpose for host")
83
- _("Upload into")
84
- _("Verify checksum")