mirror of
https://github.com/floci-io/floci.git
synced 2026-11-22 21:50:46 -05:00
fix(apigateway): add missing authorizer arg to two VtlContext test calls
#3560 added two new VtlTemplateEngineTest cases constructing VtlTemplateEngine.VtlContext with 10 arguments, one short of the record's 11 (missing the trailing authorizer map). Broke compilation on main since that merge.
This commit is contained in:
1 parent
36c3ee4e22
commit
38056a00f6
1 file changed
+2
-2
+2
-2
@@ -399,7 +399,7 @@ class VtlTemplateEngineTest {
|
||||
void inputParams_shorthand_preservesAnEmptyPathValue() {
|
||||
VtlTemplateEngine.VtlContext context = new VtlTemplateEngine.VtlContext(
|
||||
"{}", Map.of("id", "header-id"), Map.of("id", "query-id"), Map.of("id", ""),
|
||||
"prod", "GET", "/items/{id}", "req-123", "000000000000", Map.of());
|
||||
"prod", "GET", "/items/{id}", "req-123", "000000000000", Map.of(), Map.of());
|
||||
|
||||
assertEquals("", engine.evaluate("$input.params('id')", context).body());
|
||||
}
|
||||
@@ -409,7 +409,7 @@ class VtlTemplateEngineTest {
|
||||
VtlTemplateEngine.VtlContext context = new VtlTemplateEngine.VtlContext(
|
||||
"{}", Map.of("id", "header-id", "empty", "header-empty", "headerOnly", "header-value"),
|
||||
Map.of("id", "query-id", "empty", ""), null,
|
||||
"prod", "GET", "/items", "req-123", "000000000000", Map.of());
|
||||
"prod", "GET", "/items", "req-123", "000000000000", Map.of(), Map.of());
|
||||
|
||||
assertEquals("query-id||header-value|", engine.evaluate(
|
||||
"$input.params('id')|$input.params('empty')|$input.params('headerOnly')|$input.params('missing')",
|
||||
|
||||
Reference in new issue
Block a user