Revision 44dac2f9
Added by Marek Hulán over 8 years ago
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
Fixes #10805 - match vlans attached to bonds correctly