2018-08-18 00:05:21 +00:00
|
|
|
package daemon // import "github.com/docker/docker/daemon"
|
|
|
|
|
|
|
|
import (
|
|
|
|
"testing"
|
|
|
|
|
2023-07-03 11:14:14 +00:00
|
|
|
"github.com/docker/docker/api/types/system"
|
2018-08-18 00:05:21 +00:00
|
|
|
"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) {
|
2023-07-03 11:14:14 +00:00
|
|
|
v := &system.Info{}
|
2018-08-18 00:05:21 +00:00
|
|
|
d := &Daemon{
|
|
|
|
root: "/var/lib/docker/",
|
|
|
|
}
|
|
|
|
d.fillLicense(v)
|
|
|
|
assert.Assert(t, v.ProductLicense == dockerversion.DefaultProductLicense)
|
|
|
|
}
|