foreman_discovery 16.3.1 → 17.0.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (96) hide show
  1. checksums.yaml +4 -4
  2. data/app/controllers/api/v2/discovered_hosts_controller.rb +1 -0
  3. data/app/controllers/discovered_hosts_controller.rb +24 -35
  4. data/app/controllers/discovery_rules_controller.rb +12 -1
  5. data/app/helpers/discovered_hosts_helper.rb +6 -1
  6. data/app/helpers/discovery_rules_helper.rb +1 -0
  7. data/app/models/discovery_rule.rb +10 -5
  8. data/app/services/foreman_discovery/fact_to_category_resolver.rb +106 -0
  9. data/app/services/foreman_discovery/ui_notifications/failed_discovery.rb +34 -0
  10. data/app/services/foreman_discovery/ui_notifications/new_host.rb +2 -1
  11. data/app/views/discovered_hosts/_discovered_hosts_list.html.erb +44 -40
  12. data/app/views/discovered_hosts/welcome.html.erb +1 -2
  13. data/app/views/discovery_rules/clone.erb +3 -0
  14. data/app/views/discovery_rules/index.html.erb +4 -0
  15. data/app/views/discovery_rules/welcome.html.erb +15 -0
  16. data/app/views/foreman_discovery/debian_kexec.erb +1 -1
  17. data/app/views/foreman_discovery/redhat_kexec.erb +1 -1
  18. data/config/routes.rb +2 -0
  19. data/db/seeds.d/80_discovery_ui_notification.rb +11 -5
  20. data/lib/foreman_discovery/engine.rb +3 -7
  21. data/lib/foreman_discovery/version.rb +1 -1
  22. data/locale/ca/LC_MESSAGES/foreman_discovery.mo +0 -0
  23. data/locale/ca/foreman_discovery.edit.po +136 -98
  24. data/locale/ca/foreman_discovery.po +36 -9
  25. data/locale/de/LC_MESSAGES/foreman_discovery.mo +0 -0
  26. data/locale/de/foreman_discovery.edit.po +148 -112
  27. data/locale/de/foreman_discovery.po +45 -18
  28. data/locale/en/LC_MESSAGES/foreman_discovery.mo +0 -0
  29. data/locale/en/foreman_discovery.edit.po +127 -91
  30. data/locale/en/foreman_discovery.po +31 -4
  31. data/locale/en_GB/LC_MESSAGES/foreman_discovery.mo +0 -0
  32. data/locale/en_GB/foreman_discovery.edit.po +139 -109
  33. data/locale/en_GB/foreman_discovery.po +36 -9
  34. data/locale/es/LC_MESSAGES/foreman_discovery.mo +0 -0
  35. data/locale/es/foreman_discovery.edit.po +172 -140
  36. data/locale/es/foreman_discovery.po +70 -41
  37. data/locale/foreman_discovery.pot +142 -97
  38. data/locale/fr/LC_MESSAGES/foreman_discovery.mo +0 -0
  39. data/locale/fr/foreman_discovery.edit.po +179 -147
  40. data/locale/fr/foreman_discovery.po +76 -49
  41. data/locale/gl/LC_MESSAGES/foreman_discovery.mo +0 -0
  42. data/locale/gl/foreman_discovery.edit.po +133 -92
  43. data/locale/gl/foreman_discovery.po +32 -5
  44. data/locale/it/LC_MESSAGES/foreman_discovery.mo +0 -0
  45. data/locale/it/foreman_discovery.edit.po +147 -106
  46. data/locale/it/foreman_discovery.po +44 -17
  47. data/locale/ja/LC_MESSAGES/foreman_discovery.mo +0 -0
  48. data/locale/ja/foreman_discovery.edit.po +182 -152
  49. data/locale/ja/foreman_discovery.po +79 -54
  50. data/locale/ko/LC_MESSAGES/foreman_discovery.mo +0 -0
  51. data/locale/ko/foreman_discovery.edit.po +146 -105
  52. data/locale/ko/foreman_discovery.po +43 -16
  53. data/locale/pt_BR/LC_MESSAGES/foreman_discovery.mo +0 -0
  54. data/locale/pt_BR/foreman_discovery.edit.po +171 -136
  55. data/locale/pt_BR/foreman_discovery.po +69 -39
  56. data/locale/ru/LC_MESSAGES/foreman_discovery.mo +0 -0
  57. data/locale/ru/foreman_discovery.edit.po +147 -106
  58. data/locale/ru/foreman_discovery.po +43 -16
  59. data/locale/sv_SE/LC_MESSAGES/foreman_discovery.mo +0 -0
  60. data/locale/sv_SE/foreman_discovery.edit.po +135 -94
  61. data/locale/sv_SE/foreman_discovery.po +34 -7
  62. data/locale/zh_CN/LC_MESSAGES/foreman_discovery.mo +0 -0
  63. data/locale/zh_CN/foreman_discovery.edit.po +217 -188
  64. data/locale/zh_CN/foreman_discovery.po +114 -90
  65. data/locale/zh_TW/LC_MESSAGES/foreman_discovery.mo +0 -0
  66. data/locale/zh_TW/foreman_discovery.edit.po +146 -105
  67. data/locale/zh_TW/foreman_discovery.po +43 -16
  68. data/package.json +7 -7
  69. data/test/functional/api/v2/discovered_hosts_controller_test.rb +9 -0
  70. data/test/functional/discovery_rules_controller_test.rb +6 -1
  71. data/test/integration/discovered_hosts_test.rb +53 -5
  72. data/test/test_helper_discovery.rb +5 -0
  73. data/test/unit/discovery_rule_test.rb +24 -2
  74. data/test/unit/fact_to_category_resolver_test.rb +41 -0
  75. data/test/unit/ui_notifications/destroy_host_test.rb +2 -9
  76. data/test/unit/ui_notifications/new_host_test.rb +3 -3
  77. data/webpack/__mocks__/foremanReact/common/I18n.js +3 -0
  78. data/webpack/__mocks__/foremanReact/common/helpers.js +1 -0
  79. data/webpack/__mocks__/foremanReact/common/index.js +5 -0
  80. data/webpack/__mocks__/foremanReact/components/common/EmptyState/DefaultEmptyState.js +69 -0
  81. data/webpack/__mocks__/foremanReact/components/common/EmptyState/EmptyStatePattern.js +77 -0
  82. data/webpack/__mocks__/foremanReact/components/common/EmptyState/EmptyStatePropTypes.js +29 -0
  83. data/webpack/__mocks__/foremanReact/components/common/EmptyState/index.js +5 -0
  84. data/webpack/index.js +9 -8
  85. data/webpack/src/ForemanDiscovery/DiscoveredHosts/Components/EmptyState/EmptyState.js +7 -7
  86. data/webpack/src/ForemanDiscovery/DiscoveredHosts/Components/EmptyState/__test__/EmptyState.test.js +12 -0
  87. data/webpack/src/ForemanDiscovery/DiscoveredHosts/Components/EmptyState/__test__/__snapshots__/EmptyState.test.js.snap +16 -0
  88. data/webpack/src/ForemanDiscovery/DiscoveredHosts/Components/EmptyState/index.js +1 -1
  89. data/webpack/src/ForemanDiscovery/DiscoveredHosts/index.js +3 -3
  90. data/webpack/src/ForemanDiscovery/DiscoveryRules/Components/EmptyState/EmptyState.js +34 -0
  91. data/webpack/src/ForemanDiscovery/DiscoveryRules/Components/EmptyState/index.js +1 -0
  92. data/webpack/src/ForemanDiscovery/DiscoveryRules/Components/__test__/EmptyState.test.js +19 -0
  93. data/webpack/src/ForemanDiscovery/DiscoveryRules/Components/__test__/__snapshots__/EmptyState.test.js.snap +22 -0
  94. data/webpack/src/ForemanDiscovery/DiscoveryRules/index.js +6 -0
  95. data/webpack/src/reducers.js +0 -2
  96. metadata +39 -17
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: 16.3.1
4
+ version: 17.0.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Aditi Puntambekar
@@ -21,6 +21,7 @@ authors:
21
21
  - David Davis
22
22
  - Djebran Lezzoum
23
23
  - Dominic Cleal
24
+ - Dominik Matoulek
24
25
  - Eric D. Helms
25
26
  - Ewoud Kohl van Wijngaarden
26
27
  - Frank Wall
@@ -55,6 +56,7 @@ authors:
55
56
  - Phirince Philip
56
57
  - Rahul Bajaj
57
58
  - Robert Antoni Buj Gelonch
59
+ - Ron Lavi
58
60
  - Scubafloyd
59
61
  - Sean O\'Keeffe
60
62
  - Sebastian Gräßl
@@ -68,10 +70,10 @@ authors:
68
70
  - Tom Caspy
69
71
  - Tomer Brisker
70
72
  - Yann Cézard
71
- autorequire:
73
+ autorequire:
72
74
  bindir: bin
73
75
  cert_chain: []
74
- date: 2020-10-29 00:00:00.000000000 Z
76
+ date: 2021-06-16 00:00:00.000000000 Z
75
77
  dependencies: []
76
78
  description: MaaS Discovery Plugin engine for Foreman
77
79
  email: gsutclif@redhat.com
@@ -105,6 +107,7 @@ files:
105
107
  - app/models/nic/managed_extensions.rb
106
108
  - app/models/setting/discovered.rb
107
109
  - app/services/foreman_discovery/fact_parser.rb
110
+ - app/services/foreman_discovery/fact_to_category_resolver.rb
108
111
  - app/services/foreman_discovery/host_converter.rb
109
112
  - app/services/foreman_discovery/host_fact_importer.rb
110
113
  - app/services/foreman_discovery/import_hook.rb
@@ -120,6 +123,7 @@ files:
120
123
  - app/services/foreman_discovery/node_api/power_service.rb
121
124
  - app/services/foreman_discovery/subnet_suggestion.rb
122
125
  - app/services/foreman_discovery/ui_notifications/destroy_host.rb
126
+ - app/services/foreman_discovery/ui_notifications/failed_discovery.rb
123
127
  - app/services/foreman_discovery/ui_notifications/new_host.rb
124
128
  - app/views/api/v2/discovered_hosts/base.json.rabl
125
129
  - app/views/api/v2/discovered_hosts/index.json.rabl
@@ -152,9 +156,11 @@ files:
152
156
  - app/views/discovered_mailer/discovered_summary.text.erb
153
157
  - app/views/discovery_rules/_form.html.erb
154
158
  - app/views/discovery_rules/_template_inline.erb
159
+ - app/views/discovery_rules/clone.erb
155
160
  - app/views/discovery_rules/edit.html.erb
156
161
  - app/views/discovery_rules/index.html.erb
157
162
  - app/views/discovery_rules/new.html.erb
163
+ - app/views/discovery_rules/welcome.html.erb
158
164
  - app/views/foreman_discovery/debian_kexec.erb
159
165
  - app/views/foreman_discovery/redhat_kexec.erb
160
166
  - config/as_deprecation_whitelist.yaml
@@ -274,22 +280,37 @@ files:
274
280
  - test/unit/discovery_rule_test.rb
275
281
  - test/unit/discovery_taxonomy_extensions_test.rb
276
282
  - test/unit/fact_parser_test.rb
283
+ - test/unit/fact_to_category_resolver_test.rb
277
284
  - test/unit/host_discovered_test.rb
278
285
  - test/unit/lldp_neighbors_test.rb
279
286
  - test/unit/managed_extensions_test.rb
280
287
  - test/unit/setting_discovered_test.rb
281
288
  - test/unit/ui_notifications/destroy_host_test.rb
282
289
  - test/unit/ui_notifications/new_host_test.rb
290
+ - webpack/__mocks__/foremanReact/common/I18n.js
291
+ - webpack/__mocks__/foremanReact/common/helpers.js
292
+ - webpack/__mocks__/foremanReact/common/index.js
293
+ - webpack/__mocks__/foremanReact/components/common/EmptyState/DefaultEmptyState.js
294
+ - webpack/__mocks__/foremanReact/components/common/EmptyState/EmptyStatePattern.js
295
+ - webpack/__mocks__/foremanReact/components/common/EmptyState/EmptyStatePropTypes.js
296
+ - webpack/__mocks__/foremanReact/components/common/EmptyState/index.js
283
297
  - webpack/index.js
284
298
  - webpack/src/ForemanDiscovery/DiscoveredHosts/Components/EmptyState/EmptyState.js
299
+ - webpack/src/ForemanDiscovery/DiscoveredHosts/Components/EmptyState/__test__/EmptyState.test.js
300
+ - webpack/src/ForemanDiscovery/DiscoveredHosts/Components/EmptyState/__test__/__snapshots__/EmptyState.test.js.snap
285
301
  - webpack/src/ForemanDiscovery/DiscoveredHosts/Components/EmptyState/index.js
286
302
  - webpack/src/ForemanDiscovery/DiscoveredHosts/index.js
303
+ - webpack/src/ForemanDiscovery/DiscoveryRules/Components/EmptyState/EmptyState.js
304
+ - webpack/src/ForemanDiscovery/DiscoveryRules/Components/EmptyState/index.js
305
+ - webpack/src/ForemanDiscovery/DiscoveryRules/Components/__test__/EmptyState.test.js
306
+ - webpack/src/ForemanDiscovery/DiscoveryRules/Components/__test__/__snapshots__/EmptyState.test.js.snap
307
+ - webpack/src/ForemanDiscovery/DiscoveryRules/index.js
287
308
  - webpack/src/reducers.js
288
309
  homepage: https://github.com/theforeman/foreman_discovery
289
310
  licenses:
290
311
  - GPL-3.0
291
312
  metadata: {}
292
- post_install_message:
313
+ post_install_message:
293
314
  rdoc_options: []
294
315
  require_paths:
295
316
  - lib
@@ -304,19 +325,17 @@ required_rubygems_version: !ruby/object:Gem::Requirement
304
325
  - !ruby/object:Gem::Version
305
326
  version: '0'
306
327
  requirements: []
307
- rubygems_version: 3.1.2
308
- signing_key:
328
+ rubygems_version: 3.1.4
329
+ signing_key:
309
330
  specification_version: 4
310
331
  summary: MaaS Discovery Plugin for Foreman
311
332
  test_files:
312
333
  - test/factories/discovery_host_related.rb
313
334
  - test/factories/discovery_rule_related.rb
314
- - test/facts/bond0-eth0-eth1-active-passive.json
315
335
  - test/facts/default.json
316
336
  - test/facts/dell_npars.json
317
337
  - test/facts/dell_vlan.json
318
338
  - test/facts/facts_with_lldp.json
319
- - test/facts/facts_with_lldp_bond_candidate.json
320
339
  - test/facts/pxeless-vlan.json
321
340
  - test/facts/regular_host.json
322
341
  - test/facts/rhel-dl380-1kdisks.json
@@ -325,28 +344,31 @@ test_files:
325
344
  - test/facts/simple-bond.json
326
345
  - test/facts/suse-vmware.json
327
346
  - test/facts/vmware_local.json
347
+ - test/facts/bond0-eth0-eth1-active-passive.json
348
+ - test/facts/facts_with_lldp_bond_candidate.json
328
349
  - test/facts/only-ipv6.json
329
350
  - test/facts/skylake-ipv6.json
330
- - test/functional/api/v2/discovered_hosts_controller_test.rb
331
351
  - test/functional/api/v2/discovery_rules_controller_test.rb
332
352
  - test/functional/api/v2/fact_value_extensions_test.rb
333
353
  - test/functional/api/v2/settings_controller_test.rb
354
+ - test/functional/api/v2/discovered_hosts_controller_test.rb
334
355
  - test/functional/foreman_discovery/concerns/hosts_controller_extensions_test.rb
335
- - test/functional/discovery_rules_controller_test.rb
336
356
  - test/functional/discovered_hosts_controller_test.rb
357
+ - test/functional/discovery_rules_controller_test.rb
337
358
  - test/integration/discovered_hosts_test.rb
338
359
  - test/models/setting_test.rb
339
- - test/test_helper_discovery.rb
340
- - test/test_plugin_helper.rb
360
+ - test/unit/ui_notifications/destroy_host_test.rb
361
+ - test/unit/ui_notifications/new_host_test.rb
341
362
  - test/unit/discovered_mailer_test.rb
342
- - test/unit/discovery_attribute_set_test.rb
343
- - test/unit/discovery_rule_test.rb
344
363
  - test/unit/discovery_taxonomy_extensions_test.rb
345
364
  - test/unit/fact_parser_test.rb
346
365
  - test/unit/lldp_neighbors_test.rb
347
366
  - test/unit/setting_discovered_test.rb
348
- - test/unit/ui_notifications/destroy_host_test.rb
349
- - test/unit/ui_notifications/new_host_test.rb
350
367
  - test/unit/discovered_extensions_test.rb
351
- - test/unit/managed_extensions_test.rb
368
+ - test/unit/discovery_attribute_set_test.rb
352
369
  - test/unit/host_discovered_test.rb
370
+ - test/unit/managed_extensions_test.rb
371
+ - test/unit/discovery_rule_test.rb
372
+ - test/unit/fact_to_category_resolver_test.rb
373
+ - test/test_plugin_helper.rb
374
+ - test/test_helper_discovery.rb