Make search in host_filter case insensitive.

This commit is contained in:
Yunfan Zhang
2018-06-13 11:12:00 -04:00
parent ee00c628af
commit f332c0b8c3
3 changed files with 10 additions and 7 deletions

View File

@@ -47,3 +47,6 @@ def test_q1(inventory_structure, get, user):
query = '(name="host1" and groups__name="g1") or (name="host3" and groups__name="g2")'
evaluate_query(query, [hosts[0], hosts[2]])
# The following test verifies if the search in host_filter is case insensitive.
query = 'search="HOST1"'
evaluate_query(query, [hosts[0]])