aboutsummaryrefslogtreecommitdiff
path: root/testdata/target_http_run_formkindfile_test.txt
diff options
context:
space:
mode:
authorShulhan <ms@kilabit.info>2024-02-13 02:14:35 +0700
committerShulhan <ms@kilabit.info>2024-02-15 01:12:34 +0700
commit372d10a3e1ea01f8d03e44e6ab8be673d05c0773 (patch)
tree02df85cae2d4398cfd74ae193b05f490628cc517 /testdata/target_http_run_formkindfile_test.txt
parentbc00c07248b1097f6e8f9281edc659cbd4bdd4ff (diff)
downloadgorankusu-372d10a3e1ea01f8d03e44e6ab8be673d05c0773.tar.xz
all: move example to root directory
The goal is to remove duplicate code in testing and show the example on how to create Gorankusu service from godoc. Implements: https://todo.sr.ht/~shulhan/gorankusu/5
Diffstat (limited to 'testdata/target_http_run_formkindfile_test.txt')
-rw-r--r--testdata/target_http_run_formkindfile_test.txt14
1 files changed, 7 insertions, 7 deletions
diff --git a/testdata/target_http_run_formkindfile_test.txt b/testdata/target_http_run_formkindfile_test.txt
index 4f18347..8925406 100644
--- a/testdata/target_http_run_formkindfile_test.txt
+++ b/testdata/target_http_run_formkindfile_test.txt
@@ -3,13 +3,13 @@ Test data for testing running HTTP with form kind is file (uploading file).
>>> valid:http_request_body
{
"Target": {
- "id": "target_http"
+ "id": "example_http"
},
"HTTPTarget": {
- "id": "upload",
+ "id": "http_upload",
"Method": 6,
"RequestType": 3,
- "Path": "/upload",
+ "Path": "/example/upload",
"Params": {
"file": {
"kind": "file",
@@ -24,7 +24,7 @@ Test data for testing running HTTP with form kind is file (uploading file).
<<< valid:RunResponse.DumpResponse
HTTP/1.1 200 OK
-Content-Length: 260
+Content-Length: 256
Content-Type: application/json
{
@@ -35,14 +35,14 @@ Content-Type: application/json
"filemodms": [
"0"
],
- "filename": [
- "test.txt"
- ],
"filesize": [
"22"
],
"filetype": [
"text/plain"
+ ],
+ "name": [
+ "test.txt"
]
},
"code": 200