Skip to content

Commit

Permalink
Merge pull request #439 from hegdenitin/develop
Browse files Browse the repository at this point in the history
MOSIP-37603 getSlot positive scenarios for Disability Type
  • Loading branch information
ckm007 authored Nov 26, 2024
2 parents 8ad1c31 + d7b87ef commit bc4dc5a
Show file tree
Hide file tree
Showing 11 changed files with 896 additions and 0 deletions.
108 changes: 108 additions & 0 deletions api-test/src/main/resources/signup/AddIdentity/AddIdentity.yml
Original file line number Diff line number Diff line change
Expand Up @@ -79,4 +79,112 @@ AddIdentity:
}'
output: '{
"status":"ACTIVATED"
}'
Signup_AddIdentity_L2_Valid_forGetSlot_disabilityTypeVISION_Parameters_smoke_Pos:
endPoint: /idrepository/v1/identity/
description: Add identity with password authentication for disabilityType VISION
role: idrepo
restMethod: post
inputTemplate: signup/AddIdentity/addIdentity_$LANGNUMBER$
outputTemplate: signup/AddIdentity/addIdentityResult
input: '{
"value": "$BIOVALUE$",
"id": "mosip.id.create",
"registrationId": "$RID$",
"biometricReferenceId": "23452353",
"UIN": "$UIN$",
"dateOfBirth": "1992/04/15",
"postalCode": "14022",
"email": "Signup_AddIdentity_L2_Valid_forGetSlot_disabilityTypeVISION_Parameters_smoke_Pos@mosip.net",
"phone": "9876543210",
"referenceIdentityNumber": "6789545678878",
"version": "v1",
"introducerRID": "212124324784879",
"introducerUIN": "212124324784879",
"category": "individualBiometrics",
"requesttime": "$TIMESTAMP$"
}'
output: '{
"status":"ACTIVATED"
}'
Signup_AddIdentity_L2_Valid_forGetSlot_disabilityTypeAUDITORY_Parameters_smoke_Pos:
endPoint: /idrepository/v1/identity/
description: Add identity with password authentication for disabilityType AUDITORY
role: idrepo
restMethod: post
inputTemplate: signup/AddIdentity/addIdentity_$LANGNUMBER$
outputTemplate: signup/AddIdentity/addIdentityResult
input: '{
"value": "$BIOVALUE$",
"id": "mosip.id.create",
"registrationId": "$RID$",
"biometricReferenceId": "23452353",
"UIN": "$UIN$",
"dateOfBirth": "1992/04/15",
"postalCode": "14022",
"email": "Signup_AddIdentity_L2_Valid_forGetSlot_disabilityTypeAUDITORY_Parameters_smoke_Pos@mosip.net",
"phone": "9876543210",
"referenceIdentityNumber": "6789545678878",
"version": "v1",
"introducerRID": "212124324784879",
"introducerUIN": "212124324784879",
"category": "individualBiometrics",
"requesttime": "$TIMESTAMP$"
}'
output: '{
"status":"ACTIVATED"
}'
Signup_AddIdentity_L2_Valid_forGetSlot_disabilityTypeMOBILITY_Parameters_smoke_Pos:
endPoint: /idrepository/v1/identity/
description: Add identity with password authentication for disabilityType MOBILITY
role: idrepo
restMethod: post
inputTemplate: signup/AddIdentity/addIdentity_$LANGNUMBER$
outputTemplate: signup/AddIdentity/addIdentityResult
input: '{
"value": "$BIOVALUE$",
"id": "mosip.id.create",
"registrationId": "$RID$",
"biometricReferenceId": "23452353",
"UIN": "$UIN$",
"dateOfBirth": "1992/04/15",
"postalCode": "14022",
"email": "Signup_AddIdentity_L2_Valid_forGetSlot_disabilityTypeMOBILITY_Parameters_smoke_Pos@mosip.net",
"phone": "9876543210",
"referenceIdentityNumber": "6789545678878",
"version": "v1",
"introducerRID": "212124324784879",
"introducerUIN": "212124324784879",
"category": "individualBiometrics",
"requesttime": "$TIMESTAMP$"
}'
output: '{
"status":"ACTIVATED"
}'
Signup_AddIdentity_L2_Valid_forGetSlot_disabilityTypeNEUROLOGICAL_Parameters_smoke_Pos:
endPoint: /idrepository/v1/identity/
description: Add identity with password authentication for disabilityType NEUROLOGICAL
role: idrepo
restMethod: post
inputTemplate: signup/AddIdentity/addIdentity_$LANGNUMBER$
outputTemplate: signup/AddIdentity/addIdentityResult
input: '{
"value": "$BIOVALUE$",
"id": "mosip.id.create",
"registrationId": "$RID$",
"biometricReferenceId": "23452353",
"UIN": "$UIN$",
"dateOfBirth": "1992/04/15",
"postalCode": "14022",
"email": "Signup_AddIdentity_L2_Valid_forGetSlot_disabilityTypeNEUROLOGICAL_Parameters_smoke_Pos@mosip.net",
"phone": "9876543210",
"referenceIdentityNumber": "6789545678878",
"version": "v1",
"introducerRID": "212124324784879",
"introducerUIN": "212124324784879",
"category": "individualBiometrics",
"requesttime": "$TIMESTAMP$"
}'
output: '{
"status":"ACTIVATED"
}'
72 changes: 72 additions & 0 deletions api-test/src/main/resources/signup/AddIdentityMock/AddIdentity.yml
Original file line number Diff line number Diff line change
Expand Up @@ -54,4 +54,76 @@ AddIdentity:
}'
output: '{
"status":"mock identity data created successfully"
}'
Signup_AddIdentity_L2_Valid_forGetSlot_disabilityTypeVISION_Parameters_smoke_Pos:
endPoint: /v1/mock-identity-system/identity
description: Add identity with password authentication for disabilityType VISION
role: idrepo
restMethod: post
inputTemplate: signup/AddIdentityMock/AddIdentity
outputTemplate: signup/AddIdentityMock/addIdentityResult
input: '{
"requesttime": "$TIMESTAMP$",
"individualId": "$RANDOMINDIVIDUALIDFORMOCKIDENTITY$",
"pin": "545411",
"email": "$EMAILIDFORMOCKIDENTITY$",
"password": "$PASSWORDFORMOCKIDENTITY$",
"phone": "$PHONEFORMOCKIDENTITY$"
}'
output: '{
"status":"mock identity data created successfully"
}'
Signup_AddIdentity_L2_Valid_forGetSlot_disabilityTypeAUDITORY_Parameters_smoke_Pos:
endPoint: /v1/mock-identity-system/identity
description: Add identity with password authentication for disabilityType AUDITORY
role: idrepo
restMethod: post
inputTemplate: signup/AddIdentityMock/AddIdentity
outputTemplate: signup/AddIdentityMock/addIdentityResult
input: '{
"requesttime": "$TIMESTAMP$",
"individualId": "$RANDOMINDIVIDUALIDFORMOCKIDENTITY$",
"pin": "545411",
"email": "$EMAILIDFORMOCKIDENTITY$",
"password": "$PASSWORDFORMOCKIDENTITY$",
"phone": "$PHONEFORMOCKIDENTITY$"
}'
output: '{
"status":"mock identity data created successfully"
}'
Signup_AddIdentity_L2_Valid_forGetSlot_disabilityTypeMOBILITY_Parameters_smoke_Pos:
endPoint: /v1/mock-identity-system/identity
description: Add identity with password authentication for disabilityType MOBILITY
role: idrepo
restMethod: post
inputTemplate: signup/AddIdentityMock/AddIdentity
outputTemplate: signup/AddIdentityMock/addIdentityResult
input: '{
"requesttime": "$TIMESTAMP$",
"individualId": "$RANDOMINDIVIDUALIDFORMOCKIDENTITY$",
"pin": "545411",
"email": "$EMAILIDFORMOCKIDENTITY$",
"password": "$PASSWORDFORMOCKIDENTITY$",
"phone": "$PHONEFORMOCKIDENTITY$"
}'
output: '{
"status":"mock identity data created successfully"
}'
Signup_AddIdentity_L2_Valid_forGetSlot_disabilityTypeNEUROLOGICAL_Parameters_smoke_Pos:
endPoint: /v1/mock-identity-system/identity
description: Add identity with password authentication for disabilityType NEUROLOGICAL
role: idrepo
restMethod: post
inputTemplate: signup/AddIdentityMock/AddIdentity
outputTemplate: signup/AddIdentityMock/addIdentityResult
input: '{
"requesttime": "$TIMESTAMP$",
"individualId": "$RANDOMINDIVIDUALIDFORMOCKIDENTITY$",
"pin": "545411",
"email": "$EMAILIDFORMOCKIDENTITY$",
"password": "$PASSWORDFORMOCKIDENTITY$",
"phone": "$PHONEFORMOCKIDENTITY$"
}'
output: '{
"status":"mock identity data created successfully"
}'
Original file line number Diff line number Diff line change
Expand Up @@ -31,3 +31,131 @@ AuthenticateUserV3:
"maskedEmail": "$IGNORE$"
}
}'
Signup_ESignet_AuthenticateUser_V3_AuthToken_Xsrf__uin_Otp_Valid_forGetSlot_disabilityTypeVISION_Smoke:
endPoint: /v1/esignet/authorization/v3/authenticate
role: resident
restMethod: post
checkErrorsOnlyInResponse: true
validityCheckRequired: true
inputTemplate: signup/AuthenticateUserV3/AuthenticateUser
outputTemplate: signup/AuthenticateUserV3/AuthenticateUserResult
input: '{
"encodedHash": "$ID:ESignet_OAuthDetailsRequest_V3_AuthToken_Xsrf_uin_all_Valid_forGetSlot_disabilityTypeVISION_Smoke_sid_encodedResp$",
"requestTime": "$TIMESTAMP$",
"transactionId": "$ID:ESignet_OAuthDetailsRequest_V3_AuthToken_Xsrf_uin_all_Valid_forGetSlot_disabilityTypeVISION_Smoke_sid_transactionId$",
"individualId": "$ID:AddIdentity_L2_Valid_forGetSlot_disabilityTypeVISION_Parameters_smoke_Pos_UIN$",
"authFactorType" : "OTP",
"challenge" : "$ID:AddIdentity_L2_Valid_forGetSlot_disabilityTypeVISION_Parameters_smoke_Pos_EMAIL$",
"sendOtp":{
"encodedHash": "$ID:ESignet_OAuthDetailsRequest_V3_AuthToken_Xsrf_uin_all_Valid_forGetSlot_disabilityTypeVISION_Smoke_sid_encodedResp$",
"requestTime": "$TIMESTAMP$",
"transactionId": "$ID:ESignet_OAuthDetailsRequest_V3_AuthToken_Xsrf_uin_all_Valid_forGetSlot_disabilityTypeVISION_Smoke_sid_transactionId$",
"individualId": "$ID:AddIdentity_L2_Valid_forGetSlot_disabilityTypeVISION_Parameters_smoke_Pos_UIN$",
"otpChannels": [{channel: "email"},{channel: "phone"}],
"sendOtpReqTemplate": "signup/SendOtp/SendOtp",
"sendOtpEndPoint": "/v1/esignet/authorization/send-otp"
}
}'
output: '{
"sendOtpResp":{
"maskedMobile": "$IGNORE$",
"sendOtpResTemplate":"signup/SendOtp/SendOtpResult",
"maskedEmail": "$IGNORE$"
}
}'
Signup_ESignet_AuthenticateUser_V3_AuthToken_Xsrf__uin_Otp_Valid_forGetSlot_disabilityTypeAUDITORY_Smoke:
endPoint: /v1/esignet/authorization/v3/authenticate
role: resident
restMethod: post
checkErrorsOnlyInResponse: true
validityCheckRequired: true
inputTemplate: signup/AuthenticateUserV3/AuthenticateUser
outputTemplate: signup/AuthenticateUserV3/AuthenticateUserResult
input: '{
"encodedHash": "$ID:ESignet_OAuthDetailsRequest_V3_AuthToken_Xsrf_uin_all_Valid_forGetSlot_disabilityTypeAUDITORY_Smoke_sid_encodedResp$",
"requestTime": "$TIMESTAMP$",
"transactionId": "$ID:ESignet_OAuthDetailsRequest_V3_AuthToken_Xsrf_uin_all_Valid_forGetSlot_disabilityTypeAUDITORY_Smoke_sid_transactionId$",
"individualId": "$ID:AddIdentity_L2_Valid_forGetSlot_disabilityTypeAUDITORY_Parameters_smoke_Pos_UIN$",
"authFactorType" : "OTP",
"challenge" : "$ID:AddIdentity_L2_Valid_forGetSlot_disabilityTypeAUDITORY_Parameters_smoke_Pos_EMAIL$",
"sendOtp":{
"encodedHash": "$ID:ESignet_OAuthDetailsRequest_V3_AuthToken_Xsrf_uin_all_Valid_forGetSlot_disabilityTypeAUDITORY_Smoke_sid_encodedResp$",
"requestTime": "$TIMESTAMP$",
"transactionId": "$ID:ESignet_OAuthDetailsRequest_V3_AuthToken_Xsrf_uin_all_Valid_forGetSlot_disabilityTypeAUDITORY_Smoke_sid_transactionId$",
"individualId": "$ID:AddIdentity_L2_Valid_forGetSlot_disabilityTypeAUDITORY_Parameters_smoke_Pos_UIN$",
"otpChannels": [{channel: "email"},{channel: "phone"}],
"sendOtpReqTemplate": "signup/SendOtp/SendOtp",
"sendOtpEndPoint": "/v1/esignet/authorization/send-otp"
}
}'
output: '{
"sendOtpResp":{
"maskedMobile": "$IGNORE$",
"sendOtpResTemplate":"signup/SendOtp/SendOtpResult",
"maskedEmail": "$IGNORE$"
}
}'
Signup_ESignet_AuthenticateUser_V3_AuthToken_Xsrf__uin_Otp_Valid_forGetSlot_disabilityTypeMOBILITY_Smoke:
endPoint: /v1/esignet/authorization/v3/authenticate
role: resident
restMethod: post
checkErrorsOnlyInResponse: true
validityCheckRequired: true
inputTemplate: signup/AuthenticateUserV3/AuthenticateUser
outputTemplate: signup/AuthenticateUserV3/AuthenticateUserResult
input: '{
"encodedHash": "$ID:ESignet_OAuthDetailsRequest_V3_AuthToken_Xsrf_uin_all_Valid_forGetSlot_disabilityTypeMOBILITY_Smoke_sid_encodedResp$",
"requestTime": "$TIMESTAMP$",
"transactionId": "$ID:ESignet_OAuthDetailsRequest_V3_AuthToken_Xsrf_uin_all_Valid_forGetSlot_disabilityTypeMOBILITY_Smoke_sid_transactionId$",
"individualId": "$ID:AddIdentity_L2_Valid_forGetSlot_disabilityTypeMOBILITY_Parameters_smoke_Pos_UIN$",
"authFactorType" : "OTP",
"challenge" : "$ID:AddIdentity_L2_Valid_forGetSlot_disabilityTypeMOBILITY_Parameters_smoke_Pos_EMAIL$",
"sendOtp":{
"encodedHash": "$ID:ESignet_OAuthDetailsRequest_V3_AuthToken_Xsrf_uin_all_Valid_forGetSlot_disabilityTypeMOBILITY_Smoke_sid_encodedResp$",
"requestTime": "$TIMESTAMP$",
"transactionId": "$ID:ESignet_OAuthDetailsRequest_V3_AuthToken_Xsrf_uin_all_Valid_forGetSlot_disabilityTypeMOBILITY_Smoke_sid_transactionId$",
"individualId": "$ID:AddIdentity_L2_Valid_forGetSlot_disabilityTypeMOBILITY_Parameters_smoke_Pos_UIN$",
"otpChannels": [{channel: "email"},{channel: "phone"}],
"sendOtpReqTemplate": "signup/SendOtp/SendOtp",
"sendOtpEndPoint": "/v1/esignet/authorization/send-otp"
}
}'
output: '{
"sendOtpResp":{
"maskedMobile": "$IGNORE$",
"sendOtpResTemplate":"signup/SendOtp/SendOtpResult",
"maskedEmail": "$IGNORE$"
}
}'
Signup_ESignet_AuthenticateUser_V3_AuthToken_Xsrf__uin_Otp_Valid_forGetSlot_disabilityTypeNEUROLOGICAL_Smoke:
endPoint: /v1/esignet/authorization/v3/authenticate
role: resident
restMethod: post
checkErrorsOnlyInResponse: true
validityCheckRequired: true
inputTemplate: signup/AuthenticateUserV3/AuthenticateUser
outputTemplate: signup/AuthenticateUserV3/AuthenticateUserResult
input: '{
"encodedHash": "$ID:ESignet_OAuthDetailsRequest_V3_AuthToken_Xsrf_uin_all_Valid_forGetSlot_disabilityTypeNEUROLOGICAL_Smoke_sid_encodedResp$",
"requestTime": "$TIMESTAMP$",
"transactionId": "$ID:ESignet_OAuthDetailsRequest_V3_AuthToken_Xsrf_uin_all_Valid_forGetSlot_disabilityTypeNEUROLOGICAL_Smoke_sid_transactionId$",
"individualId": "$ID:AddIdentity_L2_Valid_forGetSlot_disabilityTypeNEUROLOGICAL_Parameters_smoke_Pos_UIN$",
"authFactorType" : "OTP",
"challenge" : "$ID:AddIdentity_L2_Valid_forGetSlot_disabilityTypeNEUROLOGICAL_Parameters_smoke_Pos_EMAIL$",
"sendOtp":{
"encodedHash": "$ID:ESignet_OAuthDetailsRequest_V3_AuthToken_Xsrf_uin_all_Valid_forGetSlot_disabilityTypeNEUROLOGICAL_Smoke_sid_encodedResp$",
"requestTime": "$TIMESTAMP$",
"transactionId": "$ID:ESignet_OAuthDetailsRequest_V3_AuthToken_Xsrf_uin_all_Valid_forGetSlot_disabilityTypeNEUROLOGICAL_Smoke_sid_transactionId$",
"individualId": "$ID:AddIdentity_L2_Valid_forGetSlot_disabilityTypeNEUROLOGICAL_Parameters_smoke_Pos_UIN$",
"otpChannels": [{channel: "email"},{channel: "phone"}],
"sendOtpReqTemplate": "signup/SendOtp/SendOtp",
"sendOtpEndPoint": "/v1/esignet/authorization/send-otp"
}
}'
output: '{
"sendOtpResp":{
"maskedMobile": "$IGNORE$",
"sendOtpResTemplate":"signup/SendOtp/SendOtpResult",
"maskedEmail": "$IGNORE$"
}
}'
56 changes: 56 additions & 0 deletions api-test/src/main/resources/signup/ClaimDetails/ClaimDetails.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,3 +13,59 @@ ClaimDetails:
}'
output: '{
}'
Signup_ESignet_ClaimDetails_AuthToken_Xsrf_uin_Valid_forGetSlot_disabilityTypeVISION_Smoke:
endPoint: /v1/esignet/authorization/claim-details
role: resident
restMethod: get
checkErrorsOnlyInResponse: true
validityCheckRequired: true
inputTemplate: signup/ClaimDetails/ClaimDetails
outputTemplate: signup/ClaimDetails/ClaimDetailsResult
input: '{
"encodedHash": "$ID:ESignet_OAuthDetailsRequest_V3_AuthToken_Xsrf_uin_all_Valid_forGetSlot_disabilityTypeVISION_Smoke_sid_encodedResp$",
"transactionId": "$ID:ESignet_OAuthDetailsRequest_V3_AuthToken_Xsrf_uin_all_Valid_forGetSlot_disabilityTypeVISION_Smoke_sid_transactionId$"
}'
output: '{
}'
Signup_ESignet_ClaimDetails_AuthToken_Xsrf_uin_Valid_forGetSlot_disabilityTypeAUDITORY_Smoke:
endPoint: /v1/esignet/authorization/claim-details
role: resident
restMethod: get
checkErrorsOnlyInResponse: true
validityCheckRequired: true
inputTemplate: signup/ClaimDetails/ClaimDetails
outputTemplate: signup/ClaimDetails/ClaimDetailsResult
input: '{
"encodedHash": "$ID:ESignet_OAuthDetailsRequest_V3_AuthToken_Xsrf_uin_all_Valid_forGetSlot_disabilityTypeAUDITORY_Smoke_sid_encodedResp$",
"transactionId": "$ID:ESignet_OAuthDetailsRequest_V3_AuthToken_Xsrf_uin_all_Valid_forGetSlot_disabilityTypeAUDITORY_Smoke_sid_transactionId$"
}'
output: '{
}'
Signup_ESignet_ClaimDetails_AuthToken_Xsrf_uin_Valid_forGetSlot_disabilityTypeMOBILITY_Smoke:
endPoint: /v1/esignet/authorization/claim-details
role: resident
restMethod: get
checkErrorsOnlyInResponse: true
validityCheckRequired: true
inputTemplate: signup/ClaimDetails/ClaimDetails
outputTemplate: signup/ClaimDetails/ClaimDetailsResult
input: '{
"encodedHash": "$ID:ESignet_OAuthDetailsRequest_V3_AuthToken_Xsrf_uin_all_Valid_forGetSlot_disabilityTypeMOBILITY_Smoke_sid_encodedResp$",
"transactionId": "$ID:ESignet_OAuthDetailsRequest_V3_AuthToken_Xsrf_uin_all_Valid_forGetSlot_disabilityTypeMOBILITY_Smoke_sid_transactionId$"
}'
output: '{
}'
Signup_ESignet_ClaimDetails_AuthToken_Xsrf_uin_Valid_forGetSlot_disabilityTypeNEUROLOGICAL_Smoke:
endPoint: /v1/esignet/authorization/claim-details
role: resident
restMethod: get
checkErrorsOnlyInResponse: true
validityCheckRequired: true
inputTemplate: signup/ClaimDetails/ClaimDetails
outputTemplate: signup/ClaimDetails/ClaimDetailsResult
input: '{
"encodedHash": "$ID:ESignet_OAuthDetailsRequest_V3_AuthToken_Xsrf_uin_all_Valid_forGetSlot_disabilityTypeNEUROLOGICAL_Smoke_sid_encodedResp$",
"transactionId": "$ID:ESignet_OAuthDetailsRequest_V3_AuthToken_Xsrf_uin_all_Valid_forGetSlot_disabilityTypeNEUROLOGICAL_Smoke_sid_transactionId$"
}'
output: '{
}'
Loading

0 comments on commit bc4dc5a

Please sign in to comment.