github.com/iqoqo/nomad@v0.11.3-0.20200911112621-d7021c74d101/drivers/docker/fingerprint_test.go (about) 1 package docker 2 3 import ( 4 "testing" 5 6 "github.com/hashicorp/nomad/client/testutil" 7 "github.com/hashicorp/nomad/helper/testlog" 8 "github.com/hashicorp/nomad/plugins/drivers" 9 tu "github.com/hashicorp/nomad/testutil" 10 "github.com/stretchr/testify/require" 11 ) 12 13 // TestDockerDriver_FingerprintHealth asserts that docker reports healthy 14 // whenever Docker is supported. 15 // 16 // In Linux CI and AppVeyor Windows environment, it should be enabled. 17 func TestDockerDriver_FingerprintHealth(t *testing.T) { 18 if !tu.IsCI() { 19 t.Parallel() 20 } 21 testutil.DockerCompatible(t) 22 23 d := NewDockerDriver(testlog.HCLogger(t)).(*Driver) 24 25 fp := d.buildFingerprint() 26 require.Equal(t, drivers.HealthStateHealthy, fp.Health) 27 }