-
-
Notifications
You must be signed in to change notification settings - Fork 403
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ISSUES-603 More real-world scenarios tested
- Loading branch information
1 parent
bbf2dc3
commit 4e804b3
Showing
6 changed files
with
79 additions
and
4 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
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
48 changes: 48 additions & 0 deletions
48
...resources/integration_test_files/masked/bearer_token_or_secret_masked_reuse_example_.json
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,48 @@ | ||
{ | ||
"scenarioName": "Masked Secret path as step param", | ||
"steps": [ | ||
{ | ||
"name": "get_balance_via_secret_token", | ||
"url": "/home/accounts/123/balance", | ||
"operation": "GET", | ||
"request": { | ||
"headers": { | ||
"Authorization": "Bearer ${MASKED:token1002003004}", | ||
"request-bank-name": "${MASKED:HSBC}", | ||
"secretCode": "${MASKED:Amazing}" | ||
} | ||
|
||
}, | ||
"assertions": { | ||
"status": 200, | ||
"body" : { | ||
"balance" : 3900, | ||
"name" : "${$.get_balance_via_secret_token.request.headers.request-bank-name}", | ||
"current" : true | ||
} | ||
} | ||
}, | ||
{ | ||
"name": "find_match", | ||
"url": "/api/v1/search/persons", | ||
"method": "GET", | ||
"request": { | ||
"queryParams": { | ||
"lang": "${$.get_balance_via_secret_token.request.headers.secretCode}", | ||
"city": "${MASKED:Lon}" | ||
} | ||
}, | ||
"verify": { | ||
"status": 200, | ||
"body": { | ||
"exactMatches": true, | ||
"name": "Mr Bean", | ||
"lang": "${$.get_balance_via_secret_token.request.headers.secretCode}", | ||
"city": "${$.find_match.request.queryParams.city}" | ||
} | ||
} | ||
} | ||
|
||
] | ||
} | ||
|
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
13 changes: 13 additions & 0 deletions
13
core/src/test/resources/simulators/test_purpose_end_points.json
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