|
@@ -11,8 +11,8 @@ import (
|
|
"time"
|
|
"time"
|
|
|
|
|
|
"github.com/docker/docker/daemon/logger"
|
|
"github.com/docker/docker/daemon/logger"
|
|
- "gotest.tools/assert"
|
|
|
|
- "gotest.tools/env"
|
|
|
|
|
|
+ "gotest.tools/v3/assert"
|
|
|
|
+ "gotest.tools/v3/env"
|
|
)
|
|
)
|
|
|
|
|
|
// Validate options
|
|
// Validate options
|
|
@@ -30,10 +30,10 @@ func TestValidateLogOpt(t *testing.T) {
|
|
splunkVerifyConnectionKey: "true",
|
|
splunkVerifyConnectionKey: "true",
|
|
splunkGzipCompressionKey: "true",
|
|
splunkGzipCompressionKey: "true",
|
|
splunkGzipCompressionLevelKey: "1",
|
|
splunkGzipCompressionLevelKey: "1",
|
|
- envKey: "a",
|
|
|
|
- envRegexKey: "^foo",
|
|
|
|
- labelsKey: "b",
|
|
|
|
- tagKey: "c",
|
|
|
|
|
|
+ envKey: "a",
|
|
|
|
+ envRegexKey: "^foo",
|
|
|
|
+ labelsKey: "b",
|
|
|
|
+ tagKey: "c",
|
|
})
|
|
})
|
|
if err != nil {
|
|
if err != nil {
|
|
t.Fatal(err)
|
|
t.Fatal(err)
|
|
@@ -251,9 +251,9 @@ func TestInlineFormatWithNonDefaultOptions(t *testing.T) {
|
|
splunkIndexKey: "myindex",
|
|
splunkIndexKey: "myindex",
|
|
splunkFormatKey: splunkFormatInline,
|
|
splunkFormatKey: splunkFormatInline,
|
|
splunkGzipCompressionKey: "true",
|
|
splunkGzipCompressionKey: "true",
|
|
- tagKey: "{{.ImageName}}/{{.Name}}",
|
|
|
|
- labelsKey: "a",
|
|
|
|
- envRegexKey: "^foo",
|
|
|
|
|
|
+ tagKey: "{{.ImageName}}/{{.Name}}",
|
|
|
|
+ labelsKey: "a",
|
|
|
|
+ envRegexKey: "^foo",
|
|
},
|
|
},
|
|
ContainerID: "containeriid",
|
|
ContainerID: "containeriid",
|
|
ContainerName: "/container_name",
|
|
ContainerName: "/container_name",
|