foreman_discovery 15.0.2 → 16.2.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/controllers/api/v2/discovery_rules_controller.rb +1 -1
- data/app/controllers/concerns/foreman/controller/discovered_extensions.rb +4 -0
- data/app/controllers/discovered_hosts_controller.rb +6 -3
- data/app/controllers/discovery_rules_controller.rb +1 -1
- data/app/models/discovery_rule.rb +1 -1
- data/app/models/host/discovered.rb +49 -31
- data/app/models/host/managed_extensions.rb +2 -2
- data/app/models/setting/discovered.rb +28 -33
- data/app/services/foreman_discovery/fact_parser.rb +1 -1
- data/app/services/foreman_discovery/host_converter.rb +38 -2
- data/app/services/foreman_discovery/host_fact_importer.rb +10 -0
- data/app/services/foreman_discovery/import_hooks/subnet_and_taxonomy.rb +6 -14
- data/app/services/foreman_discovery/node_api/node_resource.rb +1 -0
- data/app/services/foreman_discovery/subnet_suggestion.rb +26 -0
- data/app/views/foreman_discovery/debian_kexec.erb +3 -2
- data/app/views/foreman_discovery/redhat_kexec.erb +2 -1
- data/config/routes.rb +2 -0
- data/db/migrate/20150512150432_remove_old_discovery_reader_permissions.rb +1 -1
- data/db/migrate/20151023144501_regenerate_red_hat_kexec.rb +1 -1
- data/db/migrate/20180412124505_add_priority_score_to_discovery_rules.rb +1 -1
- data/extra/discover-host +34 -14
- data/lib/foreman_discovery/engine.rb +4 -4
- data/lib/foreman_discovery/version.rb +1 -1
- data/locale/ca/LC_MESSAGES/foreman_discovery.mo +0 -0
- data/locale/ca/foreman_discovery.edit.po +122 -93
- data/locale/ca/foreman_discovery.po +31 -8
- data/locale/de/LC_MESSAGES/foreman_discovery.mo +0 -0
- data/locale/de/foreman_discovery.edit.po +125 -96
- data/locale/de/foreman_discovery.po +34 -11
- data/locale/en/LC_MESSAGES/foreman_discovery.mo +0 -0
- data/locale/en/foreman_discovery.edit.po +118 -88
- data/locale/en/foreman_discovery.po +27 -4
- data/locale/en_GB/LC_MESSAGES/foreman_discovery.mo +0 -0
- data/locale/en_GB/foreman_discovery.edit.po +125 -96
- data/locale/en_GB/foreman_discovery.po +34 -11
- data/locale/es/LC_MESSAGES/foreman_discovery.mo +0 -0
- data/locale/es/foreman_discovery.edit.po +124 -95
- data/locale/es/foreman_discovery.po +33 -10
- data/locale/foreman_discovery.pot +119 -89
- data/locale/fr/LC_MESSAGES/foreman_discovery.mo +0 -0
- data/locale/fr/foreman_discovery.edit.po +122 -93
- data/locale/fr/foreman_discovery.po +31 -8
- data/locale/gl/LC_MESSAGES/foreman_discovery.mo +0 -0
- data/locale/gl/foreman_discovery.edit.po +120 -91
- data/locale/gl/foreman_discovery.po +29 -6
- data/locale/it/LC_MESSAGES/foreman_discovery.mo +0 -0
- data/locale/it/foreman_discovery.edit.po +120 -91
- data/locale/it/foreman_discovery.po +29 -6
- data/locale/ja/LC_MESSAGES/foreman_discovery.mo +0 -0
- data/locale/ja/foreman_discovery.edit.po +123 -94
- data/locale/ja/foreman_discovery.po +32 -9
- data/locale/ko/LC_MESSAGES/foreman_discovery.mo +0 -0
- data/locale/ko/foreman_discovery.edit.po +122 -93
- data/locale/ko/foreman_discovery.po +31 -8
- data/locale/pt_BR/LC_MESSAGES/foreman_discovery.mo +0 -0
- data/locale/pt_BR/foreman_discovery.edit.po +123 -94
- data/locale/pt_BR/foreman_discovery.po +32 -9
- data/locale/ru/LC_MESSAGES/foreman_discovery.mo +0 -0
- data/locale/ru/foreman_discovery.edit.po +123 -94
- data/locale/ru/foreman_discovery.po +32 -9
- data/locale/sv_SE/LC_MESSAGES/foreman_discovery.mo +0 -0
- data/locale/sv_SE/foreman_discovery.edit.po +121 -92
- data/locale/sv_SE/foreman_discovery.po +30 -7
- data/locale/zh_CN/LC_MESSAGES/foreman_discovery.mo +0 -0
- data/locale/zh_CN/foreman_discovery.edit.po +122 -93
- data/locale/zh_CN/foreman_discovery.po +31 -8
- data/locale/zh_TW/LC_MESSAGES/foreman_discovery.mo +0 -0
- data/locale/zh_TW/foreman_discovery.edit.po +120 -91
- data/locale/zh_TW/foreman_discovery.po +29 -6
- data/test/facts/bond0-eth0-eth1-active-passive.json +128 -0
- data/test/facts/facts_with_lldp_bond_candidate.json +2 -9
- data/test/facts/only-ipv6.json +205 -0
- data/test/facts/skylake-ipv6.json +223 -0
- data/test/functional/api/v2/discovered_hosts_controller_test.rb +1 -0
- data/test/functional/api/v2/settings_controller_test.rb +2 -2
- data/test/functional/discovered_hosts_controller_test.rb +15 -6
- data/test/integration/discovered_hosts_test.rb +6 -11
- data/test/test_helper_discovery.rb +12 -0
- data/test/unit/discovered_extensions_test.rb +54 -0
- data/test/unit/discovery_attribute_set_test.rb +13 -10
- data/test/unit/discovery_rule_test.rb +1 -0
- data/test/unit/host_discovered_test.rb +32 -29
- data/test/unit/managed_extensions_test.rb +2 -0
- metadata +39 -28
@@ -14,6 +14,7 @@ class DiscoveryAttributeSetTest < ActiveSupport::TestCase
|
|
14
14
|
:name => 'discovery_prefix',
|
15
15
|
:value => 'mac',
|
16
16
|
:category => 'Setting::Discovered')
|
17
|
+
::ForemanDiscovery::HostConverter.stubs(:unused_ip_for_host)
|
17
18
|
end
|
18
19
|
|
19
20
|
test "can search discovered hosts by cpu" do
|
@@ -41,15 +42,17 @@ class DiscoveryAttributeSetTest < ActiveSupport::TestCase
|
|
41
42
|
end
|
42
43
|
|
43
44
|
test "can search discovered hosts by disks_size" do
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
-
|
52
|
-
|
53
|
-
|
45
|
+
begin
|
46
|
+
excluded = Setting[:excluded_facts]
|
47
|
+
Setting[:excluded_facts] = ["test"]
|
48
|
+
host = discover_host_from_facts(@facts)
|
49
|
+
disks_size = (host.facts_hash['blockdevice_sda_size'].to_f / 1024 / 1024).ceil
|
50
|
+
results = Host::Discovered.unscoped.search_for("disks_size = #{disks_size}")
|
51
|
+
assert_equal 1, results.count
|
52
|
+
results = Host::Discovered.unscoped.search_for("disks_size > #{disks_size}")
|
53
|
+
assert_equal 0, results.count
|
54
|
+
ensure
|
55
|
+
Setting[:excluded_facts] = excluded
|
56
|
+
end
|
54
57
|
end
|
55
58
|
end
|
@@ -3,6 +3,7 @@ require_relative '../test_plugin_helper'
|
|
3
3
|
class DiscoveryRuleTest < ActiveSupport::TestCase
|
4
4
|
setup do
|
5
5
|
@hostgroup = FactoryBot.create(:hostgroup)
|
6
|
+
::ForemanDiscovery::HostConverter.stubs(:unused_ip_for_host)
|
6
7
|
end
|
7
8
|
|
8
9
|
should allow_values(*valid_name_list).for(:name)
|
@@ -7,6 +7,7 @@ class HostDiscoveredTest < ActiveSupport::TestCase
|
|
7
7
|
setup do
|
8
8
|
@facts = parse_json_fixture('regular_host', true)
|
9
9
|
set_default_settings
|
10
|
+
::ForemanDiscovery::HostConverter.stubs(:unused_ip_for_host)
|
10
11
|
end
|
11
12
|
|
12
13
|
test "should be able to create Host::Discovered objects" do
|
@@ -38,9 +39,20 @@ class HostDiscoveredTest < ActiveSupport::TestCase
|
|
38
39
|
assert_equal discovered_host.id, fact_value.host.id
|
39
40
|
end
|
40
41
|
|
42
|
+
test "should detect bridge as the primary" do
|
43
|
+
# Detected primary should be the bridge (.2)
|
44
|
+
# "ipaddress_br180": "10.35.27.2"
|
45
|
+
# "ipaddress_eth0": "10.35.27.3"
|
46
|
+
# "ipaddress": "10.35.27.2"
|
47
|
+
subnet = FactoryBot.create(:subnet_ipv4, :name => 'Subnet99', :network => '10.35.27.0', :organizations => [organization_one], :locations => [location_one])
|
48
|
+
Subnet.expects(:subnet_for).with('10.35.27.2').returns(subnet)
|
49
|
+
host = discover_host_from_facts(@facts)
|
50
|
+
assert_equal '10.35.27.2', host.primary_interface.ip
|
51
|
+
end
|
52
|
+
|
41
53
|
test "should setup subnet" do
|
42
54
|
subnet = FactoryBot.create(:subnet_ipv4, :name => 'Subnet99', :network => '10.35.27.0', :organizations => [organization_one], :locations => [location_one])
|
43
|
-
Subnet.expects(:subnet_for).with('10.35.27.
|
55
|
+
Subnet.expects(:subnet_for).with('10.35.27.2').returns(subnet)
|
44
56
|
host = discover_host_from_facts(@facts)
|
45
57
|
assert_equal subnet, host.primary_interface.subnet
|
46
58
|
end
|
@@ -48,7 +60,7 @@ class HostDiscoveredTest < ActiveSupport::TestCase
|
|
48
60
|
test "should setup subnet when update_subnets_from_facts is true" do
|
49
61
|
Setting[:update_subnets_from_facts] = true
|
50
62
|
subnet = FactoryBot.create(:subnet_ipv4, :name => 'Subnet99', :network => '10.35.27.0', :organizations => [organization_one], :locations => [location_one])
|
51
|
-
Subnet.expects(:subnet_for).with('10.35.27.
|
63
|
+
Subnet.expects(:subnet_for).with('10.35.27.2').returns(subnet)
|
52
64
|
host = discover_host_from_facts(@facts)
|
53
65
|
assert_equal subnet, host.primary_interface.subnet
|
54
66
|
end
|
@@ -59,7 +71,7 @@ class HostDiscoveredTest < ActiveSupport::TestCase
|
|
59
71
|
Setting['discovery_organization'] = org.name
|
60
72
|
Setting['discovery_location'] = loc.name
|
61
73
|
subnet = FactoryBot.create(:subnet_ipv4, :name => 'Subnet99', :network => '10.35.27.0', :organizations => [org], :locations => [loc])
|
62
|
-
Subnet.expects(:subnet_for).with('10.35.27.
|
74
|
+
Subnet.expects(:subnet_for).with('10.35.27.2').returns(subnet)
|
63
75
|
host = discover_host_from_facts(@facts)
|
64
76
|
assert_equal subnet, host.primary_interface.subnet
|
65
77
|
assert_equal org, host.organization
|
@@ -74,7 +86,7 @@ class HostDiscoveredTest < ActiveSupport::TestCase
|
|
74
86
|
Setting['discovery_organization'] = nil
|
75
87
|
Setting['discovery_location'] = nil
|
76
88
|
subnet = FactoryBot.create(:subnet_ipv4, :name => 'Subnet99', :network => '10.35.27.0', :organizations => [org, org2], :locations => [loc, loc2])
|
77
|
-
Subnet.expects(:subnet_for).with('10.35.27.
|
89
|
+
Subnet.expects(:subnet_for).with('10.35.27.2').returns(subnet)
|
78
90
|
host = discover_host_from_facts(@facts)
|
79
91
|
assert_equal subnet, host.primary_interface.subnet
|
80
92
|
assert host.organization
|
@@ -92,7 +104,7 @@ class HostDiscoveredTest < ActiveSupport::TestCase
|
|
92
104
|
Setting['discovery_organization'] = org.name
|
93
105
|
Setting['discovery_location'] = loc.name
|
94
106
|
subnet = FactoryBot.create(:subnet_ipv4, :name => 'Subnet99', :network => '10.35.27.0', :organizations => [org], :locations => [loc])
|
95
|
-
Subnet.expects(:subnet_for).with('10.35.27.
|
107
|
+
Subnet.expects(:subnet_for).with('10.35.27.2').returns(subnet)
|
96
108
|
host = discover_host_from_facts(@facts.merge("test_org" => bad_org.title, "test_loc" => bad_loc.title))
|
97
109
|
assert_equal subnet, host.primary_interface.subnet
|
98
110
|
assert_equal org, host.organization
|
@@ -111,7 +123,7 @@ class HostDiscoveredTest < ActiveSupport::TestCase
|
|
111
123
|
Setting['discovery_organization'] = org.name
|
112
124
|
Setting['discovery_location'] = loc.name
|
113
125
|
subnet = FactoryBot.create(:subnet_ipv4, :name => 'Subnet99', :network => '10.35.27.0', :organizations => [org, bad_org], :locations => [loc, bad_loc])
|
114
|
-
Subnet.expects(:subnet_for).with('10.35.27.
|
126
|
+
Subnet.expects(:subnet_for).with('10.35.27.2').returns(subnet)
|
115
127
|
host = discover_host_from_facts(@facts.merge("foreman_organization" => bad_org.title, "foreman_location" => bad_loc.title))
|
116
128
|
assert_equal subnet, host.primary_interface.subnet
|
117
129
|
assert_equal org, host.organization
|
@@ -129,7 +141,7 @@ class HostDiscoveredTest < ActiveSupport::TestCase
|
|
129
141
|
Setting['discovery_organization'] = org.name
|
130
142
|
Setting['discovery_location'] = loc.name
|
131
143
|
subnet = FactoryBot.create(:subnet_ipv4, :name => 'Subnet99', :network => '10.35.27.0', :organizations => [org, bad_org], :locations => [loc, bad_loc])
|
132
|
-
Subnet.expects(:subnet_for).with('10.35.27.
|
144
|
+
Subnet.expects(:subnet_for).with('10.35.27.2').returns(subnet)
|
133
145
|
host = discover_host_from_facts(@facts)
|
134
146
|
assert_equal subnet, host.primary_interface.subnet
|
135
147
|
assert_equal org, host.organization
|
@@ -148,7 +160,7 @@ class HostDiscoveredTest < ActiveSupport::TestCase
|
|
148
160
|
Setting['discovery_organization'] = org.name
|
149
161
|
Setting['discovery_location'] = loc.name
|
150
162
|
subnet = FactoryBot.create(:subnet_ipv4, :name => 'Subnet99', :network => '10.35.27.0', :organizations => [org], :locations => [loc])
|
151
|
-
Subnet.expects(:subnet_for).with('10.35.27.
|
163
|
+
Subnet.expects(:subnet_for).with('10.35.27.2').returns(subnet)
|
152
164
|
host = discover_host_from_facts(@facts)
|
153
165
|
assert_equal org, host.organization
|
154
166
|
assert_equal loc, host.location
|
@@ -188,7 +200,7 @@ class HostDiscoveredTest < ActiveSupport::TestCase
|
|
188
200
|
:organizations => [organization_one],
|
189
201
|
:locations => [location_one]
|
190
202
|
)
|
191
|
-
Subnet.expects(:subnet_for).with('10.35.27.
|
203
|
+
Subnet.expects(:subnet_for).with('10.35.27.2').returns(subnet)
|
192
204
|
ProxyAPI::TFTP.any_instance.expects(:set).with(anything, 'e4:1f:13:cc:36:58', anything).returns(true).times(3)
|
193
205
|
TemplateKind::PXE.each do |kind|
|
194
206
|
ProvisioningTemplate.where(:name => "#{kind.downcase}_discovery").first_or_create(
|
@@ -248,25 +260,19 @@ class HostDiscoveredTest < ActiveSupport::TestCase
|
|
248
260
|
assert_equal 'teste41f13cc3658', host.name
|
249
261
|
end
|
250
262
|
|
251
|
-
test "should create discovered host without prefix" do
|
252
|
-
Setting[:discovery_prefix] = ''
|
253
|
-
host = discover_host_from_facts(@facts)
|
254
|
-
assert_equal 'e41f13cc3658',host.name
|
255
|
-
end
|
256
|
-
|
257
263
|
test "should refresh facts and NICs of an existing discovered host" do
|
258
264
|
host1 = discover_host_from_facts(@facts)
|
259
265
|
assert_equal 'mace41f13cc3658', host1.name
|
260
266
|
assert_equal 'IBM System x -[7870K4G]-', host1.facts["productname"]
|
261
267
|
assert_equal 1, Host::Discovered.where(:name => 'mace41f13cc3658').count
|
262
|
-
assert_equal '10.35.27.
|
268
|
+
assert_equal '10.35.27.2', host1.ip
|
263
269
|
|
264
270
|
@facts["ipaddress_eth0"] = "1.2.3.4"
|
265
271
|
@facts["productname"] = "Dishwasher DW400"
|
266
272
|
host2 = discover_host_from_facts(@facts)
|
267
273
|
assert_equal 'mace41f13cc3658', host2.name
|
268
274
|
assert_equal 'Dishwasher DW400', host2.facts["productname"]
|
269
|
-
assert_equal '
|
275
|
+
assert_equal '10.35.27.2', host2.ip
|
270
276
|
assert_equal 1, Host::Discovered.where(:name => 'mace41f13cc3658').count
|
271
277
|
end
|
272
278
|
|
@@ -278,16 +284,6 @@ class HostDiscoveredTest < ActiveSupport::TestCase
|
|
278
284
|
assert_match(/Invalid facts: hash does not contain a valid value for any of the facts in the discovery_hostname setting:/, exception.message)
|
279
285
|
end
|
280
286
|
|
281
|
-
test "should raise when hostname cannot be computed due to normlization and no prefix" do
|
282
|
-
@facts['invalidhostnamefact'] = '...'
|
283
|
-
Setting[:discovery_hostname] = 'invalidhostnamefact'
|
284
|
-
Setting[:discovery_prefix] = ''
|
285
|
-
exception = assert_raises(::Foreman::Exception) do
|
286
|
-
discover_host_from_facts(@facts)
|
287
|
-
end
|
288
|
-
assert_match(/Invalid hostname: Could not normalize the hostname/, exception.message)
|
289
|
-
end
|
290
|
-
|
291
287
|
test 'discovered host can be searched in multiple taxonomies' do
|
292
288
|
org1 = FactoryBot.create(:organization)
|
293
289
|
org2 = FactoryBot.create(:organization)
|
@@ -438,12 +434,19 @@ class HostDiscoveredTest < ActiveSupport::TestCase
|
|
438
434
|
end
|
439
435
|
end
|
440
436
|
|
437
|
+
test "primary interface via tagged VLAN is discovered with an IP" do
|
438
|
+
raw = parse_json_fixture('rhel7-vlan')
|
439
|
+
host = discover_host_from_facts(raw)
|
440
|
+
assert_equal "192.168.1.16", host.ip
|
441
|
+
assert_equal "eno49.444", host.primary_interface.identifier
|
442
|
+
end
|
443
|
+
|
441
444
|
test "primary interface isn't touched with no LLDP facts" do
|
442
445
|
Setting[:discovery_auto_bond] = true
|
443
446
|
raw = parse_json_fixture('regular_host', true)
|
444
447
|
host = discover_host_from_facts(raw)
|
445
448
|
refute_nil host.primary_interface
|
446
|
-
assert_equal "
|
449
|
+
assert_equal "br180", host.primary_interface.identifier
|
447
450
|
end
|
448
451
|
|
449
452
|
test "provision_interface isn't touched with no peer on the same VLAN" do
|
@@ -451,7 +454,7 @@ class HostDiscoveredTest < ActiveSupport::TestCase
|
|
451
454
|
raw = parse_json_fixture('facts_with_lldp', true)
|
452
455
|
host = discover_host_from_facts(raw)
|
453
456
|
refute_nil host.primary_interface
|
454
|
-
assert_equal "
|
457
|
+
assert_equal "br180", host.primary_interface.identifier
|
455
458
|
end
|
456
459
|
|
457
460
|
test "provision_interface is switched to bond0 with more than one interface on the same VLAN" do
|
@@ -18,6 +18,7 @@ class ManagedExtensionsTest < ActiveSupport::TestCase
|
|
18
18
|
|
19
19
|
@host = StubHost.new
|
20
20
|
@host.type = "Host::Discovered"
|
21
|
+
@host.stubs(:ip).returns("192.168.1.1")
|
21
22
|
@host.stubs(:old).returns(@host)
|
22
23
|
@facts = {}
|
23
24
|
@host.stubs(:facts).returns(@facts)
|
@@ -30,6 +31,7 @@ class ManagedExtensionsTest < ActiveSupport::TestCase
|
|
30
31
|
@host.stubs(:medium).returns('http://a_medium')
|
31
32
|
@host.stubs(:architecture).returns(FactoryBot.create(:architecture))
|
32
33
|
::MediumProviders::Default.any_instance.stubs(:validate).returns([])
|
34
|
+
::ForemanDiscovery::HostConverter.stubs(:unused_ip_for_host)
|
33
35
|
end
|
34
36
|
|
35
37
|
test "queue_reboot enques reboot command when there is no kexec fact" do
|
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: 16.2.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Aditi Puntambekar
|
@@ -9,6 +9,7 @@ authors:
|
|
9
9
|
- Alon Goldboim
|
10
10
|
- amirfefer
|
11
11
|
- Amit Karsale
|
12
|
+
- Amit Upadhye
|
12
13
|
- Amos Benari
|
13
14
|
- Avi Sharvit
|
14
15
|
- Bryan Kearney
|
@@ -34,6 +35,7 @@ authors:
|
|
34
35
|
- kgaikwad
|
35
36
|
- Lars Berntzon
|
36
37
|
- ldjebran
|
38
|
+
- Leos Stejskal
|
37
39
|
- Lukas Zapletal
|
38
40
|
- Lukáš Zapletal
|
39
41
|
- Marek Hulan
|
@@ -45,6 +47,7 @@ authors:
|
|
45
47
|
- odovzhenko
|
46
48
|
- Ohad Levy
|
47
49
|
- Ondrej Prazak
|
50
|
+
- Ondřej Ezr
|
48
51
|
- Ori Rabin
|
49
52
|
- orrabin
|
50
53
|
- Partha Aji
|
@@ -68,7 +71,7 @@ authors:
|
|
68
71
|
autorequire:
|
69
72
|
bindir: bin
|
70
73
|
cert_chain: []
|
71
|
-
date:
|
74
|
+
date: 2020-09-16 00:00:00.000000000 Z
|
72
75
|
dependencies: []
|
73
76
|
description: MaaS Discovery Plugin engine for Foreman
|
74
77
|
email: gsutclif@redhat.com
|
@@ -103,6 +106,7 @@ files:
|
|
103
106
|
- app/models/setting/discovered.rb
|
104
107
|
- app/services/foreman_discovery/fact_parser.rb
|
105
108
|
- app/services/foreman_discovery/host_converter.rb
|
109
|
+
- app/services/foreman_discovery/host_fact_importer.rb
|
106
110
|
- app/services/foreman_discovery/import_hook.rb
|
107
111
|
- app/services/foreman_discovery/import_hook_service.rb
|
108
112
|
- app/services/foreman_discovery/import_hooks/discovery_attribute.rb
|
@@ -114,6 +118,7 @@ files:
|
|
114
118
|
- app/services/foreman_discovery/node_api/node_resource.rb
|
115
119
|
- app/services/foreman_discovery/node_api/power.rb
|
116
120
|
- app/services/foreman_discovery/node_api/power_service.rb
|
121
|
+
- app/services/foreman_discovery/subnet_suggestion.rb
|
117
122
|
- app/services/foreman_discovery/ui_notifications/destroy_host.rb
|
118
123
|
- app/services/foreman_discovery/ui_notifications/new_host.rb
|
119
124
|
- app/views/api/v2/discovered_hosts/base.json.rabl
|
@@ -234,17 +239,20 @@ files:
|
|
234
239
|
- locale/zh_TW/foreman_discovery.po
|
235
240
|
- test/factories/discovery_host_related.rb
|
236
241
|
- test/factories/discovery_rule_related.rb
|
242
|
+
- test/facts/bond0-eth0-eth1-active-passive.json
|
237
243
|
- test/facts/default.json
|
238
244
|
- test/facts/dell_npars.json
|
239
245
|
- test/facts/dell_vlan.json
|
240
246
|
- test/facts/facts_with_lldp.json
|
241
247
|
- test/facts/facts_with_lldp_bond_candidate.json
|
248
|
+
- test/facts/only-ipv6.json
|
242
249
|
- test/facts/pxeless-vlan.json
|
243
250
|
- test/facts/regular_host.json
|
244
251
|
- test/facts/rhel-dl380-1kdisks.json
|
245
252
|
- test/facts/rhel-r730.json
|
246
253
|
- test/facts/rhel7-vlan.json
|
247
254
|
- test/facts/simple-bond.json
|
255
|
+
- test/facts/skylake-ipv6.json
|
248
256
|
- test/facts/suse-vmware.json
|
249
257
|
- test/facts/vmware_local.json
|
250
258
|
- test/functional/api/v2/discovered_hosts_controller_test.rb
|
@@ -289,46 +297,49 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
289
297
|
- !ruby/object:Gem::Version
|
290
298
|
version: '0'
|
291
299
|
requirements: []
|
292
|
-
rubygems_version: 3.
|
300
|
+
rubygems_version: 3.1.2
|
293
301
|
signing_key:
|
294
302
|
specification_version: 4
|
295
303
|
summary: MaaS Discovery Plugin for Foreman
|
296
304
|
test_files:
|
297
|
-
- test/
|
298
|
-
- test/
|
299
|
-
- test/
|
300
|
-
- test/
|
301
|
-
- test/functional/api/v2/settings_controller_test.rb
|
302
|
-
- test/functional/api/v2/discovery_rules_controller_test.rb
|
303
|
-
- test/functional/discovery_rules_controller_test.rb
|
304
|
-
- test/integration/discovered_hosts_test.rb
|
305
|
-
- test/test_plugin_helper.rb
|
306
|
-
- test/facts/facts_with_lldp.json
|
307
|
-
- test/facts/dell_vlan.json
|
308
|
-
- test/facts/simple-bond.json
|
309
|
-
- test/facts/rhel-r730.json
|
305
|
+
- test/factories/discovery_host_related.rb
|
306
|
+
- test/factories/discovery_rule_related.rb
|
307
|
+
- test/facts/bond0-eth0-eth1-active-passive.json
|
308
|
+
- test/facts/default.json
|
310
309
|
- test/facts/dell_npars.json
|
310
|
+
- test/facts/dell_vlan.json
|
311
|
+
- test/facts/facts_with_lldp.json
|
312
|
+
- test/facts/facts_with_lldp_bond_candidate.json
|
311
313
|
- test/facts/pxeless-vlan.json
|
312
314
|
- test/facts/regular_host.json
|
313
|
-
- test/facts/facts_with_lldp_bond_candidate.json
|
314
|
-
- test/facts/rhel7-vlan.json
|
315
|
-
- test/facts/default.json
|
316
315
|
- test/facts/rhel-dl380-1kdisks.json
|
316
|
+
- test/facts/rhel-r730.json
|
317
|
+
- test/facts/rhel7-vlan.json
|
318
|
+
- test/facts/simple-bond.json
|
317
319
|
- test/facts/suse-vmware.json
|
318
320
|
- test/facts/vmware_local.json
|
321
|
+
- test/facts/only-ipv6.json
|
322
|
+
- test/facts/skylake-ipv6.json
|
323
|
+
- test/functional/api/v2/discovered_hosts_controller_test.rb
|
324
|
+
- test/functional/api/v2/discovery_rules_controller_test.rb
|
325
|
+
- test/functional/api/v2/fact_value_extensions_test.rb
|
326
|
+
- test/functional/api/v2/settings_controller_test.rb
|
327
|
+
- test/functional/discovery_rules_controller_test.rb
|
328
|
+
- test/functional/foreman_discovery/concerns/hosts_controller_extensions_test.rb
|
329
|
+
- test/functional/discovered_hosts_controller_test.rb
|
330
|
+
- test/integration/discovered_hosts_test.rb
|
331
|
+
- test/models/setting_test.rb
|
332
|
+
- test/test_helper_discovery.rb
|
333
|
+
- test/test_plugin_helper.rb
|
334
|
+
- test/unit/discovered_mailer_test.rb
|
335
|
+
- test/unit/discovery_attribute_set_test.rb
|
319
336
|
- test/unit/discovery_rule_test.rb
|
320
337
|
- test/unit/discovery_taxonomy_extensions_test.rb
|
321
|
-
- test/unit/discovered_mailer_test.rb
|
322
338
|
- test/unit/fact_parser_test.rb
|
323
|
-
- test/unit/discovered_extensions_test.rb
|
324
|
-
- test/unit/setting_discovered_test.rb
|
325
|
-
- test/unit/host_discovered_test.rb
|
326
339
|
- test/unit/lldp_neighbors_test.rb
|
340
|
+
- test/unit/setting_discovered_test.rb
|
327
341
|
- test/unit/ui_notifications/destroy_host_test.rb
|
328
342
|
- test/unit/ui_notifications/new_host_test.rb
|
329
|
-
- test/unit/
|
343
|
+
- test/unit/host_discovered_test.rb
|
344
|
+
- test/unit/discovered_extensions_test.rb
|
330
345
|
- test/unit/managed_extensions_test.rb
|
331
|
-
- test/models/setting_test.rb
|
332
|
-
- test/test_helper_discovery.rb
|
333
|
-
- test/factories/discovery_rule_related.rb
|
334
|
-
- test/factories/discovery_host_related.rb
|