Skip to content

Commit

Permalink
updated internal apitest for templates: added failing test case in pr…
Browse files Browse the repository at this point in the history
…eparation for bug fixing; see #72324
  • Loading branch information
Philipp Hempel committed May 3, 2024
1 parent 6a0bf68 commit 1899224
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 66 deletions.
3 changes: 2 additions & 1 deletion test/template/manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,8 @@
},
"store": {
"test_int": 123,
"test_text": "lorem ipsum"
"test_text": "lorem ipsum",
"server_endpoint": "bounce-json"
},
"name": "template tests",
"tests": [
Expand Down
2 changes: 1 addition & 1 deletion test/template/test4.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"name": "delimiter in templates: `",
"request": {
"server_url": "http://localhost:9999",
"endpoint": "bounce-json",
"endpoint": "{{ datastore `server_endpoint` }}",
"method": "POST",
"body": {
"num": "integer from datastore: {{ datastore `test_int` }}",
Expand Down
65 changes: 1 addition & 64 deletions test/template/test5.json
Original file line number Diff line number Diff line change
@@ -1,31 +1,10 @@
// template-delims: {{ }}
[
{
"name": "delimiter in templates: \"",
"request": {
"server_url": "http://localhost:9999",
"endpoint": "bounce-json",
"method": "POST",
"body": {
"num": "integer from datastore: {{ datastore "test_int" }}",
"text": "string from datastore: {{ datastore "test_text" }}"
}
},
"response": {
"statuscode": 200,
"body": {
"body": {
"num": "integer from datastore: 123",
"text": "string from datastore: lorem ipsum"
}
}
}
},
{
"name": "delimiter in templates: `",
"request": {
"server_url": "http://localhost:9999",
"endpoint": "bounce-json",
"endpoint": "{{ datastore `server_endpoint` }}",
"method": "POST",
"body": {
"num": "integer from datastore: {{ datastore `test_int` }}",
Expand All @@ -41,47 +20,5 @@
}
}
}
},
{
"name": "delimiter in templates: \"",
"request": {
"server_url": "http://localhost:9999",
"endpoint": "bounce-json",
"method": "POST",
"body": {
"num": "integer from datastore: 123",
"text": "string from datastore: lorem ipsum"
}
},
"response": {
"statuscode": 200,
"body": {
"body": {
"num": "integer from datastore: {{ datastore "test_int" }}",
"text": "string from datastore: {{ datastore "test_text" }}"
}
}
}
},
{
"name": "delimiter in templates: `",
"request": {
"server_url": "http://localhost:9999",
"endpoint": "bounce-json",
"method": "POST",
"body": {
"num": "integer from datastore: 123",
"text": "string from datastore: lorem ipsum"
}
},
"response": {
"statuscode": 200,
"body": {
"body": {
"num": "integer from datastore: {{ datastore `test_int` }}",
"text": "string from datastore: {{ datastore `test_text` }}"
}
}
}
}
]

0 comments on commit 1899224

Please sign in to comment.