Skip to content

Commit ed09141

Browse files
committed
Merge branch 'master' into oversampleratio-add
2 parents 1714625 + 9c7ea0a commit ed09141

File tree

6 files changed

+2128
-1341
lines changed

6 files changed

+2128
-1341
lines changed

internal/controller/mapfilegenerator/mapfile_generator_test.go

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@ import (
99

1010
"github.com/google/go-cmp/cmp"
1111

12-
"github.com/pdok/mapserver-operator/api/v2beta1"
1312
"github.com/stretchr/testify/assert"
1413
"sigs.k8s.io/yaml"
1514

@@ -74,13 +73,9 @@ func testWMS(t *testing.T, filenameWithoutExt string) {
7473

7574
input, err := os.ReadFile("test_data/input/" + filenameWithoutExt + ".yaml")
7675
assert.NoError(t, err)
77-
v2wms := &v2beta1.WMS{}
78-
err = yaml.Unmarshal(input, v2wms)
79-
assert.NoError(t, err)
8076
var wms pdoknlv3.WMS
81-
err = v2wms.ToV3(&wms)
77+
err = yaml.Unmarshal(input, &wms)
8278
assert.NoError(t, err)
83-
8479
inputStruct, err := MapWMSToMapfileGeneratorInput(&wms, ownerInfo)
8580
assert.NoError(t, err)
8681
expected, err := readExpectedWMS(filenameWithoutExt + ".json")

0 commit comments

Comments
 (0)