-
Notifications
You must be signed in to change notification settings - Fork 105
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1588 from mohanachandran-s/release-1.3.0-ES
MOSIP-34827 - Added test cases for L2 flow api's
- Loading branch information
Showing
29 changed files
with
518 additions
and
6 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
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
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 |
---|---|---|
|
@@ -591,4 +591,31 @@ AddIdentity: | |
}' | ||
output: '{ | ||
"status":"ACTIVATED" | ||
}' | ||
|
||
ESignet_AddIdentity_L2_Valid_Parameters_smoke_Pos: | ||
endPoint: /idrepository/v1/identity/ | ||
role: idrepo | ||
restMethod: post | ||
inputTemplate: esignet/AddIdentity/addIdentity_$LANGNUMBER$ | ||
outputTemplate: esignet/AddIdentity/addIdentityResult | ||
input: '{ | ||
"value": "$BIOVALUE$", | ||
"id": "mosip.id.create", | ||
"registrationId": "$RID$", | ||
"biometricReferenceId": "23452353", | ||
"UIN": "$UIN$", | ||
"dateOfBirth": "1992/04/15", | ||
"postalCode": "14022", | ||
"email": "[email protected]", | ||
"phone": "9876543210", | ||
"referenceIdentityNumber": "6789545678878", | ||
"version": "v1", | ||
"introducerRID": "212124324784879", | ||
"introducerUIN": "212124324784879", | ||
"category": "individualBiometrics", | ||
"requesttime": "$TIMESTAMP$" | ||
}' | ||
output: '{ | ||
"status":"ACTIVATED" | ||
}' |
15 changes: 15 additions & 0 deletions
15
automationtests/src/main/resources/esignet/AuthenticateUserV3/AuthenticateUser.hbs
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,15 @@ | ||
{ | ||
"encodedHash": "{{encodedHash}}", | ||
"requestTime": "{{requestTime}}", | ||
"request": { | ||
"transactionId": "{{transactionId}}", | ||
"individualId": "{{individualId}}", | ||
"challengeList" : [ | ||
{ | ||
"authFactorType" : "{{authFactorType}}", | ||
"challenge" : "{{challenge}}", | ||
"format": "alpha-numeric" | ||
} | ||
] | ||
} | ||
} |
33 changes: 33 additions & 0 deletions
33
automationtests/src/main/resources/esignet/AuthenticateUserV3/AuthenticateUser.yml
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,33 @@ | ||
AuthenticateUserV3: | ||
ESignet_AuthenticateUser_V3_AuthToken_Xsrf__uin_Otp_Valid_Smoke: | ||
endPoint: /v1/esignet/authorization/v3/authenticate | ||
role: resident | ||
restMethod: post | ||
checkErrorsOnlyInResponse: true | ||
validityCheckRequired: true | ||
inputTemplate: esignet/AuthenticateUserV3/AuthenticateUser | ||
outputTemplate: esignet/AuthenticateUserV3/AuthenticateUserResult | ||
input: '{ | ||
"encodedHash": "$ID:OAuthDetailsRequest_V3_AuthToken_Xsrf_uin_all_Valid_Smoke_sid_encodedResp$", | ||
"requestTime": "$TIMESTAMP$", | ||
"transactionId": "$ID:OAuthDetailsRequest_V3_AuthToken_Xsrf_uin_all_Valid_Smoke_sid_transactionId$", | ||
"individualId": "$ID:AddIdentity_L2_Valid_Parameters_smoke_Pos_UIN$", | ||
"authFactorType" : "OTP", | ||
"challenge" : "$ID:AddIdentity_L2_Valid_Parameters_smoke_Pos_EMAIL$", | ||
"sendOtp":{ | ||
"encodedHash": "$ID:OAuthDetailsRequest_V3_AuthToken_Xsrf_uin_all_Valid_Smoke_sid_encodedResp$", | ||
"requestTime": "$TIMESTAMP$", | ||
"transactionId": "$ID:OAuthDetailsRequest_V3_AuthToken_Xsrf_uin_all_Valid_Smoke_sid_transactionId$", | ||
"individualId": "$ID:AddIdentity_L2_Valid_Parameters_smoke_Pos_UIN$", | ||
"otpChannels": [{channel: "email"},{channel: "phone"}], | ||
"sendOtpReqTemplate": "esignet/SendOtp/SendOtp", | ||
"sendOtpEndPoint": "/v1/esignet/authorization/send-otp" | ||
} | ||
}' | ||
output: '{ | ||
"sendOtpResp":{ | ||
"maskedMobile": "$IGNORE$", | ||
"sendOtpResTemplate":"esignet/SendOtp/SendOtpResult", | ||
"maskedEmail": "$IGNORE$" | ||
} | ||
}' |
1 change: 1 addition & 0 deletions
1
automationtests/src/main/resources/esignet/AuthenticateUserV3/AuthenticateUserResult.hbs
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 @@ | ||
{} |
4 changes: 4 additions & 0 deletions
4
automationtests/src/main/resources/esignet/ClaimDetails/ClaimDetails.hbs
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,4 @@ | ||
{ | ||
"encodedHash": "{{encodedHash}}", | ||
"transactionId": "{{transactionId}}" | ||
} |
15 changes: 15 additions & 0 deletions
15
automationtests/src/main/resources/esignet/ClaimDetails/ClaimDetails.yml
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,15 @@ | ||
ClaimDetails: | ||
ESignet_ClaimDetails_AuthToken_Xsrf_uin_Valid_Smoke: | ||
endPoint: /v1/esignet/authorization/claim-details | ||
role: resident | ||
restMethod: get | ||
checkErrorsOnlyInResponse: true | ||
validityCheckRequired: true | ||
inputTemplate: esignet/ClaimDetails/ClaimDetails | ||
outputTemplate: esignet/ClaimDetails/ClaimDetailsResult | ||
input: '{ | ||
"encodedHash": "$ID:OAuthDetailsRequest_V3_AuthToken_Xsrf_uin_all_Valid_Smoke_sid_encodedResp$", | ||
"transactionId": "$ID:OAuthDetailsRequest_V3_AuthToken_Xsrf_uin_all_Valid_Smoke_sid_transactionId$" | ||
}' | ||
output: '{ | ||
}' |
1 change: 1 addition & 0 deletions
1
automationtests/src/main/resources/esignet/ClaimDetails/ClaimDetailsResult.hbs
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 @@ | ||
{} |
Oops, something went wrong.