From c51faedff43c34207645ae6c45f7355e35160e1d Mon Sep 17 00:00:00 2001 From: Sebastian Harl Date: Wed, 25 Feb 2015 10:42:36 +0100 Subject: [PATCH] integration/query.sh: Test FETCH with FILTER. --- t/integration/query.sh | 4 ++++ 1 file changed, 4 insertions(+) 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 -- 2.30.2