-
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.
extended internal apitest for templates: use different text delimiter…
…s in datastore templates; see #72324
- Loading branch information
Philipp Hempel
committed
May 3, 2024
1 parent
1599649
commit 6a0bf68
Showing
4 changed files
with
141 additions
and
3 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
// 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" | ||
} | ||
} | ||
} | ||
} |
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,22 @@ | ||
// 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" | ||
} | ||
} | ||
} | ||
} |
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,87 @@ | ||
// 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", | ||
"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", | ||
"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` }}" | ||
} | ||
} | ||
} | ||
} | ||
] |