2018-08-18 00:05:21 +00:00
|
|
|
package daemon // import "github.com/docker/docker/daemon"
|
|
|
|
|
|
|
|
import (
|
|
|
|
"testing"
|
|
|
|
|
|
|
|
"github.com/docker/docker/api/types"
|
|
|
|
"github.com/docker/docker/dockerversion"
|
2020-02-07 13:39:24 +00:00
|
|
|
"gotest.tools/v3/assert"
|
2018-08-18 00:05:21 +00:00
|
|
|
)
|
|
|
|
|
2018-12-09 00:51:37 +00:00
|
|
|
func TestFillLicense(t *testing.T) {
|
2018-08-18 00:05:21 +00:00
|
|
|
v := &types.Info{}
|
|
|
|
d := &Daemon{
|
|
|
|
root: "/var/lib/docker/",
|
|
|
|
}
|
|
|
|
d.fillLicense(v)
|
|
|
|
assert.Assert(t, v.ProductLicense == dockerversion.DefaultProductLicense)
|
|
|
|
}
|