Add tag based routing in influxdb/influxdb_v2 outputs (#5490)
This commit is contained in:
@@ -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)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user