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"
)
func
TestTagSingleTarget
(
t
*
testing
.
T
)
{
tag
:=
&
Tag
{
Image
:
"foo"
,
Targets
:
[]
string
{
"bar"
},
}
assert
.
NoError
(
t
,
tag
.
Valid
())
}
func
TestTagMultipleTargets
(
t
*
testing
.
T
)
{
tag
:=
&
Tag
{
Image
:
"foo"
,
Targets
:
[]
string
{
"bar"
,
"baz"
},
}
assert
.
NoError
(
t
,
tag
.
Valid
())
}
func
TestTagImageRequired
(
t
*
testing
.
T
)
{
tag
:=
&
Tag
{
Targets
:
[]
string
{
"bar"
},
}
assert
.
ErrorIs
(
t
,
tag
.
Valid
(),
ErrNoImage
)
}
func
TestTagTargetRequired
(
t
*
testing
.
T
)
{
tag
:=
&
Tag
{
Image
:
"foo"
,
}
assert
.
ErrorIs
(
t
,
tag
.
Valid
(),
ErrNoTargets
)
}