Project

General

Profile

« Previous | Next » 

Revision 44dac2f9

Added by Marek Hulán over 8 years ago

Fixes #10805 - match vlans attached to bonds correctly

View differences:

test/unit/fact_parser_test.rb
@parser = get_parser
end
test "bond regexp matches only bonds" do
assert_match FactParser::BONDS, 'bond0'
assert_match FactParser::BONDS, 'lagg0'
refute_match FactParser::BONDS, 'bond0.0'
refute_match FactParser::BONDS, 'bond0:0'
end
test "default parsers" do
assert_includes FactParser.parsers.keys, 'puppet'
assert_equal PuppetFactParser, FactParser.parser_for(:puppet)

Also available in: Unified diff