Skip to content

Commit

Permalink
use current kbld version for lock output test
Browse files Browse the repository at this point in the history
  • Loading branch information
cppforlife committed Mar 23, 2020
1 parent 1c3b532 commit 84bf0d3
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions test/e2e/lock_output_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@ import (
"io/ioutil"
"strings"
"testing"

"github.com/k14s/kbld/pkg/kbld/version"
)

func TestLockOutputSuccessful(t *testing.T) {
Expand Down Expand Up @@ -47,19 +49,19 @@ images:
t.Fatalf("Expected >>>%s<<< to match >>>%s<<<", out, expectedOut)
}

expectedFileContents := `apiVersion: kbld.k14s.io/v1alpha1
expectedFileContents := strings.ReplaceAll(`apiVersion: kbld.k14s.io/v1alpha1
keys:
- sidecarImage
kind: Config
minimumRequiredVersion: 0.16.0
minimumRequiredVersion: __ver__
overrides:
- image: nginx:1.14.2
newImage: index.docker.io/library/nginx@sha256:f7988fb6c02e0ce69257d9bd9cf37ae20a60f1df7563c3a2a6abe24160306b8d
preresolved: true
- image: sample-app
newImage: index.docker.io/library/nginx@sha256:2539d4344dd18e1df02be842ffc435f8e1f699cfc55516e2cf2cb16b7a9aea0b
preresolved: true
`
`, "__ver__", version.Version)

bs, err := ioutil.ReadFile(path)
if err != nil {
Expand Down

0 comments on commit 84bf0d3

Please sign in to comment.