grim/convey

466f881e1593
Use the logger for info/warning messages at startup
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))
}