From 37c14eb5ea639f7871abae5692eb8cd22c91ead6 Mon Sep 17 00:00:00 2001 From: Daniel Strebel Date: Mon, 7 Aug 2023 09:23:31 +0200 Subject: [PATCH] feat: fix semantic changes from httpbin to mocktarget --- .../apiproxy/resources/jsc/EnrichAllergyResponse.js | 4 ++-- references/java-callout/proxy-v1/test/features/Test.feature | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/references/dutch-healthcare/healthcare-v1/apiproxy/resources/jsc/EnrichAllergyResponse.js b/references/dutch-healthcare/healthcare-v1/apiproxy/resources/jsc/EnrichAllergyResponse.js index 7b1289b68..3f4ee83ad 100644 --- a/references/dutch-healthcare/healthcare-v1/apiproxy/resources/jsc/EnrichAllergyResponse.js +++ b/references/dutch-healthcare/healthcare-v1/apiproxy/resources/jsc/EnrichAllergyResponse.js @@ -20,7 +20,7 @@ function onComplete(response,error) { // update response payload with new patient name var payload = JSON.parse(context.getVariable("response.content")); - payload.patient.display = response.content.asJSON.args.name; + payload.patient.display = response.content.substring(7, response.content.length-1) context.setVariable("response.content", JSON.stringify(payload)) } else { @@ -29,4 +29,4 @@ function onComplete(response,error) { } // Make an additional request -httpClient.get("https://mocktarget.apigee.net/echo?name=Mediated Display Name", onComplete); +httpClient.get("https://mocktarget.apigee.net/user?user=Mediated Display Name", onComplete); diff --git a/references/java-callout/proxy-v1/test/features/Test.feature b/references/java-callout/proxy-v1/test/features/Test.feature index d623cb0b3..cf362b03e 100644 --- a/references/java-callout/proxy-v1/test/features/Test.feature +++ b/references/java-callout/proxy-v1/test/features/Test.feature @@ -6,4 +6,4 @@ Feature: Scenario: Successful Request When I GET /get Then response code should be 200 - And response body path $.headers.X-Debug should be true + And response body path $.headers.d-debug should be true