diff --git a/t/integration/query.sh b/t/integration/query.sh
index eb4ccd8814771f058f6a9a357f1b669f5803b5e5..b2e6ed82a644074cb3745b58b3d45e388a471313 100755 (executable)
--- a/t/integration/query.sh
+++ b/t/integration/query.sh
-c "TIMESERIES 'invalid.host'.'invalid-metric'" && exit 1
# Does not work yet since there is no fetcher plugin.
-run_sysdb -H "$SOCKET_FILE" \
- -c "TIMESERIES 'some.host.name'.'foo/bar/qux'" && exit 1
+output="$( run_sysdb -H "$SOCKET_FILE" \
+ -c "TIMESERIES 'some.host.name'.'foo/bar/qux'" )"
+echo "$output" \
+ | grep -F '"value": "1.000000"' \
+ | grep -F '"value": "2.000000"' \
+ | grep -F '"value": "3.000000"' \
+ | grep -F '"value": "4.000000"' \
+ | grep -F '"value": "5.000000"' \
+ | grep -F '"value": "6.000000"' \
+ | grep -F '"value": "7.000000"' \
+ | grep -F '"value": "8.000000"' \
+ | grep -F '"value": "9.000000"' \
+ | grep -F '"value": "10.000000"'
stop_sysdbd
+# vim: set tw=78 sw=4 ts=4 noexpandtab :