foreman_discovery 12.0.2 → 13.0.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (66) hide show
  1. checksums.yaml +4 -4
  2. data/app/mailers/discovered_mailer.rb +12 -1
  3. data/app/models/host/discovered.rb +20 -7
  4. data/app/models/setting/discovered.rb +2 -0
  5. data/app/services/foreman_discovery/fact_parser.rb +8 -2
  6. data/app/services/foreman_discovery/lldp_neighbors.rb +104 -0
  7. data/app/views/discovery_rules/index.html.erb +1 -1
  8. data/extra/discovery/pxeless-vlan.json +217 -0
  9. data/lib/foreman_discovery/engine.rb +1 -1
  10. data/lib/foreman_discovery/version.rb +1 -1
  11. data/locale/ca/LC_MESSAGES/foreman_discovery.mo +0 -0
  12. data/locale/ca/foreman_discovery.edit.po +143 -58
  13. data/locale/ca/foreman_discovery.po +4 -4
  14. data/locale/de/LC_MESSAGES/foreman_discovery.mo +0 -0
  15. data/locale/de/foreman_discovery.edit.po +145 -59
  16. data/locale/de/foreman_discovery.po +7 -7
  17. data/locale/en/LC_MESSAGES/foreman_discovery.mo +0 -0
  18. data/locale/en/foreman_discovery.edit.po +90 -58
  19. data/locale/en/foreman_discovery.po +28 -4
  20. data/locale/en_GB/LC_MESSAGES/foreman_discovery.mo +0 -0
  21. data/locale/en_GB/foreman_discovery.edit.po +151 -66
  22. data/locale/en_GB/foreman_discovery.po +12 -12
  23. data/locale/es/LC_MESSAGES/foreman_discovery.mo +0 -0
  24. data/locale/es/foreman_discovery.edit.po +155 -70
  25. data/locale/es/foreman_discovery.po +16 -16
  26. data/locale/foreman_discovery.pot +93 -59
  27. data/locale/fr/LC_MESSAGES/foreman_discovery.mo +0 -0
  28. data/locale/fr/foreman_discovery.edit.po +287 -200
  29. data/locale/fr/foreman_discovery.po +149 -148
  30. data/locale/gl/LC_MESSAGES/foreman_discovery.mo +0 -0
  31. data/locale/gl/foreman_discovery.edit.po +144 -59
  32. data/locale/gl/foreman_discovery.po +5 -5
  33. data/locale/it/LC_MESSAGES/foreman_discovery.mo +0 -0
  34. data/locale/it/foreman_discovery.edit.po +144 -59
  35. data/locale/it/foreman_discovery.po +5 -5
  36. data/locale/ja/LC_MESSAGES/foreman_discovery.mo +0 -0
  37. data/locale/ja/foreman_discovery.edit.po +153 -68
  38. data/locale/ja/foreman_discovery.po +16 -14
  39. data/locale/ko/LC_MESSAGES/foreman_discovery.mo +0 -0
  40. data/locale/ko/foreman_discovery.edit.po +143 -59
  41. data/locale/ko/foreman_discovery.po +5 -5
  42. data/locale/pt_BR/LC_MESSAGES/foreman_discovery.mo +0 -0
  43. data/locale/pt_BR/foreman_discovery.edit.po +155 -70
  44. data/locale/pt_BR/foreman_discovery.po +16 -16
  45. data/locale/ru/LC_MESSAGES/foreman_discovery.mo +0 -0
  46. data/locale/ru/foreman_discovery.edit.po +146 -63
  47. data/locale/ru/foreman_discovery.po +6 -6
  48. data/locale/sv_SE/LC_MESSAGES/foreman_discovery.mo +0 -0
  49. data/locale/sv_SE/foreman_discovery.edit.po +144 -59
  50. data/locale/sv_SE/foreman_discovery.po +5 -5
  51. data/locale/zh_CN/LC_MESSAGES/foreman_discovery.mo +0 -0
  52. data/locale/zh_CN/foreman_discovery.edit.po +150 -69
  53. data/locale/zh_CN/foreman_discovery.po +13 -15
  54. data/locale/zh_TW/LC_MESSAGES/foreman_discovery.mo +0 -0
  55. data/locale/zh_TW/foreman_discovery.edit.po +227 -144
  56. data/locale/zh_TW/foreman_discovery.po +88 -88
  57. data/test/functional/api/v2/discovery_rules_controller_test.rb +8 -0
  58. data/test/functional/api/v2/settings_controller_test.rb +2 -0
  59. data/test/test_helper_discovery.rb +2 -0
  60. data/test/unit/discovered_mailer_test.rb +14 -0
  61. data/test/unit/discovery_rule_test.rb +3 -0
  62. data/test/unit/facts_with_lldp.json +107 -0
  63. data/test/unit/facts_with_lldp_bond_candidate.json +107 -0
  64. data/test/unit/host_discovered_test.rb +72 -1
  65. data/test/unit/lldp_neighbors_test.rb +56 -0
  66. metadata +11 -2
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: 12.0.2
4
+ version: 13.0.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - alongoldboim
@@ -58,13 +58,14 @@ authors:
58
58
  - Swapnil Abnave
59
59
  - Thomas Gelf
60
60
  - Timo Goebel
61
+ - Tomas Strych
61
62
  - Tom Caspy
62
63
  - Tomer Brisker
63
64
  - Yann Cézard
64
65
  autorequire:
65
66
  bindir: bin
66
67
  cert_chain: []
67
- date: 2018-07-13 00:00:00.000000000 Z
68
+ date: 2018-08-07 00:00:00.000000000 Z
68
69
  dependencies: []
69
70
  description: MaaS Discovery Plugin engine for Foreman
70
71
  email: gsutclif@redhat.com
@@ -99,6 +100,7 @@ files:
99
100
  - app/models/setting/discovered.rb
100
101
  - app/services/foreman_discovery/fact_parser.rb
101
102
  - app/services/foreman_discovery/host_converter.rb
103
+ - app/services/foreman_discovery/lldp_neighbors.rb
102
104
  - app/services/foreman_discovery/node_api/inventory.rb
103
105
  - app/services/foreman_discovery/node_api/node_resource.rb
104
106
  - app/services/foreman_discovery/node_api/power.rb
@@ -171,6 +173,7 @@ files:
171
173
  - extra/discover-host
172
174
  - extra/discovery/default.json
173
175
  - extra/discovery/many_ems.json
176
+ - extra/discovery/pxeless-vlan.json
174
177
  - extra/discovery/rhel-dl380-1kdisks.json
175
178
  - extra/discovery/rhel-r730.json
176
179
  - extra/discovery/rhel7-vlan.json
@@ -248,7 +251,10 @@ files:
248
251
  - test/unit/discovery_taxonomy_extensions_test.rb
249
252
  - test/unit/fact_parser_test.rb
250
253
  - test/unit/facts.json
254
+ - test/unit/facts_with_lldp.json
255
+ - test/unit/facts_with_lldp_bond_candidate.json
251
256
  - test/unit/host_discovered_test.rb
257
+ - test/unit/lldp_neighbors_test.rb
252
258
  - test/unit/managed_extensions_test.rb
253
259
  - test/unit/setting_discovered_test.rb
254
260
  - test/unit/ui_notifications/destroy_host_test.rb
@@ -282,6 +288,8 @@ test_files:
282
288
  - test/test_plugin_helper.rb
283
289
  - test/test_helper_discovery.rb
284
290
  - test/integration/discovered_hosts_test.rb
291
+ - test/unit/facts_with_lldp.json
292
+ - test/unit/lldp_neighbors_test.rb
285
293
  - test/unit/discovery_attribute_set_test.rb
286
294
  - test/unit/facts.json
287
295
  - test/unit/discovered_mailer_test.rb
@@ -294,6 +302,7 @@ test_files:
294
302
  - test/unit/setting_discovered_test.rb
295
303
  - test/unit/host_discovered_test.rb
296
304
  - test/unit/fact_parser_test.rb
305
+ - test/unit/facts_with_lldp_bond_candidate.json
297
306
  - test/factories/discovery_host_related.rb
298
307
  - test/factories/discovery_rule_related.rb
299
308
  - test/functional/foreman_discovery/concerns/hosts_controller_extensions_test.rb