Skip to content

Commit d5d8c91

Browse files
committed
Fixed tests
1 parent 00f1581 commit d5d8c91

File tree

5 files changed

+7
-5
lines changed

5 files changed

+7
-5
lines changed

internal/controller/test_data/maximum-atom/expected-output/middleware-downloads-0.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,4 +16,4 @@ metadata:
1616
spec:
1717
replacePathRegex:
1818
regex: ^(/path|/path/other)/downloads/(index.json|file-1.ext)
19-
replacement: /container/prefix-1/$1
19+
replacement: /container/prefix-1/$2

internal/controller/test_data/maximum-atom/expected-output/middleware-downloads-1.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,4 +16,4 @@ metadata:
1616
spec:
1717
replacePathRegex:
1818
regex: ^(/path|/path/other)/downloads/(file-2.ext)
19-
replacement: /container/prefix-2/$1
19+
replacement: /container/prefix-2/$2

internal/controller/test_data/maximum-atom/expected-output/middleware-downloads-2.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,4 +16,4 @@ metadata:
1616
spec:
1717
replacePathRegex:
1818
regex: ^(/path|/path/other)/downloads/(file-3.ext|file-4.ext)
19-
replacement: /container/prefix-3/$1
19+
replacement: /container/prefix-3/$2

internal/controller/test_data/maximum-atom/expected-output/middleware-prefixstrip.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,3 +17,5 @@ spec:
1717
stripPrefix:
1818
prefixes:
1919
- /path/
20+
- /path/
21+
- /path/other/

internal/controller/test_data/minimal-atom/expected-output/middleware-downloads-0.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,5 +15,5 @@ metadata:
1515
controller: true
1616
spec:
1717
replacePathRegex:
18-
regex: ^/path/downloads/(file.ext)
19-
replacement: /container/prefix/$1
18+
regex: ^(/path)/downloads/(file.ext)
19+
replacement: /container/prefix/$2

0 commit comments

Comments
 (0)