-
Notifications
You must be signed in to change notification settings - Fork 104
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: MeghaMaledar <[email protected]>
- Loading branch information
1 parent
9331588
commit 558d67e
Showing
11 changed files
with
1,295 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -618,4 +618,31 @@ AddIdentity: | |
}' | ||
output: '{ | ||
"status":"ACTIVATED" | ||
}' | ||
|
||
ESignet_AddIdentity_L2_Valid_Parameters_smoke_Neg_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/AuthenticateUserV3NegTC/AuthenticateUserNegTC.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/AuthenticateUserV3NegTC/AuthenticateUserNegTC.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 @@ | ||
AuthenticateUserV3NegTC: | ||
ESignet_AuthenticateUserNegTC_V3_AuthToken_Xsrf__uin_Otp_Valid_Smoke: | ||
endPoint: /v1/esignet/authorization/v3/authenticate | ||
role: resident | ||
restMethod: post | ||
checkErrorsOnlyInResponse: true | ||
validityCheckRequired: true | ||
inputTemplate: esignet/AuthenticateUserV3NegTC/AuthenticateUserNegTC | ||
outputTemplate: esignet/AuthenticateUserV3/AuthenticateUserResult | ||
input: '{ | ||
"encodedHash": "$ID:OAuthDetailsRequest_V3_Neg_AuthToken_Xsrf_uin_all_Valid_Smoke_sid_encodedResp$", | ||
"requestTime": "$TIMESTAMP$", | ||
"transactionId": "$ID:OAuthDetailsRequest_V3_Neg_AuthToken_Xsrf_uin_all_Valid_Smoke_sid_transactionId$", | ||
"individualId": "$ID:AddIdentity_L2_Valid_Parameters_smoke_Neg_Pos_UIN$", | ||
"authFactorType" : "OTP", | ||
"challenge" : "$ID:AddIdentity_L2_Valid_Parameters_smoke_Neg_Pos_EMAIL$", | ||
"sendOtp":{ | ||
"encodedHash": "$ID:OAuthDetailsRequest_V3_Neg_AuthToken_Xsrf_uin_all_Valid_Smoke_sid_encodedResp$", | ||
"requestTime": "$TIMESTAMP$", | ||
"transactionId": "$ID:OAuthDetailsRequest_V3_Neg_AuthToken_Xsrf_uin_all_Valid_Smoke_sid_transactionId$", | ||
"individualId": "$ID:AddIdentity_L2_Valid_Parameters_smoke_Neg_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
...ntests/src/main/resources/esignet/AuthenticateUserV3NegTC/AuthenticateUserNegTCResult.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/ClaimDetailsNegTC/ClaimDetailsNegTC.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}}" | ||
} |
224 changes: 224 additions & 0 deletions
224
automationtests/src/main/resources/esignet/ClaimDetailsNegTC/ClaimDetailsNegTC.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,224 @@ | ||
ClaimDetailsNegTC: | ||
ESignet_ClaimDetailsNegTC_Invalid_EncodedHash: | ||
endPoint: /v1/esignet/authorization/claim-details | ||
role: resident | ||
restMethod: get | ||
checkErrorsOnlyInResponse: true | ||
validityCheckRequired: true | ||
inputTemplate: esignet/ClaimDetailsNegTC/ClaimDetailsNegTC | ||
outputTemplate: esignet/error | ||
input: '{ | ||
"encodedHash": "ggfhjkhgyydiytf", | ||
"transactionId": "$ID:OAuthDetailsRequest_V3_Neg_AuthToken_Xsrf_uin_all_Valid_Smoke_sid_transactionId$" | ||
}' | ||
output: '{ | ||
"errors": [ | ||
{ | ||
"errorCode": "invalid_transaction", | ||
"errorMessage": "invalid_transaction" | ||
} | ||
] | ||
}' | ||
|
||
ESignet_ClaimDetailsNegTC_Null_EncodedHash: | ||
endPoint: /v1/esignet/authorization/claim-details | ||
role: resident | ||
restMethod: get | ||
checkErrorsOnlyInResponse: true | ||
validityCheckRequired: true | ||
inputTemplate: esignet/ClaimDetailsNegTC/ClaimDetailsNegTC | ||
outputTemplate: esignet/error | ||
input: '{ | ||
"encodedHash": null, | ||
"transactionId": "$ID:OAuthDetailsRequest_V3_Neg_AuthToken_Xsrf_uin_all_Valid_Smoke_sid_transactionId$" | ||
}' | ||
output: '{ | ||
"errors": [ | ||
{ | ||
"errorCode": "invalid_transaction", | ||
"errorMessage": "invalid_transaction" | ||
} | ||
] | ||
}' | ||
|
||
ESignet_ClaimDetailsNegTC_Empty_EncodedHash: | ||
endPoint: /v1/esignet/authorization/claim-details | ||
role: resident | ||
restMethod: get | ||
checkErrorsOnlyInResponse: true | ||
validityCheckRequired: true | ||
inputTemplate: esignet/ClaimDetailsNegTC/ClaimDetailsNegTC | ||
outputTemplate: esignet/error | ||
input: '{ | ||
"encodedHash": "", | ||
"transactionId": "$ID:OAuthDetailsRequest_V3_Neg_AuthToken_Xsrf_uin_all_Valid_Smoke_sid_transactionId$" | ||
}' | ||
output: '{ | ||
"errors": [ | ||
{ | ||
"errorCode": "invalid_transaction", | ||
"errorMessage": "invalid_transaction" | ||
} | ||
] | ||
}' | ||
|
||
ESignet_ClaimDetailsNegTC_Space_Val_EncodedHash: | ||
endPoint: /v1/esignet/authorization/claim-details | ||
role: resident | ||
restMethod: get | ||
checkErrorsOnlyInResponse: true | ||
validityCheckRequired: true | ||
inputTemplate: esignet/ClaimDetailsNegTC/ClaimDetailsNegTC | ||
outputTemplate: esignet/error | ||
input: '{ | ||
"encodedHash": " ", | ||
"transactionId": "$ID:OAuthDetailsRequest_V3_Neg_AuthToken_Xsrf_uin_all_Valid_Smoke_sid_transactionId$" | ||
}' | ||
output: '{ | ||
"errors": [ | ||
{ | ||
"errorCode": "invalid_transaction", | ||
"errorMessage": "invalid_transaction" | ||
} | ||
] | ||
}' | ||
|
||
ESignet_ClaimDetailsNegTC_Missing_EncodedHash: | ||
endPoint: /v1/esignet/authorization/claim-details | ||
role: resident | ||
restMethod: get | ||
checkErrorsOnlyInResponse: true | ||
validityCheckRequired: true | ||
inputTemplate: esignet/ClaimDetailsNegTC/ClaimDetailsNegTC | ||
outputTemplate: esignet/error | ||
input: '{ | ||
"encodedHash": "$REMOVE$", | ||
"transactionId": "$ID:OAuthDetailsRequest_V3_Neg_AuthToken_Xsrf_uin_all_Valid_Smoke_sid_transactionId$" | ||
}' | ||
output: '{ | ||
"errors": [ | ||
{ | ||
"errorCode": "invalid_transaction", | ||
"errorMessage": "invalid_transaction" | ||
} | ||
] | ||
}' | ||
|
||
ESignet_ClaimDetailsNegTC_invalid_TransactionId: | ||
endPoint: /v1/esignet/authorization/claim-details | ||
role: resident | ||
restMethod: get | ||
checkErrorsOnlyInResponse: true | ||
validityCheckRequired: true | ||
inputTemplate: esignet/ClaimDetailsNegTC/ClaimDetailsNegTC | ||
outputTemplate: esignet/error | ||
input: '{ | ||
"encodedHash": "$ID:OAuthDetailsRequest_V3_Neg_AuthToken_Xsrf_uin_all_Valid_Smoke_sid_encodedResp$", | ||
"transactionId": "aojoidncpoailf" | ||
}' | ||
output: '{ | ||
"errors": [ | ||
{ | ||
"errorCode": "invalid_transaction", | ||
"errorMessage": "invalid_transaction" | ||
} | ||
] | ||
}' | ||
|
||
ESignet_ClaimDetailsNegTC_Null_Val_TransactionId: | ||
endPoint: /v1/esignet/authorization/claim-details | ||
role: resident | ||
restMethod: get | ||
checkErrorsOnlyInResponse: true | ||
validityCheckRequired: true | ||
inputTemplate: esignet/ClaimDetailsNegTC/ClaimDetailsNegTC | ||
outputTemplate: esignet/error | ||
input: '{ | ||
"encodedHash": "$ID:OAuthDetailsRequest_V3_Neg_AuthToken_Xsrf_uin_all_Valid_Smoke_sid_encodedResp$", | ||
"transactionId": null | ||
}' | ||
output: '{ | ||
"errors": [ | ||
{ | ||
"errorCode": "invalid_transaction", | ||
"errorMessage": "invalid_transaction" | ||
} | ||
] | ||
}' | ||
|
||
ESignet_ClaimDetailsNegTC_Empty_TransactionId: | ||
endPoint: /v1/esignet/authorization/claim-details | ||
role: resident | ||
restMethod: get | ||
checkErrorsOnlyInResponse: true | ||
validityCheckRequired: true | ||
inputTemplate: esignet/ClaimDetailsNegTC/ClaimDetailsNegTC | ||
outputTemplate: esignet/error | ||
input: '{ | ||
"encodedHash": "$ID:OAuthDetailsRequest_V3_Neg_AuthToken_Xsrf_uin_all_Valid_Smoke_sid_encodedResp$", | ||
"transactionId": "" | ||
}' | ||
output: '{ | ||
"errors": [ | ||
{ | ||
"errorCode": "invalid_transaction", | ||
"errorMessage": "invalid_transaction" | ||
} | ||
] | ||
}' | ||
|
||
ESignet_ClaimDetailsNegTC_Space_Val_TransactionId: | ||
endPoint: /v1/esignet/authorization/claim-details | ||
role: resident | ||
restMethod: get | ||
checkErrorsOnlyInResponse: true | ||
validityCheckRequired: true | ||
inputTemplate: esignet/ClaimDetailsNegTC/ClaimDetailsNegTC | ||
outputTemplate: esignet/error | ||
input: '{ | ||
"encodedHash": "$ID:OAuthDetailsRequest_V3_Neg_AuthToken_Xsrf_uin_all_Valid_Smoke_sid_encodedResp$", | ||
"transactionId": " " | ||
}' | ||
output: '{ | ||
"errors": [ | ||
{ | ||
"errorCode": "invalid_transaction", | ||
"errorMessage": "invalid_transaction" | ||
} | ||
] | ||
}' | ||
|
||
ESignet_ClaimDetailsNegTC_Missing_TransactionId: | ||
endPoint: /v1/esignet/authorization/claim-details | ||
role: resident | ||
restMethod: get | ||
checkErrorsOnlyInResponse: true | ||
validityCheckRequired: true | ||
inputTemplate: esignet/ClaimDetailsNegTC/ClaimDetailsNegTC | ||
outputTemplate: esignet/error | ||
input: '{ | ||
"encodedHash": "$ID:OAuthDetailsRequest_V3_Neg_AuthToken_Xsrf_uin_all_Valid_Smoke_sid_encodedResp$", | ||
"transactionId": "$REMOVE$" | ||
}' | ||
output: '{ | ||
"errors": [ | ||
{ | ||
"errorCode": "invalid_transaction", | ||
"errorMessage": "invalid_transaction" | ||
} | ||
] | ||
}' | ||
ESignet_ClaimDetailsNegTC_AuthToken_Xsrf_uin_Valid_Smoke: | ||
endPoint: /v1/esignet/authorization/claim-details | ||
role: resident | ||
restMethod: get | ||
checkErrorsOnlyInResponse: true | ||
validityCheckRequired: true | ||
inputTemplate: esignet/ClaimDetailsNegTC/ClaimDetailsNegTC | ||
outputTemplate: esignet/ClaimDetailsNegTC/ClaimDetailsResultNegTC | ||
input: '{ | ||
"encodedHash": "$ID:OAuthDetailsRequest_V3_Neg_AuthToken_Xsrf_uin_all_Valid_Smoke_sid_encodedResp$", | ||
"transactionId": "$ID:OAuthDetailsRequest_V3_Neg_AuthToken_Xsrf_uin_all_Valid_Smoke_sid_transactionId$" | ||
}' | ||
output: '{ | ||
}' |
1 change: 1 addition & 0 deletions
1
automationtests/src/main/resources/esignet/ClaimDetailsNegTC/ClaimDetailsResultNegTC.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 @@ | ||
{} |
1 change: 1 addition & 0 deletions
1
.../src/main/resources/esignet/OAuthDetailsRequestV3NegTC/OAuthDetailsRequestNegResultTC.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 @@ | ||
{} |
39 changes: 39 additions & 0 deletions
39
...ntests/src/main/resources/esignet/OAuthDetailsRequestV3NegTC/OAuthDetailsRequestNegTC.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,39 @@ | ||
{ | ||
"requestTime": "{{requestTime}}", | ||
"request": { | ||
"clientId": "{{clientId}}", | ||
"scope": "{{scope}}", | ||
"responseType": "{{responseType}}", | ||
"redirectUri": "{{redirectUri}}", | ||
"display": "{{display}}", | ||
"prompt": "{{prompt}}", | ||
"acrValues": "{{acrValues}}", | ||
"claims": { | ||
"userinfo": { | ||
"name": { | ||
"essential": false | ||
}, | ||
"phone_number": { | ||
"essential": true | ||
}, | ||
"verified_claims": [ | ||
{ | ||
"verification": { | ||
"trust_framework": {"value": "{{trust_framework}}"} | ||
}, | ||
"claims": { | ||
"email": { | ||
"essential": true | ||
} | ||
} | ||
} | ||
] | ||
}, | ||
"id_token": {} | ||
}, | ||
"nonce" : "{{nonce}}", | ||
"state" : "{{state}}", | ||
"claimsLocales" : "{{claimsLocales}}", | ||
"uiLocales" : "{{uiLocales}}" | ||
} | ||
} |
Oops, something went wrong.