Revision e0910b7e
Added by Michael Moll almost 6 years ago
test/unit/puppet_fact_parser_test.rb | ||
---|---|---|
test "should return list of interfaces" do
|
||
assert importer.interfaces.present?
|
||
assert_not_nil importer.suggested_primary_interface(FactoryBot.build(:host))
|
||
assert importer.interfaces.keys.include?(importer.suggested_primary_interface(FactoryBot.build(:host)).first)
|
||
assert importer.interfaces.key?(importer.suggested_primary_interface(FactoryBot.build(:host)).first)
|
||
end
|
||
|
||
test "should parse virtual interfaces as vlan interfaces" do
|
Also available in: Unified diff
Fixes #23857 - Fix Performance/InefficientHashSearch cop