Skip to content

Commit b8695ac

Browse files
committed
Update test_variables_encoding
1 parent 3c3e321 commit b8695ac

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

Tests/AppTests/GitlabBuilderTests.swift

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,8 +34,10 @@ class GitlabBuilderTests: XCTestCase {
3434
try req.query.encode(dto)
3535

3636
// validate
37+
// Gitlab accepts both `variables[FOO]=bar` and `variables%5BFOO%5D=bar` for the [] encoding.
38+
// Since Vapor 4.92.1 this is now encoded as `variables%5BFOO%5D=bar`.
3739
XCTAssertEqual(req.url.query?.split(separator: "&").sorted(),
38-
["ref=ref", "token=token", "variables[FOO]=bar"])
40+
["ref=ref", "token=token", "variables%5BFOO%5D=bar"])
3941
}
4042

4143
func test_triggerBuild() throws {

0 commit comments

Comments
 (0)