Code

frontend/grammar: Changed '<obj> <cmp> <expr>' to 'ANY <obj> <cmp> <expr>'.
[sysdb.git] / t / integration / matching.sh
index 67b97210058a5e44247f67a873794c5e364ffe42..751b22ba9c00f58325bc2956bd5180278fb2eb13 100755 (executable)
@@ -49,7 +49,7 @@ wait_for_sysdbd
 sleep 3
 
 output="$( run_sysdb -H "$SOCKET_FILE" \
-       -c "LOOKUP hosts MATCHING metric = 'foo/bar/qux'" )"
+       -c "LOOKUP hosts MATCHING ANY metric = 'foo/bar/qux'" )"
 echo "$output" \
        | grep -F '"some.host.name"' \
        | grep -F '"other.host.name"'
@@ -58,7 +58,7 @@ echo "$output" | grep -F 'host1.example.com' && exit 1
 echo "$output" | grep -F 'host2.example.com' && exit 1
 
 output="$( run_sysdb -H "$SOCKET_FILE" \
-       -c "LOOKUP hosts MATCHING service = 'mock service'" )"
+       -c "LOOKUP hosts MATCHING ANY service = 'mock service'" )"
 echo "$output" \
        | grep -F '"some.host.name"' \
        | grep -F '"host1.example.com"' \
@@ -76,7 +76,7 @@ echo "$output" | grep -F 'other.host.name' && exit 1
 echo "$output" | grep -F 'some.host.name' && exit 1
 
 output="$( run_sysdb -H "$SOCKET_FILE" \
-       -c "LOOKUP hosts MATCHING attribute != 'architecture'" )"
+       -c "LOOKUP hosts MATCHING ANY attribute != 'architecture'" )"
 echo "$output" \
        | grep -F '"some.host.name"' \
        | grep -F '"localhost"'
@@ -85,7 +85,7 @@ echo "$output" | grep -F 'host1.example.com' && exit 1
 echo "$output" | grep -F 'host2.example.com' && exit 1
 
 output="$( run_sysdb -H "$SOCKET_FILE" \
-       -c "LOOKUP hosts MATCHING service = 'sysdbd'" )"
+       -c "LOOKUP hosts MATCHING ANY service = 'sysdbd'" )"
 echo "$output" | grep -F '"localhost"'
 echo "$output" | grep -F 'some.host.name' && exit 1
 echo "$output" | grep -F 'other.host.name' && exit 1