diff options
Diffstat (limited to 'testdata/target_http_run_formkindfile_test.txt')
| -rw-r--r-- | testdata/target_http_run_formkindfile_test.txt | 49 |
1 files changed, 49 insertions, 0 deletions
diff --git a/testdata/target_http_run_formkindfile_test.txt b/testdata/target_http_run_formkindfile_test.txt new file mode 100644 index 0000000..4f18347 --- /dev/null +++ b/testdata/target_http_run_formkindfile_test.txt @@ -0,0 +1,49 @@ +Test data for testing running HTTP with form kind is file (uploading file). + +>>> valid:http_request_body +{ + "Target": { + "id": "target_http" + }, + "HTTPTarget": { + "id": "upload", + "Method": 6, + "RequestType": 3, + "Path": "/upload", + "Params": { + "file": { + "kind": "file", + "value": "Q29udGVudCBvZiBmaWxlIHVwbG9hZA==", + "filename": "test.txt", + "filetype": "text/plain", + "filesize": 22 + } + } + } +} + +<<< valid:RunResponse.DumpResponse +HTTP/1.1 200 OK +Content-Length: 260 +Content-Type: application/json + +{ + "data": { + "filecontent": [ + "Q29udGVudCBvZiBmaWxlIHVwbG9hZA==" + ], + "filemodms": [ + "0" + ], + "filename": [ + "test.txt" + ], + "filesize": [ + "22" + ], + "filetype": [ + "text/plain" + ] + }, + "code": 200 +} |
