Code

query language: Change iterator syntax to ANY/ALL <iter>.<field> <op> <v>.
[sysdb.git] / t / integration / filter.sh
index ddcf78532bbee17d85852c367b95f0155a15ab14..9738fa6d59749a2b390256b26ceb1217058c98c1 100755 (executable)
@@ -49,7 +49,7 @@ wait_for_sysdbd
 sleep 3
 
 output="$( run_sysdb -H "$SOCKET_FILE" \
-       -c "LOOKUP hosts MATCHING ANY attribute != 'architecture' 
+       -c "LOOKUP hosts MATCHING ANY attribute.name != 'architecture'
                FILTER age >= 0s" )"
 echo "$output" \
        | grep -F '"localhost"'
@@ -59,7 +59,7 @@ echo "$output" | grep -F 'some.host.name' && exit 1
 #echo "$output" | grep -F 'host2.example.com' && exit 1
 
 output="$( run_sysdb -H "$SOCKET_FILE" \
-       -c "LOOKUP hosts MATCHING ANY attribute != 'architecture' 
+       -c "LOOKUP hosts MATCHING ANY attribute.name != 'architecture'
                FILTER last_update < 2Y" )"
 echo $output | grep -E '^\[\]$'