grim/convey

3351eae5b1d5
Move stages.Stage to the runtime package
package podman
import (
"testing"
"github.com/stretchr/testify/assert"
"keep.imfreedom.org/grim/convey/yaml"
)
func TestPullString(t *testing.T) {
p := &Pull{
Tags: yaml.StringOrSlice{"foo"},
}
assert.NoError(t, p.Valid())
}
func TestPullSlice(t *testing.T) {
p := &Pull{
Tags: []string{"foo", "bar"},
}
assert.NoError(t, p.Valid())
}
func TestPullTagsRequired(t *testing.T) {
p := &Push{}
assert.ErrorIs(t, p.Valid(), ErrNoTags)
}