From 11aeba0d3e6931488ef44f47bdf80587b44af8b3 Mon Sep 17 00:00:00 2001 From: Jelle Dijkstra Date: Mon, 16 Jun 2025 14:10:08 +0200 Subject: [PATCH 1/2] Added spaces in downloadlink --- internal/controller/generator/mapper.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/controller/generator/mapper.go b/internal/controller/generator/mapper.go index 4ff2f01..53f619b 100644 --- a/internal/controller/generator/mapper.go +++ b/internal/controller/generator/mapper.go @@ -339,7 +339,7 @@ func getDownloadLinkTitle(datasetFeed pdoknlv3.DatasetFeed, entry pdoknlv3.Entry } else { title = escapeQuotes(datasetFeed.Title) } - title += "-" + downloadLink.GetBlobName() + title += " - " + downloadLink.GetBlobName() return } From b64512daa55ba61a1b639adc9125e523ad5a5199 Mon Sep 17 00:00:00 2001 From: Jelle Dijkstra Date: Mon, 16 Jun 2025 14:17:11 +0200 Subject: [PATCH 2/2] Fixed tests --- .../maximum-atom/expected-output/configmap.yaml | 14 +++++++------- .../minimal-atom/expected-output/configmap.yaml | 4 ++-- 2 files changed, 9 insertions(+), 9 deletions(-) diff --git a/internal/controller/test_data/maximum-atom/expected-output/configmap.yaml b/internal/controller/test_data/maximum-atom/expected-output/configmap.yaml index 58e2000..b0cfada 100644 --- a/internal/controller/test_data/maximum-atom/expected-output/configmap.yaml +++ b/internal/controller/test_data/maximum-atom/expected-output/configmap.yaml @@ -1,7 +1,7 @@ apiVersion: v1 kind: ConfigMap metadata: - name: maximum-atom-generator-f9tftfg7bh + name: maximum-atom-generator-8gk8292cf2 namespace: default labels: test: test @@ -125,11 +125,11 @@ data: - href: https://test.com/path/downloads/index.json data: http://localazurite.blob.azurite/container/prefix-1/index.json rel: index - title: entry-1-title-index.json + title: entry-1-title - index.json - href: https://test.com/path/downloads/file-1.ext data: http://localazurite.blob.azurite/container/prefix-1/file-1.ext rel: alternate - title: entry-1-title-file-1.ext + title: entry-1-title - file-1.ext time: "2006-01-02T15:04:05Z" bbox: 1 10 10 100 rights: rights @@ -137,7 +137,7 @@ data: polygon: 50 5 50 10 100 10 100 5 50 5 category: - term: https://srs-1/test - label: srs-1 + label: srs-1 - id: https://test.com/path/entry-2.xml title: entry-2-title content: entry-2-content @@ -145,7 +145,7 @@ data: - href: https://test.com/path/downloads/file-2.ext data: http://localazurite.blob.azurite/container/prefix-2/file-2.ext rel: alternate - title: entry-2-title-file-2.ext + title: entry-2-title - file-2.ext rights: rights updated: "2006-01-02T15:04:05Z" polygon: 50 5 50 10 100 10 100 5 50 5 @@ -187,11 +187,11 @@ data: - href: https://test.com/path/downloads/file-3.ext data: http://localazurite.blob.azurite/container/prefix-3/file-3.ext rel: section - title: feed-2-title-file-3.ext + title: feed-2-title - file-3.ext - href: https://test.com/path/downloads/file-4.ext data: http://localazurite.blob.azurite/container/prefix-3/file-4.ext rel: section - title: feed-2-title-file-4.ext + title: feed-2-title - file-4.ext rights: rights updated: "2006-01-02T15:04:05Z" polygon: 50 5 50 10 100 10 100 5 50 5 diff --git a/internal/controller/test_data/minimal-atom/expected-output/configmap.yaml b/internal/controller/test_data/minimal-atom/expected-output/configmap.yaml index e2fe058..d6812dd 100644 --- a/internal/controller/test_data/minimal-atom/expected-output/configmap.yaml +++ b/internal/controller/test_data/minimal-atom/expected-output/configmap.yaml @@ -1,7 +1,7 @@ apiVersion: v1 kind: ConfigMap metadata: - name: minimal-atom-generator-fd8bdfdkh6 + name: minimal-atom-generator-dm828b69ff namespace: default labels: test: test @@ -77,7 +77,7 @@ data: - href: https://test.com/path/downloads/file.ext data: http://localazurite.blob.azurite/container/prefix/file.ext rel: alternate - title: feed-title-file.ext + title: feed-title - file.ext rights: rights updated: "2006-01-02T15:04:05Z" polygon: 50 5 50 10 100 10 100 5 50 5