grim/convey

Update convey.yml
redux
2021-10-11, Gary Kramlich
1f9aa32a4055
Update convey.yml

* re-enable the unit testing
* move everyting to the podman tasks
package podman
import (
"testing"
. "github.com/onsi/gomega"
)
func TestLogin(t *testing.T) {
g := NewGomegaWithT(t)
l := &Login{
Registry: "docker.io",
Username: "username",
Password: "password",
}
g.Expect(l.Valid()).To(BeNil())
}
func TestLoginRegistryRequired(t *testing.T) {
g := NewGomegaWithT(t)
l := &Login{
Username: "username",
Password: "password",
}
g.Expect(l.Valid()).To(MatchError(ErrNoRegistry))
}
func TestLoginUsernameRequired(t *testing.T) {
g := NewGomegaWithT(t)
l := &Login{
Registry: "docker.io",
Password: "password",
}
g.Expect(l.Valid()).To(MatchError(ErrNoUsername))
}
func TestLoginPasswordRequired(t *testing.T) {
g := NewGomegaWithT(t)
l := &Login{
Registry: "docker.io",
Username: "username",
}
g.Expect(l.Valid()).To(MatchError(ErrNoPassword))
}