grim/convey

a13a27a3ff4a
Attempt to load convey.yaml if convey.yml cound not be found
package docker
import (
"testing"
. "github.com/onsi/gomega"
"keep.imfreedom.org/grim/convey/podman"
)
func TestLogout(t *testing.T) {
g := NewGomegaWithT(t)
l := &Logout{
Server: "docker.io",
}
g.Expect(l.Valid()).To(BeNil())
}
func TestLoginRegistryRequired(t *testing.T) {
g := NewGomegaWithT(t)
l := &Logout{}
g.Expect(l.Valid()).To(MatchError(podman.ErrNoRegistry))
}