Skip to content

Commit

Permalink
Adding test for #63884
Browse files Browse the repository at this point in the history
  • Loading branch information
Lucas Hinderberger committed Jun 20, 2024
1 parent c4cca75 commit a932606
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 1 deletion.
3 changes: 2 additions & 1 deletion test/filemarshal/requests.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,5 +25,6 @@
}
},
"reverse_test_result": true
}
},
"@sub/sub.json"
]
13 changes: 13 additions & 0 deletions test/filemarshal/sub/sub.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
{
"name": "file_render to marshal pipeline in subdirectory should pass",
"request": {
"server_url": "http://localhost:9999",
"endpoint": "dummy.txt",
"method": "GET"
},
"response": {
"body": {
"foo": {{ file_render "sub_template.json" | marshal }}
}
}
},
3 changes: 3 additions & 0 deletions test/filemarshal/sub/sub_template.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"dummy": {{ printf `"data"` }}
}

0 comments on commit a932606

Please sign in to comment.