Skip to content

Commit d9668c0

Browse files
committed
test: fix regex pattern for Location headers
1 parent 2442954 commit d9668c0

File tree

2 files changed

+3
-131
lines changed

2 files changed

+3
-131
lines changed

tests/acceptance/features/coreApiWebdavUploadTUS/creationWithUploadExtension.feature

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,9 @@ Feature: tests of the creation extension see https://tus.io/protocols/resumable-
1818
| Tus-Extension | creation-with-upload |
1919
Then the HTTP status code should be "201"
2020
And the following headers should match these regular expressions
21-
| Tus-Resumable | /1\.0\.0/ |
22-
| Location | /http[s]?:\/\/.*:\d+\/data\/.*/ |
23-
| Upload-Offset | /\d+/ |
21+
| Tus-Resumable | /1\.0\.0/ |
22+
| Location | /https?:\/\/[^\/\s]+\/data\/[A-Za-z0-9._-]{20,}$/ |
23+
| Upload-Offset | /\d+/ |
2424
And the content of file "/test.txt" for user "Alice" should be "uploaded content"
2525
Examples:
2626
| dav-path-version |

tests/config/drone/k8s/thumbnails/deployment.yaml

Lines changed: 0 additions & 128 deletions
This file was deleted.

0 commit comments

Comments
 (0)