licensing_test.go 396 B

123456789101112131415161718
  1. package daemon // import "github.com/docker/docker/daemon"
  2. import (
  3. "testing"
  4. "github.com/docker/docker/api/types/system"
  5. "github.com/docker/docker/dockerversion"
  6. "gotest.tools/v3/assert"
  7. )
  8. func TestFillLicense(t *testing.T) {
  9. v := &system.Info{}
  10. d := &Daemon{
  11. root: "/var/lib/docker/",
  12. }
  13. d.fillLicense(v)
  14. assert.Assert(t, v.ProductLicense == dockerversion.DefaultProductLicense)
  15. }