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"
)
func TestBuild(t *testing.T) {
g := NewGomegaWithT(t)
b := &Build{
Containerfile: "Dockerfile",
Tags: []string{"foo:latest"},
}
g.Expect(b.Valid()).To(BeNil())
}
func TestBuildContainerfileRequired(t *testing.T) {
g := NewGomegaWithT(t)
b := &Build{
Tags: []string{"foo:latest"},
}
g.Expect(b.Valid()).To(MatchError(ErrNoContainerfile))
}
func TestBuildTagsRequired(t *testing.T) {
g := NewGomegaWithT(t)
b := &Build{
Containerfile: "Dockerfile",
}
g.Expect(b.Valid()).To(MatchError(ErrNoTags))
}