From 189922453cb8db9f0d9245bd50587570da06fc47 Mon Sep 17 00:00:00 2001 From: Philipp Hempel Date: Fri, 3 May 2024 16:27:41 +0200 Subject: [PATCH] updated internal apitest for templates: added failing test case in preparation for bug fixing; see #72324 --- test/template/manifest.json | 3 +- test/template/test4.json | 2 +- test/template/test5.json | 65 +------------------------------------ 3 files changed, 4 insertions(+), 66 deletions(-) diff --git a/test/template/manifest.json b/test/template/manifest.json index e54d0e6..98f332a 100644 --- a/test/template/manifest.json +++ b/test/template/manifest.json @@ -8,7 +8,8 @@ }, "store": { "test_int": 123, - "test_text": "lorem ipsum" + "test_text": "lorem ipsum", + "server_endpoint": "bounce-json" }, "name": "template tests", "tests": [ diff --git a/test/template/test4.json b/test/template/test4.json index 280f10a..7488d97 100644 --- a/test/template/test4.json +++ b/test/template/test4.json @@ -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` }}", diff --git a/test/template/test5.json b/test/template/test5.json index 7ce923a..661ef1c 100644 --- a/test/template/test5.json +++ b/test/template/test5.json @@ -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` }}", @@ -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` }}" - } - } - } } ] \ No newline at end of file