Skip to content

Commit

Permalink
More test fixes #3401
Browse files Browse the repository at this point in the history
  • Loading branch information
chrisala committed Jan 9, 2025
1 parent d85ae08 commit 5e0db34
Show file tree
Hide file tree
Showing 4 changed files with 46 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
{

"priority": 1,
"request": {
"urlPath": "/userdetails/userDetails/getUserDetails",
"method": "ANY",
"queryParameters": {
"userName": {
"equalTo": "jwtId"
}
}
},
"response": {
"transformers": ["response-template"],
"status": 404
}
}
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
{
"priority": 3,
"request": {
"urlPath": "/userdetails/userDetails/userDetails/getUserDetails",
"method": "ANY"
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
{
"priority": 2,
"request": {
"urlPath": "/userdetails/userDetails/userDetails/getUserDetails",
"method": "ANY",
"queryParameters": {
"userName": {
"equalTo": "jwtId"
}
}
},
"response": {
"transformers": ["response-template"],
"status": 404,
"headers": {
"Content-Type": "application/json"
},
"body": null
}
}
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
{
"priority": 4,
"request": {
"urlPath": "/userdetails/userDetails/getUserDetails",
"method": "ANY"
Expand All @@ -9,6 +10,12 @@
"headers": {
"Content-Type": "application/json"
},
"body": "{{#if (request.query.userName != jwtId)}} {\"userName\":\"user.{{request.query.userName}}@nowhere.com.au\",\"email\":\"user.{{request.query.userName}}@nowhere.com.au\",\"userId\":\"{{request.query.userName}}\",\"firstName\": \"First {{request.query.userName}}\",\"lastName\": \"Last {{request.query.userName}}\"}{{/if}}{{#if (request.query.userName == 'jwtId')}}null{{/if}}"
"jsonBody": {
"userName":"user.{{request.query.userName}}@nowhere.com.au",
"email":"user.{{request.query.userName}}@nowhere.com.au",
"userId":"{{request.query.userName}}",
"firstName": "First {{request.query.userName}}",
"lastName": "Last {{request.query.userName}}"
}
}
}

0 comments on commit 5e0db34

Please sign in to comment.