grim/convey

update the dependencies
redux
2021-12-18, Gary Kramlich
8d1e9a570376
update the dependencies
package podman
import (
"testing"
"github.com/stretchr/testify/assert"
)
func TestBuild(t *testing.T) {
b := &Build{
Containerfile: "Dockerfile",
Tags: []string{"foo:latest"},
}
assert.NoError(t, b.Valid())
}
func TestBuildContainerfileRequired(t *testing.T) {
b := &Build{
Tags: []string{"foo:latest"},
}
assert.ErrorIs(t, b.Valid(), ErrNoContainerfile)
}
func TestBuildTagsRequired(t *testing.T) {
b := &Build{
Containerfile: "Dockerfile",
}
assert.ErrorIs(t, b.Valid(), ErrNoTags)
}