grim/convey
Clone
Summary
Browse
Changes
Graph
remove the old manual tests as we weren't running them anyways
redux
2021-12-18, Gary Kramlich
34da49589eac
remove the old manual tests as we weren't running them anyways
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
)
}