Skip to content

Commit

Permalink
test: improve tests for getSingleTag
Browse files Browse the repository at this point in the history
  • Loading branch information
shivjm committed Nov 7, 2021
1 parent c1ecb37 commit 32264f5
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions main_test.go
Expand Up @@ -11,7 +11,7 @@ func TestParsing(t *testing.T) {
expected := []Image{
{Name: "golang", Tag: "1.17.0-alpine"},
{Name: "common", Tag: " * "},
{Name: "common", Tag: " * "},
{Name: "common", Tag: "fixme"},
{Name: "common", Tag: " * "},
{Name: "viaductoss/ksops", Tag: "v3.0.0"},
{Name: "quay.io/argoproj/argocd", Tag: "$ARGOCD_VERSION"},
Expand Down Expand Up @@ -44,7 +44,7 @@ func TestQuery(t *testing.T) {
{query: "golang", occurrence: 1, match: true, tag: "1.17.0-alpine"},
{query: "common", occurrence: 1, match: true, tag: "?"},
{query: "viaductoss/ksops", occurrence: 2, match: false, tag: ""},
{query: "common", occurrence: 3, match: true, tag: "?"},
{query: "common", occurrence: 2, match: true, tag: "fixme"},
}

commands, err := dockerfile.ParseFile("tests/Dockerfile.1")
Expand Down
2 changes: 1 addition & 1 deletion tests/Dockerfile.1
Expand Up @@ -18,7 +18,7 @@ RUN git init --quiet && \
git reset --hard FETCH_HEAD && \
go build -ldflags='-extldflags=-static -linkmode=external' -o jb /jsonnet-bundler/cmd/jb

FROM common AS go-jsonnet-builder
FROM common:fixme AS go-jsonnet-builder

ARG GOJSONNET_VERSION

Expand Down

0 comments on commit 32264f5

Please sign in to comment.