Skip to content

Commit

Permalink
feat: fix semantic changes from httpbin to mocktarget
Browse files Browse the repository at this point in the history
  • Loading branch information
danistrebel committed Aug 7, 2023
1 parent 58a8185 commit 87a376f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand All @@ -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);
Original file line number Diff line number Diff line change
Expand Up @@ -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.x-debug should be true

0 comments on commit 87a376f

Please sign in to comment.