grim/convey

Add the convey version to the environment
redux
2021-10-11, Gary Kramlich
82d28cf8e74d
Add the convey version to the environment
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))
}