From 60149cf7b524d44f943da4e60aabffe179ee4eb2 Mon Sep 17 00:00:00 2001 From: Philip O'Toole Date: Tue, 31 Mar 2015 11:56:00 -0700 Subject: [PATCH] Unit test EQ and NEQ tag query --- cmd/influxd/server_integration_test.go | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/cmd/influxd/server_integration_test.go b/cmd/influxd/server_integration_test.go index b9c0ff1be9..39be443a2d 100644 --- a/cmd/influxd/server_integration_test.go +++ b/cmd/influxd/server_integration_test.go @@ -603,6 +603,11 @@ func runTestsData(t *testing.T, testName string, nodes Cluster, database, retent query: `SELECT value FROM "%DB%"."%RP%".cpu WHERE host = 'server01' AND region = 'us-west'`, expected: `{"results":[{"series":[{"name":"cpu","columns":["time","value"],"values":[["2015-02-28T01:03:36.703820946Z",100]]}]}]}`, }, + { + name: "WHERE tags SELECT single field (1 EQ and 1 NEQ tag)", + query: `SELECT value FROM "%DB%"."%RP%".cpu WHERE host = 'server01' AND region != 'us-west'`, + expected: `{"results":[{}]}`, + }, { name: "WHERE tags SELECT single field (EQ tag value2)", query: `SELECT value FROM "%DB%"."%RP%".cpu WHERE host = 'server02'`,