Update vendoring to dep from gdm (#4314)

This commit is contained in:
Greg
2018-06-19 12:55:38 -06:00
committed by Daniel Nelson
parent d7c756e9ff
commit 1bd41ef3ce
18 changed files with 1245 additions and 121 deletions

View File

@@ -49,7 +49,7 @@ func TestMysqlGetDSNTag(t *testing.T) {
},
{
"tcp(localhost)/",
"localhost",
"localhost:3306",
},
{
"root:passwd@tcp(192.168.1.1:3306)/?tls=false",

View File

@@ -32,7 +32,7 @@ import (
"log"
"github.com/apache/thrift/lib/go/thrift"
"github.com/openzipkin/zipkin-go-opentracing/_thrift/gen-go/zipkincore"
"github.com/openzipkin/zipkin-go-opentracing/thrift/gen-go/zipkincore"
)
var (

View File

@@ -4,7 +4,7 @@ import (
"time"
"github.com/influxdata/telegraf/plugins/inputs/zipkin/trace"
"github.com/openzipkin/zipkin-go-opentracing/_thrift/gen-go/zipkincore"
"github.com/openzipkin/zipkin-go-opentracing/thrift/gen-go/zipkincore"
)
//now is a mockable time for now

View File

@@ -7,7 +7,7 @@ import (
"time"
"github.com/influxdata/telegraf/plugins/inputs/zipkin/codec"
"github.com/openzipkin/zipkin-go-opentracing/_thrift/gen-go/zipkincore"
"github.com/openzipkin/zipkin-go-opentracing/thrift/gen-go/zipkincore"
)
// JSON decodes spans from bodies `POST`ed to the spans endpoint

View File

@@ -10,7 +10,7 @@ import (
"github.com/influxdata/telegraf/plugins/inputs/zipkin/codec"
"github.com/apache/thrift/lib/go/thrift"
"github.com/openzipkin/zipkin-go-opentracing/_thrift/gen-go/zipkincore"
"github.com/openzipkin/zipkin-go-opentracing/thrift/gen-go/zipkincore"
)
// UnmarshalThrift converts raw bytes in thrift format to a slice of spans

View File

@@ -6,7 +6,7 @@ import (
"github.com/google/go-cmp/cmp"
"github.com/openzipkin/zipkin-go-opentracing/_thrift/gen-go/zipkincore"
"github.com/openzipkin/zipkin-go-opentracing/thrift/gen-go/zipkincore"
)
func Test_endpointHost(t *testing.T) {

View File

@@ -59,7 +59,7 @@ func TestPartitionKey(t *testing.T) {
partitionKey := k.getPartitionKey(testPoint)
u, err := uuid.FromString(partitionKey)
assert.Nil(err, "Issue parsing UUID")
assert.Equal(uint(4), u.Version(), "PartitionKey should be UUIDv4")
assert.Equal(byte(4), u.Version(), "PartitionKey should be UUIDv4")
k = KinesisOutput{
PartitionKey: "-",
@@ -72,6 +72,5 @@ func TestPartitionKey(t *testing.T) {
partitionKey = k.getPartitionKey(testPoint)
u, err = uuid.FromString(partitionKey)
assert.Nil(err, "Issue parsing UUID")
assert.Equal(uint(4), u.Version(), "PartitionKey should be UUIDv4")
assert.Equal(byte(4), u.Version(), "PartitionKey should be UUIDv4")
}

View File

@@ -184,7 +184,7 @@ func (m *MQTT) publish(topic string, body []byte) error {
func (m *MQTT) createOpts() (*paho.ClientOptions, error) {
opts := paho.NewClientOptions()
opts.KeepAlive = 0 * time.Second
opts.KeepAlive = 0
if m.Timeout.Duration < time.Second {
m.Timeout.Duration = 5 * time.Second