grim/convey

Fix the order of some attributes
redux
2021-10-16, Gary Kramlich
9d3b752261c4
Fix the order of some attributes
package podman
import (
"testing"
. "github.com/onsi/gomega"
"keep.imfreedom.org/grim/convey/yaml"
)
func TestPushString(t *testing.T) {
g := NewGomegaWithT(t)
p := &Push{
Tags: yaml.StringOrSlice{"foo"},
}
g.Expect(p.Valid()).To(BeNil())
}
func TestPushSlice(t *testing.T) {
g := NewGomegaWithT(t)
p := &Push{
Tags: []string{"foo", "bar"},
}
g.Expect(p.Valid()).To(BeNil())
}
func TestPushTagsRequired(t *testing.T) {
g := NewGomegaWithT(t)
p := &Push{}
g.Expect(p.Valid()).To(MatchError(ErrNoTags))
}