gopkg.in/docker/docker.v20@v20.10.27/daemon/licensing_test.go (about)

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