X-Git-Url: https://git.tokkee.org/?p=sysdb.git;a=blobdiff_plain;f=t%2Fintegration%2Fquery.sh;fp=t%2Fintegration%2Fquery.sh;h=72a0b88426adae7496deee4c9b4d8f6d7e845c02;hp=c9b21b6063d001ae29bd92d302259dc41671c043;hb=c51faedff43c34207645ae6c45f7355e35160e1d;hpb=20155f4dc6bbb49695ded1d12041d044d48be6f3 diff --git a/t/integration/query.sh b/t/integration/query.sh index c9b21b6..72a0b88 100755 --- a/t/integration/query.sh +++ b/t/integration/query.sh @@ -125,6 +125,10 @@ echo "$output" | grep -F 'not found' (echo 'LIST hosts;'; sleep 1; echo "FETCH host 'host1.example.com'") \ | run_sysdb -H "$SOCKET_FILE" +output="$( run_sysdb -H "$SOCKET_FILE" \ + -c "FETCH host 'host1.example.com' FILTER age < 0" 2>&1 )" && exit 1 +echo "$output" | grep -F 'not found' + # When requesting information for unknown hosts, expect a non-zero exit code. output="$( run_sysdb -H "$SOCKET_FILE" \ -c "FETCH host 'does.not.exist'" 2>&1 )" && exit 1