grim/convey
Clone
Summary
Browse
Changes
Graph
stop messing the with HOME envvar, we don't need to and add back the ${VCS}_* envvars for backwards compatibility
redux
2021-12-18, Gary Kramlich
9e5fff47264d
stop messing the with HOME envvar, we don't need to and add back the ${VCS}_* envvars for backwards compatibility
package
docker
import
(
"testing"
"github.com/stretchr/testify/assert"
"keep.imfreedom.org/grim/convey/podman"
)
func
TestLogout
(
t
*
testing
.
T
)
{
l
:=
&
Logout
{
Server
:
"docker.io"
,
}
assert
.
NoError
(
t
,
l
.
Valid
())
}
func
TestLoginRegistryRequired
(
t
*
testing
.
T
)
{
l
:=
&
Logout
{}
assert
.
ErrorIs
(
t
,
l
.
Valid
(),
podman
.
ErrNoRegistry
)
}