grim/convey
Clone
Summary
Browse
Changes
Graph
Add documentation for the podman tasks
redux
2021-10-16, Gary Kramlich
fd65c6d6f2ab
Add documentation for the podman tasks
package
podman
import
(
"testing"
.
"github.com/onsi/gomega"
)
func
TestLogout
(
t
*
testing
.
T
)
{
g
:=
NewGomegaWithT
(
t
)
l
:=
&
Logout
{
Registry
:
"docker.io"
,
}
g
.
Expect
(
l
.
Valid
()).
To
(
BeNil
())
}
func
TestLogoutRegistryRequired
(
t
*
testing
.
T
)
{
g
:=
NewGomegaWithT
(
t
)
l
:=
&
Logout
{}
g
.
Expect
(
l
.
Valid
()).
To
(
MatchError
(
ErrNoRegistry
))
}