X-Git-Url: https://git.tokkee.org/?p=sysdb.git;a=blobdiff_plain;f=t%2Fintegration%2Fquery_timeseries.sh;h=31454b4d71c648a0f817027569d06462def92ae1;hp=f6d09cb4648e12dfb3bc2ce6946de3b985f0ad60;hb=55f6919736b7574b8fb905eced926d8c003411c6;hpb=1f99d1a0d8a7e923dede7c938340c26061b8398b diff --git a/t/integration/query_timeseries.sh b/t/integration/query_timeseries.sh index f6d09cb..31454b4 100755 --- a/t/integration/query_timeseries.sh +++ b/t/integration/query_timeseries.sh @@ -68,6 +68,11 @@ wait_for_sysdbd "${SOCKET_FILE}.sender" # wait for initial data sleep 3 +# Check data-source names. +output="$( run_sysdb -H "$SOCKET_FILE" \ + -c "FETCH metric 'some.host.name'.'foo/bar/qux'" )" +echo "$output" | grep -F '"data_names": ["nameA", "nameB"]' + # TIMESERIES commands. run_sysdb -H "$SOCKET_FILE" \ -c "TIMESERIES 'invalid.host'.'invalid-metric'" && exit 1