mirror of
https://github.com/moby/moby.git
synced 2022-11-09 12:21:53 -05:00
9f0b3f5609
full diff: https://github.com/gotestyourself/gotest.tools/compare/v2.3.0...v3.0.1 Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
23 lines
612 B
Go
23 lines
612 B
Go
package system // import "github.com/docker/docker/integration/system"
|
|
|
|
import (
|
|
"context"
|
|
"testing"
|
|
|
|
"gotest.tools/v3/assert"
|
|
is "gotest.tools/v3/assert/cmp"
|
|
)
|
|
|
|
func TestVersion(t *testing.T) {
|
|
defer setupTest(t)()
|
|
client := testEnv.APIClient()
|
|
|
|
version, err := client.ServerVersion(context.Background())
|
|
assert.NilError(t, err)
|
|
|
|
assert.Check(t, version.APIVersion != "")
|
|
assert.Check(t, version.Version != "")
|
|
assert.Check(t, version.MinAPIVersion != "")
|
|
assert.Check(t, is.Equal(testEnv.DaemonInfo.ExperimentalBuild, version.Experimental))
|
|
assert.Check(t, is.Equal(testEnv.OSType, version.Os))
|
|
}
|