1
0
mirror of https://github.com/containers/buildah.git synced 2026-02-05 09:45:38 +01:00
Files
buildah/define/pull_test.go
Daniel J Walsh 898eea8fbe Make PolicyMap and PullPolicy names align
Currently it is impossible to switch from a PullPolicy type
and PolicyMap via strings.  This PR Makes the types align.

This is required to make passing of PullPolicy in podman-remote
to work.

Signed-off-by: Daniel J Walsh <dwalsh@redhat.com>
2021-03-05 06:21:59 -05:00

14 lines
193 B
Go

package define
import (
"testing"
"github.com/stretchr/testify/assert"
)
func TestPullPolicy(t *testing.T) {
for name, val := range PolicyMap {
assert.Equal(t, name, val.String())
}
}