index 025cd57911f81b1cc1c1310bba92fbfda2698d79..ddcf78532bbee17d85852c367b95f0155a15ab14 100755 (executable)
--- a/t/integration/filter.sh
+++ b/t/integration/filter.sh
sleep 3
output="$( run_sysdb -H "$SOCKET_FILE" \
- -c "LOOKUP hosts MATCHING attribute != 'architecture'
- FILTER .age >= 0s" )"
+ -c "LOOKUP hosts MATCHING ANY attribute != 'architecture'
+ FILTER age >= 0s" )"
echo "$output" \
- | grep -F '"some.host.name"' \
| grep -F '"localhost"'
-echo "$output" | grep -F 'other.host.name' && exit 1
-echo "$output" | grep -F 'host1.example.com' && exit 1
-echo "$output" | grep -F 'host2.example.com' && exit 1
+echo "$output" | grep -F 'some.host.name' && exit 1
+#echo "$output" | grep -F 'other.host.name' && exit 1
+#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 attribute != 'architecture'
- FILTER .last_update < 2Y" )"
+ -c "LOOKUP hosts MATCHING ANY attribute != 'architecture'
+ FILTER last_update < 2Y" )"
echo $output | grep -E '^\[\]$'
output="$( run_sysdb -H "$SOCKET_FILE" \
- -c "LOOKUP hosts FILTER .backend = 'backend::mock_plugin'" )"
+ -c "LOOKUP hosts FILTER 'backend::mock_plugin' IN backend" )"
echo "$output" \
| grep -F '"host1.example.com"' \
| grep -F '"host2.example.com"' \
| grep -F '"other.host.name"' \
| grep -F '"some.host.name"'
output="$( run_sysdb -H "$SOCKET_FILE" \
- -c "LOOKUP hosts FILTER .backend = 'invalid'" )"
+ -c "LOOKUP hosts FILTER 'invalid' IN backend" )"
echo $output | grep -E '^\[\]$'
stop_sysdbd
+# vim: set tw=78 sw=4 ts=4 noexpandtab :