grim/convey

2cf80db56edb
Move the configurations environment into the runtime
package podman
import (
"testing"
"github.com/stretchr/testify/assert"
)
func TestLogout(t *testing.T) {
l := &Logout{
Registry: "docker.io",
}
assert.NoError(t, l.Valid())
}
func TestLogoutRegistryRequired(t *testing.T) {
l := &Logout{}
assert.ErrorIs(t, l.Valid(), ErrNoRegistry)
}