grim/convey
Clone
Summary
Browse
Changes
Graph
Use the logger for info/warning messages at startup
redux
2021-10-11, Gary Kramlich
466f881e1593
Use the logger for info/warning messages at startup
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
))
}