grim/convey
Clone
Summary
Browse
Changes
Graph
Dump govcs in here for now until i can sort out this out
redux
2021-10-18, Gary Kramlich
c1a95d79fcc5
Dump govcs in here for now until i can sort out this out
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
))
}