Skip to content

Commit

Permalink
integration: allow for either IfNotPresent or Never image pull policy…
Browse files Browse the repository at this point in the history
… in CRD test
  • Loading branch information
lucieleblanc committed Jun 25, 2021
1 parent 18d6a7b commit 667a9e9
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion integration/crd_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ import (
"context"
"io/ioutil"
"path/filepath"
"regexp"
"testing"
"time"

Expand Down Expand Up @@ -36,7 +37,7 @@ func TestCRD(t *testing.T) {
assert.Contains(t, contents, "name: bobo\n")
assert.Contains(t, contents, "nonImage: bobo\n")
assert.NotContains(t, contents, "image: bobo\n")
assert.Contains(t, contents, "imagePullPolicy: IfNotPresent\n")
assert.Regexp(t, regexp.MustCompile("imagePullPolicy: (IfNotPresent|Never)\n"), contents)
}

// Make sure that running 'tilt down' with no resources installed
Expand Down

0 comments on commit 667a9e9

Please sign in to comment.