mirror of
https://github.com/containers/buildah.git
synced 2026-02-05 09:45:38 +01:00
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>
14 lines
193 B
Go
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())
|
|
}
|
|
}
|