Revision 8658fa37
Added by Imri Zvik over 8 years ago
test/unit/host_test.rb | ||
---|---|---|
assert_equal hosts.count, 1
|
||
assert_equal ["num001.example.com"], hosts.map { |h| h.name }.sort
|
||
|
||
hosts = Host::Managed.search_for("facts.memory_mb ~ 64498")
|
||
assert_equal hosts.count, 1
|
||
assert_equal ["num001.example.com"], hosts.map { |h| h.name }.sort
|
||
|
||
hosts = Host::Managed.search_for("facts.custom_fact = find_me")
|
||
assert_equal hosts.count, 1
|
||
assert_equal ["num001.example.com"], hosts.map { |h| h.name }.sort
|
Also available in: Unified diff
Fixes #11282 - Search on numeric facts is broken if using "~"