Skip to content

Commit 6c80512

Browse files
Merge pull request #57 from PDOK/jd/diff-fixes
Added spaces in downloadlink
2 parents 87c8f34 + b64512d commit 6c80512

File tree

3 files changed

+10
-10
lines changed

3 files changed

+10
-10
lines changed

internal/controller/generator/mapper.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -339,7 +339,7 @@ func getDownloadLinkTitle(datasetFeed pdoknlv3.DatasetFeed, entry pdoknlv3.Entry
339339
} else {
340340
title = escapeQuotes(datasetFeed.Title)
341341
}
342-
title += "-" + downloadLink.GetBlobName()
342+
title += " - " + downloadLink.GetBlobName()
343343
return
344344
}
345345

internal/controller/test_data/maximum-atom/expected-output/configmap.yaml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
apiVersion: v1
22
kind: ConfigMap
33
metadata:
4-
name: maximum-atom-generator-f9tftfg7bh
4+
name: maximum-atom-generator-8gk8292cf2
55
namespace: default
66
labels:
77
test: test
@@ -125,27 +125,27 @@ data:
125125
- href: https://test.com/path/downloads/index.json
126126
data: http://localazurite.blob.azurite/container/prefix-1/index.json
127127
rel: index
128-
title: entry-1-title-index.json
128+
title: entry-1-title - index.json
129129
- href: https://test.com/path/downloads/file-1.ext
130130
data: http://localazurite.blob.azurite/container/prefix-1/file-1.ext
131131
rel: alternate
132-
title: entry-1-title-file-1.ext
132+
title: entry-1-title - file-1.ext
133133
time: "2006-01-02T15:04:05Z"
134134
bbox: 1 10 10 100
135135
rights: rights
136136
updated: "2006-01-02T15:04:05Z"
137137
polygon: 50 5 50 10 100 10 100 5 50 5
138138
category:
139139
- term: https://srs-1/test
140-
label: srs-1
140+
label: srs-1
141141
- id: https://test.com/path/entry-2.xml
142142
title: entry-2-title
143143
content: entry-2-content
144144
link:
145145
- href: https://test.com/path/downloads/file-2.ext
146146
data: http://localazurite.blob.azurite/container/prefix-2/file-2.ext
147147
rel: alternate
148-
title: entry-2-title-file-2.ext
148+
title: entry-2-title - file-2.ext
149149
rights: rights
150150
updated: "2006-01-02T15:04:05Z"
151151
polygon: 50 5 50 10 100 10 100 5 50 5
@@ -187,11 +187,11 @@ data:
187187
- href: https://test.com/path/downloads/file-3.ext
188188
data: http://localazurite.blob.azurite/container/prefix-3/file-3.ext
189189
rel: section
190-
title: feed-2-title-file-3.ext
190+
title: feed-2-title - file-3.ext
191191
- href: https://test.com/path/downloads/file-4.ext
192192
data: http://localazurite.blob.azurite/container/prefix-3/file-4.ext
193193
rel: section
194-
title: feed-2-title-file-4.ext
194+
title: feed-2-title - file-4.ext
195195
rights: rights
196196
updated: "2006-01-02T15:04:05Z"
197197
polygon: 50 5 50 10 100 10 100 5 50 5

internal/controller/test_data/minimal-atom/expected-output/configmap.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
apiVersion: v1
22
kind: ConfigMap
33
metadata:
4-
name: minimal-atom-generator-fd8bdfdkh6
4+
name: minimal-atom-generator-dm828b69ff
55
namespace: default
66
labels:
77
test: test
@@ -77,7 +77,7 @@ data:
7777
- href: https://test.com/path/downloads/file.ext
7878
data: http://localazurite.blob.azurite/container/prefix/file.ext
7979
rel: alternate
80-
title: feed-title-file.ext
80+
title: feed-title - file.ext
8181
rights: rights
8282
updated: "2006-01-02T15:04:05Z"
8383
polygon: 50 5 50 10 100 10 100 5 50 5

0 commit comments

Comments
 (0)