Skip to content

Commit

Permalink
MOSIP-37134
Browse files Browse the repository at this point in the history
Signed-off-by: Sohan Kumar Dey <[email protected]>
  • Loading branch information
Sohandey committed Nov 7, 2024
1 parent 439a6b3 commit 9c27793
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -69,16 +69,20 @@ HotlistAPI:
role: hotlist
restMethod: post
inputTemplate: ida/BlockHotlistAPI/blockHotlistAPI
outputTemplate: ida/BlockHotlistAPI/blockHotlistAPIResult
outputTemplate: ida/BlockHotlistAPI/error
input: '{
"id": "$ID:GenerateVID_to_test_hotlist_Perpetual_sid_vid$",
"idType": "UIN",
"requestTime": "$TIMESTAMP$",
"expiryTimestamp": "sjsjsj4@33"
}'
output: '{
"status": "BLOCKED"
}'
"errors": [
{
"errorCode": "ADM-HTL-002"
}
]
}'
auth_BlockHotlistAPI_All_Valid_Smoke_UIN_with_expirytime_sid:
endPoint: /v1/hotlist/block
description: block UIN with expiry time
Expand All @@ -90,7 +94,7 @@ HotlistAPI:
"id": "$ID:AddIdentity_Positive_unblockUIN_valid_smoke_UIN$",
"idType": "UIN",
"requestTime": "$TIMESTAMP$",
"expiryTimestamp": "120"
"expiryTimestamp": ""
}'
output: '{
"status": "BLOCKED"
Expand Down Expand Up @@ -122,7 +126,7 @@ HotlistAPI:
"id": "$ID:GenerateVID_All_Valid_Smoke_Perpetual_sid_vid$",
"idType": "VID",
"requestTime": "$TIMESTAMP$",
"expiryTimestamp": "120"
"expiryTimestamp": ""
}'
output: '{
"status": "BLOCKED"
Expand Down
10 changes: 10 additions & 0 deletions api-test/src/main/resources/ida/BlockHotlistAPI/error.hbs
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{
"errors": [
{{#each errors}}
{
"errorCode": "{{errorCode}}"
}
{{#unless @last}},{{/unless}}
{{/each}}
]
}

0 comments on commit 9c27793

Please sign in to comment.