-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
removed parallel test execution feature, support template backticks e…
…verywhere Having a manifest with Go template expressions, but where all expressions only use backticks, would lead to the Go template not being executed, since such a manifest was also by coincidence a perfectly valid JSON array that was executed right away. Fixed by always executing the Go template, regardless of whether the input already is valid JSON. Adds more apitests, runs apitests in "make all". Removes parallel execution test feature. this never worked properly. see #72324
- Loading branch information
1 parent
266c4ee
commit 0a7debf
Showing
17 changed files
with
143 additions
and
268 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,29 +1,29 @@ | ||
[ | ||
{ | ||
"name": "add data thru request - 1", | ||
"name": "add data thru {{ printf `data1.json` }} request - 1", | ||
"request": { | ||
"server_url": "http://localhost:9999", | ||
"endpoint": "data1.json", | ||
"endpoint": "{{ printf `data1.json` }}", | ||
"method": "GET" | ||
}, | ||
"response": { | ||
"body": {"some": "data"} | ||
} | ||
}, | ||
{ | ||
"name": "add data thru request - 2", | ||
"name": "add data thru {{ printf `data2.json` }} request - 2", | ||
"request": { | ||
"server_url": "http://localhost:9999", | ||
"endpoint": "data2.json", | ||
"endpoint": "{{ printf `data2.json` }}", | ||
"method": "GET" | ||
} | ||
}, | ||
{ | ||
"name": "add data thru request - 3", | ||
"name": "add data thru {{ printf `data1.json` }} request - 3", | ||
"request": { | ||
"server_url": "http://localhost:9999", | ||
"endpoint": "data1.json", | ||
"endpoint": "{{ printf `data1.json` }}", | ||
"method": "GET" | ||
} | ||
} | ||
] | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
{"foo": "{\n \"dummy\": \"data\"\n}\n"} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
{ | ||
"dummy": {{ printf `"data"` }} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
{ | ||
"http_server": { | ||
"addr": ":9999", | ||
"dir": "./", | ||
"testmode": false | ||
}, | ||
"name": "ensure a file_render to JSON marshal pipe works as expected", | ||
"tests": [ | ||
"@requests.json" | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
[ | ||
{ | ||
"name": "file_render to marshal pipeline should pass", | ||
"request": { | ||
"server_url": "http://localhost:9999", | ||
"endpoint": "dummy.txt", | ||
"method": "GET" | ||
}, | ||
"response": { | ||
"body": { | ||
"foo": {{ file_render "dummy_template.json" | marshal }} | ||
} | ||
} | ||
}, | ||
{ | ||
"name": "file to marshal pipeline should fail", | ||
"request": { | ||
"server_url": "http://localhost:9999", | ||
"endpoint": "dummy.txt", | ||
"method": "GET" | ||
}, | ||
"response": { | ||
"body": { | ||
"foo": {{ file "dummy_template.json" | marshal }} | ||
} | ||
}, | ||
"reverse_test_result": true | ||
} | ||
] |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.