grim/convey
Clone
Summary
Browse
Changes
Graph
Create a zip file for the docs
11 months ago, Gary Kramlich
c6695a974177
Create a zip file for the docs
Also renamed `convey-docs.yml` as it was getting deleted by the convey clean plan previously.
Testing Done:
Ran locally and verified the zip file was structured correctly.
Reviewed at https://reviews.imfreedom.org/r/2469/
package
podman
import
(
"testing"
"github.com/stretchr/testify/assert"
"keep.imfreedom.org/grim/convey/yaml"
)
func
TestPushString
(
t
*
testing
.
T
)
{
p
:=
&
Push
{
Tags
:
yaml
.
StringOrSlice
{
"foo"
},
}
assert
.
NoError
(
t
,
p
.
Valid
())
}
func
TestPushSlice
(
t
*
testing
.
T
)
{
p
:=
&
Push
{
Tags
:
[]
string
{
"foo"
,
"bar"
},
}
assert
.
NoError
(
t
,
p
.
Valid
())
}
func
TestPushTagsRequired
(
t
*
testing
.
T
)
{
p
:=
&
Push
{}
assert
.
ErrorIs
(
t
,
p
.
Valid
(),
ErrNoTags
)
}