X-Git-Url: https://git.tokkee.org/?a=blobdiff_plain;f=t%2Fintegration%2Ffilter.sh;h=ddcf78532bbee17d85852c367b95f0155a15ab14;hb=2618c6cbc271fcc78ddde81b7f689d366ed300d1;hp=fa21dd364833f07d5c11586dedb477ea2666103e;hpb=2110c5674279be2a4fb080da2b9afdceb78b66c9;p=sysdb.git diff --git a/t/integration/filter.sh b/t/integration/filter.sh index fa21dd3..ddcf785 100755 --- a/t/integration/filter.sh +++ b/t/integration/filter.sh @@ -49,22 +49,22 @@ wait_for_sysdbd 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::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,8 +72,9 @@ 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 +# vim: set tw=78 sw=4 ts=4 noexpandtab :