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
docker
import
(
"testing"
.
"github.com/onsi/gomega"
"keep.imfreedom.org/grim/convey/podman"
)
func
TestRun
(
t
*
testing
.
T
)
{
g
:=
NewGomegaWithT
(
t
)
r
:=
&
Run
{
Image
:
"image"
,
}
g
.
Expect
(
r
.
Valid
()).
To
(
BeNil
())
}
func
TestRunImageRequired
(
t
*
testing
.
T
)
{
g
:=
NewGomegaWithT
(
t
)
r
:=
&
Run
{}
g
.
Expect
(
r
.
Valid
()).
To
(
MatchError
(
podman
.
ErrNoImage
))
}