github.com/someshkoli/terratest@v0.41.1/modules/docker/run_test.go (about) 1 package docker 2 3 import ( 4 "testing" 5 6 "github.com/stretchr/testify/require" 7 ) 8 9 func TestRun(t *testing.T) { 10 t.Parallel() 11 12 options := &RunOptions{ 13 Command: []string{"-c", `echo "Hello, $NAME!"`}, 14 Entrypoint: "sh", 15 EnvironmentVariables: []string{"NAME=World"}, 16 Remove: true, 17 } 18 19 out := Run(t, "alpine:3.7", options) 20 require.Contains(t, out, "Hello, World!") 21 }