X-Git-Url: https://git.tokkee.org/?a=blobdiff_plain;f=t%2Fintegration%2Ffilter.sh;h=9738fa6d59749a2b390256b26ceb1217058c98c1;hb=24dce6d59414125f1f0fbe8434f5ed9f280d6872;hp=9c9fb0cf17de6c5b08d60010abac317bd04b12e0;hpb=dcae4c1b3d8a756ad894c15f36bce985bc09a2aa;p=sysdb.git diff --git a/t/integration/filter.sh b/t/integration/filter.sh index 9c9fb0c..9738fa6 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 ANY attribute != 'architecture' - FILTER .age >= 0s" )" + -c "LOOKUP hosts MATCHING ANY attribute.name != '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 ANY attribute != 'architecture' - FILTER .last_update < 2Y" )" + -c "LOOKUP hosts MATCHING ANY attribute.name != '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 :