github.com/rumpl/bof@v23.0.0-rc.2+incompatible/integration/system/version_test.go (about) 1 package system // import "github.com/docker/docker/integration/system" 2 3 import ( 4 "context" 5 "testing" 6 7 "gotest.tools/v3/assert" 8 is "gotest.tools/v3/assert/cmp" 9 ) 10 11 func TestVersion(t *testing.T) { 12 defer setupTest(t)() 13 client := testEnv.APIClient() 14 15 version, err := client.ServerVersion(context.Background()) 16 assert.NilError(t, err) 17 18 assert.Check(t, version.APIVersion != "") 19 assert.Check(t, version.Version != "") 20 assert.Check(t, version.MinAPIVersion != "") 21 assert.Check(t, is.Equal(testEnv.DaemonInfo.ExperimentalBuild, version.Experimental)) 22 assert.Check(t, is.Equal(testEnv.OSType, version.Os)) 23 }