2018-02-05 16:05:59 -05:00
|
|
|
package daemon // import "github.com/docker/docker/daemon"
|
2016-07-12 15:05:44 -04:00
|
|
|
|
|
|
|
import (
|
|
|
|
"testing"
|
|
|
|
|
2016-09-06 14:18:12 -04:00
|
|
|
containertypes "github.com/docker/docker/api/types/container"
|
2016-07-12 15:05:44 -04:00
|
|
|
)
|
|
|
|
|
|
|
|
func TestMergeAndVerifyLogConfigNilConfig(t *testing.T) {
|
|
|
|
d := &Daemon{defaultLogConfig: containertypes.LogConfig{Type: "json-file", Config: map[string]string{"max-file": "1"}}}
|
|
|
|
cfg := containertypes.LogConfig{Type: d.defaultLogConfig.Type}
|
|
|
|
if err := d.mergeAndVerifyLogConfig(&cfg); err != nil {
|
|
|
|
t.Fatal(err)
|
|
|
|
}
|
|
|
|
}
|