grim/convey

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 docker
import (
"testing"
"github.com/stretchr/testify/assert"
"keep.imfreedom.org/grim/convey/podman"
"keep.imfreedom.org/grim/convey/yaml"
)
func TestRemoveImage(t *testing.T) {
r := &Remove{
Image: "foo",
}
assert.NoError(t, r.Valid())
}
func TestRemoveImages(t *testing.T) {
r := &Remove{
Images: []string{"foo", "bar"},
}
assert.NoError(t, r.Valid())
}
func TestRemoveMerge(t *testing.T) {
r := &Remove{
Image: "foo",
Images: []string{"bar", "baz"},
}
assert.NoError(t, r.Valid())
assert.Equal(t, r.Images, yaml.StringOrSlice{"foo", "bar", "baz"})
}
func TestRemoveImagesRequired(t *testing.T) {
r := &Remove{}
assert.ErrorIs(t, r.Valid(), podman.ErrNoTags)
}