From: Sebastian Harl Date: Wed, 25 Feb 2015 09:42:36 +0000 (+0100) Subject: integration/query.sh: Test FETCH with FILTER. X-Git-Tag: sysdb-0.8.0~164 X-Git-Url: https://git.tokkee.org/?p=sysdb.git;a=commitdiff_plain;h=c51faedff43c34207645ae6c45f7355e35160e1d integration/query.sh: Test FETCH with FILTER. --- 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