grim/convey
Clone
Summary
Browse
Changes
Graph
remove the helper function for running plans
2021-12-23, Gary Kramlich
eff7fbacd5ee
remove the helper function for running plans
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
)
}