2025-01-10 19:17:20 +00:00
|
|
|
package test
|
|
|
|
|
|
|
|
|
|
import (
|
|
|
|
|
"testing"
|
|
|
|
|
|
2025-05-03 01:16:53 +00:00
|
|
|
"github.com/gruntwork-io/terratest/modules/docker"
|
2025-01-10 19:17:20 +00:00
|
|
|
"github.com/stretchr/testify/assert"
|
|
|
|
|
)
|
|
|
|
|
|
2025-05-03 01:16:53 +00:00
|
|
|
func TestBuildImage(t *testing.T) {
|
|
|
|
|
if testing.Short() {
|
|
|
|
|
t.SkipNow()
|
|
|
|
|
}
|
2025-05-03 11:29:10 +00:00
|
|
|
buildImage(t, t.Context())
|
2025-05-03 01:16:53 +00:00
|
|
|
|
|
|
|
|
exists := docker.DoesImageExist(t, imageTag, nil)
|
|
|
|
|
assert.True(t, exists)
|
|
|
|
|
}
|