Add tag based routing in influxdb/influxdb_v2 outputs (#5490)

This commit is contained in:
Daniel Nelson
2019-02-27 10:54:02 -08:00
committed by GitHub
parent 1872356103
commit 65b76dc746
11 changed files with 273 additions and 208 deletions

View File

@@ -1,7 +1,6 @@
package influxdb_v2
import (
"io"
"net/url"
"testing"
@@ -46,14 +45,3 @@ func TestMakeWriteURL(t *testing.T) {
}
}
}
func TestMakeWriteRequest(t *testing.T) {
reader, _ := io.Pipe()
cli := httpClient{
WriteURL: "http://localhost:9999/v2/write?bucket=telegraf&org=influx",
ContentEncoding: "gzip",
Headers: map[string]string{"x": "y"},
}
_, err := cli.makeWriteRequest(reader)
require.NoError(t, err)
}