Skip to content

Commit 0576287

Browse files
committed
Adapt tests to Helm v3.18.0 JSON number
Signed-off-by: Stefan Prodan <[email protected]>
1 parent abb3bc7 commit 0576287

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

internal/helm/chart/builder_local_test.go

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ package chart
1818

1919
import (
2020
"context"
21+
"encoding/json"
2122
"os"
2223
"path/filepath"
2324
"sync"
@@ -112,7 +113,7 @@ func TestLocalBuilder_Build(t *testing.T) {
112113
name: "default values",
113114
reference: LocalReference{Path: "../testdata/charts/helmchart"},
114115
wantValues: chartutil.Values{
115-
"replicaCount": float64(1),
116+
"replicaCount": json.Number("1"),
116117
},
117118
wantVersion: "0.1.0",
118119
wantPackaged: true,
@@ -136,7 +137,7 @@ fullnameOverride: "full-foo-name-override"`),
136137
},
137138
},
138139
wantValues: chartutil.Values{
139-
"replicaCount": float64(20),
140+
"replicaCount": json.Number("20"),
140141
"nameOverride": "foo-name-override",
141142
"fullnameOverride": "full-foo-name-override",
142143
},
@@ -157,7 +158,7 @@ fullnameOverride: "full-foo-name-override"`),
157158
name: "v1 chart",
158159
reference: LocalReference{Path: "./../testdata/charts/helmchart-v1"},
159160
wantValues: chartutil.Values{
160-
"replicaCount": float64(1),
161+
"replicaCount": json.Number("1"),
161162
},
162163
wantVersion: "0.2.0",
163164
wantPackaged: true,

0 commit comments

Comments
 (0)