diff --git a/test/filemarshal/requests.json b/test/filemarshal/requests.json index 7a66e490..a253e16f 100644 --- a/test/filemarshal/requests.json +++ b/test/filemarshal/requests.json @@ -25,5 +25,6 @@ } }, "reverse_test_result": true - } + }, + "@sub/sub.json" ] diff --git a/test/filemarshal/sub/sub.json b/test/filemarshal/sub/sub.json new file mode 100644 index 00000000..59aa49d5 --- /dev/null +++ b/test/filemarshal/sub/sub.json @@ -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 }} + } + } +}, diff --git a/test/filemarshal/sub/sub_template.json b/test/filemarshal/sub/sub_template.json new file mode 100644 index 00000000..88b578d0 --- /dev/null +++ b/test/filemarshal/sub/sub_template.json @@ -0,0 +1,3 @@ +{ + "dummy": {{ printf `"data"` }} +}