grim/convey
Clone
Summary
Browse
Changes
Graph
Attempt to load convey.yaml if convey.yml cound not be found
redux
2021-10-11, Gary Kramlich
a13a27a3ff4a
Attempt to load convey.yaml if convey.yml cound not be found
package
podman
import
(
"testing"
.
"github.com/onsi/gomega"
"keep.imfreedom.org/grim/convey/yaml"
)
func
TestPushString
(
t
*
testing
.
T
)
{
g
:=
NewGomegaWithT
(
t
)
p
:=
&
Push
{
Tags
:
yaml
.
StringOrSlice
{
"foo"
},
}
g
.
Expect
(
p
.
Valid
()).
To
(
BeNil
())
}
func
TestPushSlice
(
t
*
testing
.
T
)
{
g
:=
NewGomegaWithT
(
t
)
p
:=
&
Push
{
Tags
:
[]
string
{
"foo"
,
"bar"
},
}
g
.
Expect
(
p
.
Valid
()).
To
(
BeNil
())
}
func
TestPushTagsRequired
(
t
*
testing
.
T
)
{
g
:=
NewGomegaWithT
(
t
)
p
:=
&
Push
{}
g
.
Expect
(
p
.
Valid
()).
To
(
MatchError
(
ErrNoTags
))
}