foreman_discovery 24.0.1 → 25.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.
- checksums.yaml +4 -4
- data/app/controllers/api/v2/discovered_hosts_controller.rb +1 -1
- data/app/helpers/discovered_hosts_helper.rb +1 -1
- data/app/models/host/discovered.rb +1 -1
- data/app/views/discovered_hosts/show.html.erb +23 -21
- data/app/views/discovery_rules/_form.html.erb +0 -6
- data/config/initializers/inflections.rb +5 -0
- data/db/migrate/20141223142759_fill_discovery_attribute_sets_for_existing_hosts.rb +1 -1
- data/db/migrate/20150512150432_remove_old_discovery_reader_permissions.rb +1 -1
- data/lib/foreman_discovery/engine.rb +300 -305
- data/lib/foreman_discovery/version.rb +1 -1
- data/lib/foreman_discovery.rake +1 -5
- data/locale/ca/foreman_discovery.edit.po +64 -64
- data/locale/cs_CZ/foreman_discovery.edit.po +64 -64
- data/locale/de/foreman_discovery.edit.po +64 -64
- data/locale/en/foreman_discovery.edit.po +64 -64
- data/locale/en_GB/foreman_discovery.edit.po +64 -64
- data/locale/es/foreman_discovery.edit.po +64 -64
- data/locale/foreman_discovery.pot +68 -68
- data/locale/fr/foreman_discovery.edit.po +64 -64
- data/locale/gl/foreman_discovery.edit.po +64 -64
- data/locale/it/foreman_discovery.edit.po +64 -64
- data/locale/ja/foreman_discovery.edit.po +64 -64
- data/locale/ka/foreman_discovery.edit.po +64 -64
- data/locale/ko/foreman_discovery.edit.po +64 -64
- data/locale/pt_BR/foreman_discovery.edit.po +64 -64
- data/locale/ru/foreman_discovery.edit.po +64 -64
- data/locale/sv_SE/foreman_discovery.edit.po +64 -64
- data/locale/zh_CN/foreman_discovery.edit.po +64 -64
- data/locale/zh_TW/foreman_discovery.edit.po +64 -64
- data/package.json +0 -2
- data/test/functional/discovered_hosts_controller_test.rb +1 -1
- metadata +14 -15
- data/test/migrations/20221102075151_migrate_discovery_hostname_and_fact_column_to_array_test.rb.orig +0 -81
@@ -117,7 +117,7 @@ msgstr ""
|
|
117
117
|
msgid "Execute rules against a discovered host"
|
118
118
|
msgstr ""
|
119
119
|
|
120
|
-
#: ../app/controllers/api/v2/discovered_hosts_controller.rb:136 ../app/controllers/discovered_hosts_controller.rb:
|
120
|
+
#: ../app/controllers/api/v2/discovered_hosts_controller.rb:136 ../app/controllers/discovered_hosts_controller.rb:164
|
121
121
|
msgid "Host %{host} was provisioned with rule %{rule}"
|
122
122
|
msgstr ""
|
123
123
|
|
@@ -125,7 +125,7 @@ msgstr ""
|
|
125
125
|
msgid "Unable to provision %{host}: %{errors}"
|
126
126
|
msgstr ""
|
127
127
|
|
128
|
-
#: ../app/controllers/api/v2/discovered_hosts_controller.rb:145 ../app/controllers/discovered_hosts_controller.rb:
|
128
|
+
#: ../app/controllers/api/v2/discovered_hosts_controller.rb:145 ../app/controllers/discovered_hosts_controller.rb:171
|
129
129
|
msgid "No rule found for host %s"
|
130
130
|
msgstr ""
|
131
131
|
|
@@ -133,11 +133,11 @@ msgstr ""
|
|
133
133
|
msgid "Execute rules against all currently discovered hosts"
|
134
134
|
msgstr ""
|
135
135
|
|
136
|
-
#: ../app/controllers/api/v2/discovered_hosts_controller.rb:156 ../app/controllers/discovered_hosts_controller.rb:
|
136
|
+
#: ../app/controllers/api/v2/discovered_hosts_controller.rb:156 ../app/controllers/discovered_hosts_controller.rb:177
|
137
137
|
msgid "Errors during auto provisioning: %s"
|
138
138
|
msgstr ""
|
139
139
|
|
140
|
-
#: ../app/controllers/api/v2/discovered_hosts_controller.rb:159 ../app/controllers/discovered_hosts_controller.rb:
|
140
|
+
#: ../app/controllers/api/v2/discovered_hosts_controller.rb:159 ../app/controllers/discovered_hosts_controller.rb:180
|
141
141
|
msgid "No discovered hosts to provision"
|
142
142
|
msgstr ""
|
143
143
|
|
@@ -157,7 +157,7 @@ msgstr ""
|
|
157
157
|
msgid "Rebooting all discovered hosts"
|
158
158
|
msgstr ""
|
159
159
|
|
160
|
-
#: ../app/controllers/api/v2/discovered_hosts_controller.rb:221 ../app/controllers/discovered_hosts_controller.rb:
|
160
|
+
#: ../app/controllers/api/v2/discovered_hosts_controller.rb:221 ../app/controllers/discovered_hosts_controller.rb:133
|
161
161
|
msgid "Discovered hosts are rebooting now"
|
162
162
|
msgstr ""
|
163
163
|
|
@@ -241,71 +241,71 @@ msgstr ""
|
|
241
241
|
msgid "Successfully provisioned %s"
|
242
242
|
msgstr ""
|
243
243
|
|
244
|
-
#: ../app/controllers/discovered_hosts_controller.rb:
|
244
|
+
#: ../app/controllers/discovered_hosts_controller.rb:101
|
245
245
|
msgid "Facts refreshed for %s"
|
246
246
|
msgstr "%s 的詳情已刷新"
|
247
247
|
|
248
|
-
#: ../app/controllers/discovered_hosts_controller.rb:
|
248
|
+
#: ../app/controllers/discovered_hosts_controller.rb:103
|
249
249
|
msgid "Failed to refresh facts for %s"
|
250
250
|
msgstr "刷新 %s 的詳情失敗"
|
251
251
|
|
252
|
-
#: ../app/controllers/discovered_hosts_controller.rb:
|
252
|
+
#: ../app/controllers/discovered_hosts_controller.rb:106
|
253
253
|
msgid "Failed to refresh facts for %{hostname} with error %{error_message}"
|
254
254
|
msgstr ""
|
255
255
|
|
256
|
-
#: ../app/controllers/discovered_hosts_controller.rb:
|
256
|
+
#: ../app/controllers/discovered_hosts_controller.rb:113
|
257
257
|
msgid "Host of type %s can not be rebooted"
|
258
258
|
msgstr ""
|
259
259
|
|
260
|
-
#: ../app/controllers/discovered_hosts_controller.rb:
|
260
|
+
#: ../app/controllers/discovered_hosts_controller.rb:117
|
261
261
|
msgid "Rebooting host %s"
|
262
262
|
msgstr ""
|
263
263
|
|
264
|
-
#: ../app/controllers/discovered_hosts_controller.rb:
|
264
|
+
#: ../app/controllers/discovered_hosts_controller.rb:119
|
265
265
|
msgid "Failed to reboot host %s"
|
266
266
|
msgstr ""
|
267
267
|
|
268
|
-
#: ../app/controllers/discovered_hosts_controller.rb:
|
268
|
+
#: ../app/controllers/discovered_hosts_controller.rb:122
|
269
269
|
msgid "Failed to reboot host %{hostname} with error %{error_message}"
|
270
270
|
msgstr ""
|
271
271
|
|
272
|
-
#: ../app/controllers/discovered_hosts_controller.rb:
|
272
|
+
#: ../app/controllers/discovered_hosts_controller.rb:136
|
273
273
|
msgid "Failed to reboot hosts with error %s"
|
274
274
|
msgstr ""
|
275
275
|
|
276
|
-
#: ../app/controllers/discovered_hosts_controller.rb:
|
276
|
+
#: ../app/controllers/discovered_hosts_controller.rb:154
|
277
277
|
msgid "Destroyed selected hosts"
|
278
278
|
msgstr "刪除選擇的主機"
|
279
279
|
|
280
|
-
#: ../app/controllers/discovered_hosts_controller.rb:
|
280
|
+
#: ../app/controllers/discovered_hosts_controller.rb:156
|
281
281
|
msgid "The following hosts were not deleted: %s"
|
282
282
|
msgstr "下列主機尚未刪除:%s"
|
283
283
|
|
284
|
-
#: ../app/controllers/discovered_hosts_controller.rb:
|
284
|
+
#: ../app/controllers/discovered_hosts_controller.rb:168
|
285
285
|
msgid "Failed to auto provision host %s: %s"
|
286
286
|
msgstr ""
|
287
287
|
|
288
|
-
#: ../app/controllers/discovered_hosts_controller.rb:
|
288
|
+
#: ../app/controllers/discovered_hosts_controller.rb:196
|
289
289
|
msgid "Discovered hosts are provisioning now"
|
290
290
|
msgstr ""
|
291
291
|
|
292
|
-
#: ../app/controllers/discovered_hosts_controller.rb:
|
292
|
+
#: ../app/controllers/discovered_hosts_controller.rb:285
|
293
293
|
msgid "Discovered host reported from unknown subnet, communication will not be proxied."
|
294
294
|
msgstr ""
|
295
295
|
|
296
|
-
#: ../app/controllers/discovered_hosts_controller.rb:
|
296
|
+
#: ../app/controllers/discovered_hosts_controller.rb:290
|
297
297
|
msgid "Discovered hosts reported from unknown subnet are %s, communication will not be proxied."
|
298
298
|
msgstr ""
|
299
299
|
|
300
|
-
#: ../app/controllers/discovered_hosts_controller.rb:
|
300
|
+
#: ../app/controllers/discovered_hosts_controller.rb:304
|
301
301
|
msgid "No hosts were found with that id or name"
|
302
302
|
msgstr "沒有找到擁有此 ID 或名稱的主機"
|
303
303
|
|
304
|
-
#: ../app/controllers/discovered_hosts_controller.rb:
|
304
|
+
#: ../app/controllers/discovered_hosts_controller.rb:308
|
305
305
|
msgid "No hosts selected"
|
306
306
|
msgstr "未選擇主機"
|
307
307
|
|
308
|
-
#: ../app/controllers/discovered_hosts_controller.rb:
|
308
|
+
#: ../app/controllers/discovered_hosts_controller.rb:314
|
309
309
|
msgid "Something went wrong while selecting hosts - %s"
|
310
310
|
msgstr "選擇主機時發生了錯誤 - %s"
|
311
311
|
|
@@ -325,7 +325,7 @@ msgstr ""
|
|
325
325
|
msgid "Refresh facts"
|
326
326
|
msgstr "刷新詳情"
|
327
327
|
|
328
|
-
#: ../app/helpers/discovered_hosts_helper.rb:16 ../app/helpers/discovered_hosts_helper.rb:30 ../app/views/discovered_hosts/_discovered_hosts_list.html.erb:42 ../lib/foreman_discovery/engine.rb:
|
328
|
+
#: ../app/helpers/discovered_hosts_helper.rb:16 ../app/helpers/discovered_hosts_helper.rb:30 ../app/views/discovered_hosts/_discovered_hosts_list.html.erb:42 ../lib/foreman_discovery/engine.rb:91
|
329
329
|
msgid "Reboot"
|
330
330
|
msgstr "重新開機"
|
331
331
|
|
@@ -377,7 +377,7 @@ msgstr ""
|
|
377
377
|
msgid "Provision"
|
378
378
|
msgstr "佈建"
|
379
379
|
|
380
|
-
#: ../app/helpers/discovery_rules_helper.rb:26 ../app/views/discovered_hosts/_discovered_hosts_list.html.erb:1 ../app/views/discovered_hosts/welcome.html.erb:
|
380
|
+
#: ../app/helpers/discovery_rules_helper.rb:26 ../app/views/discovered_hosts/_discovered_hosts_list.html.erb:1 ../app/views/discovered_hosts/welcome.html.erb:5 ../lib/foreman_discovery/engine.rb:309 ../lib/foreman_discovery/engine.rb:324
|
381
381
|
msgid "Discovered Hosts"
|
382
382
|
msgstr ""
|
383
383
|
|
@@ -815,7 +815,7 @@ msgstr "複製 %s"
|
|
815
815
|
msgid "Edit %s"
|
816
816
|
msgstr "編輯 %s"
|
817
817
|
|
818
|
-
#: ../app/views/discovery_rules/index.html.erb:1 ../lib/foreman_discovery/engine.rb:
|
818
|
+
#: ../app/views/discovery_rules/index.html.erb:1 ../lib/foreman_discovery/engine.rb:314 ../webpack/src/ForemanDiscovery/DiscoveryRules/Components/EmptyState/EmptyState.js:20
|
819
819
|
msgid "Discovery Rules"
|
820
820
|
msgstr ""
|
821
821
|
|
@@ -851,7 +851,7 @@ msgstr ""
|
|
851
851
|
msgid "New Discovery Rule"
|
852
852
|
msgstr ""
|
853
853
|
|
854
|
-
#: ../app/views/discovery_rules/welcome.html.erb:
|
854
|
+
#: ../app/views/discovery_rules/welcome.html.erb:5
|
855
855
|
msgid "Discovered Rules"
|
856
856
|
msgstr ""
|
857
857
|
|
@@ -923,23 +923,23 @@ msgstr ""
|
|
923
923
|
msgid "Clean all reported facts during provisioning (except discovery facts)"
|
924
924
|
msgstr ""
|
925
925
|
|
926
|
-
#: ../lib/foreman_discovery/engine.rb:
|
926
|
+
#: ../lib/foreman_discovery/engine.rb:79
|
927
927
|
msgid "Hostname facts"
|
928
928
|
msgstr ""
|
929
929
|
|
930
|
-
#: ../lib/foreman_discovery/engine.rb:
|
930
|
+
#: ../lib/foreman_discovery/engine.rb:80
|
931
931
|
msgid "List of facts to use for the hostname (first wins)"
|
932
932
|
msgstr ""
|
933
933
|
|
934
|
-
#: ../lib/foreman_discovery/engine.rb:
|
934
|
+
#: ../lib/foreman_discovery/engine.rb:85
|
935
935
|
msgid "Auto provisioning"
|
936
936
|
msgstr ""
|
937
937
|
|
938
|
-
#: ../lib/foreman_discovery/engine.rb:
|
938
|
+
#: ../lib/foreman_discovery/engine.rb:86
|
939
939
|
msgid "Automatically provision newly discovered hosts, according to the provisioning rules"
|
940
940
|
msgstr ""
|
941
941
|
|
942
|
-
#: ../lib/foreman_discovery/engine.rb:
|
942
|
+
#: ../lib/foreman_discovery/engine.rb:92
|
943
943
|
msgid "Automatically reboot or kexec discovered host during provisioning"
|
944
944
|
msgstr ""
|
945
945
|
|
@@ -951,135 +951,135 @@ msgstr ""
|
|
951
951
|
msgid "The default prefix to use for the host name, must start with a letter"
|
952
952
|
msgstr ""
|
953
953
|
|
954
|
-
#: ../lib/foreman_discovery/engine.rb:
|
954
|
+
#: ../lib/foreman_discovery/engine.rb:104
|
955
955
|
msgid "Fact columns"
|
956
956
|
msgstr ""
|
957
957
|
|
958
|
-
#: ../lib/foreman_discovery/engine.rb:
|
958
|
+
#: ../lib/foreman_discovery/engine.rb:105
|
959
959
|
msgid "Extra facter columns to show in host lists"
|
960
960
|
msgstr ""
|
961
961
|
|
962
|
-
#: ../lib/foreman_discovery/engine.rb:
|
962
|
+
#: ../lib/foreman_discovery/engine.rb:110
|
963
963
|
msgid "Highlighted facts"
|
964
964
|
msgstr ""
|
965
965
|
|
966
|
-
#: ../lib/foreman_discovery/engine.rb:
|
966
|
+
#: ../lib/foreman_discovery/engine.rb:111
|
967
967
|
msgid "Regex to organize facts for highlights section - e.g. ^(abc|cde)$"
|
968
968
|
msgstr ""
|
969
969
|
|
970
|
-
#: ../lib/foreman_discovery/engine.rb:
|
970
|
+
#: ../lib/foreman_discovery/engine.rb:116
|
971
971
|
msgid "Storage facts"
|
972
972
|
msgstr ""
|
973
973
|
|
974
|
-
#: ../lib/foreman_discovery/engine.rb:
|
974
|
+
#: ../lib/foreman_discovery/engine.rb:117
|
975
975
|
msgid "Regex to organize facts for storage section"
|
976
976
|
msgstr ""
|
977
977
|
|
978
|
-
#: ../lib/foreman_discovery/engine.rb:
|
978
|
+
#: ../lib/foreman_discovery/engine.rb:122
|
979
979
|
msgid "Software facts"
|
980
980
|
msgstr ""
|
981
981
|
|
982
|
-
#: ../lib/foreman_discovery/engine.rb:
|
982
|
+
#: ../lib/foreman_discovery/engine.rb:123
|
983
983
|
msgid "Regex to organize facts for software section"
|
984
984
|
msgstr ""
|
985
985
|
|
986
|
-
#: ../lib/foreman_discovery/engine.rb:
|
986
|
+
#: ../lib/foreman_discovery/engine.rb:128
|
987
987
|
msgid "Hardware facts"
|
988
988
|
msgstr ""
|
989
989
|
|
990
|
-
#: ../lib/foreman_discovery/engine.rb:
|
990
|
+
#: ../lib/foreman_discovery/engine.rb:129
|
991
991
|
msgid "Regex to organize facts for hardware section"
|
992
992
|
msgstr ""
|
993
993
|
|
994
|
-
#: ../lib/foreman_discovery/engine.rb:
|
994
|
+
#: ../lib/foreman_discovery/engine.rb:134
|
995
995
|
msgid "Network facts"
|
996
996
|
msgstr ""
|
997
997
|
|
998
|
-
#: ../lib/foreman_discovery/engine.rb:
|
998
|
+
#: ../lib/foreman_discovery/engine.rb:135
|
999
999
|
msgid "Regex to organize facts for network section"
|
1000
1000
|
msgstr ""
|
1001
1001
|
|
1002
|
-
#: ../lib/foreman_discovery/engine.rb:
|
1002
|
+
#: ../lib/foreman_discovery/engine.rb:140
|
1003
1003
|
msgid "IPMI facts"
|
1004
1004
|
msgstr ""
|
1005
1005
|
|
1006
|
-
#: ../lib/foreman_discovery/engine.rb:
|
1006
|
+
#: ../lib/foreman_discovery/engine.rb:141
|
1007
1007
|
msgid "Regex to organize facts for ipmi section"
|
1008
1008
|
msgstr ""
|
1009
1009
|
|
1010
|
-
#: ../lib/foreman_discovery/engine.rb:
|
1010
|
+
#: ../lib/foreman_discovery/engine.rb:146
|
1011
1011
|
msgid "Lock PXE"
|
1012
1012
|
msgstr ""
|
1013
1013
|
|
1014
|
-
#: ../lib/foreman_discovery/engine.rb:
|
1014
|
+
#: ../lib/foreman_discovery/engine.rb:147
|
1015
1015
|
msgid "Automatically generate PXE configuration to pin a newly discovered host to discovery"
|
1016
1016
|
msgstr ""
|
1017
1017
|
|
1018
|
-
#: ../lib/foreman_discovery/engine.rb:
|
1018
|
+
#: ../lib/foreman_discovery/engine.rb:153
|
1019
1019
|
msgid "Locked PXELinux template name"
|
1020
1020
|
msgstr ""
|
1021
1021
|
|
1022
|
-
#: ../lib/foreman_discovery/engine.rb:
|
1022
|
+
#: ../lib/foreman_discovery/engine.rb:154
|
1023
1023
|
msgid "PXELinux template to be used when pinning a host to discovery"
|
1024
1024
|
msgstr ""
|
1025
1025
|
|
1026
|
-
#: ../lib/foreman_discovery/engine.rb:
|
1026
|
+
#: ../lib/foreman_discovery/engine.rb:160
|
1027
1027
|
msgid "Locked PXEGrub template name"
|
1028
1028
|
msgstr ""
|
1029
1029
|
|
1030
|
-
#: ../lib/foreman_discovery/engine.rb:
|
1030
|
+
#: ../lib/foreman_discovery/engine.rb:161
|
1031
1031
|
msgid "PXEGrub template to be used when pinning a host to discovery"
|
1032
1032
|
msgstr ""
|
1033
1033
|
|
1034
|
-
#: ../lib/foreman_discovery/engine.rb:
|
1034
|
+
#: ../lib/foreman_discovery/engine.rb:167
|
1035
1035
|
msgid "Locked PXEGrub2 template name"
|
1036
1036
|
msgstr ""
|
1037
1037
|
|
1038
|
-
#: ../lib/foreman_discovery/engine.rb:
|
1038
|
+
#: ../lib/foreman_discovery/engine.rb:168
|
1039
1039
|
msgid "PXEGrub2 template to be used when pinning a host to discovery"
|
1040
1040
|
msgstr ""
|
1041
1041
|
|
1042
|
-
#: ../lib/foreman_discovery/engine.rb:
|
1042
|
+
#: ../lib/foreman_discovery/engine.rb:173
|
1043
1043
|
msgid "Force DNS"
|
1044
1044
|
msgstr ""
|
1045
1045
|
|
1046
|
-
#: ../lib/foreman_discovery/engine.rb:
|
1046
|
+
#: ../lib/foreman_discovery/engine.rb:174
|
1047
1047
|
msgid "Force DNS entries creation when provisioning discovered host"
|
1048
1048
|
msgstr ""
|
1049
1049
|
|
1050
|
-
#: ../lib/foreman_discovery/engine.rb:
|
1050
|
+
#: ../lib/foreman_discovery/engine.rb:179
|
1051
1051
|
msgid "Error on existing NIC"
|
1052
1052
|
msgstr ""
|
1053
1053
|
|
1054
|
-
#: ../lib/foreman_discovery/engine.rb:
|
1054
|
+
#: ../lib/foreman_discovery/engine.rb:180
|
1055
1055
|
msgid "Do not allow to discover existing managed host matching MAC of a provisioning NIC (errors out early)"
|
1056
1056
|
msgstr ""
|
1057
1057
|
|
1058
|
-
#: ../lib/foreman_discovery/engine.rb:
|
1058
|
+
#: ../lib/foreman_discovery/engine.rb:186
|
1059
1059
|
msgid "Type of name generator"
|
1060
1060
|
msgstr ""
|
1061
1061
|
|
1062
|
-
#: ../lib/foreman_discovery/engine.rb:
|
1062
|
+
#: ../lib/foreman_discovery/engine.rb:187
|
1063
1063
|
msgid "Discovery hostname naming pattern"
|
1064
1064
|
msgstr ""
|
1065
1065
|
|
1066
|
-
#: ../lib/foreman_discovery/engine.rb:
|
1066
|
+
#: ../lib/foreman_discovery/engine.rb:192
|
1067
1067
|
msgid "Prefer IPv6"
|
1068
1068
|
msgstr ""
|
1069
1069
|
|
1070
|
-
#: ../lib/foreman_discovery/engine.rb:
|
1070
|
+
#: ../lib/foreman_discovery/engine.rb:193
|
1071
1071
|
msgid "Prefer IPv6 to IPv4 when calling discovered nodes"
|
1072
1072
|
msgstr ""
|
1073
1073
|
|
1074
|
-
#: ../lib/foreman_discovery/engine.rb:
|
1074
|
+
#: ../lib/foreman_discovery/engine.rb:333
|
1075
1075
|
msgid "Discovery Proxy"
|
1076
1076
|
msgstr ""
|
1077
1077
|
|
1078
|
-
#: ../lib/foreman_discovery/engine.rb:
|
1078
|
+
#: ../lib/foreman_discovery/engine.rb:334
|
1079
1079
|
msgid "Discovery Proxy to use within this subnet for managing connection to discovered hosts"
|
1080
1080
|
msgstr ""
|
1081
1081
|
|
1082
|
-
#: ../lib/foreman_discovery/engine.rb:
|
1082
|
+
#: ../lib/foreman_discovery/engine.rb:335
|
1083
1083
|
msgid "ID of Discovery Proxy to use within this subnet for managing connection to discovered hosts"
|
1084
1084
|
msgstr ""
|
1085
1085
|
|
data/package.json
CHANGED
@@ -9,8 +9,6 @@
|
|
9
9
|
"test:watch": "tfm-test --plugin --watchAll",
|
10
10
|
"test:current": "tfm-test --plugin --watch",
|
11
11
|
"publish-coverage": "tfm-publish-coverage",
|
12
|
-
"stories": "tfm-stories --plugin",
|
13
|
-
"stories:build": "tfm-build-stories --plugin",
|
14
12
|
"create-react-component": "yo react-domain"
|
15
13
|
},
|
16
14
|
"repository": {
|
@@ -41,7 +41,7 @@ class DiscoveredHostsControllerTest < ActionController::TestCase
|
|
41
41
|
[:multiple_destroy, :select_multiple_organization, :select_multiple_location].each do |action|
|
42
42
|
process action, method: :post, params: {:host_ids => [host.id]}, session: set_session_user, xhr: true
|
43
43
|
assert_response :success
|
44
|
-
|
44
|
+
assert_includes(response.body, host.name)
|
45
45
|
end
|
46
46
|
end
|
47
47
|
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: foreman_discovery
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version:
|
4
|
+
version: 25.0.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Aditi Puntambekar
|
@@ -76,7 +76,7 @@ authors:
|
|
76
76
|
autorequire:
|
77
77
|
bindir: bin
|
78
78
|
cert_chain: []
|
79
|
-
date: 2024-
|
79
|
+
date: 2024-09-12 00:00:00.000000000 Z
|
80
80
|
dependencies: []
|
81
81
|
description: MaaS Discovery Plugin engine for Foreman
|
82
82
|
email: gsutclif@redhat.com
|
@@ -184,6 +184,7 @@ files:
|
|
184
184
|
- app/views/discovery_rules/welcome.html.erb
|
185
185
|
- config/as_deprecation_whitelist.yaml
|
186
186
|
- config/initializers/discovery_setup.rb
|
187
|
+
- config/initializers/inflections.rb
|
187
188
|
- config/routes.rb
|
188
189
|
- db/migrate/20141107091416_create_discovery_rules.rb
|
189
190
|
- db/migrate/20141107091417_add_discovery_rule_to_host.rb
|
@@ -297,7 +298,6 @@ files:
|
|
297
298
|
- test/integration/discovered_hosts_test.rb
|
298
299
|
- test/integration/menu_test.rb
|
299
300
|
- test/migrations/20221102075151_migrate_discovery_hostname_and_fact_column_to_array_test.rb
|
300
|
-
- test/migrations/20221102075151_migrate_discovery_hostname_and_fact_column_to_array_test.rb.orig
|
301
301
|
- test/static_fixtures/redhat_kexec.erb
|
302
302
|
- test/test_helper_discovery.rb
|
303
303
|
- test/test_plugin_helper.rb
|
@@ -351,13 +351,13 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
351
351
|
- !ruby/object:Gem::Version
|
352
352
|
version: '0'
|
353
353
|
requirements: []
|
354
|
-
rubygems_version: 3.
|
354
|
+
rubygems_version: 3.2.33
|
355
355
|
signing_key:
|
356
356
|
specification_version: 4
|
357
357
|
summary: MaaS Discovery Plugin for Foreman
|
358
358
|
test_files:
|
359
|
-
- test/factories/discovery_rule_related.rb
|
360
359
|
- test/factories/discovery_host_related.rb
|
360
|
+
- test/factories/discovery_rule_related.rb
|
361
361
|
- test/facts/bond0-eth0-eth1-active-passive.json
|
362
362
|
- test/facts/default.json
|
363
363
|
- test/facts/dell_npars.json
|
@@ -377,25 +377,24 @@ test_files:
|
|
377
377
|
- test/functional/api/v2/discovered_hosts_controller_test.rb
|
378
378
|
- test/functional/api/v2/discovery_rules_controller_test.rb
|
379
379
|
- test/functional/api/v2/fact_value_extensions_test.rb
|
380
|
-
- test/functional/foreman_discovery/concerns/hosts_controller_extensions_test.rb
|
381
380
|
- test/functional/discovered_hosts_controller_test.rb
|
382
381
|
- test/functional/discovery_rules_controller_test.rb
|
382
|
+
- test/functional/foreman_discovery/concerns/hosts_controller_extensions_test.rb
|
383
383
|
- test/integration/discovered_hosts_test.rb
|
384
384
|
- test/integration/menu_test.rb
|
385
|
-
- test/
|
386
|
-
- test/
|
387
|
-
- test/
|
385
|
+
- test/migrations/20221102075151_migrate_discovery_hostname_and_fact_column_to_array_test.rb
|
386
|
+
- test/static_fixtures/redhat_kexec.erb
|
387
|
+
- test/test_helper_discovery.rb
|
388
|
+
- test/test_plugin_helper.rb
|
388
389
|
- test/unit/discovered_extensions_test.rb
|
390
|
+
- test/unit/discovered_mailer_test.rb
|
389
391
|
- test/unit/discovery_attribute_set_test.rb
|
390
392
|
- test/unit/discovery_rule_test.rb
|
391
393
|
- test/unit/discovery_taxonomy_extensions_test.rb
|
392
394
|
- test/unit/fact_parser_test.rb
|
393
395
|
- test/unit/fact_to_category_resolver_test.rb
|
396
|
+
- test/unit/host_discovered_test.rb
|
394
397
|
- test/unit/lldp_neighbors_test.rb
|
395
398
|
- test/unit/managed_extensions_test.rb
|
396
|
-
- test/unit/
|
397
|
-
- test/
|
398
|
-
- test/migrations/20221102075151_migrate_discovery_hostname_and_fact_column_to_array_test.rb.orig
|
399
|
-
- test/migrations/20221102075151_migrate_discovery_hostname_and_fact_column_to_array_test.rb
|
400
|
-
- test/static_fixtures/redhat_kexec.erb
|
401
|
-
- test/test_helper_discovery.rb
|
399
|
+
- test/unit/ui_notifications/destroy_host_test.rb
|
400
|
+
- test/unit/ui_notifications/new_host_test.rb
|
data/test/migrations/20221102075151_migrate_discovery_hostname_and_fact_column_to_array_test.rb.orig
DELETED
@@ -1,81 +0,0 @@
|
|
1
|
-
require_relative '../test_plugin_helper'
|
2
|
-
require ForemanDiscovery::Engine.root.join('db/migrate/20221102075151_migrate_discovery_hostname_and_fact_column_to_array')
|
3
|
-
|
4
|
-
class MigrateDiscoveryHostnameAndFactColumnToArrayTest < ActiveSupport::TestCase
|
5
|
-
let(:migrations_paths) { ActiveRecord::Migrator.migrations_paths + [ForemanDiscovery::Engine.root.join('db/migrate/').to_s] }
|
6
|
-
|
7
|
-
let(:previous_version) { '20221102065954'.to_i }
|
8
|
-
let(:current_version) { '20221102075151'.to_i }
|
9
|
-
|
10
|
-
#only load the two migrations we care about (previous one and current one)
|
11
|
-
let(:migrations) do
|
12
|
-
[
|
13
|
-
ActiveRecord::MigrationProxy.new("FixDiscoverySettingsCategoryToDsl", previous_version, "#{ForemanDiscovery::Engine.root}/db/migrate/20221102065954_fix_discovery_settings_category_to_dsl.rb", ""),
|
14
|
-
ActiveRecord::MigrationProxy.new("MigrateDiscoveryHostnameAndFactColumnToArray", current_version, "#{ForemanDiscovery::Engine.root}/db/migrate/20221102075151_migrate_discovery_hostname_and_fact_column_to_array.rb", "")
|
15
|
-
]
|
16
|
-
end
|
17
|
-
|
18
|
-
def migrate_up
|
19
|
-
ActiveRecord::Migrator.new(:up, migrations, ActiveRecord::SchemaMigration, current_version).migrate
|
20
|
-
end
|
21
|
-
|
22
|
-
def setup
|
23
|
-
ActiveRecord::Migration.suppress_messages do
|
24
|
-
ActiveRecord::Migrator.new(:down, migrations, ActiveRecord::SchemaMigration, previous_version).migrate
|
25
|
-
end
|
26
|
-
end
|
27
|
-
|
28
|
-
def setup_setting(name, value)
|
29
|
-
setting = Setting.find_or_create_by(name: name)
|
30
|
-
setting.value = value
|
31
|
-
setting.save(validate: false)
|
32
|
-
end
|
33
|
-
|
34
|
-
def test_discovery_hostname_string
|
35
|
-
setup_setting('discovery_hostname', 'discovery_bootif')
|
36
|
-
migrate_up
|
37
|
-
assert_equal ['discovery_bootif'], Setting['discovery_hostname']
|
38
|
-
end
|
39
|
-
|
40
|
-
def test_discovery_hostname_multistring
|
41
|
-
setup_setting('discovery_hostname', 'discovery_bootif, fqdn')
|
42
|
-
migrate_up
|
43
|
-
assert_equal ['discovery_bootif', 'fqdn'], Setting['discovery_hostname']
|
44
|
-
end
|
45
|
-
|
46
|
-
def test_discovery_hostname_array
|
47
|
-
Setting['discovery_hostname'] = ['discovery_bootif']
|
48
|
-
migrate_up
|
49
|
-
assert_equal ['discovery_bootif'], Setting['discovery_hostname']
|
50
|
-
end
|
51
|
-
|
52
|
-
def test_discovery_fact_column_empty
|
53
|
-
setup_setting('discovery_fact_column', '')
|
54
|
-
migrate_up
|
55
|
-
assert_equal [], Setting['discovery_fact_column']
|
56
|
-
end
|
57
|
-
|
58
|
-
def test_discovery_fact_column_string
|
59
|
-
setup_setting('discovery_fact_column', 'bios_vendor')
|
60
|
-
migrate_up
|
61
|
-
assert_equal ['bios_vendor'], Setting['discovery_fact_column']
|
62
|
-
end
|
63
|
-
|
64
|
-
def test_discovery_fact_column_multistring
|
65
|
-
setup_setting('discovery_fact_column', 'bios_vendor, fqdn')
|
66
|
-
migrate_up
|
67
|
-
assert_equal ['bios_vendor', 'fqdn'], Setting['discovery_fact_column']
|
68
|
-
end
|
69
|
-
|
70
|
-
def test_discovery_fact_column_array
|
71
|
-
Setting['discovery_fact_column'] = ['bios_vendor']
|
72
|
-
<<<<<<< HEAD
|
73
|
-
migrate_up
|
74
|
-
=======
|
75
|
-
|
76
|
-
migrate_up
|
77
|
-
|
78
|
-
>>>>>>> fd3524f (Fix tests for array settings migrations)
|
79
|
-
assert_equal ['bios_vendor'], Setting['discovery_fact_column']
|
80
|
-
end
|
81
|
-
end
|