Code

query language: Change iterator syntax to ANY/ALL <iter>.<field> <op> <v>.
[sysdb.git] / t / integration / matching.sh
index 34e7c549b9005a067bb9f643981e749089614f03..95dea02147d903f21c3ecc07afc3802aba9f94ec 100755 (executable)
@@ -49,7 +49,7 @@ wait_for_sysdbd
 sleep 3
 
 output="$( run_sysdb -H "$SOCKET_FILE" \
-       -c "LOOKUP hosts MATCHING ANY metric = 'foo/bar/qux'" )"
+       -c "LOOKUP hosts MATCHING ANY metric.name = '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 ANY service = 'mock service'" )"
+       -c "LOOKUP hosts MATCHING ANY service.name = '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 ANY attribute != 'architecture'" )"
+       -c "LOOKUP hosts MATCHING ANY attribute.name != 'architecture'" )"
 echo "$output" \
        | grep -F '"localhost"' \
        | grep -F '"other.host.name"' \
@@ -85,7 +85,7 @@ echo "$output" \
 echo "$output" | grep -F 'some.host.name' && exit 1
 
 output="$( run_sysdb -H "$SOCKET_FILE" \
-       -c "LOOKUP hosts MATCHING ALL attribute != 'architecture'" )"
+       -c "LOOKUP hosts MATCHING ALL attribute.name != 'architecture'" )"
 echo "$output" \
        | grep -F '"some.host.name"' \
        | grep -F '"localhost"'
@@ -94,7 +94,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 ANY service = 'sysdbd'" )"
+       -c "LOOKUP hosts MATCHING ANY service.name = 'sysdbd'" )"
 echo "$output" | grep -F '"localhost"'
 echo "$output" | grep -F 'some.host.name' && exit 1
 echo "$output" | grep -F 'other.host.name' && exit 1