Code

frontend/grammar: Access fields by their name rather than '.<name>'.
[sysdb.git] / t / integration / filter.sh
index b4930b4e04ddf279d4c29de555193391c5c1eedb..da75b9aa5312bbe7ae50dfe2085efcd1c8b78cbe 100755 (executable)
@@ -50,7 +50,7 @@ sleep 3
 
 output="$( run_sysdb -H "$SOCKET_FILE" \
        -c "LOOKUP hosts MATCHING ANY attribute != 'architecture' 
-               FILTER .age >= 0s" )"
+               FILTER age >= 0s" )"
 echo "$output" \
        | grep -F '"localhost"'
 echo "$output" | grep -F 'some.host.name' && exit 1
@@ -60,11 +60,11 @@ echo "$output" | grep -F 'some.host.name' && exit 1
 
 output="$( run_sysdb -H "$SOCKET_FILE" \
        -c "LOOKUP hosts MATCHING ANY attribute != 'architecture' 
-               FILTER .last_update < 2Y" )"
+               FILTER last_update < 2Y" )"
 echo $output | grep -E '^\[\]$'
 
 output="$( run_sysdb -H "$SOCKET_FILE" \
-       -c "LOOKUP hosts FILTER 'backend::mock_plugin' IN .backend" )"
+       -c "LOOKUP hosts FILTER 'backend::mock_plugin' IN backend" )"
 echo "$output" \
        | grep -F '"host1.example.com"' \
        | grep -F '"host2.example.com"' \
@@ -72,7 +72,7 @@ echo "$output" \
        | grep -F '"other.host.name"' \
        | grep -F '"some.host.name"'
 output="$( run_sysdb -H "$SOCKET_FILE" \
-       -c "LOOKUP hosts FILTER 'invalid' IN .backend" )"
+       -c "LOOKUP hosts FILTER 'invalid' IN backend" )"
 echo $output | grep -E '^\[\]$'
 
 stop_sysdbd