grim/convey
Clone
Summary
Browse
Changes
Graph
update convey/clean to use the Runtime.ConfigPath instead of the working directory.
redux
2021-10-16, Gary Kramlich
a07b353c07e7
update convey/clean to use the Runtime.ConfigPath instead of the working directory.
Fixes CONVEY-189
package
podman
import
(
"testing"
.
"github.com/onsi/gomega"
)
func
TestBuild
(
t
*
testing
.
T
)
{
g
:=
NewGomegaWithT
(
t
)
b
:=
&
Build
{
Containerfile
:
"Dockerfile"
,
Tags
:
[]
string
{
"foo:latest"
},
}
g
.
Expect
(
b
.
Valid
()).
To
(
BeNil
())
}
func
TestBuildContainerfileRequired
(
t
*
testing
.
T
)
{
g
:=
NewGomegaWithT
(
t
)
b
:=
&
Build
{
Tags
:
[]
string
{
"foo:latest"
},
}
g
.
Expect
(
b
.
Valid
()).
To
(
MatchError
(
ErrNoContainerfile
))
}
func
TestBuildTagsRequired
(
t
*
testing
.
T
)
{
g
:=
NewGomegaWithT
(
t
)
b
:=
&
Build
{
Containerfile
:
"Dockerfile"
,
}
g
.
Expect
(
b
.
Valid
()).
To
(
MatchError
(
ErrNoTags
))
}