From a228ac84b4ab955cf2b800d9b13f6af6aecaf795 Mon Sep 17 00:00:00 2001 From: Mohanachandran S Date: Fri, 27 Sep 2024 18:32:29 +0530 Subject: [PATCH 1/5] MOSIP-36093 - Pushing apitestrig to release branch Signed-off-by: Mohanachandran S --- .github/workflows/push-trigger.yml | 10 +- {apitest => api-test}/.gitignore | 0 ...ional Test-classpath-arg-1659588646071.txt | 0 ...ional Test-classpath-arg-1659589592502.txt | 0 ...tionalTest-classpath-arg-1695652238739.txt | 0 ...ration (1)-classpath-arg-1658840665646.txt | 0 {apitest => api-test}/Dockerfile | 36 +- {apitest => api-test}/README.md | 0 {apitest => api-test}/entrypoint.sh | 0 {apitest => api-test}/pom.xml | 10 +- .../apirig/testrunner/MosipTestRunner.java | 5 + .../apirig/testscripts/BookAppoinment.java | 2 + .../testscripts/BookAppoinmentByPrid.java | 2 + .../apirig/testscripts/CreatePreReg.java | 2 + .../apirig/testscripts/DeleteWithParam.java | 2 + .../apirig/testscripts/GetWithParam.java | 2 + .../testscripts/GetWithParamForAutoGenId.java | 2 + ...WithFormDataAndFileForNotificationAPI.java | 2 + .../PostWithFormPathParamAndFile.java | 2 + .../PostWithPathParamsAndBody.java | 2 + .../testscripts/PreregAuditValidator.java | 2 + .../apirig/testscripts/PutWithPathParam.java | 2 + .../apirig/testscripts/SimplePost.java | 2 + .../apirig/testscripts/UpdatePrereg.java | 2 + .../testrig/apirig/utils/PreRegUtil.java | 21 + .../Authorization/internalAuthRequest.json | 0 .../config/Authorization/request.json | 0 .../main/resources/config/Kernel.properties | 30 +- .../resources/config/application.properties | 0 .../config/healthCheckEndpoint.properties | 0 .../resources/config/lang-isocode-transid.csv | 550 ++++++++++++++++++ .../main/resources/config/prereg_SendOtp.json | 0 .../resources/config/prereg_ValidateOtp.json | 0 .../customize-emailable-report-template.html | 0 .../src/main/resources/dbFiles/.xml | 0 .../resources/dbFiles/PMS_delete_script.txt | 0 .../src/main/resources/dbFiles/dbConfig.xml | 0 .../resources/dbFiles/delete_Masterdata.sql | 0 .../src/main/resources/krb5.conf | 0 .../src/main/resources/log4j.properties | 0 .../src/main/resources/metadata.xml | 0 .../AddLostUinApplication.yml | 27 +- .../addLostUinApplication.hbs | 0 .../addLostUinApplicationResult.hbs | 0 .../AddUpdateRegistration.yml | 2 + .../addUpdateRegistration.hbs | 0 .../addUpdateRegistrationResult.hbs | 0 .../resources/preReg/AuditLog/AuditLog.yml | 0 .../preReg/AuditLog/AuditLogResult.hbs | 0 .../resources/preReg/AuditLog/auditlog.hbs | 0 .../BookMultipleAppointment.yml | 0 .../bookMultipleAppointment.hbs | 0 .../bookMultipleAppointmentResult.hbs | 0 .../CancelApplicationsAppointment.yml | 2 + .../cancelApplicationsAppointment.hbs | 0 .../cancelApplicationsAppointmentResult.hbs | 0 .../CancelAppointment/CancelAppointment.yml | 8 +- .../CancelAppointment/cancelAppointment.hbs | 0 .../cancelAppointmentResult.hbs | 0 .../preReg/CopyDocument/CopyDocument.yml | 4 + .../preReg/CopyDocument/copyDocument.hbs | 0 .../CopyDocument/copyDocumentResult.hbs | 0 .../DeleteAllDocForaPRID.yml | 4 +- .../deleteAllDocForaPRID.hbs | 0 .../deleteAllDocForaPRIDResult.hbs | 0 .../preReg/DeleteBooking/DeleteBooking.yml | 1 + .../preReg/DeleteBooking/deleteBooking.hbs | 0 .../DeleteBooking/deleteBookingResult.hbs | 0 .../DeleteLostUinApplication.yml | 5 + .../deleteLostUinApplication.hbs | 0 .../deleteLostUinApplicationResult.hbs | 0 .../DeletePreRegistration.yml | 2 + .../deletePreRegistration.hbs | 0 .../deletePreRegistrationResult.hbs | 0 .../DeleteSpecificDocForaPRID.yml | 3 + .../deleteSpecificDocForaPRID.hbs | 0 .../deleteSpecificDocForaPRIDResult.hbs | 0 .../DiscardBooking/DiscardBookingOutput.json | 0 .../DiscardBooking/DiscardBookingRequest.json | 0 .../DiscardBooking_smoke/request.json | 0 .../DiscardBooking_smoke/response.json | 0 .../invalidDocument/docSizeGreaterThan5MB.pdf | Bin .../preReg/Documents/invalidDocument/file.csv | 0 .../preReg/Documents/invalidDocument/file.txt | 0 .../Documents/invalidDocument/file.xlsx | Bin .../Documents/validDocument/IDProof.pdf | Bin .../FetchApplicationByPrid.yml | 2 + .../fetchApplicationByPrid.hbs | 0 .../fetchApplicationByPridResult.hbs | 0 .../FetchAppointmentDetailsByPrid.yml | 2 + .../fetchAppointmentDetailsByPrid.hbs | 0 .../fetchAppointmentDetailsByPridResult.hbs | 0 .../FetchAvailabilityData.yml | 31 + .../fetchAvailabilityData.hbs | 0 .../fetchAvailabilityDataResult.hbs | 5 + .../GetAllApplications/GetAllApplications.yml | 4 + .../GetAllApplications/getAllApplications.hbs | 0 .../getAllApplicationsResult.hbs | 0 .../GetAllApplicationsWithapplicationId.hbs | 0 .../GetAllApplicationsWithapplicationId.yml | 9 +- .../getAllApplicationsResult.hbs | 0 .../GetAllDocForPrId/GetAllDocForPrId.yml | 2 + .../GetAllDocForPrId/getAllDocForPrId.hbs | 0 .../getAllDocForPrIdResult.hbs | 0 .../GetAllPreRegApplications.yml | 3 + .../GetAllPreRegApplicationsResult.hbs | 0 .../getAllPreRegApplications.hbs | 0 .../GetApplicationStatusByApplicationID.yml | 32 + .../getApplicationStatusByApplicationID.hbs | 3 + ...ApplicationStatusByApplicationIDResult.hbs | 0 .../GetApplicationStatusWithPrId.yml | 3 + .../getApplicationStatusWithPrId.hbs | 0 .../getApplicationStatusWithPrIdResult.hbs | 0 .../GetApplicationWithPrId.yml | 1 + .../getApplicationWithPrId.hbs | 0 .../getApplicationWithPrIdResult.hbs | 0 .../GetApplicationsApplicationID.yml | 32 + .../getApplicationsApplicationID.hbs | 3 + .../getApplicationsApplicationIDResult.hbs | 5 + .../GetAppointmentDetails.yml | 5 + .../getAppointmentDetails.hbs | 0 .../getAppointmentDetailsResult.hbs | 0 .../GetAvailableSlotForRegCentreId.yml | 3 + .../getAvailableSlotForRegCentreId.hbs | 0 .../getAvailableSlotForRegCentreIdResult.hbs | 0 .../GetBookingsForRegCenter.yml | 14 +- .../getBookingsForRegCenter.hbs | 0 .../getBookingsForRegCenterResult.hbs | 0 .../GetPRIDByDateRange/GetPRIDByDateRange.yml | 20 + .../GetPRIDByDateRange/getPRIDByDateRange.hbs | 0 .../getPRIDByDateRangeResult.hbs | 0 .../GetPRIDForRegCent/GetPRIDForRegCent.yml | 2 + .../GetPRIDForRegCent/getPRIDForRegCent.hbs | 3 + .../getPRIDForRegCentResult.hbs | 0 .../GetPreRegDemographicDataByPrid.yml | 35 ++ .../getPreRegDemographicDataByPrid.hbs | 0 .../getPreRegDemographicDataByPridResult.hbs | 11 + .../GetPreRegInfoByPrid.yml | 2 + .../getPreRegInfoByPrid.hbs | 3 + .../getPreRegInfoByPridResult.hbs | 0 .../GetSpecificDocumentforaPRID.yml | 3 + .../getSpecificDocumentforaPRID.hbs | 0 .../getSpecificDocumentforaPRIDResult.hbs | 0 .../GetUpdatedDateTimeByPrid.yml | 2 + .../getUpdatedDateTimeByPrid.hbs | 0 .../getUpdatedDateTimeByPridResult.hbs | 0 .../InvalidateToken/InvalidateToken.yml | 1 + .../InvalidateToken/invalidatetoken.hbs | 0 .../InvalidateToken/invalidatetokenresult.hbs | 3 + .../SendNotifications/SendNotifications.yml | 19 +- .../sendNotificationsNotify.hbs | 0 .../sendNotificationsResult.hbs | 0 .../sendNotifications_DOUBLE.hbs | 0 .../sendNotifications_DOUBLE_V3.hbs | 0 .../sendNotifications_SINGLE.hbs | 0 .../sendNotifications_TRIPLE.hbs | 0 .../main/resources/preReg/SendOtp/SendOtp.yml | 42 +- .../main/resources/preReg/SendOtp/sendotp.hbs | 0 .../preReg/SendOtp/sendotpResult.hbs | 0 .../preReg/Transliteration/Translate.yml | 3 + .../preReg/Transliteration/translate.hbs | 0 .../Transliteration/translateResult.hbs | 0 .../preReg/UpdateDocRefID/UpdateDocRefID.yml | 7 + .../preReg/UpdateDocRefID/updateDocRefID.hbs | 0 .../UpdateDocRefID/updateDocRefIDResult.hbs | 0 .../UpdatePreRegStatus/updatePreRegStatus.hbs | 0 .../UpdatePreRegStatus/updatePreRegStatus.yml | 9 + .../updatePreRegStatusResult.hbs | 0 .../UpdatePreregistration.yml | 15 + .../updatePreregistrationResult.hbs | 0 .../UpdatePridStatus/UpdatePridStatus.yml | 0 .../UpdatePridStatus/updatePridStatus.hbs | 0 .../updatePridStatusResult.hbs | 0 .../preReg/ValidateOtp/ValidateOtp.yml | 55 +- .../ValidateOtp}/autoGeneratedId.properties | 0 .../preReg/ValidateOtp/validateOtp.hbs | 0 .../preReg/ValidateOtp/validateOtpResult.hbs | 0 .../preReg/autoGeneratedId.properties | 1 + .../bookAppointment/bookAppointment.hbs | 0 .../bookAppointment/bookAppointment.yml | 35 +- .../bookAppointment/bookAppointmentResult.hbs | 0 .../bookAppointmentByPRID.hbs | 0 .../bookAppointmentByPRID.yml | 23 + .../bookAppointmentByPRIDResult.hbs | 0 .../preRegistrationResourceURL.properties | 0 .../config/preregistrationConfig.properties | 0 .../preReg/createPrereg/createPrereg.yml | 51 +- .../createPrereg/createPreregResult.hbs | 0 .../src/main/resources/preReg/error.hbs | 0 .../main/resources/preReg/file/moethan3mb.pdf | Bin .../resources/preReg/file/morethan10mbpdf.pdf | Bin .../resources/preReg/file/morethan1mb.PDF | Bin .../resources/preReg/file/morethan2mb.pdf | Bin .../resources/preReg/file/morethan4mb.pdf | Bin .../resources/preReg/file/morethan5mb.pdf | Bin .../preReg/uploadDocument/doc_POA.pdf | Bin .../preReg/uploadDocument/doc_POB.pdf | Bin .../preReg/uploadDocument/doc_POI.pdf | Bin .../preReg/uploadDocument/doc_POR.pdf | Bin .../uploadDocument/morethan1mbsmoke.pdf | Bin .../preReg/uploadDocument/uploadDocument.hbs | 0 .../preReg/uploadDocument/uploadDocument.yml | 49 +- .../uploadDocument/uploadDocumentResult.hbs | 0 .../src/main/resources/spring.properties | 0 .../main/resources/testCaseSkippedList.txt | 2 + .../src/main/resources/validations.properties | 0 .../testNgXmlFiles/preregApi.xml | 56 +- 207 files changed, 1238 insertions(+), 119 deletions(-) rename {apitest => api-test}/.gitignore (100%) rename {apitest => api-test}/.temp-Functional Test-classpath-arg-1659588646071.txt (100%) rename {apitest => api-test}/.temp-Functional Test-classpath-arg-1659589592502.txt (100%) rename {apitest => api-test}/.temp-MosipFunctionalTest-classpath-arg-1695652238739.txt (100%) rename {apitest => api-test}/.temp-New_configuration (1)-classpath-arg-1658840665646.txt (100%) rename {apitest => api-test}/Dockerfile (72%) rename {apitest => api-test}/README.md (100%) rename {apitest => api-test}/entrypoint.sh (100%) rename {apitest => api-test}/pom.xml (97%) rename {apitest => api-test}/src/main/java/io/mosip/testrig/apirig/testrunner/MosipTestRunner.java (97%) rename {apitest => api-test}/src/main/java/io/mosip/testrig/apirig/testscripts/BookAppoinment.java (98%) rename {apitest => api-test}/src/main/java/io/mosip/testrig/apirig/testscripts/BookAppoinmentByPrid.java (97%) rename {apitest => api-test}/src/main/java/io/mosip/testrig/apirig/testscripts/CreatePreReg.java (97%) rename {apitest => api-test}/src/main/java/io/mosip/testrig/apirig/testscripts/DeleteWithParam.java (97%) rename {apitest => api-test}/src/main/java/io/mosip/testrig/apirig/testscripts/GetWithParam.java (97%) rename {apitest => api-test}/src/main/java/io/mosip/testrig/apirig/testscripts/GetWithParamForAutoGenId.java (97%) rename {apitest => api-test}/src/main/java/io/mosip/testrig/apirig/testscripts/PostWithFormDataAndFileForNotificationAPI.java (97%) rename {apitest => api-test}/src/main/java/io/mosip/testrig/apirig/testscripts/PostWithFormPathParamAndFile.java (97%) rename {apitest => api-test}/src/main/java/io/mosip/testrig/apirig/testscripts/PostWithPathParamsAndBody.java (97%) rename {apitest => api-test}/src/main/java/io/mosip/testrig/apirig/testscripts/PreregAuditValidator.java (97%) rename {apitest => api-test}/src/main/java/io/mosip/testrig/apirig/testscripts/PutWithPathParam.java (97%) rename {apitest => api-test}/src/main/java/io/mosip/testrig/apirig/testscripts/SimplePost.java (97%) rename {apitest => api-test}/src/main/java/io/mosip/testrig/apirig/testscripts/UpdatePrereg.java (97%) create mode 100644 api-test/src/main/java/io/mosip/testrig/apirig/utils/PreRegUtil.java rename {apitest => api-test}/src/main/resources/config/Authorization/internalAuthRequest.json (100%) rename {apitest => api-test}/src/main/resources/config/Authorization/request.json (100%) rename {apitest => api-test}/src/main/resources/config/Kernel.properties (96%) rename {apitest => api-test}/src/main/resources/config/application.properties (100%) rename {apitest => api-test}/src/main/resources/config/healthCheckEndpoint.properties (100%) create mode 100644 api-test/src/main/resources/config/lang-isocode-transid.csv rename {apitest => api-test}/src/main/resources/config/prereg_SendOtp.json (100%) rename {apitest => api-test}/src/main/resources/config/prereg_ValidateOtp.json (100%) rename {apitest => api-test}/src/main/resources/customize-emailable-report-template.html (100%) rename {apitest => api-test}/src/main/resources/dbFiles/.xml (100%) rename {apitest => api-test}/src/main/resources/dbFiles/PMS_delete_script.txt (100%) rename {apitest => api-test}/src/main/resources/dbFiles/dbConfig.xml (100%) rename {apitest => api-test}/src/main/resources/dbFiles/delete_Masterdata.sql (100%) rename {apitest => api-test}/src/main/resources/krb5.conf (100%) rename {apitest => api-test}/src/main/resources/log4j.properties (100%) rename {apitest => api-test}/src/main/resources/metadata.xml (100%) rename {apitest => api-test}/src/main/resources/preReg/AddLostUinApplication/AddLostUinApplication.yml (82%) rename {apitest => api-test}/src/main/resources/preReg/AddLostUinApplication/addLostUinApplication.hbs (100%) rename {apitest => api-test}/src/main/resources/preReg/AddLostUinApplication/addLostUinApplicationResult.hbs (100%) rename {apitest => api-test}/src/main/resources/preReg/AddUpdateRegistration/AddUpdateRegistration.yml (89%) rename {apitest => api-test}/src/main/resources/preReg/AddUpdateRegistration/addUpdateRegistration.hbs (100%) rename {apitest => api-test}/src/main/resources/preReg/AddUpdateRegistration/addUpdateRegistrationResult.hbs (100%) rename {apitest => api-test}/src/main/resources/preReg/AuditLog/AuditLog.yml (100%) rename {apitest => api-test}/src/main/resources/preReg/AuditLog/AuditLogResult.hbs (100%) rename {apitest => api-test}/src/main/resources/preReg/AuditLog/auditlog.hbs (100%) rename {apitest => api-test}/src/main/resources/preReg/BookMultipleAppointment/BookMultipleAppointment.yml (100%) rename {apitest => api-test}/src/main/resources/preReg/BookMultipleAppointment/bookMultipleAppointment.hbs (100%) rename {apitest => api-test}/src/main/resources/preReg/BookMultipleAppointment/bookMultipleAppointmentResult.hbs (100%) rename {apitest => api-test}/src/main/resources/preReg/CancelApplicationsAppointment/CancelApplicationsAppointment.yml (87%) rename {apitest => api-test}/src/main/resources/preReg/CancelApplicationsAppointment/cancelApplicationsAppointment.hbs (100%) rename {apitest => api-test}/src/main/resources/preReg/CancelApplicationsAppointment/cancelApplicationsAppointmentResult.hbs (100%) rename {apitest => api-test}/src/main/resources/preReg/CancelAppointment/CancelAppointment.yml (82%) rename {apitest => api-test}/src/main/resources/preReg/CancelAppointment/cancelAppointment.hbs (100%) rename {apitest => api-test}/src/main/resources/preReg/CancelAppointment/cancelAppointmentResult.hbs (100%) rename {apitest => api-test}/src/main/resources/preReg/CopyDocument/CopyDocument.yml (85%) rename {apitest => api-test}/src/main/resources/preReg/CopyDocument/copyDocument.hbs (100%) rename {apitest => api-test}/src/main/resources/preReg/CopyDocument/copyDocumentResult.hbs (100%) rename {apitest => api-test}/src/main/resources/preReg/DeleteAllDocForaPRID/DeleteAllDocForaPRID.yml (82%) rename {apitest => api-test}/src/main/resources/preReg/DeleteAllDocForaPRID/deleteAllDocForaPRID.hbs (100%) rename {apitest => api-test}/src/main/resources/preReg/DeleteAllDocForaPRID/deleteAllDocForaPRIDResult.hbs (100%) rename {apitest => api-test}/src/main/resources/preReg/DeleteBooking/DeleteBooking.yml (87%) rename {apitest => api-test}/src/main/resources/preReg/DeleteBooking/deleteBooking.hbs (100%) rename {apitest => api-test}/src/main/resources/preReg/DeleteBooking/deleteBookingResult.hbs (100%) rename {apitest => api-test}/src/main/resources/preReg/DeleteLostUinApplication/DeleteLostUinApplication.yml (85%) rename {apitest => api-test}/src/main/resources/preReg/DeleteLostUinApplication/deleteLostUinApplication.hbs (100%) rename {apitest => api-test}/src/main/resources/preReg/DeleteLostUinApplication/deleteLostUinApplicationResult.hbs (100%) rename {apitest => api-test}/src/main/resources/preReg/DeletePreRegistration/DeletePreRegistration.yml (85%) rename {apitest => api-test}/src/main/resources/preReg/DeletePreRegistration/deletePreRegistration.hbs (100%) rename {apitest => api-test}/src/main/resources/preReg/DeletePreRegistration/deletePreRegistrationResult.hbs (100%) rename {apitest => api-test}/src/main/resources/preReg/DeleteSpecificDocForaPRID/DeleteSpecificDocForaPRID.yml (89%) rename {apitest => api-test}/src/main/resources/preReg/DeleteSpecificDocForaPRID/deleteSpecificDocForaPRID.hbs (100%) rename {apitest => api-test}/src/main/resources/preReg/DeleteSpecificDocForaPRID/deleteSpecificDocForaPRIDResult.hbs (100%) rename {apitest => api-test}/src/main/resources/preReg/DiscardBooking/DiscardBookingOutput.json (100%) rename {apitest => api-test}/src/main/resources/preReg/DiscardBooking/DiscardBookingRequest.json (100%) rename {apitest => api-test}/src/main/resources/preReg/DiscardBooking/DiscardBooking_smoke/request.json (100%) rename {apitest => api-test}/src/main/resources/preReg/DiscardBooking/DiscardBooking_smoke/response.json (100%) rename {apitest => api-test}/src/main/resources/preReg/Documents/invalidDocument/docSizeGreaterThan5MB.pdf (100%) rename {apitest => api-test}/src/main/resources/preReg/Documents/invalidDocument/file.csv (100%) rename {apitest => api-test}/src/main/resources/preReg/Documents/invalidDocument/file.txt (100%) rename {apitest => api-test}/src/main/resources/preReg/Documents/invalidDocument/file.xlsx (100%) rename {apitest => api-test}/src/main/resources/preReg/Documents/validDocument/IDProof.pdf (100%) rename {apitest => api-test}/src/main/resources/preReg/FetchApplicationByPrid/FetchApplicationByPrid.yml (87%) rename {apitest => api-test}/src/main/resources/preReg/FetchApplicationByPrid/fetchApplicationByPrid.hbs (100%) rename {apitest => api-test}/src/main/resources/preReg/FetchApplicationByPrid/fetchApplicationByPridResult.hbs (100%) rename {apitest => api-test}/src/main/resources/preReg/FetchAppointmentDetailsByPrid/FetchAppointmentDetailsByPrid.yml (86%) rename {apitest => api-test}/src/main/resources/preReg/FetchAppointmentDetailsByPrid/fetchAppointmentDetailsByPrid.hbs (100%) rename {apitest => api-test}/src/main/resources/preReg/FetchAppointmentDetailsByPrid/fetchAppointmentDetailsByPridResult.hbs (100%) create mode 100644 api-test/src/main/resources/preReg/FetchAvailabilityData/FetchAvailabilityData.yml rename apitest/src/main/resources/preReg/GetAvailableSlotForRegCentreId/getAvailableSlotForRegCentreId.hbs => api-test/src/main/resources/preReg/FetchAvailabilityData/fetchAvailabilityData.hbs (100%) create mode 100644 api-test/src/main/resources/preReg/FetchAvailabilityData/fetchAvailabilityDataResult.hbs rename {apitest => api-test}/src/main/resources/preReg/GetAllApplications/GetAllApplications.yml (86%) rename {apitest => api-test}/src/main/resources/preReg/GetAllApplications/getAllApplications.hbs (100%) rename {apitest => api-test}/src/main/resources/preReg/GetAllApplications/getAllApplicationsResult.hbs (100%) rename {apitest => api-test}/src/main/resources/preReg/GetAllApplicationsWithapplicationId/GetAllApplicationsWithapplicationId.hbs (100%) rename {apitest => api-test}/src/main/resources/preReg/GetAllApplicationsWithapplicationId/GetAllApplicationsWithapplicationId.yml (77%) rename {apitest => api-test}/src/main/resources/preReg/GetAllApplicationsWithapplicationId/getAllApplicationsResult.hbs (100%) rename {apitest => api-test}/src/main/resources/preReg/GetAllDocForPrId/GetAllDocForPrId.yml (84%) rename {apitest => api-test}/src/main/resources/preReg/GetAllDocForPrId/getAllDocForPrId.hbs (100%) rename {apitest => api-test}/src/main/resources/preReg/GetAllDocForPrId/getAllDocForPrIdResult.hbs (100%) rename {apitest => api-test}/src/main/resources/preReg/GetAllPreRegApplications/GetAllPreRegApplications.yml (80%) rename {apitest => api-test}/src/main/resources/preReg/GetAllPreRegApplications/GetAllPreRegApplicationsResult.hbs (100%) rename {apitest => api-test}/src/main/resources/preReg/GetAllPreRegApplications/getAllPreRegApplications.hbs (100%) create mode 100644 api-test/src/main/resources/preReg/GetApplicationStatusByApplicationID/GetApplicationStatusByApplicationID.yml create mode 100644 api-test/src/main/resources/preReg/GetApplicationStatusByApplicationID/getApplicationStatusByApplicationID.hbs rename apitest/src/main/resources/preReg/InvalidateToken/invalidatetokenresult.hbs => api-test/src/main/resources/preReg/GetApplicationStatusByApplicationID/getApplicationStatusByApplicationIDResult.hbs (100%) rename {apitest => api-test}/src/main/resources/preReg/GetApplicationStatusWithPrId/GetApplicationStatusWithPrId.yml (87%) rename {apitest => api-test}/src/main/resources/preReg/GetApplicationStatusWithPrId/getApplicationStatusWithPrId.hbs (100%) rename {apitest => api-test}/src/main/resources/preReg/GetApplicationStatusWithPrId/getApplicationStatusWithPrIdResult.hbs (100%) rename {apitest => api-test}/src/main/resources/preReg/GetApplicationWithPrId/GetApplicationWithPrId.yml (84%) rename {apitest => api-test}/src/main/resources/preReg/GetApplicationWithPrId/getApplicationWithPrId.hbs (100%) rename {apitest => api-test}/src/main/resources/preReg/GetApplicationWithPrId/getApplicationWithPrIdResult.hbs (100%) create mode 100644 api-test/src/main/resources/preReg/GetApplicationsApplicationID/GetApplicationsApplicationID.yml create mode 100644 api-test/src/main/resources/preReg/GetApplicationsApplicationID/getApplicationsApplicationID.hbs create mode 100644 api-test/src/main/resources/preReg/GetApplicationsApplicationID/getApplicationsApplicationIDResult.hbs rename {apitest => api-test}/src/main/resources/preReg/GetAppointmentDetails/GetAppointmentDetails.yml (85%) rename {apitest => api-test}/src/main/resources/preReg/GetAppointmentDetails/getAppointmentDetails.hbs (100%) rename {apitest => api-test}/src/main/resources/preReg/GetAppointmentDetails/getAppointmentDetailsResult.hbs (100%) rename {apitest => api-test}/src/main/resources/preReg/GetAvailableSlotForRegCentreId/GetAvailableSlotForRegCentreId.yml (85%) rename apitest/src/main/resources/preReg/GetPRIDForRegCent/getPRIDForRegCent.hbs => api-test/src/main/resources/preReg/GetAvailableSlotForRegCentreId/getAvailableSlotForRegCentreId.hbs (100%) rename {apitest => api-test}/src/main/resources/preReg/GetAvailableSlotForRegCentreId/getAvailableSlotForRegCentreIdResult.hbs (100%) rename {apitest => api-test}/src/main/resources/preReg/GetBookingsForRegCenter/GetBookingsForRegCenter.yml (65%) rename {apitest => api-test}/src/main/resources/preReg/GetBookingsForRegCenter/getBookingsForRegCenter.hbs (100%) rename {apitest => api-test}/src/main/resources/preReg/GetBookingsForRegCenter/getBookingsForRegCenterResult.hbs (100%) rename {apitest => api-test}/src/main/resources/preReg/GetPRIDByDateRange/GetPRIDByDateRange.yml (84%) rename {apitest => api-test}/src/main/resources/preReg/GetPRIDByDateRange/getPRIDByDateRange.hbs (100%) rename {apitest => api-test}/src/main/resources/preReg/GetPRIDByDateRange/getPRIDByDateRangeResult.hbs (100%) rename {apitest => api-test}/src/main/resources/preReg/GetPRIDForRegCent/GetPRIDForRegCent.yml (87%) create mode 100644 api-test/src/main/resources/preReg/GetPRIDForRegCent/getPRIDForRegCent.hbs rename {apitest => api-test}/src/main/resources/preReg/GetPRIDForRegCent/getPRIDForRegCentResult.hbs (100%) create mode 100644 api-test/src/main/resources/preReg/GetPreRegDemographicDataByPrid/GetPreRegDemographicDataByPrid.yml rename apitest/src/main/resources/preReg/GetPreRegInfoByPrid/getPreRegInfoByPrid.hbs => api-test/src/main/resources/preReg/GetPreRegDemographicDataByPrid/getPreRegDemographicDataByPrid.hbs (100%) create mode 100644 api-test/src/main/resources/preReg/GetPreRegDemographicDataByPrid/getPreRegDemographicDataByPridResult.hbs rename {apitest => api-test}/src/main/resources/preReg/GetPreRegInfoByPrid/GetPreRegInfoByPrid.yml (81%) create mode 100644 api-test/src/main/resources/preReg/GetPreRegInfoByPrid/getPreRegInfoByPrid.hbs rename {apitest => api-test}/src/main/resources/preReg/GetPreRegInfoByPrid/getPreRegInfoByPridResult.hbs (100%) rename {apitest => api-test}/src/main/resources/preReg/GetSpecificDocumentforaPRID/GetSpecificDocumentforaPRID.yml (87%) rename {apitest => api-test}/src/main/resources/preReg/GetSpecificDocumentforaPRID/getSpecificDocumentforaPRID.hbs (100%) rename {apitest => api-test}/src/main/resources/preReg/GetSpecificDocumentforaPRID/getSpecificDocumentforaPRIDResult.hbs (100%) rename {apitest => api-test}/src/main/resources/preReg/GetUpdatedDateTimeByPrid/GetUpdatedDateTimeByPrid.yml (90%) rename {apitest => api-test}/src/main/resources/preReg/GetUpdatedDateTimeByPrid/getUpdatedDateTimeByPrid.hbs (100%) rename {apitest => api-test}/src/main/resources/preReg/GetUpdatedDateTimeByPrid/getUpdatedDateTimeByPridResult.hbs (100%) rename {apitest => api-test}/src/main/resources/preReg/InvalidateToken/InvalidateToken.yml (87%) rename {apitest => api-test}/src/main/resources/preReg/InvalidateToken/invalidatetoken.hbs (100%) create mode 100644 api-test/src/main/resources/preReg/InvalidateToken/invalidatetokenresult.hbs rename {apitest => api-test}/src/main/resources/preReg/SendNotifications/SendNotifications.yml (83%) rename {apitest => api-test}/src/main/resources/preReg/SendNotifications/sendNotificationsNotify.hbs (100%) rename {apitest => api-test}/src/main/resources/preReg/SendNotifications/sendNotificationsResult.hbs (100%) rename {apitest => api-test}/src/main/resources/preReg/SendNotifications/sendNotifications_DOUBLE.hbs (100%) rename {apitest => api-test}/src/main/resources/preReg/SendNotifications/sendNotifications_DOUBLE_V3.hbs (100%) rename {apitest => api-test}/src/main/resources/preReg/SendNotifications/sendNotifications_SINGLE.hbs (100%) rename {apitest => api-test}/src/main/resources/preReg/SendNotifications/sendNotifications_TRIPLE.hbs (100%) rename {apitest => api-test}/src/main/resources/preReg/SendOtp/SendOtp.yml (70%) rename {apitest => api-test}/src/main/resources/preReg/SendOtp/sendotp.hbs (100%) rename {apitest => api-test}/src/main/resources/preReg/SendOtp/sendotpResult.hbs (100%) rename {apitest => api-test}/src/main/resources/preReg/Transliteration/Translate.yml (87%) rename {apitest => api-test}/src/main/resources/preReg/Transliteration/translate.hbs (100%) rename {apitest => api-test}/src/main/resources/preReg/Transliteration/translateResult.hbs (100%) rename {apitest => api-test}/src/main/resources/preReg/UpdateDocRefID/UpdateDocRefID.yml (87%) rename {apitest => api-test}/src/main/resources/preReg/UpdateDocRefID/updateDocRefID.hbs (100%) rename {apitest => api-test}/src/main/resources/preReg/UpdateDocRefID/updateDocRefIDResult.hbs (100%) rename {apitest => api-test}/src/main/resources/preReg/UpdatePreRegStatus/updatePreRegStatus.hbs (100%) rename {apitest => api-test}/src/main/resources/preReg/UpdatePreRegStatus/updatePreRegStatus.yml (82%) rename {apitest => api-test}/src/main/resources/preReg/UpdatePreRegStatus/updatePreRegStatusResult.hbs (100%) rename {apitest => api-test}/src/main/resources/preReg/UpdatePreregistration/UpdatePreregistration.yml (90%) rename {apitest => api-test}/src/main/resources/preReg/UpdatePreregistration/updatePreregistrationResult.hbs (100%) rename {apitest => api-test}/src/main/resources/preReg/UpdatePridStatus/UpdatePridStatus.yml (100%) rename {apitest => api-test}/src/main/resources/preReg/UpdatePridStatus/updatePridStatus.hbs (100%) rename {apitest => api-test}/src/main/resources/preReg/UpdatePridStatus/updatePridStatusResult.hbs (100%) rename {apitest => api-test}/src/main/resources/preReg/ValidateOtp/ValidateOtp.yml (76%) rename {apitest/src/main/resources/preReg => api-test/src/main/resources/preReg/ValidateOtp}/autoGeneratedId.properties (100%) rename {apitest => api-test}/src/main/resources/preReg/ValidateOtp/validateOtp.hbs (100%) rename {apitest => api-test}/src/main/resources/preReg/ValidateOtp/validateOtpResult.hbs (100%) create mode 100644 api-test/src/main/resources/preReg/autoGeneratedId.properties rename {apitest => api-test}/src/main/resources/preReg/bookAppointment/bookAppointment.hbs (100%) rename {apitest => api-test}/src/main/resources/preReg/bookAppointment/bookAppointment.yml (91%) rename {apitest => api-test}/src/main/resources/preReg/bookAppointment/bookAppointmentResult.hbs (100%) rename {apitest => api-test}/src/main/resources/preReg/bookAppointmentByPRID/bookAppointmentByPRID.hbs (100%) rename {apitest => api-test}/src/main/resources/preReg/bookAppointmentByPRID/bookAppointmentByPRID.yml (90%) rename {apitest => api-test}/src/main/resources/preReg/bookAppointmentByPRID/bookAppointmentByPRIDResult.hbs (100%) rename {apitest => api-test}/src/main/resources/preReg/config/preRegistrationResourceURL.properties (100%) rename {apitest => api-test}/src/main/resources/preReg/config/preregistrationConfig.properties (100%) rename {apitest => api-test}/src/main/resources/preReg/createPrereg/createPrereg.yml (86%) rename {apitest => api-test}/src/main/resources/preReg/createPrereg/createPreregResult.hbs (100%) rename {apitest => api-test}/src/main/resources/preReg/error.hbs (100%) rename {apitest => api-test}/src/main/resources/preReg/file/moethan3mb.pdf (100%) rename {apitest => api-test}/src/main/resources/preReg/file/morethan10mbpdf.pdf (100%) rename {apitest => api-test}/src/main/resources/preReg/file/morethan1mb.PDF (100%) rename {apitest => api-test}/src/main/resources/preReg/file/morethan2mb.pdf (100%) rename {apitest => api-test}/src/main/resources/preReg/file/morethan4mb.pdf (100%) rename {apitest => api-test}/src/main/resources/preReg/file/morethan5mb.pdf (100%) rename {apitest => api-test}/src/main/resources/preReg/uploadDocument/doc_POA.pdf (100%) rename {apitest => api-test}/src/main/resources/preReg/uploadDocument/doc_POB.pdf (100%) rename {apitest => api-test}/src/main/resources/preReg/uploadDocument/doc_POI.pdf (100%) rename {apitest => api-test}/src/main/resources/preReg/uploadDocument/doc_POR.pdf (100%) rename {apitest => api-test}/src/main/resources/preReg/uploadDocument/morethan1mbsmoke.pdf (100%) rename {apitest => api-test}/src/main/resources/preReg/uploadDocument/uploadDocument.hbs (100%) rename {apitest => api-test}/src/main/resources/preReg/uploadDocument/uploadDocument.yml (89%) rename {apitest => api-test}/src/main/resources/preReg/uploadDocument/uploadDocumentResult.hbs (100%) rename {apitest => api-test}/src/main/resources/spring.properties (100%) create mode 100644 api-test/src/main/resources/testCaseSkippedList.txt rename {apitest => api-test}/src/main/resources/validations.properties (100%) rename {apitest => api-test}/testNgXmlFiles/preregApi.xml (90%) diff --git a/.github/workflows/push-trigger.yml b/.github/workflows/push-trigger.yml index 699c8ffaade..a686d646f97 100644 --- a/.github/workflows/push-trigger.yml +++ b/.github/workflows/push-trigger.yml @@ -96,7 +96,7 @@ jobs: build-maven-apitest-prereg: uses: mosip/kattu/.github/workflows/maven-build.yml@master with: - SERVICE_LOCATION: ./apitest + SERVICE_LOCATION: ./api-test BUILD_ARTIFACT: apitest-prereg secrets: OSSRH_USER: ${{ secrets.OSSRH_USER }} @@ -110,7 +110,7 @@ jobs: needs: build-maven-apitest-prereg uses: mosip/kattu/.github/workflows/maven-publish-to-nexus.yml@master with: - SERVICE_LOCATION: ./apitest + SERVICE_LOCATION: ./api-test secrets: OSSRH_USER: ${{ secrets.OSSRH_USER }} OSSRH_SECRET: ${{ secrets.OSSRH_SECRET }} @@ -125,7 +125,7 @@ jobs: env: NAMESPACE: ${{ secrets.dev_namespace_docker_hub }} SERVICE_NAME: apitest-prereg - SERVICE_LOCATION: apitest + SERVICE_LOCATION: api-test BUILD_ARTIFACT: apitest-prereg-local steps: - uses: actions/checkout@v2 @@ -170,7 +170,7 @@ jobs: strategy: matrix: include: - - SERVICE_LOCATION: 'apitest' + - SERVICE_LOCATION: 'api-test' SERVICE_NAME: 'apitest-prereg' BUILD_ARTIFACT: 'apitest-prereg-local' ONLY_DOCKER: true @@ -193,7 +193,7 @@ jobs: if: "${{ github.event_name != 'pull_request' }}" uses: mosip/kattu/.github/workflows/maven-sonar-analysis.yml@master with: - SERVICE_LOCATION: ./apitest + SERVICE_LOCATION: ./api-test secrets: SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }} ORG_KEY: ${{ secrets.ORG_KEY }} diff --git a/apitest/.gitignore b/api-test/.gitignore similarity index 100% rename from apitest/.gitignore rename to api-test/.gitignore diff --git a/apitest/.temp-Functional Test-classpath-arg-1659588646071.txt b/api-test/.temp-Functional Test-classpath-arg-1659588646071.txt similarity index 100% rename from apitest/.temp-Functional Test-classpath-arg-1659588646071.txt rename to api-test/.temp-Functional Test-classpath-arg-1659588646071.txt diff --git a/apitest/.temp-Functional Test-classpath-arg-1659589592502.txt b/api-test/.temp-Functional Test-classpath-arg-1659589592502.txt similarity index 100% rename from apitest/.temp-Functional Test-classpath-arg-1659589592502.txt rename to api-test/.temp-Functional Test-classpath-arg-1659589592502.txt diff --git a/apitest/.temp-MosipFunctionalTest-classpath-arg-1695652238739.txt b/api-test/.temp-MosipFunctionalTest-classpath-arg-1695652238739.txt similarity index 100% rename from apitest/.temp-MosipFunctionalTest-classpath-arg-1695652238739.txt rename to api-test/.temp-MosipFunctionalTest-classpath-arg-1695652238739.txt diff --git a/apitest/.temp-New_configuration (1)-classpath-arg-1658840665646.txt b/api-test/.temp-New_configuration (1)-classpath-arg-1658840665646.txt similarity index 100% rename from apitest/.temp-New_configuration (1)-classpath-arg-1658840665646.txt rename to api-test/.temp-New_configuration (1)-classpath-arg-1658840665646.txt diff --git a/apitest/Dockerfile b/api-test/Dockerfile similarity index 72% rename from apitest/Dockerfile rename to api-test/Dockerfile index 70a5d4db269..62956aef0a8 100644 --- a/apitest/Dockerfile +++ b/api-test/Dockerfile @@ -1,4 +1,4 @@ -FROM openjdk:11 +FROM mosipdev/openjdk-21-jre:latest ARG SOURCE ARG COMMIT_HASH @@ -23,32 +23,26 @@ ARG container_user_gid=1001 ARG KUBECTL_VERSION=1.22.9 -# install packages and create user -RUN apt-get -y update \ -&& apt-get install -y unzip jq \ -&& groupadd -g ${container_user_gid} ${container_user_group} \ -&& useradd -u ${container_user_uid} -g ${container_user_group} -s /bin/sh -m ${container_user} \ -&& curl -LO "https://storage.googleapis.com/kubernetes-release/release/v${KUBECTL_VERSION}/bin/linux/amd64/kubectl" \ -&& chmod +x kubectl \ -&& mv kubectl /usr/local/bin/ - # set working directory for the user WORKDIR /home/${container_user} ENV work_dir=/home/${container_user} -ADD ./apitest/target/ $work_dir - -ADD entrypoint.sh $work_dir/entrypoint.sh - -RUN chmod +x $work_dir/entrypoint.sh +# Combine all necessary files into a single COPY command +COPY ./api-test/target $work_dir/ +COPY entrypoint.sh $work_dir -#ADD ./testNgXmlFiles/ $work_dir/testNgXmlFiles/ - -# change permissions of file inside working dir -RUN chown -R ${container_user}:${container_user} /home/${container_user} /usr/local/openjdk-11/lib/security/cacerts - -RUN chmod 644 /usr/local/openjdk-11/lib/security/cacerts +# install packages and create user +RUN apt-get -y update \ +&& apt-get install -y unzip jq curl \ +&& groupadd -g ${container_user_gid} ${container_user_group} \ +&& useradd -u ${container_user_uid} -g ${container_user_group} -s /bin/bash -m ${container_user} \ +&& curl -LO "https://storage.googleapis.com/kubernetes-release/release/v${KUBECTL_VERSION}/bin/linux/amd64/kubectl" \ +&& mkdir -p /home/${container_user} \ +&& chmod +x kubectl $work_dir/entrypoint.sh \ +&& mv kubectl /usr/local/bin/ \ +&& chown -R ${container_user}:${container_user} /home/${container_user} /etc/ssl/certs/java/cacerts \ +&& chmod 644 /etc/ssl/certs/java/cacerts # select container user for all tasks USER ${container_user_uid}:${container_user_gid} diff --git a/apitest/README.md b/api-test/README.md similarity index 100% rename from apitest/README.md rename to api-test/README.md diff --git a/apitest/entrypoint.sh b/api-test/entrypoint.sh similarity index 100% rename from apitest/entrypoint.sh rename to api-test/entrypoint.sh diff --git a/apitest/pom.xml b/api-test/pom.xml similarity index 97% rename from apitest/pom.xml rename to api-test/pom.xml index 9fb8d881efc..2e5aa737c54 100644 --- a/apitest/pom.xml +++ b/api-test/pom.xml @@ -8,7 +8,7 @@ apitest-prereg Parent project of MOSIP Pre-Registration apitests https://github.com/mosip/pre-registration - 1.3.0-SNAPSHOT + 1.2.1-SNAPSHOT @@ -37,8 +37,8 @@ UTF-8 - 11 - 11 + 21 + 21 3.8.0 3.0.2 3.1.0 @@ -49,7 +49,7 @@ 2.2.1 3.0.1 - apitest-prereg-1.3.0-SNAPSHOT-jar-with-dependencies + apitest-prereg-1.2.1-SNAPSHOT-jar-with-dependencies @@ -265,4 +265,4 @@ - + \ No newline at end of file diff --git a/apitest/src/main/java/io/mosip/testrig/apirig/testrunner/MosipTestRunner.java b/api-test/src/main/java/io/mosip/testrig/apirig/testrunner/MosipTestRunner.java similarity index 97% rename from apitest/src/main/java/io/mosip/testrig/apirig/testrunner/MosipTestRunner.java rename to api-test/src/main/java/io/mosip/testrig/apirig/testrunner/MosipTestRunner.java index 7f4af9ad335..c0d679e5699 100644 --- a/apitest/src/main/java/io/mosip/testrig/apirig/testrunner/MosipTestRunner.java +++ b/api-test/src/main/java/io/mosip/testrig/apirig/testrunner/MosipTestRunner.java @@ -34,6 +34,7 @@ import io.mosip.testrig.apirig.utils.MispPartnerAndLicenseKeyGeneration; import io.mosip.testrig.apirig.utils.OutputValidationUtil; import io.mosip.testrig.apirig.utils.PartnerRegistration; +import io.mosip.testrig.apirig.utils.SkipTestCaseHandler; /** * Class to initiate mosip api test execution @@ -70,8 +71,10 @@ public static void main(String[] arg) { } ConfigManager.init(); BaseTestCase.suiteSetup(); + SkipTestCaseHandler.loadTestcaseToBeSkippedList("testCaseSkippedList.txt"); setLogLevels(); + // For now we are not doing health check for qa-115. if (BaseTestCase.isTargetEnvLTS()) { HealthChecker healthcheck = new HealthChecker(); @@ -82,6 +85,8 @@ public static void main(String[] arg) { KeycloakUserManager.removeUser(); KeycloakUserManager.createUsers(); KeycloakUserManager.closeKeycloakInstance(); + + //List localDocCatCode =new ArrayList<>(BaseTestCase.getDocCatCode()); startTestRunner(); } catch (Exception e) { diff --git a/apitest/src/main/java/io/mosip/testrig/apirig/testscripts/BookAppoinment.java b/api-test/src/main/java/io/mosip/testrig/apirig/testscripts/BookAppoinment.java similarity index 98% rename from apitest/src/main/java/io/mosip/testrig/apirig/testscripts/BookAppoinment.java rename to api-test/src/main/java/io/mosip/testrig/apirig/testscripts/BookAppoinment.java index c251e8949e7..de683690b81 100644 --- a/apitest/src/main/java/io/mosip/testrig/apirig/testscripts/BookAppoinment.java +++ b/api-test/src/main/java/io/mosip/testrig/apirig/testscripts/BookAppoinment.java @@ -32,6 +32,7 @@ import io.mosip.testrig.apirig.utils.GlobalConstants; import io.mosip.testrig.apirig.utils.KernelAuthentication; import io.mosip.testrig.apirig.utils.OutputValidationUtil; +import io.mosip.testrig.apirig.utils.PreRegUtil; import io.mosip.testrig.apirig.utils.ReportUtil; import io.mosip.testrig.apirig.utils.RestClient; import io.restassured.response.Response; @@ -81,6 +82,7 @@ public Object[] getTestCaseList(ITestContext context) { */ @Test(dataProvider = "testcaselist") public void test(TestCaseDTO testCaseDTO) throws AuthenticationTestException, AdminTestException { + testCaseName = PreRegUtil.isTestCaseValidForExecution(testCaseDTO); String regCenterId = null; if (HealthChecker.signalTerminateExecution) { throw new SkipException( diff --git a/apitest/src/main/java/io/mosip/testrig/apirig/testscripts/BookAppoinmentByPrid.java b/api-test/src/main/java/io/mosip/testrig/apirig/testscripts/BookAppoinmentByPrid.java similarity index 97% rename from apitest/src/main/java/io/mosip/testrig/apirig/testscripts/BookAppoinmentByPrid.java rename to api-test/src/main/java/io/mosip/testrig/apirig/testscripts/BookAppoinmentByPrid.java index a709f1e9656..8271c390535 100644 --- a/apitest/src/main/java/io/mosip/testrig/apirig/testscripts/BookAppoinmentByPrid.java +++ b/api-test/src/main/java/io/mosip/testrig/apirig/testscripts/BookAppoinmentByPrid.java @@ -31,6 +31,7 @@ import io.mosip.testrig.apirig.utils.GlobalConstants; import io.mosip.testrig.apirig.utils.KernelAuthentication; import io.mosip.testrig.apirig.utils.OutputValidationUtil; +import io.mosip.testrig.apirig.utils.PreRegUtil; import io.mosip.testrig.apirig.utils.ReportUtil; import io.mosip.testrig.apirig.utils.RestClient; import io.restassured.response.Response; @@ -84,6 +85,7 @@ public void test(TestCaseDTO testCaseDTO) throws AuthenticationTestException, Ad String timeSlotFrom = null; String timeSlotTo = null; testCaseName = testCaseDTO.getTestCaseName(); + testCaseName = PreRegUtil.isTestCaseValidForExecution(testCaseDTO); if (HealthChecker.signalTerminateExecution) { throw new SkipException( GlobalConstants.TARGET_ENV_HEALTH_CHECK_FAILED + HealthChecker.healthCheckFailureMapS); diff --git a/apitest/src/main/java/io/mosip/testrig/apirig/testscripts/CreatePreReg.java b/api-test/src/main/java/io/mosip/testrig/apirig/testscripts/CreatePreReg.java similarity index 97% rename from apitest/src/main/java/io/mosip/testrig/apirig/testscripts/CreatePreReg.java rename to api-test/src/main/java/io/mosip/testrig/apirig/testscripts/CreatePreReg.java index f64c3ef307b..7eee5435097 100644 --- a/apitest/src/main/java/io/mosip/testrig/apirig/testscripts/CreatePreReg.java +++ b/api-test/src/main/java/io/mosip/testrig/apirig/testscripts/CreatePreReg.java @@ -31,6 +31,7 @@ import io.mosip.testrig.apirig.utils.ConfigManager; import io.mosip.testrig.apirig.utils.GlobalConstants; import io.mosip.testrig.apirig.utils.OutputValidationUtil; +import io.mosip.testrig.apirig.utils.PreRegUtil; import io.mosip.testrig.apirig.utils.ReportUtil; import io.restassured.response.Response; @@ -83,6 +84,7 @@ public Object[] getTestCaseList(ITestContext context) { public void test(TestCaseDTO testCaseDTO) throws AuthenticationTestException, AdminTestException, NoSuchAlgorithmException { testCaseName = testCaseDTO.getTestCaseName(); + testCaseName = PreRegUtil.isTestCaseValidForExecution(testCaseDTO); if (HealthChecker.signalTerminateExecution) { throw new SkipException( GlobalConstants.TARGET_ENV_HEALTH_CHECK_FAILED + HealthChecker.healthCheckFailureMapS); diff --git a/apitest/src/main/java/io/mosip/testrig/apirig/testscripts/DeleteWithParam.java b/api-test/src/main/java/io/mosip/testrig/apirig/testscripts/DeleteWithParam.java similarity index 97% rename from apitest/src/main/java/io/mosip/testrig/apirig/testscripts/DeleteWithParam.java rename to api-test/src/main/java/io/mosip/testrig/apirig/testscripts/DeleteWithParam.java index cf3496b404e..ff975a331fd 100644 --- a/apitest/src/main/java/io/mosip/testrig/apirig/testscripts/DeleteWithParam.java +++ b/api-test/src/main/java/io/mosip/testrig/apirig/testscripts/DeleteWithParam.java @@ -29,6 +29,7 @@ import io.mosip.testrig.apirig.utils.ConfigManager; import io.mosip.testrig.apirig.utils.GlobalConstants; import io.mosip.testrig.apirig.utils.OutputValidationUtil; +import io.mosip.testrig.apirig.utils.PreRegUtil; import io.mosip.testrig.apirig.utils.ReportUtil; import io.restassured.response.Response; @@ -75,6 +76,7 @@ public Object[] getTestCaseList(ITestContext context) { @Test(dataProvider = "testcaselist") public void test(TestCaseDTO testCaseDTO) throws AuthenticationTestException, AdminTestException { testCaseName = testCaseDTO.getTestCaseName(); + testCaseName = PreRegUtil.isTestCaseValidForExecution(testCaseDTO); testCaseName = isTestCaseValidForExecution(testCaseDTO); if (HealthChecker.signalTerminateExecution) { throw new SkipException( diff --git a/apitest/src/main/java/io/mosip/testrig/apirig/testscripts/GetWithParam.java b/api-test/src/main/java/io/mosip/testrig/apirig/testscripts/GetWithParam.java similarity index 97% rename from apitest/src/main/java/io/mosip/testrig/apirig/testscripts/GetWithParam.java rename to api-test/src/main/java/io/mosip/testrig/apirig/testscripts/GetWithParam.java index 619854620ab..d04e3d735ed 100644 --- a/apitest/src/main/java/io/mosip/testrig/apirig/testscripts/GetWithParam.java +++ b/api-test/src/main/java/io/mosip/testrig/apirig/testscripts/GetWithParam.java @@ -29,6 +29,7 @@ import io.mosip.testrig.apirig.utils.ConfigManager; import io.mosip.testrig.apirig.utils.GlobalConstants; import io.mosip.testrig.apirig.utils.OutputValidationUtil; +import io.mosip.testrig.apirig.utils.PreRegUtil; import io.mosip.testrig.apirig.utils.ReportUtil; import io.restassured.response.Response; @@ -78,6 +79,7 @@ public Object[] getTestCaseList(ITestContext context) { @Test(dataProvider = "testcaselist") public void test(TestCaseDTO testCaseDTO) throws AuthenticationTestException, AdminTestException { testCaseName = testCaseDTO.getTestCaseName(); + testCaseName = PreRegUtil.isTestCaseValidForExecution(testCaseDTO); testCaseName = isTestCaseValidForExecution(testCaseDTO); if (HealthChecker.signalTerminateExecution) { throw new SkipException( diff --git a/apitest/src/main/java/io/mosip/testrig/apirig/testscripts/GetWithParamForAutoGenId.java b/api-test/src/main/java/io/mosip/testrig/apirig/testscripts/GetWithParamForAutoGenId.java similarity index 97% rename from apitest/src/main/java/io/mosip/testrig/apirig/testscripts/GetWithParamForAutoGenId.java rename to api-test/src/main/java/io/mosip/testrig/apirig/testscripts/GetWithParamForAutoGenId.java index 73c0d3dafe3..cff83158b7c 100644 --- a/apitest/src/main/java/io/mosip/testrig/apirig/testscripts/GetWithParamForAutoGenId.java +++ b/api-test/src/main/java/io/mosip/testrig/apirig/testscripts/GetWithParamForAutoGenId.java @@ -29,6 +29,7 @@ import io.mosip.testrig.apirig.utils.ConfigManager; import io.mosip.testrig.apirig.utils.GlobalConstants; import io.mosip.testrig.apirig.utils.OutputValidationUtil; +import io.mosip.testrig.apirig.utils.PreRegUtil; import io.mosip.testrig.apirig.utils.ReportUtil; import io.restassured.response.Response; @@ -80,6 +81,7 @@ public Object[] getTestCaseList(ITestContext context) { @Test(dataProvider = "testcaselist") public void test(TestCaseDTO testCaseDTO) throws AuthenticationTestException, AdminTestException { testCaseName = testCaseDTO.getTestCaseName(); + testCaseName = PreRegUtil.isTestCaseValidForExecution(testCaseDTO); testCaseName = isTestCaseValidForExecution(testCaseDTO); if (HealthChecker.signalTerminateExecution) { throw new SkipException( diff --git a/apitest/src/main/java/io/mosip/testrig/apirig/testscripts/PostWithFormDataAndFileForNotificationAPI.java b/api-test/src/main/java/io/mosip/testrig/apirig/testscripts/PostWithFormDataAndFileForNotificationAPI.java similarity index 97% rename from apitest/src/main/java/io/mosip/testrig/apirig/testscripts/PostWithFormDataAndFileForNotificationAPI.java rename to api-test/src/main/java/io/mosip/testrig/apirig/testscripts/PostWithFormDataAndFileForNotificationAPI.java index 6aafb09a868..3b5907a2e44 100644 --- a/apitest/src/main/java/io/mosip/testrig/apirig/testscripts/PostWithFormDataAndFileForNotificationAPI.java +++ b/api-test/src/main/java/io/mosip/testrig/apirig/testscripts/PostWithFormDataAndFileForNotificationAPI.java @@ -27,6 +27,7 @@ import io.mosip.testrig.apirig.utils.ConfigManager; import io.mosip.testrig.apirig.utils.GlobalConstants; import io.mosip.testrig.apirig.utils.OutputValidationUtil; +import io.mosip.testrig.apirig.utils.PreRegUtil; import io.mosip.testrig.apirig.utils.ReportUtil; import io.restassured.response.Response; @@ -77,6 +78,7 @@ public Object[] getTestCaseList(ITestContext context) { @Test(dataProvider = "testcaselist") public void test(TestCaseDTO testCaseDTO) throws AdminTestException { testCaseName = testCaseDTO.getTestCaseName(); + testCaseName = PreRegUtil.isTestCaseValidForExecution(testCaseDTO); String inputJson = getJsonFromTemplate(testCaseDTO.getInput(), testCaseDTO.getInputTemplate()); testCaseDTO = AdminTestUtil.filterHbs(testCaseDTO); if (HealthChecker.signalTerminateExecution) { diff --git a/apitest/src/main/java/io/mosip/testrig/apirig/testscripts/PostWithFormPathParamAndFile.java b/api-test/src/main/java/io/mosip/testrig/apirig/testscripts/PostWithFormPathParamAndFile.java similarity index 97% rename from apitest/src/main/java/io/mosip/testrig/apirig/testscripts/PostWithFormPathParamAndFile.java rename to api-test/src/main/java/io/mosip/testrig/apirig/testscripts/PostWithFormPathParamAndFile.java index d318db71eb3..783291485b2 100644 --- a/apitest/src/main/java/io/mosip/testrig/apirig/testscripts/PostWithFormPathParamAndFile.java +++ b/api-test/src/main/java/io/mosip/testrig/apirig/testscripts/PostWithFormPathParamAndFile.java @@ -27,6 +27,7 @@ import io.mosip.testrig.apirig.utils.ConfigManager; import io.mosip.testrig.apirig.utils.GlobalConstants; import io.mosip.testrig.apirig.utils.OutputValidationUtil; +import io.mosip.testrig.apirig.utils.PreRegUtil; import io.mosip.testrig.apirig.utils.ReportUtil; import io.restassured.response.Response; @@ -77,6 +78,7 @@ public Object[] getTestCaseList(ITestContext context) { @Test(dataProvider = "testcaselist") public void test(TestCaseDTO testCaseDTO) throws AdminTestException { testCaseName = testCaseDTO.getTestCaseName(); + testCaseName = PreRegUtil.isTestCaseValidForExecution(testCaseDTO); if (HealthChecker.signalTerminateExecution) { throw new SkipException( GlobalConstants.TARGET_ENV_HEALTH_CHECK_FAILED + HealthChecker.healthCheckFailureMapS); diff --git a/apitest/src/main/java/io/mosip/testrig/apirig/testscripts/PostWithPathParamsAndBody.java b/api-test/src/main/java/io/mosip/testrig/apirig/testscripts/PostWithPathParamsAndBody.java similarity index 97% rename from apitest/src/main/java/io/mosip/testrig/apirig/testscripts/PostWithPathParamsAndBody.java rename to api-test/src/main/java/io/mosip/testrig/apirig/testscripts/PostWithPathParamsAndBody.java index 00ca27af272..d7bdf2e6186 100644 --- a/apitest/src/main/java/io/mosip/testrig/apirig/testscripts/PostWithPathParamsAndBody.java +++ b/api-test/src/main/java/io/mosip/testrig/apirig/testscripts/PostWithPathParamsAndBody.java @@ -27,6 +27,7 @@ import io.mosip.testrig.apirig.utils.ConfigManager; import io.mosip.testrig.apirig.utils.GlobalConstants; import io.mosip.testrig.apirig.utils.OutputValidationUtil; +import io.mosip.testrig.apirig.utils.PreRegUtil; import io.mosip.testrig.apirig.utils.ReportUtil; import io.restassured.response.Response; @@ -75,6 +76,7 @@ public Object[] getTestCaseList(ITestContext context) { */ @Test(dataProvider = "testcaselist") public void test(TestCaseDTO testCaseDTO) throws AuthenticationTestException, AdminTestException { + testCaseName = PreRegUtil.isTestCaseValidForExecution(testCaseDTO); String regCenterId = null; if (HealthChecker.signalTerminateExecution) { throw new SkipException( diff --git a/apitest/src/main/java/io/mosip/testrig/apirig/testscripts/PreregAuditValidator.java b/api-test/src/main/java/io/mosip/testrig/apirig/testscripts/PreregAuditValidator.java similarity index 97% rename from apitest/src/main/java/io/mosip/testrig/apirig/testscripts/PreregAuditValidator.java rename to api-test/src/main/java/io/mosip/testrig/apirig/testscripts/PreregAuditValidator.java index fde9395570d..6a9b380990b 100644 --- a/apitest/src/main/java/io/mosip/testrig/apirig/testscripts/PreregAuditValidator.java +++ b/api-test/src/main/java/io/mosip/testrig/apirig/testscripts/PreregAuditValidator.java @@ -32,6 +32,7 @@ import io.mosip.testrig.apirig.utils.ConfigManager; import io.mosip.testrig.apirig.utils.GlobalConstants; import io.mosip.testrig.apirig.utils.OutputValidationUtil; +import io.mosip.testrig.apirig.utils.PreRegUtil; import io.restassured.response.Response; public class PreregAuditValidator extends AdminTestUtil implements ITest { @@ -71,6 +72,7 @@ public Object[] getTestCaseList(ITestContext context) { @Test(dataProvider = "testcaselist") public void test(TestCaseDTO testCaseDTO) throws AuthenticationTestException, AdminTestException { testCaseName = testCaseDTO.getTestCaseName(); + testCaseName = PreRegUtil.isTestCaseValidForExecution(testCaseDTO); if (HealthChecker.signalTerminateExecution) { throw new SkipException( GlobalConstants.TARGET_ENV_HEALTH_CHECK_FAILED + HealthChecker.healthCheckFailureMapS); diff --git a/apitest/src/main/java/io/mosip/testrig/apirig/testscripts/PutWithPathParam.java b/api-test/src/main/java/io/mosip/testrig/apirig/testscripts/PutWithPathParam.java similarity index 97% rename from apitest/src/main/java/io/mosip/testrig/apirig/testscripts/PutWithPathParam.java rename to api-test/src/main/java/io/mosip/testrig/apirig/testscripts/PutWithPathParam.java index 0dbf734bd61..7c3039f8cba 100644 --- a/apitest/src/main/java/io/mosip/testrig/apirig/testscripts/PutWithPathParam.java +++ b/api-test/src/main/java/io/mosip/testrig/apirig/testscripts/PutWithPathParam.java @@ -29,6 +29,7 @@ import io.mosip.testrig.apirig.utils.ConfigManager; import io.mosip.testrig.apirig.utils.GlobalConstants; import io.mosip.testrig.apirig.utils.OutputValidationUtil; +import io.mosip.testrig.apirig.utils.PreRegUtil; import io.mosip.testrig.apirig.utils.ReportUtil; import io.restassured.response.Response; @@ -77,6 +78,7 @@ public Object[] getTestCaseList(ITestContext context) { @Test(dataProvider = "testcaselist") public void test(TestCaseDTO testCaseDTO) throws AuthenticationTestException, AdminTestException { testCaseName = testCaseDTO.getTestCaseName(); + testCaseName = PreRegUtil.isTestCaseValidForExecution(testCaseDTO); String[] templateFields = testCaseDTO.getTemplateFields(); if (HealthChecker.signalTerminateExecution) { throw new SkipException( diff --git a/apitest/src/main/java/io/mosip/testrig/apirig/testscripts/SimplePost.java b/api-test/src/main/java/io/mosip/testrig/apirig/testscripts/SimplePost.java similarity index 97% rename from apitest/src/main/java/io/mosip/testrig/apirig/testscripts/SimplePost.java rename to api-test/src/main/java/io/mosip/testrig/apirig/testscripts/SimplePost.java index 08d3cd2f648..8e17639d083 100644 --- a/apitest/src/main/java/io/mosip/testrig/apirig/testscripts/SimplePost.java +++ b/api-test/src/main/java/io/mosip/testrig/apirig/testscripts/SimplePost.java @@ -29,6 +29,7 @@ import io.mosip.testrig.apirig.utils.ConfigManager; import io.mosip.testrig.apirig.utils.GlobalConstants; import io.mosip.testrig.apirig.utils.OutputValidationUtil; +import io.mosip.testrig.apirig.utils.PreRegUtil; import io.mosip.testrig.apirig.utils.ReportUtil; import io.restassured.response.Response; @@ -78,6 +79,7 @@ public Object[] getTestCaseList(ITestContext context) { @Test(dataProvider = "testcaselist") public void test(TestCaseDTO testCaseDTO) throws AuthenticationTestException, AdminTestException { testCaseName = testCaseDTO.getTestCaseName(); + testCaseName = PreRegUtil.isTestCaseValidForExecution(testCaseDTO); testCaseName = isTestCaseValidForExecution(testCaseDTO); auditLogCheck = testCaseDTO.isAuditLogCheck(); String[] templateFields = testCaseDTO.getTemplateFields(); diff --git a/apitest/src/main/java/io/mosip/testrig/apirig/testscripts/UpdatePrereg.java b/api-test/src/main/java/io/mosip/testrig/apirig/testscripts/UpdatePrereg.java similarity index 97% rename from apitest/src/main/java/io/mosip/testrig/apirig/testscripts/UpdatePrereg.java rename to api-test/src/main/java/io/mosip/testrig/apirig/testscripts/UpdatePrereg.java index 5ca9372519d..94e63c03227 100644 --- a/apitest/src/main/java/io/mosip/testrig/apirig/testscripts/UpdatePrereg.java +++ b/api-test/src/main/java/io/mosip/testrig/apirig/testscripts/UpdatePrereg.java @@ -29,6 +29,7 @@ import io.mosip.testrig.apirig.utils.ConfigManager; import io.mosip.testrig.apirig.utils.GlobalConstants; import io.mosip.testrig.apirig.utils.OutputValidationUtil; +import io.mosip.testrig.apirig.utils.PreRegUtil; import io.mosip.testrig.apirig.utils.ReportUtil; import io.restassured.response.Response; @@ -79,6 +80,7 @@ public Object[] getTestCaseList(ITestContext context) { @Test(dataProvider = "testcaselist") public void test(TestCaseDTO testCaseDTO) throws AuthenticationTestException, AdminTestException { testCaseName = testCaseDTO.getTestCaseName(); + testCaseName = PreRegUtil.isTestCaseValidForExecution(testCaseDTO); testCaseDTO.setInputTemplate(AdminTestUtil.generateHbsForPrereg(true)); String[] templateFields = testCaseDTO.getTemplateFields(); if (HealthChecker.signalTerminateExecution) { diff --git a/api-test/src/main/java/io/mosip/testrig/apirig/utils/PreRegUtil.java b/api-test/src/main/java/io/mosip/testrig/apirig/utils/PreRegUtil.java new file mode 100644 index 00000000000..4e712707d4f --- /dev/null +++ b/api-test/src/main/java/io/mosip/testrig/apirig/utils/PreRegUtil.java @@ -0,0 +1,21 @@ +package io.mosip.testrig.apirig.utils; + +import org.apache.log4j.Logger; +import org.testng.SkipException; + +import io.mosip.testrig.apirig.dto.TestCaseDTO; + +public class PreRegUtil extends AdminTestUtil { + + private static final Logger logger = Logger.getLogger(PreRegUtil.class); + + public static String isTestCaseValidForExecution(TestCaseDTO testCaseDTO) { + String testCaseName = testCaseDTO.getTestCaseName(); + + if (SkipTestCaseHandler.isTestCaseInSkippedList(testCaseName)) { + throw new SkipException(GlobalConstants.KNOWN_ISSUES); + } + return testCaseName; + } + +} \ No newline at end of file diff --git a/apitest/src/main/resources/config/Authorization/internalAuthRequest.json b/api-test/src/main/resources/config/Authorization/internalAuthRequest.json similarity index 100% rename from apitest/src/main/resources/config/Authorization/internalAuthRequest.json rename to api-test/src/main/resources/config/Authorization/internalAuthRequest.json diff --git a/apitest/src/main/resources/config/Authorization/request.json b/api-test/src/main/resources/config/Authorization/request.json similarity index 100% rename from apitest/src/main/resources/config/Authorization/request.json rename to api-test/src/main/resources/config/Authorization/request.json diff --git a/apitest/src/main/resources/config/Kernel.properties b/api-test/src/main/resources/config/Kernel.properties similarity index 96% rename from apitest/src/main/resources/config/Kernel.properties rename to api-test/src/main/resources/config/Kernel.properties index 090c6b03f15..756f2a4c594 100644 --- a/apitest/src/main/resources/config/Kernel.properties +++ b/api-test/src/main/resources/config/Kernel.properties @@ -101,7 +101,7 @@ auditActuatorEndpoint=/v1/auditmanager/actuator/info validateBindingEndpoint=ida-binding esignetWellKnownEndPoint=/v1/esignet/oidc/.well-known/openid-configuration signupSettingsEndPoint=/v1/signup/settings - +esignetActuatorPropertySection=esignet-default.properties @@ -136,17 +136,17 @@ AuthClientID = mosip-resident-client #---------------------------------- Client Secret Keys -----------------------# #-- When test rig ran in docker, these values dervied from the environment ---# -mosip_partner_client_secret = vXS7WUyPDpfWYuoz -mosip_pms_client_secret = 5Qj8vn989OL1Vlu6 -mosip_resident_client_secret = SnZQ6nnVwN9YWvdM -mosip_idrepo_client_secret = AeM2TwFuuZygCuvO -mosip_reg_client_secret = DLXygc82rkAkjrwV -mosip_admin_client_secret = Styop9nqkshXMTgj -mosip_hotlist_client_secret = TKyc4cqWymxjiLEsVydX4uME1xU3i9xl -mosip_regproc_client_secret = eyeXdyhO0u2ETibw -mpartner_default_mobile_secret = iCkj8BRZU6hP6MAN -mosip_testrig_client_secret = AonuXbikoWmHP5ug -AuthClientSecret = SnZQ6nnVwN9YWvdM +mosip_partner_client_secret = +mosip_pms_client_secret = +mosip_resident_client_secret = +mosip_idrepo_client_secret = +mosip_reg_client_secret = +mosip_admin_client_secret = +mosip_hotlist_client_secret = +mosip_regproc_client_secret = +mpartner_default_mobile_secret = +mosip_testrig_client_secret = +AuthClientSecret = @@ -241,6 +241,7 @@ usePreConfiguredOtp=true eSignetDeployed=yes partnerUrlSuffix=oYf63Lax0DY2QkYMRHnrmDqhmO3RMWQagwm0ftgLlkuin1KOND/666/576732 reportIgnoredTestCases=no +reportKnownIssueTestCases=no servicesNotDeployed= esignetMockBaseURL=esignet-insurance. sunBirdBaseURL=registry @@ -258,7 +259,8 @@ admin_password=mosip123 admin_userName=220005 admin_zone_password=mosip123 admin_zone_userName=globaladmin - +mockNotificationChannel=email,phone +mountPathForReport=/home/mosip/testrig/report #------------------------- Need to check if these are used or not ------------------------# @@ -278,4 +280,4 @@ authCertsPath=/home/mosip/authcerts mosip_components_base_urls= -#auditmanager=api-internal.dev1.mosip.net;idrepository=api-internal.dev1.mosip.net;partnermanager=api-internal.qa-inji.mosip.net;idauthentication=api-internal.qa-inji.mosip.net;policymanager=api-internal.qa-inji.mosip.net +#auditmanager=api-internal.dev1.mosip.net;idrepository=api-internal.dev1.mosip.net;partnermanager=api-internal.qa-inji.mosip.net;idauthentication=api-internal.qa-inji.mosip.net;policymanager=api-internal.qa-inji.mosip.net \ No newline at end of file diff --git a/apitest/src/main/resources/config/application.properties b/api-test/src/main/resources/config/application.properties similarity index 100% rename from apitest/src/main/resources/config/application.properties rename to api-test/src/main/resources/config/application.properties diff --git a/apitest/src/main/resources/config/healthCheckEndpoint.properties b/api-test/src/main/resources/config/healthCheckEndpoint.properties similarity index 100% rename from apitest/src/main/resources/config/healthCheckEndpoint.properties rename to api-test/src/main/resources/config/healthCheckEndpoint.properties diff --git a/api-test/src/main/resources/config/lang-isocode-transid.csv b/api-test/src/main/resources/config/lang-isocode-transid.csv new file mode 100644 index 00000000000..7a00fd36e6c --- /dev/null +++ b/api-test/src/main/resources/config/lang-isocode-transid.csv @@ -0,0 +1,550 @@ +ISO 639-2 Code,English Name,English-to-Language-TransID +aar,Afar,Any-ar +abk,Abkhazian, +ace,Achinese, +ach,Acoli, +ada,Adangme, +ady,Adyghe; Adygei, +afa,Afro-Asiatic languages, +afh,Afrihili, +afr,Afrikaans, +ain,Ainu, +aka,Akan, +akk,Akkadian, +alb (B),Albanian, +sqi (T),, +ale,Aleut, +alg,Algonquian languages, +alt,Southern Altai, +amh,Amharic, +ang,"English, Old (ca.450-1100)", +anp,Angika, +apa,Apache languages, +ara,Arabic,Any-Arab +arc,Official Aramaic (700-300 BCE); Imperial Aramaic (700-300 BCE), +arg,Aragonese, +arm (B),Armenian, +hye (T),, +arn,Mapudungun; Mapuche, +arp,Arapaho, +art,Artificial languages, +arw,Arawak, +asm,Assamese, +ast,Asturian; Bable; Leonese; Asturleonese, +ath,Athapascan languages, +aus,Australian languages, +ava,Avaric, +ave,Avestan, +awa,Awadhi, +aym,Aymara, +aze,Azerbaijani, +bad,Banda languages, +bai,Bamileke languages, +bak,Bashkir, +bal,Baluchi, +bam,Bambara, +ban,Balinese, +baq (B),Basque, +eus (T),, +bas,Basa, +bat,Baltic languages, +bej,Beja; Bedawiyet, +bel,Belarusian, +bem,Bemba, +ben,Bengali, +ber,Berber languages, +bho,Bhojpuri, +bih,Bihari languages, +bik,Bikol, +bin,Bini; Edo, +bis,Bislama, +bla,Siksika, +bnt,Bantu languages, +tib (B),Tibetan, +bod (T),, +bos,Bosnian, +bra,Braj, +bre,Breton, +btk,Batak languages, +bua,Buriat, +bug,Buginese, +bul,Bulgarian, +bur (B),Burmese, +mya (T),, +byn,Blin; Bilin, +cad,Caddo, +cai,Central American Indian languages, +car,Galibi Carib, +cat,Catalan; Valencian, +cau,Caucasian languages, +ceb,Cebuano, +cel,Celtic languages, +cze (B),Czech, +ces (T),, +cha,Chamorro, +chb,Chibcha, +che,Chechen, +chg,Chagatai, +chi (B),Chinese, +zho (T),, +chk,Chuukese, +chm,Mari, +chn,Chinook jargon, +cho,Choctaw, +chp,Chipewyan; Dene Suline, +chr,Cherokee, +chu,Church Slavic; Old Slavonic; Church Slavonic; Old Bulgarian; Old Church Slavonic, +chv,Chuvash, +chy,Cheyenne, +cmc,Chamic languages, +cnr,Montenegrin, +cop,Coptic, +cor,Cornish, +cos,Corsican, +cpe,"Creoles and pidgins, English based", +cpf,"Creoles and pidgins, French-based", +cpp,"Creoles and pidgins, Portuguese-based", +cre,Cree, +crh,Crimean Tatar; Crimean Turkish, +crp,Creoles and pidgins, +csb,Kashubian, +cus,Cushitic languages, +wel (B),Welsh, +cym (T),, +cze (B),Czech, +ces (T),, +dak,Dakota, +dan,Danish, +dar,Dargwa, +day,Land Dayak languages, +del,Delaware, +den,Slave (Athapascan), +ger (B),German, +deu (T),, +dgr,Dogrib, +din,Dinka, +div,Divehi; Dhivehi; Maldivian, +doi,Dogri, +dra,Dravidian languages, +dsb,Lower Sorbian, +dua,Duala, +dum,"Dutch, Middle (ca.1050-1350)", +dut (B),Dutch; Flemish, +nld (T),, +dyu,Dyula, +dzo,Dzongkha, +efi,Efik, +egy,Egyptian (Ancient), +eka,Ekajuk, +gre (B),"Greek, Modern (1453-)", +ell (T),, +elx,Elamite, +eng,English,eng, +enm,"English, Middle (1100-1500)", +epo,Esperanto, +est,Estonian, +baq (B),Basque, +eus (T),, +ewe,Ewe, +ewo,Ewondo, +fan,Fang,Any-fa +fao,Faroese, +per (B),Persian, +fas (T),, +fat,Fanti, +fij,Fijian, +fil,Filipino; Pilipino, +fin,Finnish, +fiu,Finno-Ugrian languages, +fon,Fon, +fre (B),French, +fra (T),, +fre (B),French, +fra (T),, +frm,"French, Middle (ca.1400-1600)", +fro,"French, Old (842-ca.1400)", +frr,Northern Frisian, +frs,Eastern Frisian, +fry,Western Frisian, +ful,Fulah, +fur,Friulian, +gaa,Ga, +gay,Gayo, +gba,Gbaya, +gem,Germanic languages, +geo (B),Georgian, +kat (T),, +ger (B),German, +deu (T),, +gez,Geez, +gil,Gilbertese, +gla,Gaelic; Scottish Gaelic, +gle,Irish, +glg,Galician, +glv,Manx, +gmh,"German, Middle High (ca.1050-1500)", +goh,"German, Old High (ca.750-1050)", +gon,Gondi, +gor,Gorontalo, +got,Gothic, +grb,Grebo, +grc,"Greek, Ancient (to 1453)", +gre (B),"Greek, Modern (1453-)", +ell (T),, +grn,Guarani, +gsw,Swiss German; Alemannic; Alsatian, +guj,Gujarati, +gwi,Gwich'in, +hai,Haida, +hat,Haitian; Haitian Creole, +hau,Hausa, +haw,Hawaiian, +heb,Hebrew,Any-Hebrew +her,Herero, +hil,Hiligaynon, +him,Himachali languages; Western Pahari languages, +hin,Hindi,Any-Devanagari +kan,Kannada,Any-Kannada +tam,Tamil,Any-Tamil +hit,Hittite, +hmn,Hmong; Mong, +hmo,Hiri Motu, +hrv,Croatian, +hsb,Upper Sorbian, +hun,Hungarian, +hup,Hupa, +arm (B),Armenian, +hye (T),, +iba,Iban, +ibo,Igbo, +ice (B),Icelandic, +isl (T),, +ido,Ido, +iii,Sichuan Yi; Nuosu, +ijo,Ijo languages, +iku,Inuktitut, +ile,Interlingue; Occidental, +ilo,Iloko, +ina,Interlingua (International Auxiliary Language Association), +inc,Indic languages, +ind,Indonesian, +ine,Indo-European languages, +inh,Ingush, +ipk,Inupiaq, +ira,Iranian languages, +iro,Iroquoian languages, +ice (B),Icelandic, +isl (T),, +ita,Italian, +jav,Javanese, +jbo,Lojban, +jpn,Japanese, +jpr,Judeo-Persian, +jrb,Judeo-Arabic, +kaa,Kara-Kalpak, +kab,Kabyle, +kac,Kachin; Jingpho, +kal,Kalaallisut; Greenlandic, +kam,Kamba, +kan,Kannada, +kar,Karen languages, +kas,Kashmiri, +geo (B),Georgian, +kat (T),, +kau,Kanuri, +kaw,Kawi, +kaz,Kazakh, +kbd,Kabardian, +kha,Khasi, +khi,Khoisan languages, +khm,Central Khmer, +kho,Khotanese; Sakan, +kik,Kikuyu; Gikuyu, +kin,Kinyarwanda, +kir,Kirghiz; Kyrgyz, +kmb,Kimbundu, +kok,Konkani, +kom,Komi, +kon,Kongo, +kor,Korean, +kos,Kosraean, +kpe,Kpelle, +krc,Karachay-Balkar, +krl,Karelian, +kro,Kru languages, +kru,Kurukh, +kua,Kuanyama; Kwanyama, +kum,Kumyk, +kur,Kurdish, +kut,Kutenai, +lad,Ladino, +lah,Lahnda, +lam,Lamba, +lao,Lao, +lat,Latin,Any-Latin +lav,Latvian, +lez,Lezghian, +lim,Limburgan; Limburger; Limburgish, +lin,Lingala, +lit,Lithuanian, +lol,Mongo, +loz,Lozi, +ltz,Luxembourgish; Letzeburgesch, +lua,Luba-Lulua, +lub,Luba-Katanga, +lug,Ganda, +lui,Luiseno, +lun,Lunda, +luo,Luo (Kenya and Tanzania), +lus,Lushai, +mac (B),Macedonian, +mkd (T),, +mad,Madurese, +mag,Magahi, +mah,Marshallese, +mai,Maithili, +mak,Makasar, +mal,Malayalam, +man,Mandingo, +mao (B),Maori, +mri (T),, +map,Austronesian languages, +mar,Marathi, +mas,Masai, +may (B),Malay, +msa (T),, +mdf,Moksha, +mdr,Mandar, +men,Mende, +mga,"Irish, Middle (900-1200)", +mic,Mi'kmaq; Micmac, +min,Minangkabau, +mis,Uncoded languages, +mac (B),Macedonian, +mkd (T),, +mkh,Mon-Khmer languages, +mlg,Malagasy, +mlt,Maltese, +mnc,Manchu, +mni,Manipuri, +mno,Manobo languages, +moh,Mohawk, +mon,Mongolian, +mos,Mossi, +mao (B),Maori, +mri (T),, +may (B),Malay, +msa (T),, +mul,Multiple languages, +mun,Munda languages, +mus,Creek, +mwl,Mirandese, +mwr,Marwari, +bur (B),Burmese, +mya (T),, +myn,Mayan languages, +myv,Erzya, +nah,Nahuatl languages, +nai,North American Indian languages, +nap,Neapolitan, +nau,Nauru, +nav,Navajo; Navaho, +nbl,"Ndebele, South; South Ndebele", +nde,"Ndebele, North; North Ndebele", +ndo,Ndonga, +nds,"Low German; Low Saxon; German, Low; Saxon, Low", +nep,Nepali, +new,Nepal Bhasa; Newari, +nia,Nias, +nic,Niger-Kordofanian languages, +niu,Niuean, +dut (B),Dutch; Flemish, +nld (T),, +nno,"Norwegian Nynorsk; Nynorsk, Norwegian", +nob,"Bokmål, Norwegian; Norwegian Bokmål", +nog,Nogai, +non,"Norse, Old", +nor,Norwegian, +nqo,N'Ko, +nso,Pedi; Sepedi; Northern Sotho, +nub,Nubian languages, +nwc,Classical Newari; Old Newari; Classical Nepal Bhasa, +nya,Chichewa; Chewa; Nyanja, +nym,Nyamwezi, +nyn,Nyankole, +nyo,Nyoro, +nzi,Nzima, +oci,Occitan (post 1500), +oji,Ojibwa, +ori,Oriya, +orm,Oromo, +osa,Osage, +oss,Ossetian; Ossetic, +ota,"Turkish, Ottoman (1500-1928)", +oto,Otomian languages, +paa,Papuan languages, +pag,Pangasinan, +pal,Pahlavi, +pam,Pampanga; Kapampangan, +pan,Panjabi; Punjabi, +pap,Papiamento, +pau,Palauan, +peo,"Persian, Old (ca.600-400 B.C.)", +per (B),Persian, +fas (T),, +phi,Philippine languages, +phn,Phoenician, +pli,Pali, +pol,Polish, +pon,Pohnpeian, +por,Portuguese, +pra,Prakrit languages, +pro,"Provençal, Old (to 1500);Occitan, Old (to 1500)", +pus,Pushto; Pashto, +qaa-qtz,Reserved for local use, +que,Quechua, +raj,Rajasthani, +rap,Rapanui, +rar,Rarotongan; Cook Islands Maori, +roa,Romance languages, +roh,Romansh, +rom,Romany, +rum (B),Romanian; Moldavian; Moldovan, +ron (T),, +rum (B),Romanian; Moldavian; Moldovan, +ron (T),, +run,Rundi, +rup,Aromanian; Arumanian; Macedo-Romanian, +rus,Russian, +sad,Sandawe, +sag,Sango, +sah,Yakut, +sai,South American Indian languages, +sal,Salishan languages, +sam,Samaritan Aramaic, +san,Sanskrit, +sas,Sasak, +sat,Santali, +scn,Sicilian, +sco,Scots, +sel,Selkup, +sem,Semitic languages, +sga,"Irish, Old (to 900)", +sgn,Sign Languages, +shn,Shan, +sid,Sidamo, +sin,Sinhala; Sinhalese, +sio,Siouan languages, +sit,Sino-Tibetan languages, +sla,Slavic languages, +slo (B),Slovak, +slk (T),, +slo (B),Slovak, +slk (T),, +slv,Slovenian, +sma,Southern Sami, +sme,Northern Sami, +smi,Sami languages, +smj,Lule Sami, +smn,Inari Sami, +smo,Samoan, +sms,Skolt Sami, +sna,Shona, +snd,Sindhi, +snk,Soninke, +sog,Sogdian, +som,Somali, +son,Songhai languages, +sot,"Sotho, Southern", +spa,Spanish; Castilian, +alb (B),Albanian, +sqi (T),, +srd,Sardinian, +srn,Sranan Tongo, +srp,Serbian, +srr,Serer, +ssa,Nilo-Saharan languages, +ssw,Swati, +suk,Sukuma, +sun,Sundanese, +sus,Susu, +sux,Sumerian, +swa,Swahili, +swe,Swedish, +syc,Classical Syriac, +syr,Syriac, +tah,Tahitian, +tai,Tai languages, +tam,Tamil, +tat,Tatar, +tel,Telugu, +tem,Timne, +ter,Tereno, +tet,Tetum, +tgk,Tajik, +tgl,Tagalog, +tha,Thai,Any-Thai +tib (B),Tibetan, +bod (T),, +tig,Tigre, +tir,Tigrinya, +tiv,Tiv, +tkl,Tokelau, +tlh,Klingon; tlhIngan-Hol, +tli,Tlingit, +tmh,Tamashek, +tog,Tonga (Nyasa), +ton,Tonga (Tonga Islands), +tpi,Tok Pisin, +tsi,Tsimshian, +tsn,Tswana, +tso,Tsonga, +tuk,Turkmen, +tum,Tumbuka, +tup,Tupi languages, +tur,Turkish, +tut,Altaic languages, +tvl,Tuvalu, +twi,Twi, +tyv,Tuvinian, +udm,Udmurt, +uga,Ugaritic, +uig,Uighur; Uyghur, +ukr,Ukrainian, +umb,Umbundu, +und,Undetermined, +urd,Urdu, +uzb,Uzbek, +vai,Vai, +ven,Venda, +vie,Vietnamese, +vol,Volapük, +vot,Votic, +wak,Wakashan languages, +wal,Wolaitta; Wolaytta, +war,Waray, +was,Washo, +wel (B),Welsh, +cym (T),, +wen,Sorbian languages, +wln,Walloon, +wol,Wolof, +xal,Kalmyk; Oirat, +xho,Xhosa, +yao,Yao, +yap,Yapese, +yid,Yiddish, +yor,Yoruba, +ypk,Yupik languages, +zap,Zapotec, +zbl,Blissymbols; Blissymbolics; Bliss, +zen,Zenaga, +zgh,Standard Moroccan Tamazight, +zha,Zhuang; Chuang, +chi (B),Chinese, +zho (T),, +znd,Zande languages, +zul,Zulu, +zun,Zuni, +zxx,No linguistic content; Not applicable, +zza,, diff --git a/apitest/src/main/resources/config/prereg_SendOtp.json b/api-test/src/main/resources/config/prereg_SendOtp.json similarity index 100% rename from apitest/src/main/resources/config/prereg_SendOtp.json rename to api-test/src/main/resources/config/prereg_SendOtp.json diff --git a/apitest/src/main/resources/config/prereg_ValidateOtp.json b/api-test/src/main/resources/config/prereg_ValidateOtp.json similarity index 100% rename from apitest/src/main/resources/config/prereg_ValidateOtp.json rename to api-test/src/main/resources/config/prereg_ValidateOtp.json diff --git a/apitest/src/main/resources/customize-emailable-report-template.html b/api-test/src/main/resources/customize-emailable-report-template.html similarity index 100% rename from apitest/src/main/resources/customize-emailable-report-template.html rename to api-test/src/main/resources/customize-emailable-report-template.html diff --git a/apitest/src/main/resources/dbFiles/.xml b/api-test/src/main/resources/dbFiles/.xml similarity index 100% rename from apitest/src/main/resources/dbFiles/.xml rename to api-test/src/main/resources/dbFiles/.xml diff --git a/apitest/src/main/resources/dbFiles/PMS_delete_script.txt b/api-test/src/main/resources/dbFiles/PMS_delete_script.txt similarity index 100% rename from apitest/src/main/resources/dbFiles/PMS_delete_script.txt rename to api-test/src/main/resources/dbFiles/PMS_delete_script.txt diff --git a/apitest/src/main/resources/dbFiles/dbConfig.xml b/api-test/src/main/resources/dbFiles/dbConfig.xml similarity index 100% rename from apitest/src/main/resources/dbFiles/dbConfig.xml rename to api-test/src/main/resources/dbFiles/dbConfig.xml diff --git a/apitest/src/main/resources/dbFiles/delete_Masterdata.sql b/api-test/src/main/resources/dbFiles/delete_Masterdata.sql similarity index 100% rename from apitest/src/main/resources/dbFiles/delete_Masterdata.sql rename to api-test/src/main/resources/dbFiles/delete_Masterdata.sql diff --git a/apitest/src/main/resources/krb5.conf b/api-test/src/main/resources/krb5.conf similarity index 100% rename from apitest/src/main/resources/krb5.conf rename to api-test/src/main/resources/krb5.conf diff --git a/apitest/src/main/resources/log4j.properties b/api-test/src/main/resources/log4j.properties similarity index 100% rename from apitest/src/main/resources/log4j.properties rename to api-test/src/main/resources/log4j.properties diff --git a/apitest/src/main/resources/metadata.xml b/api-test/src/main/resources/metadata.xml similarity index 100% rename from apitest/src/main/resources/metadata.xml rename to api-test/src/main/resources/metadata.xml diff --git a/apitest/src/main/resources/preReg/AddLostUinApplication/AddLostUinApplication.yml b/api-test/src/main/resources/preReg/AddLostUinApplication/AddLostUinApplication.yml similarity index 82% rename from apitest/src/main/resources/preReg/AddLostUinApplication/AddLostUinApplication.yml rename to api-test/src/main/resources/preReg/AddLostUinApplication/AddLostUinApplication.yml index 9fe69c02a42..8a82d19ddf3 100644 --- a/apitest/src/main/resources/preReg/AddLostUinApplication/AddLostUinApplication.yml +++ b/api-test/src/main/resources/preReg/AddLostUinApplication/AddLostUinApplication.yml @@ -1,6 +1,7 @@ AddLostUinApplication: Prereg_AddLostUinApplication_All_Valid_Smoke_sid: endPoint: /preregistration/v1/applications/lostuin + description: process the lost UIN application with a valid ID role: batch templateFields: ["langCode"] restMethod: post @@ -18,6 +19,7 @@ AddLostUinApplication: }' Prereg_AddLostUinApplication_Invalid_id: endPoint: /preregistration/v1/applications/lostuin + description: process the lost UIN application with an invalid ID role: batch templateFields: ["langCode"] restMethod: post @@ -32,14 +34,14 @@ AddLostUinApplication: output: '{ "errors": [ { - "errorCode": "PRG_CORE_REQ_014" + "errorCode": "PRG_PAM_CORE_001" } ] }' Prereg_AddLostUinApplication_invalid_lang_code: endPoint: /preregistration/v1/applications/lostuin + description: Process the lost UIN application with an invalid language code role: batch - templateFields: ["langCode"] restMethod: post inputTemplate: preReg/AddLostUinApplication/addLostUinApplication outputTemplate: preReg/error @@ -50,11 +52,15 @@ AddLostUinApplication: "id": "mosip.pre-registration.lostuin.create" }' output: '{ - "bookingType": "LOST_FORGOTTEN_UIN", - "applicationStatusCode": "SUBMITTED" + "errors": [ + { + "errorCode": "PRG_CORE_REQ_014" + } + ] }' Prereg_AddLostUinApplication_without_version: endPoint: /preregistration/v1/applications/lostuin + description: Process the lost UIN application without specifying the version role: batch templateFields: ["langCode"] restMethod: post @@ -69,12 +75,13 @@ AddLostUinApplication: output: '{ "errors": [ { - "errorCode": "PRG_CORE_REQ_014" + "errorCode": "PRG_CORE_REQ_002" } ] }' Prereg_AddLostUinApplication_without_version_attribute: endPoint: /preregistration/v1/applications/lostuin + description: Process the lost UIN application without specifying the version and attribute role: batch templateFields: ["langCode"] restMethod: post @@ -89,12 +96,13 @@ AddLostUinApplication: output: '{ "errors": [ { - "errorCode": "PRG_CORE_REQ_014" + "errorCode": "PRG_CORE_REQ_002" } ] }' Prereg_AddLostUinApplication_with_INVALID_version: endPoint: /preregistration/v1/applications/lostuin + description: Process the lost UIN application with an invalid version role: batch templateFields: ["langCode"] restMethod: post @@ -109,12 +117,13 @@ AddLostUinApplication: output: '{ "errors": [ { - "errorCode": "PRG_CORE_REQ_014" + "errorCode": "PRG_CORE_REQ_002" } ] }' Prereg_AddLostUinApplication_Valid_Smoke_sid: endPoint: /preregistration/v1/applications/lostuin + description: Process the lost UIN application with a valid data role: batch templateFields: ["langCode"] restMethod: post @@ -133,6 +142,7 @@ AddLostUinApplication: Prereg_AddLostUinApplication_inValid_langcode: endPoint: /preregistration/v1/applications/lostuin + description: Process the lost UIN application with an invalid language code role: batch restMethod: post inputTemplate: preReg/AddLostUinApplication/addLostUinApplication @@ -152,6 +162,7 @@ AddLostUinApplication: }' Prereg_AddLostUinApplication_without_any_data: endPoint: /preregistration/v1/applications/lostuin + description: Process the lost UIN application with no data provided role: batch restMethod: post inputTemplate: preReg/AddLostUinApplication/addLostUinApplication @@ -165,7 +176,7 @@ AddLostUinApplication: output: '{ "errors": [ { - "errorCode": "PRG_CORE_REQ_014" + "errorCode": "PRG_CORE_REQ_003" } ] }' \ No newline at end of file diff --git a/apitest/src/main/resources/preReg/AddLostUinApplication/addLostUinApplication.hbs b/api-test/src/main/resources/preReg/AddLostUinApplication/addLostUinApplication.hbs similarity index 100% rename from apitest/src/main/resources/preReg/AddLostUinApplication/addLostUinApplication.hbs rename to api-test/src/main/resources/preReg/AddLostUinApplication/addLostUinApplication.hbs diff --git a/apitest/src/main/resources/preReg/AddLostUinApplication/addLostUinApplicationResult.hbs b/api-test/src/main/resources/preReg/AddLostUinApplication/addLostUinApplicationResult.hbs similarity index 100% rename from apitest/src/main/resources/preReg/AddLostUinApplication/addLostUinApplicationResult.hbs rename to api-test/src/main/resources/preReg/AddLostUinApplication/addLostUinApplicationResult.hbs diff --git a/apitest/src/main/resources/preReg/AddUpdateRegistration/AddUpdateRegistration.yml b/api-test/src/main/resources/preReg/AddUpdateRegistration/AddUpdateRegistration.yml similarity index 89% rename from apitest/src/main/resources/preReg/AddUpdateRegistration/AddUpdateRegistration.yml rename to api-test/src/main/resources/preReg/AddUpdateRegistration/AddUpdateRegistration.yml index b31e8d97d5f..6acfd17bbad 100644 --- a/apitest/src/main/resources/preReg/AddUpdateRegistration/AddUpdateRegistration.yml +++ b/api-test/src/main/resources/preReg/AddUpdateRegistration/AddUpdateRegistration.yml @@ -1,6 +1,7 @@ AddUpdateRegistration: Prereg_AddUpdateRegistration_All_Valid_Smoke_sid: endPoint: /preregistration/v1/applications/updateregistration + description: add an update to the registration with valid data role: batch templateFields: ["langCode"] restMethod: post @@ -19,6 +20,7 @@ AddUpdateRegistration: Prereg_AddUpdateRegistration_inValid_langcode: endPoint: /preregistration/v1/applications/updateregistration + description: add an update to the registration with an invalid data role: batch restMethod: post inputTemplate: preReg/AddUpdateRegistration/addUpdateRegistration diff --git a/apitest/src/main/resources/preReg/AddUpdateRegistration/addUpdateRegistration.hbs b/api-test/src/main/resources/preReg/AddUpdateRegistration/addUpdateRegistration.hbs similarity index 100% rename from apitest/src/main/resources/preReg/AddUpdateRegistration/addUpdateRegistration.hbs rename to api-test/src/main/resources/preReg/AddUpdateRegistration/addUpdateRegistration.hbs diff --git a/apitest/src/main/resources/preReg/AddUpdateRegistration/addUpdateRegistrationResult.hbs b/api-test/src/main/resources/preReg/AddUpdateRegistration/addUpdateRegistrationResult.hbs similarity index 100% rename from apitest/src/main/resources/preReg/AddUpdateRegistration/addUpdateRegistrationResult.hbs rename to api-test/src/main/resources/preReg/AddUpdateRegistration/addUpdateRegistrationResult.hbs diff --git a/apitest/src/main/resources/preReg/AuditLog/AuditLog.yml b/api-test/src/main/resources/preReg/AuditLog/AuditLog.yml similarity index 100% rename from apitest/src/main/resources/preReg/AuditLog/AuditLog.yml rename to api-test/src/main/resources/preReg/AuditLog/AuditLog.yml diff --git a/apitest/src/main/resources/preReg/AuditLog/AuditLogResult.hbs b/api-test/src/main/resources/preReg/AuditLog/AuditLogResult.hbs similarity index 100% rename from apitest/src/main/resources/preReg/AuditLog/AuditLogResult.hbs rename to api-test/src/main/resources/preReg/AuditLog/AuditLogResult.hbs diff --git a/apitest/src/main/resources/preReg/AuditLog/auditlog.hbs b/api-test/src/main/resources/preReg/AuditLog/auditlog.hbs similarity index 100% rename from apitest/src/main/resources/preReg/AuditLog/auditlog.hbs rename to api-test/src/main/resources/preReg/AuditLog/auditlog.hbs diff --git a/apitest/src/main/resources/preReg/BookMultipleAppointment/BookMultipleAppointment.yml b/api-test/src/main/resources/preReg/BookMultipleAppointment/BookMultipleAppointment.yml similarity index 100% rename from apitest/src/main/resources/preReg/BookMultipleAppointment/BookMultipleAppointment.yml rename to api-test/src/main/resources/preReg/BookMultipleAppointment/BookMultipleAppointment.yml diff --git a/apitest/src/main/resources/preReg/BookMultipleAppointment/bookMultipleAppointment.hbs b/api-test/src/main/resources/preReg/BookMultipleAppointment/bookMultipleAppointment.hbs similarity index 100% rename from apitest/src/main/resources/preReg/BookMultipleAppointment/bookMultipleAppointment.hbs rename to api-test/src/main/resources/preReg/BookMultipleAppointment/bookMultipleAppointment.hbs diff --git a/apitest/src/main/resources/preReg/BookMultipleAppointment/bookMultipleAppointmentResult.hbs b/api-test/src/main/resources/preReg/BookMultipleAppointment/bookMultipleAppointmentResult.hbs similarity index 100% rename from apitest/src/main/resources/preReg/BookMultipleAppointment/bookMultipleAppointmentResult.hbs rename to api-test/src/main/resources/preReg/BookMultipleAppointment/bookMultipleAppointmentResult.hbs diff --git a/apitest/src/main/resources/preReg/CancelApplicationsAppointment/CancelApplicationsAppointment.yml b/api-test/src/main/resources/preReg/CancelApplicationsAppointment/CancelApplicationsAppointment.yml similarity index 87% rename from apitest/src/main/resources/preReg/CancelApplicationsAppointment/CancelApplicationsAppointment.yml rename to api-test/src/main/resources/preReg/CancelApplicationsAppointment/CancelApplicationsAppointment.yml index 4b3744b61ae..7fd03826f1c 100644 --- a/apitest/src/main/resources/preReg/CancelApplicationsAppointment/CancelApplicationsAppointment.yml +++ b/api-test/src/main/resources/preReg/CancelApplicationsAppointment/CancelApplicationsAppointment.yml @@ -1,6 +1,7 @@ CancelApplicationsAppointment: Prereg_CancelApplicationsAppointment_All_Valid_Smoke_sid: endPoint: /preregistration/v1/applications/appointment/{preRegistrationId} + description: Canceling appointment for a valid preregistration ID role: batch checkErrorsOnlyInResponse: true restMethod: put @@ -13,6 +14,7 @@ CancelApplicationsAppointment: }' Prereg_CancelApplicationsAppointment_inValid_preRegistrationId_sid: endPoint: /preregistration/v1/applications/appointment/{preRegistrationId} + description: Canceling appointment for an invalid preregistration ID role: batch restMethod: put inputTemplate: preReg/CancelApplicationsAppointment/cancelApplicationsAppointment diff --git a/apitest/src/main/resources/preReg/CancelApplicationsAppointment/cancelApplicationsAppointment.hbs b/api-test/src/main/resources/preReg/CancelApplicationsAppointment/cancelApplicationsAppointment.hbs similarity index 100% rename from apitest/src/main/resources/preReg/CancelApplicationsAppointment/cancelApplicationsAppointment.hbs rename to api-test/src/main/resources/preReg/CancelApplicationsAppointment/cancelApplicationsAppointment.hbs diff --git a/apitest/src/main/resources/preReg/CancelApplicationsAppointment/cancelApplicationsAppointmentResult.hbs b/api-test/src/main/resources/preReg/CancelApplicationsAppointment/cancelApplicationsAppointmentResult.hbs similarity index 100% rename from apitest/src/main/resources/preReg/CancelApplicationsAppointment/cancelApplicationsAppointmentResult.hbs rename to api-test/src/main/resources/preReg/CancelApplicationsAppointment/cancelApplicationsAppointmentResult.hbs diff --git a/apitest/src/main/resources/preReg/CancelAppointment/CancelAppointment.yml b/api-test/src/main/resources/preReg/CancelAppointment/CancelAppointment.yml similarity index 82% rename from apitest/src/main/resources/preReg/CancelAppointment/CancelAppointment.yml rename to api-test/src/main/resources/preReg/CancelAppointment/CancelAppointment.yml index db6b22ce282..c26e4a872b1 100644 --- a/apitest/src/main/resources/preReg/CancelAppointment/CancelAppointment.yml +++ b/api-test/src/main/resources/preReg/CancelAppointment/CancelAppointment.yml @@ -1,6 +1,7 @@ CancelAppointment: Prereg_CancelAppointment_All_Valid_Smoke_sid: endPoint: /preregistration/v1/appointment/{preRegistrationId} + description: Cancel appointment for a valid preregistration ID role: batch checkErrorsOnlyInResponse: true restMethod: put @@ -13,6 +14,7 @@ CancelAppointment: }' Prereg_CancelAppointment_with_already_cancelled_appoinment: endPoint: /preregistration/v1/appointment/{preRegistrationId} + description: Canceling an appointment that has already been cancelled role: batch checkErrorsOnlyInResponse: true restMethod: put @@ -24,12 +26,13 @@ CancelAppointment: output: '{ "errors": [ { - "errorCode": "PRG_APP_013" + "errorCode": "PRG_BOOK_RCI_013" } ] }' Prereg_CancelAppointment_cancell_incomplete_appoinment: endPoint: /preregistration/v1/appointment/{preRegistrationId} + description: Canceling an appointment with an incomplete appointment data role: batch checkErrorsOnlyInResponse: true restMethod: put @@ -41,12 +44,13 @@ CancelAppointment: output: '{ "errors": [ { - "errorCode": "PRG_APP_013" + "errorCode": "PRG_BOOK_RCI_013" } ] }' Prereg_CancelAppointment_inValid_preRegistrationId_sid: endPoint: /preregistration/v1/appointment/{preRegistrationId} + description: Canceling an appointment with an invalid preregistration ID role: batch restMethod: put inputTemplate: preReg/CancelAppointment/cancelAppointment diff --git a/apitest/src/main/resources/preReg/CancelAppointment/cancelAppointment.hbs b/api-test/src/main/resources/preReg/CancelAppointment/cancelAppointment.hbs similarity index 100% rename from apitest/src/main/resources/preReg/CancelAppointment/cancelAppointment.hbs rename to api-test/src/main/resources/preReg/CancelAppointment/cancelAppointment.hbs diff --git a/apitest/src/main/resources/preReg/CancelAppointment/cancelAppointmentResult.hbs b/api-test/src/main/resources/preReg/CancelAppointment/cancelAppointmentResult.hbs similarity index 100% rename from apitest/src/main/resources/preReg/CancelAppointment/cancelAppointmentResult.hbs rename to api-test/src/main/resources/preReg/CancelAppointment/cancelAppointmentResult.hbs diff --git a/apitest/src/main/resources/preReg/CopyDocument/CopyDocument.yml b/api-test/src/main/resources/preReg/CopyDocument/CopyDocument.yml similarity index 85% rename from apitest/src/main/resources/preReg/CopyDocument/CopyDocument.yml rename to api-test/src/main/resources/preReg/CopyDocument/CopyDocument.yml index 6a94b624d06..0d3245c6442 100644 --- a/apitest/src/main/resources/preReg/CopyDocument/CopyDocument.yml +++ b/api-test/src/main/resources/preReg/CopyDocument/CopyDocument.yml @@ -1,6 +1,7 @@ CopyDocument: Prereg_CopyDocument_All_Valid_Smoke_sid: endPoint: /preregistration/v1/documents/{preRegistrationId}?catCode={doc_cat_code}&sourcePreId={preRegistrationId} + description: Copy the valid Proof of Address (POA) document role: batch restMethod: put inputTemplate: preReg/CopyDocument/copyDocument @@ -15,6 +16,7 @@ CopyDocument: }' Prereg_CopyDocument_in_Valid_doc_cat_code_sid: endPoint: /preregistration/v1/documents/{preRegistrationId}?catCode={doc_cat_code}&sourcePreId={preRegistrationId} + description: Copy the Proof of Address (POA) document with the invalid document category code role: batch restMethod: put inputTemplate: preReg/CopyDocument/copyDocument @@ -32,6 +34,7 @@ CopyDocument: }' Prereg_CopyDocument_blank_doc_cat_code_sid: endPoint: /preregistration/v1/documents/{preRegistrationId}?catCode={doc_cat_code}&sourcePreId={preRegistrationId} + description: Copy the blank document and categorize it with the code role: batch restMethod: put inputTemplate: preReg/CopyDocument/copyDocument @@ -49,6 +52,7 @@ CopyDocument: }' Prereg_CopyDocument_Invalid_preRegistrationId_sid: endPoint: /preregistration/v1/documents/{preRegistrationId}?catCode={doc_cat_code}&sourcePreId={preRegistrationId} + description: Copy the Proof of Address (POA) document with the invalid preregistration ID role: batch restMethod: put inputTemplate: preReg/CopyDocument/copyDocument diff --git a/apitest/src/main/resources/preReg/CopyDocument/copyDocument.hbs b/api-test/src/main/resources/preReg/CopyDocument/copyDocument.hbs similarity index 100% rename from apitest/src/main/resources/preReg/CopyDocument/copyDocument.hbs rename to api-test/src/main/resources/preReg/CopyDocument/copyDocument.hbs diff --git a/apitest/src/main/resources/preReg/CopyDocument/copyDocumentResult.hbs b/api-test/src/main/resources/preReg/CopyDocument/copyDocumentResult.hbs similarity index 100% rename from apitest/src/main/resources/preReg/CopyDocument/copyDocumentResult.hbs rename to api-test/src/main/resources/preReg/CopyDocument/copyDocumentResult.hbs diff --git a/apitest/src/main/resources/preReg/DeleteAllDocForaPRID/DeleteAllDocForaPRID.yml b/api-test/src/main/resources/preReg/DeleteAllDocForaPRID/DeleteAllDocForaPRID.yml similarity index 82% rename from apitest/src/main/resources/preReg/DeleteAllDocForaPRID/DeleteAllDocForaPRID.yml rename to api-test/src/main/resources/preReg/DeleteAllDocForaPRID/DeleteAllDocForaPRID.yml index b616cda969d..8c5f4bc80f5 100644 --- a/apitest/src/main/resources/preReg/DeleteAllDocForaPRID/DeleteAllDocForaPRID.yml +++ b/api-test/src/main/resources/preReg/DeleteAllDocForaPRID/DeleteAllDocForaPRID.yml @@ -1,6 +1,7 @@ DeleteAllDocForaPRID: Prereg_DeletePreRegistration_All_Valid_Smoke_sid: endPoint: /preregistration/v1/documents/preregistration/{preRegistrationId} + description: Delete preregistration with all valid preregistration ID role: batch checkErrorsOnlyInResponse: true restMethod: delete @@ -13,6 +14,7 @@ DeleteAllDocForaPRID: }' Prereg_DeletePreRegistration_InValid_preRegistrationId_sid: endPoint: /preregistration/v1/documents/preregistration/{preRegistrationId} + description: Delete preregistration with an invalid preregisteration ID role: batch restMethod: delete inputTemplate: preReg/DeleteAllDocForaPRID/deleteAllDocForaPRID @@ -23,7 +25,7 @@ DeleteAllDocForaPRID: output: '{ "errors": [ { - "errorCode": "PRG_PAM_APP_005", + "errorCode": "PRG_PAM_APP_005" } ] }' \ No newline at end of file diff --git a/apitest/src/main/resources/preReg/DeleteAllDocForaPRID/deleteAllDocForaPRID.hbs b/api-test/src/main/resources/preReg/DeleteAllDocForaPRID/deleteAllDocForaPRID.hbs similarity index 100% rename from apitest/src/main/resources/preReg/DeleteAllDocForaPRID/deleteAllDocForaPRID.hbs rename to api-test/src/main/resources/preReg/DeleteAllDocForaPRID/deleteAllDocForaPRID.hbs diff --git a/apitest/src/main/resources/preReg/DeleteAllDocForaPRID/deleteAllDocForaPRIDResult.hbs b/api-test/src/main/resources/preReg/DeleteAllDocForaPRID/deleteAllDocForaPRIDResult.hbs similarity index 100% rename from apitest/src/main/resources/preReg/DeleteAllDocForaPRID/deleteAllDocForaPRIDResult.hbs rename to api-test/src/main/resources/preReg/DeleteAllDocForaPRID/deleteAllDocForaPRIDResult.hbs diff --git a/apitest/src/main/resources/preReg/DeleteBooking/DeleteBooking.yml b/api-test/src/main/resources/preReg/DeleteBooking/DeleteBooking.yml similarity index 87% rename from apitest/src/main/resources/preReg/DeleteBooking/DeleteBooking.yml rename to api-test/src/main/resources/preReg/DeleteBooking/DeleteBooking.yml index 3c2974c5dee..99c4abde1ef 100644 --- a/apitest/src/main/resources/preReg/DeleteBooking/DeleteBooking.yml +++ b/api-test/src/main/resources/preReg/DeleteBooking/DeleteBooking.yml @@ -1,6 +1,7 @@ DeleteBooking: Prereg_DeleteBooking_All_Valid_Smoke_sid: endPoint: /preregistration/v1/applications/appointment?preRegistrationId={preRegistrationId} + description: Delete bookings for all valid preregistration ID role: batch restMethod: delete inputTemplate: preReg/DeleteBooking/deleteBooking diff --git a/apitest/src/main/resources/preReg/DeleteBooking/deleteBooking.hbs b/api-test/src/main/resources/preReg/DeleteBooking/deleteBooking.hbs similarity index 100% rename from apitest/src/main/resources/preReg/DeleteBooking/deleteBooking.hbs rename to api-test/src/main/resources/preReg/DeleteBooking/deleteBooking.hbs diff --git a/apitest/src/main/resources/preReg/DeleteBooking/deleteBookingResult.hbs b/api-test/src/main/resources/preReg/DeleteBooking/deleteBookingResult.hbs similarity index 100% rename from apitest/src/main/resources/preReg/DeleteBooking/deleteBookingResult.hbs rename to api-test/src/main/resources/preReg/DeleteBooking/deleteBookingResult.hbs diff --git a/apitest/src/main/resources/preReg/DeleteLostUinApplication/DeleteLostUinApplication.yml b/api-test/src/main/resources/preReg/DeleteLostUinApplication/DeleteLostUinApplication.yml similarity index 85% rename from apitest/src/main/resources/preReg/DeleteLostUinApplication/DeleteLostUinApplication.yml rename to api-test/src/main/resources/preReg/DeleteLostUinApplication/DeleteLostUinApplication.yml index 125a4b5093a..88b22c85bd8 100644 --- a/apitest/src/main/resources/preReg/DeleteLostUinApplication/DeleteLostUinApplication.yml +++ b/api-test/src/main/resources/preReg/DeleteLostUinApplication/DeleteLostUinApplication.yml @@ -1,6 +1,7 @@ DeleteLostUinApplication: Prereg_DeleteLostUinApplication_All_Valid_Smoke_sid: endPoint: /preregistration/v1/applications/prereg/{applicationId} + description: Delete the lost UIN application with valid data role: batch checkErrorsOnlyInResponse: true restMethod: delete @@ -14,6 +15,7 @@ DeleteLostUinApplication: }' Prereg_DeleteLostUinApplication_after_its_deletion: endPoint: /preregistration/v1/applications/prereg/{applicationId} + description: Delete the lost UIN application after it has been removed role: batch checkErrorsOnlyInResponse: true restMethod: delete @@ -31,6 +33,7 @@ DeleteLostUinApplication: }' Prereg_DeleteLostUinApplication_multiple_application_sid: endPoint: /preregistration/v1/applications/prereg/{applicationId} + description: Delete the lost UIN application with multiple preregistration IDs for the application role: batch checkErrorsOnlyInResponse: true restMethod: delete @@ -44,6 +47,7 @@ DeleteLostUinApplication: }' Prereg_DeleteLostUinApplication_inValid_preRegistrationId_sid: endPoint: /preregistration/v1/applications/prereg/{applicationId} + description: Delete the lost UIN application with an invalid preregistration ID role: batch restMethod: delete inputTemplate: preReg/DeleteLostUinApplication/deleteLostUinApplication @@ -60,6 +64,7 @@ DeleteLostUinApplication: }' Prereg_DeleteLostUinApplication_random_number_sid: endPoint: /preregistration/v1/applications/prereg/{applicationId} + description: Delete the lost UIN application with a random number preregistration ID role: batch restMethod: delete inputTemplate: preReg/DeleteLostUinApplication/deleteLostUinApplication diff --git a/apitest/src/main/resources/preReg/DeleteLostUinApplication/deleteLostUinApplication.hbs b/api-test/src/main/resources/preReg/DeleteLostUinApplication/deleteLostUinApplication.hbs similarity index 100% rename from apitest/src/main/resources/preReg/DeleteLostUinApplication/deleteLostUinApplication.hbs rename to api-test/src/main/resources/preReg/DeleteLostUinApplication/deleteLostUinApplication.hbs diff --git a/apitest/src/main/resources/preReg/DeleteLostUinApplication/deleteLostUinApplicationResult.hbs b/api-test/src/main/resources/preReg/DeleteLostUinApplication/deleteLostUinApplicationResult.hbs similarity index 100% rename from apitest/src/main/resources/preReg/DeleteLostUinApplication/deleteLostUinApplicationResult.hbs rename to api-test/src/main/resources/preReg/DeleteLostUinApplication/deleteLostUinApplicationResult.hbs diff --git a/apitest/src/main/resources/preReg/DeletePreRegistration/DeletePreRegistration.yml b/api-test/src/main/resources/preReg/DeletePreRegistration/DeletePreRegistration.yml similarity index 85% rename from apitest/src/main/resources/preReg/DeletePreRegistration/DeletePreRegistration.yml rename to api-test/src/main/resources/preReg/DeletePreRegistration/DeletePreRegistration.yml index 0d23be3e7dd..5a496023a7d 100644 --- a/apitest/src/main/resources/preReg/DeletePreRegistration/DeletePreRegistration.yml +++ b/api-test/src/main/resources/preReg/DeletePreRegistration/DeletePreRegistration.yml @@ -1,6 +1,7 @@ DeletePreRegistration: Prereg_DeletePreRegistration_All_Valid_Smoke_sid: endPoint: /preregistration/v1/applications/prereg/{preRegistrationId} + description: Delete the preregistration with a valid preregistration ID role: batch restMethod: delete inputTemplate: preReg/DeletePreRegistration/deletePreRegistration @@ -13,6 +14,7 @@ DeletePreRegistration: }' Prereg_DeletePreRegistration_inValid_preRegistrationId_sid: endPoint: /preregistration/v1/applications/prereg/{preRegistrationId} + description: Delete the preregistration with an invalid preregistration ID role: batch restMethod: delete inputTemplate: preReg/DeletePreRegistration/deletePreRegistration diff --git a/apitest/src/main/resources/preReg/DeletePreRegistration/deletePreRegistration.hbs b/api-test/src/main/resources/preReg/DeletePreRegistration/deletePreRegistration.hbs similarity index 100% rename from apitest/src/main/resources/preReg/DeletePreRegistration/deletePreRegistration.hbs rename to api-test/src/main/resources/preReg/DeletePreRegistration/deletePreRegistration.hbs diff --git a/apitest/src/main/resources/preReg/DeletePreRegistration/deletePreRegistrationResult.hbs b/api-test/src/main/resources/preReg/DeletePreRegistration/deletePreRegistrationResult.hbs similarity index 100% rename from apitest/src/main/resources/preReg/DeletePreRegistration/deletePreRegistrationResult.hbs rename to api-test/src/main/resources/preReg/DeletePreRegistration/deletePreRegistrationResult.hbs diff --git a/apitest/src/main/resources/preReg/DeleteSpecificDocForaPRID/DeleteSpecificDocForaPRID.yml b/api-test/src/main/resources/preReg/DeleteSpecificDocForaPRID/DeleteSpecificDocForaPRID.yml similarity index 89% rename from apitest/src/main/resources/preReg/DeleteSpecificDocForaPRID/DeleteSpecificDocForaPRID.yml rename to api-test/src/main/resources/preReg/DeleteSpecificDocForaPRID/DeleteSpecificDocForaPRID.yml index 1ce3096c3ed..7b4ff9bc460 100644 --- a/apitest/src/main/resources/preReg/DeleteSpecificDocForaPRID/DeleteSpecificDocForaPRID.yml +++ b/api-test/src/main/resources/preReg/DeleteSpecificDocForaPRID/DeleteSpecificDocForaPRID.yml @@ -1,6 +1,7 @@ DeleteSpecificDocForaPRID: Prereg_DeleteSpecificDocForaPRID_All_Valid_Smoke_sid: endPoint: /preregistration/v1/documents/{documentId}?preRegistrationId={preRegistrationId} + description: Delete specific document for a valid PRID role: batch checkErrorsOnlyInResponse: true restMethod: post @@ -15,6 +16,7 @@ DeleteSpecificDocForaPRID: }' Prereg_DeletePreRegistration_inValid_preRegistrationId_sid: endPoint: /preregistration/v1/documents/{documentId}?preRegistrationId={preRegistrationId} + description: Delete preregistration with an invalid PRID role: batch restMethod: post inputTemplate: preReg/DeleteSpecificDocForaPRID/deleteSpecificDocForaPRID @@ -32,6 +34,7 @@ DeleteSpecificDocForaPRID: }' Prereg_DeletePreRegistration_inValid_documentId_sid: endPoint: /preregistration/v1/documents/{documentId}?preRegistrationId={preRegistrationId} + description: Delete preregistration with an invalid document ID role: batch restMethod: post inputTemplate: preReg/DeleteSpecificDocForaPRID/deleteSpecificDocForaPRID diff --git a/apitest/src/main/resources/preReg/DeleteSpecificDocForaPRID/deleteSpecificDocForaPRID.hbs b/api-test/src/main/resources/preReg/DeleteSpecificDocForaPRID/deleteSpecificDocForaPRID.hbs similarity index 100% rename from apitest/src/main/resources/preReg/DeleteSpecificDocForaPRID/deleteSpecificDocForaPRID.hbs rename to api-test/src/main/resources/preReg/DeleteSpecificDocForaPRID/deleteSpecificDocForaPRID.hbs diff --git a/apitest/src/main/resources/preReg/DeleteSpecificDocForaPRID/deleteSpecificDocForaPRIDResult.hbs b/api-test/src/main/resources/preReg/DeleteSpecificDocForaPRID/deleteSpecificDocForaPRIDResult.hbs similarity index 100% rename from apitest/src/main/resources/preReg/DeleteSpecificDocForaPRID/deleteSpecificDocForaPRIDResult.hbs rename to api-test/src/main/resources/preReg/DeleteSpecificDocForaPRID/deleteSpecificDocForaPRIDResult.hbs diff --git a/apitest/src/main/resources/preReg/DiscardBooking/DiscardBookingOutput.json b/api-test/src/main/resources/preReg/DiscardBooking/DiscardBookingOutput.json similarity index 100% rename from apitest/src/main/resources/preReg/DiscardBooking/DiscardBookingOutput.json rename to api-test/src/main/resources/preReg/DiscardBooking/DiscardBookingOutput.json diff --git a/apitest/src/main/resources/preReg/DiscardBooking/DiscardBookingRequest.json b/api-test/src/main/resources/preReg/DiscardBooking/DiscardBookingRequest.json similarity index 100% rename from apitest/src/main/resources/preReg/DiscardBooking/DiscardBookingRequest.json rename to api-test/src/main/resources/preReg/DiscardBooking/DiscardBookingRequest.json diff --git a/apitest/src/main/resources/preReg/DiscardBooking/DiscardBooking_smoke/request.json b/api-test/src/main/resources/preReg/DiscardBooking/DiscardBooking_smoke/request.json similarity index 100% rename from apitest/src/main/resources/preReg/DiscardBooking/DiscardBooking_smoke/request.json rename to api-test/src/main/resources/preReg/DiscardBooking/DiscardBooking_smoke/request.json diff --git a/apitest/src/main/resources/preReg/DiscardBooking/DiscardBooking_smoke/response.json b/api-test/src/main/resources/preReg/DiscardBooking/DiscardBooking_smoke/response.json similarity index 100% rename from apitest/src/main/resources/preReg/DiscardBooking/DiscardBooking_smoke/response.json rename to api-test/src/main/resources/preReg/DiscardBooking/DiscardBooking_smoke/response.json diff --git a/apitest/src/main/resources/preReg/Documents/invalidDocument/docSizeGreaterThan5MB.pdf b/api-test/src/main/resources/preReg/Documents/invalidDocument/docSizeGreaterThan5MB.pdf similarity index 100% rename from apitest/src/main/resources/preReg/Documents/invalidDocument/docSizeGreaterThan5MB.pdf rename to api-test/src/main/resources/preReg/Documents/invalidDocument/docSizeGreaterThan5MB.pdf diff --git a/apitest/src/main/resources/preReg/Documents/invalidDocument/file.csv b/api-test/src/main/resources/preReg/Documents/invalidDocument/file.csv similarity index 100% rename from apitest/src/main/resources/preReg/Documents/invalidDocument/file.csv rename to api-test/src/main/resources/preReg/Documents/invalidDocument/file.csv diff --git a/apitest/src/main/resources/preReg/Documents/invalidDocument/file.txt b/api-test/src/main/resources/preReg/Documents/invalidDocument/file.txt similarity index 100% rename from apitest/src/main/resources/preReg/Documents/invalidDocument/file.txt rename to api-test/src/main/resources/preReg/Documents/invalidDocument/file.txt diff --git a/apitest/src/main/resources/preReg/Documents/invalidDocument/file.xlsx b/api-test/src/main/resources/preReg/Documents/invalidDocument/file.xlsx similarity index 100% rename from apitest/src/main/resources/preReg/Documents/invalidDocument/file.xlsx rename to api-test/src/main/resources/preReg/Documents/invalidDocument/file.xlsx diff --git a/apitest/src/main/resources/preReg/Documents/validDocument/IDProof.pdf b/api-test/src/main/resources/preReg/Documents/validDocument/IDProof.pdf similarity index 100% rename from apitest/src/main/resources/preReg/Documents/validDocument/IDProof.pdf rename to api-test/src/main/resources/preReg/Documents/validDocument/IDProof.pdf diff --git a/apitest/src/main/resources/preReg/FetchApplicationByPrid/FetchApplicationByPrid.yml b/api-test/src/main/resources/preReg/FetchApplicationByPrid/FetchApplicationByPrid.yml similarity index 87% rename from apitest/src/main/resources/preReg/FetchApplicationByPrid/FetchApplicationByPrid.yml rename to api-test/src/main/resources/preReg/FetchApplicationByPrid/FetchApplicationByPrid.yml index b6adbbaa5d8..e508d257a66 100644 --- a/apitest/src/main/resources/preReg/FetchApplicationByPrid/FetchApplicationByPrid.yml +++ b/api-test/src/main/resources/preReg/FetchApplicationByPrid/FetchApplicationByPrid.yml @@ -1,6 +1,7 @@ FetchApplicationByPrid: Prereg_FetchApplicationByPrid_All_Valid_Smoke_sid: endPoint: /preregistration/v1/applications/prereg/{preRegistrationId} + description: Fetch demographic details using a valid PRID role: batch restMethod: get inputTemplate: preReg/FetchApplicationByPrid/fetchApplicationByPrid @@ -13,6 +14,7 @@ FetchApplicationByPrid: }' Prereg_FetchApplicationByPrid_inValid_preRegistrationId_sid: endPoint: /preregistration/v1/applications/prereg/{preRegistrationId} + description: Fetch demographic details using an invalid PRID role: batch restMethod: get inputTemplate: preReg/FetchApplicationByPrid/fetchApplicationByPrid diff --git a/apitest/src/main/resources/preReg/FetchApplicationByPrid/fetchApplicationByPrid.hbs b/api-test/src/main/resources/preReg/FetchApplicationByPrid/fetchApplicationByPrid.hbs similarity index 100% rename from apitest/src/main/resources/preReg/FetchApplicationByPrid/fetchApplicationByPrid.hbs rename to api-test/src/main/resources/preReg/FetchApplicationByPrid/fetchApplicationByPrid.hbs diff --git a/apitest/src/main/resources/preReg/FetchApplicationByPrid/fetchApplicationByPridResult.hbs b/api-test/src/main/resources/preReg/FetchApplicationByPrid/fetchApplicationByPridResult.hbs similarity index 100% rename from apitest/src/main/resources/preReg/FetchApplicationByPrid/fetchApplicationByPridResult.hbs rename to api-test/src/main/resources/preReg/FetchApplicationByPrid/fetchApplicationByPridResult.hbs diff --git a/apitest/src/main/resources/preReg/FetchAppointmentDetailsByPrid/FetchAppointmentDetailsByPrid.yml b/api-test/src/main/resources/preReg/FetchAppointmentDetailsByPrid/FetchAppointmentDetailsByPrid.yml similarity index 86% rename from apitest/src/main/resources/preReg/FetchAppointmentDetailsByPrid/FetchAppointmentDetailsByPrid.yml rename to api-test/src/main/resources/preReg/FetchAppointmentDetailsByPrid/FetchAppointmentDetailsByPrid.yml index c5f28547e5b..af5c2bb668d 100644 --- a/apitest/src/main/resources/preReg/FetchAppointmentDetailsByPrid/FetchAppointmentDetailsByPrid.yml +++ b/api-test/src/main/resources/preReg/FetchAppointmentDetailsByPrid/FetchAppointmentDetailsByPrid.yml @@ -1,6 +1,7 @@ FetchAppointmentDetailsByPrid: Prereg_FetchAppointmentDetailsByPrid_All_Valid_Smoke_sid: endPoint: /preregistration/v1/applications/appointment/{preRegistrationId} + description: Fetch appointment details for the preregistration ID role: batch restMethod: get inputTemplate: preReg/FetchAppointmentDetailsByPrid/fetchAppointmentDetailsByPrid @@ -13,6 +14,7 @@ FetchAppointmentDetailsByPrid: }' Prereg_FetchAppointmentDetailsByPrid_inValid_preRegistrationId_sid: endPoint: /preregistration/v1/applications/appointment/{preRegistrationId} + description: Fetch appointment details for the invalid preregistration ID role: batch restMethod: get inputTemplate: preReg/FetchAppointmentDetailsByPrid/fetchAppointmentDetailsByPrid diff --git a/apitest/src/main/resources/preReg/FetchAppointmentDetailsByPrid/fetchAppointmentDetailsByPrid.hbs b/api-test/src/main/resources/preReg/FetchAppointmentDetailsByPrid/fetchAppointmentDetailsByPrid.hbs similarity index 100% rename from apitest/src/main/resources/preReg/FetchAppointmentDetailsByPrid/fetchAppointmentDetailsByPrid.hbs rename to api-test/src/main/resources/preReg/FetchAppointmentDetailsByPrid/fetchAppointmentDetailsByPrid.hbs diff --git a/apitest/src/main/resources/preReg/FetchAppointmentDetailsByPrid/fetchAppointmentDetailsByPridResult.hbs b/api-test/src/main/resources/preReg/FetchAppointmentDetailsByPrid/fetchAppointmentDetailsByPridResult.hbs similarity index 100% rename from apitest/src/main/resources/preReg/FetchAppointmentDetailsByPrid/fetchAppointmentDetailsByPridResult.hbs rename to api-test/src/main/resources/preReg/FetchAppointmentDetailsByPrid/fetchAppointmentDetailsByPridResult.hbs diff --git a/api-test/src/main/resources/preReg/FetchAvailabilityData/FetchAvailabilityData.yml b/api-test/src/main/resources/preReg/FetchAvailabilityData/FetchAvailabilityData.yml new file mode 100644 index 00000000000..275effbd61d --- /dev/null +++ b/api-test/src/main/resources/preReg/FetchAvailabilityData/FetchAvailabilityData.yml @@ -0,0 +1,31 @@ +FetchAvailabilityDataByCenterID: + Prereg_FetchAvailabilityDataByCenterID_All_Valid_Smoke_sid: + endPoint: /preregistration/v1/applications/appointment/slots/availability/10003 + description: Fetch the available data by center ID + role: batch + restMethod: get + inputTemplate: preReg/FetchAvailabilityData/fetchAvailabilityData + outputTemplate: preReg/FetchAvailabilityData/fetchAvailabilityDataResult + input: '{ + "registrationCenterId": "10003" +}' + output: '{ + "regCenterId": "10003" +}' + Prereg_FetchAvailabilityData_inValid_CenterID_Smoke_sid: + endPoint: /preregistration/v1/applications/appointment/slots/availability/{registrationCenterId} + description: Fetch the available data by invalid center ID + role: batch + restMethod: get + inputTemplate: preReg/FetchAvailabilityData/fetchAvailabilityData + outputTemplate: preReg/error + input: '{ + "registrationCenterId": "@#@$W#" +}' + output: '{ + "errors": [ + { + "errorCode": "KER-MSD-215" + } + ] +}' \ No newline at end of file diff --git a/apitest/src/main/resources/preReg/GetAvailableSlotForRegCentreId/getAvailableSlotForRegCentreId.hbs b/api-test/src/main/resources/preReg/FetchAvailabilityData/fetchAvailabilityData.hbs similarity index 100% rename from apitest/src/main/resources/preReg/GetAvailableSlotForRegCentreId/getAvailableSlotForRegCentreId.hbs rename to api-test/src/main/resources/preReg/FetchAvailabilityData/fetchAvailabilityData.hbs diff --git a/api-test/src/main/resources/preReg/FetchAvailabilityData/fetchAvailabilityDataResult.hbs b/api-test/src/main/resources/preReg/FetchAvailabilityData/fetchAvailabilityDataResult.hbs new file mode 100644 index 00000000000..7bfbbb9a10f --- /dev/null +++ b/api-test/src/main/resources/preReg/FetchAvailabilityData/fetchAvailabilityDataResult.hbs @@ -0,0 +1,5 @@ +{ + "response": { + "regCenterId": "{{regCenterId}}" + } +} \ No newline at end of file diff --git a/apitest/src/main/resources/preReg/GetAllApplications/GetAllApplications.yml b/api-test/src/main/resources/preReg/GetAllApplications/GetAllApplications.yml similarity index 86% rename from apitest/src/main/resources/preReg/GetAllApplications/GetAllApplications.yml rename to api-test/src/main/resources/preReg/GetAllApplications/GetAllApplications.yml index a2917f183f6..dafbf32c58b 100644 --- a/apitest/src/main/resources/preReg/GetAllApplications/GetAllApplications.yml +++ b/api-test/src/main/resources/preReg/GetAllApplications/GetAllApplications.yml @@ -1,6 +1,7 @@ GetAllApplications: Prereg_GetAllApplications_All_Valid_Smoke_sid: endPoint: /preregistration/v1/applications + description: Retrieve all applications with valid data role: batch checkErrorsOnlyInResponse: true restMethod: get @@ -13,6 +14,7 @@ GetAllApplications: }' Prereg_GetAllApplications_InValid: endPoint: /preregistration/v1/applications + description: Retrieve all applications with invalid data role: batch checkErrorsOnlyInResponse: true restMethod: get @@ -30,6 +32,7 @@ GetAllApplications: }' Prereg_GetAllApplications_InValid_Type: endPoint: /preregistration/v1/applications?type={type} + description: Retrieve all applications with an invalid type role: batch restMethod: get inputTemplate: preReg/GetAllApplications/getAllApplications @@ -46,6 +49,7 @@ GetAllApplications: }' Prereg_GetAllApplications_Valid_Type_Smoke_sid: endPoint: /preregistration/v1/applications?type={type} + description: Retrieve all applications with a valid type role: batch checkErrorsOnlyInResponse: true restMethod: get diff --git a/apitest/src/main/resources/preReg/GetAllApplications/getAllApplications.hbs b/api-test/src/main/resources/preReg/GetAllApplications/getAllApplications.hbs similarity index 100% rename from apitest/src/main/resources/preReg/GetAllApplications/getAllApplications.hbs rename to api-test/src/main/resources/preReg/GetAllApplications/getAllApplications.hbs diff --git a/apitest/src/main/resources/preReg/GetAllApplications/getAllApplicationsResult.hbs b/api-test/src/main/resources/preReg/GetAllApplications/getAllApplicationsResult.hbs similarity index 100% rename from apitest/src/main/resources/preReg/GetAllApplications/getAllApplicationsResult.hbs rename to api-test/src/main/resources/preReg/GetAllApplications/getAllApplicationsResult.hbs diff --git a/apitest/src/main/resources/preReg/GetAllApplicationsWithapplicationId/GetAllApplicationsWithapplicationId.hbs b/api-test/src/main/resources/preReg/GetAllApplicationsWithapplicationId/GetAllApplicationsWithapplicationId.hbs similarity index 100% rename from apitest/src/main/resources/preReg/GetAllApplicationsWithapplicationId/GetAllApplicationsWithapplicationId.hbs rename to api-test/src/main/resources/preReg/GetAllApplicationsWithapplicationId/GetAllApplicationsWithapplicationId.hbs diff --git a/apitest/src/main/resources/preReg/GetAllApplicationsWithapplicationId/GetAllApplicationsWithapplicationId.yml b/api-test/src/main/resources/preReg/GetAllApplicationsWithapplicationId/GetAllApplicationsWithapplicationId.yml similarity index 77% rename from apitest/src/main/resources/preReg/GetAllApplicationsWithapplicationId/GetAllApplicationsWithapplicationId.yml rename to api-test/src/main/resources/preReg/GetAllApplicationsWithapplicationId/GetAllApplicationsWithapplicationId.yml index 1ea0cdb397f..5060c7b3f0b 100644 --- a/apitest/src/main/resources/preReg/GetAllApplicationsWithapplicationId/GetAllApplicationsWithapplicationId.yml +++ b/api-test/src/main/resources/preReg/GetAllApplicationsWithapplicationId/GetAllApplicationsWithapplicationId.yml @@ -1,6 +1,7 @@ GetAllApplicationsWithapplicationId: Prereg_GetAllApplicationsWithapplicationId_All_Valid_Smoke_sid: endPoint: /preregistration/v1/applications/{applicationId} + description: Retrieve all applications with the application ID role: batch checkErrorsOnlyInResponse: true restMethod: get @@ -13,18 +14,20 @@ GetAllApplicationsWithapplicationId: }' Prereg_GetAllApplicationsWithapplicationId_with_expired: endPoint: /preregistration/v1/applications/{applicationId} + description: Retrieve all applications with the expired application ID role: batch checkErrorsOnlyInResponse: true restMethod: get inputTemplate: preReg/GetAllApplicationsWithapplicationId/GetAllApplicationsWithapplicationId outputTemplate: preReg/GetAllApplicationsWithapplicationId/getAllApplicationsResult input: '{ - "applicationId": "$ID:CreatePrereg_with_future_date_preRegistrationId$" + "applicationId": "$ID:CreatePrereg_All_Valid_Smoke_sid_preRegistrationId$" }' output: '{ }' - Prereg_GetAllApplicationsWithapplicationId_with_invalid_app;icationId: + Prereg_GetAllApplicationsWithapplicationId_with_invalid_applicationId: endPoint: /preregistration/v1/applications/{applicationId} + description: Retrieve all applications with an invalid application ID role: batch checkErrorsOnlyInResponse: true restMethod: get @@ -36,7 +39,7 @@ GetAllApplicationsWithapplicationId: output: '{ "errors": [ { - "errorCode": "PRG_APP_016" + "errorCode": "PRG_APP_013" } ] }' \ No newline at end of file diff --git a/apitest/src/main/resources/preReg/GetAllApplicationsWithapplicationId/getAllApplicationsResult.hbs b/api-test/src/main/resources/preReg/GetAllApplicationsWithapplicationId/getAllApplicationsResult.hbs similarity index 100% rename from apitest/src/main/resources/preReg/GetAllApplicationsWithapplicationId/getAllApplicationsResult.hbs rename to api-test/src/main/resources/preReg/GetAllApplicationsWithapplicationId/getAllApplicationsResult.hbs diff --git a/apitest/src/main/resources/preReg/GetAllDocForPrId/GetAllDocForPrId.yml b/api-test/src/main/resources/preReg/GetAllDocForPrId/GetAllDocForPrId.yml similarity index 84% rename from apitest/src/main/resources/preReg/GetAllDocForPrId/GetAllDocForPrId.yml rename to api-test/src/main/resources/preReg/GetAllDocForPrId/GetAllDocForPrId.yml index 02e97b7ea52..37b8684a484 100644 --- a/apitest/src/main/resources/preReg/GetAllDocForPrId/GetAllDocForPrId.yml +++ b/api-test/src/main/resources/preReg/GetAllDocForPrId/GetAllDocForPrId.yml @@ -1,6 +1,7 @@ GetAllDocForPrId: Prereg_GetAllDocForPrId_All_Valid_Smoke_sid: endPoint: /preregistration/v1/documents/preregistration/{preRegistrationId} + description: Retrieve all documents associated with the valid Pre-Registration ID role: batch checkErrorsOnlyInResponse: true restMethod: get @@ -15,6 +16,7 @@ GetAllDocForPrId: }' Prereg_GetAllDocForPrId_inValid_preRegistrationId_sid: endPoint: /preregistration/v1/documents/preregistration/{preRegistrationId} + description: Retrieve all documents associated with the invalid Pre-Registration ID role: batch restMethod: get inputTemplate: preReg/GetAllDocForPrId/getAllDocForPrId diff --git a/apitest/src/main/resources/preReg/GetAllDocForPrId/getAllDocForPrId.hbs b/api-test/src/main/resources/preReg/GetAllDocForPrId/getAllDocForPrId.hbs similarity index 100% rename from apitest/src/main/resources/preReg/GetAllDocForPrId/getAllDocForPrId.hbs rename to api-test/src/main/resources/preReg/GetAllDocForPrId/getAllDocForPrId.hbs diff --git a/apitest/src/main/resources/preReg/GetAllDocForPrId/getAllDocForPrIdResult.hbs b/api-test/src/main/resources/preReg/GetAllDocForPrId/getAllDocForPrIdResult.hbs similarity index 100% rename from apitest/src/main/resources/preReg/GetAllDocForPrId/getAllDocForPrIdResult.hbs rename to api-test/src/main/resources/preReg/GetAllDocForPrId/getAllDocForPrIdResult.hbs diff --git a/apitest/src/main/resources/preReg/GetAllPreRegApplications/GetAllPreRegApplications.yml b/api-test/src/main/resources/preReg/GetAllPreRegApplications/GetAllPreRegApplications.yml similarity index 80% rename from apitest/src/main/resources/preReg/GetAllPreRegApplications/GetAllPreRegApplications.yml rename to api-test/src/main/resources/preReg/GetAllPreRegApplications/GetAllPreRegApplications.yml index 673ce6cadfb..80e8d61737e 100644 --- a/apitest/src/main/resources/preReg/GetAllPreRegApplications/GetAllPreRegApplications.yml +++ b/api-test/src/main/resources/preReg/GetAllPreRegApplications/GetAllPreRegApplications.yml @@ -1,6 +1,7 @@ GetAllPreRegApplications: Prereg_GetAllPreRegApplications_All_Valid_Smoke_sid: endPoint: /preregistration/v1/applications + description: Retrieve all preregistered applications with a valid preregistration ID role: batch checkErrorsOnlyInResponse: true restMethod: get @@ -12,6 +13,7 @@ GetAllPreRegApplications: }' Prereg_GetAllPreRegApplications_LOST_UIN_APPLICATION_sid: endPoint: /preregistration/v1/applications + description: Retrieve all preregistered applications with a prereg ID associated with the lost UIN application role: batch checkErrorsOnlyInResponse: true restMethod: get @@ -23,6 +25,7 @@ GetAllPreRegApplications: }' Prereg_GetAllPreRegApplications_DELETE_UIN_APPLICATION_sid: endPoint: /preregistration/v1/applications + description: Retrieve all preregistered applications with a prereg ID associated with a deleted UIN application role: batch checkErrorsOnlyInResponse: true restMethod: get diff --git a/apitest/src/main/resources/preReg/GetAllPreRegApplications/GetAllPreRegApplicationsResult.hbs b/api-test/src/main/resources/preReg/GetAllPreRegApplications/GetAllPreRegApplicationsResult.hbs similarity index 100% rename from apitest/src/main/resources/preReg/GetAllPreRegApplications/GetAllPreRegApplicationsResult.hbs rename to api-test/src/main/resources/preReg/GetAllPreRegApplications/GetAllPreRegApplicationsResult.hbs diff --git a/apitest/src/main/resources/preReg/GetAllPreRegApplications/getAllPreRegApplications.hbs b/api-test/src/main/resources/preReg/GetAllPreRegApplications/getAllPreRegApplications.hbs similarity index 100% rename from apitest/src/main/resources/preReg/GetAllPreRegApplications/getAllPreRegApplications.hbs rename to api-test/src/main/resources/preReg/GetAllPreRegApplications/getAllPreRegApplications.hbs diff --git a/api-test/src/main/resources/preReg/GetApplicationStatusByApplicationID/GetApplicationStatusByApplicationID.yml b/api-test/src/main/resources/preReg/GetApplicationStatusByApplicationID/GetApplicationStatusByApplicationID.yml new file mode 100644 index 00000000000..699c47f3038 --- /dev/null +++ b/api-test/src/main/resources/preReg/GetApplicationStatusByApplicationID/GetApplicationStatusByApplicationID.yml @@ -0,0 +1,32 @@ +GetApplicationStatusByApplicationID: + Prereg_GetApplicationStatusByApplicationID_All_Valid_Smoke_sid: + endPoint: /preregistration/v1/applications/status/{applicationId} + description: Retrieve the application status by application ID + role: batch + checkErrorsOnlyInResponse: true + restMethod: get + inputTemplate: preReg/GetApplicationStatusByApplicationID/getApplicationStatusByApplicationID + outputTemplate: preReg/GetApplicationStatusByApplicationID/getApplicationStatusByApplicationIDResult + input: '{ + "applicationId": "52917592714578" +}' + output: '{ + "response": "Cancelled" +}' + Prereg_GetApplicationStatusByApplicationID_InValid_applicationId: + endPoint: /preregistration/v1/applications/status/{applicationId} + description: Retrieve the application status by invalid application ID + role: batch + restMethod: get + inputTemplate: preReg/GetApplicationStatusByApplicationID/getApplicationStatusByApplicationID + outputTemplate: preReg/error + input: '{ + "applicationId": "erwsdhgqw5dcfbz" +}' + output: '{ + "errors": [ + { + "errorCode": "PRG_APP_013" + } + ] +}' \ No newline at end of file diff --git a/api-test/src/main/resources/preReg/GetApplicationStatusByApplicationID/getApplicationStatusByApplicationID.hbs b/api-test/src/main/resources/preReg/GetApplicationStatusByApplicationID/getApplicationStatusByApplicationID.hbs new file mode 100644 index 00000000000..95f5a367e5a --- /dev/null +++ b/api-test/src/main/resources/preReg/GetApplicationStatusByApplicationID/getApplicationStatusByApplicationID.hbs @@ -0,0 +1,3 @@ +{ + "applicationId": "{{applicationId}}" +} \ No newline at end of file diff --git a/apitest/src/main/resources/preReg/InvalidateToken/invalidatetokenresult.hbs b/api-test/src/main/resources/preReg/GetApplicationStatusByApplicationID/getApplicationStatusByApplicationIDResult.hbs similarity index 100% rename from apitest/src/main/resources/preReg/InvalidateToken/invalidatetokenresult.hbs rename to api-test/src/main/resources/preReg/GetApplicationStatusByApplicationID/getApplicationStatusByApplicationIDResult.hbs diff --git a/apitest/src/main/resources/preReg/GetApplicationStatusWithPrId/GetApplicationStatusWithPrId.yml b/api-test/src/main/resources/preReg/GetApplicationStatusWithPrId/GetApplicationStatusWithPrId.yml similarity index 87% rename from apitest/src/main/resources/preReg/GetApplicationStatusWithPrId/GetApplicationStatusWithPrId.yml rename to api-test/src/main/resources/preReg/GetApplicationStatusWithPrId/GetApplicationStatusWithPrId.yml index 5804173f01e..01bd3239714 100644 --- a/apitest/src/main/resources/preReg/GetApplicationStatusWithPrId/GetApplicationStatusWithPrId.yml +++ b/api-test/src/main/resources/preReg/GetApplicationStatusWithPrId/GetApplicationStatusWithPrId.yml @@ -1,6 +1,7 @@ GetApplicationStatusWithPrId: Prereg_GetApplicationStatusWithPrId_All_Valid_Smoke_sid: endPoint: /preregistration/v1/applications/prereg/status/{preRegistrationId} + description: Retrieve the application status using a valid PRID role: batch restMethod: get inputTemplate: preReg/GetApplicationStatusWithPrId/getApplicationStatusWithPrId @@ -13,6 +14,7 @@ GetApplicationStatusWithPrId: }' Prereg_GetApplicationStatusWithPrId_inValid_PRID_sid: endPoint: /preregistration/v1/applications/prereg/status/{preRegistrationId} + description: Retrieve the application status using an invalid PRID role: batch restMethod: get inputTemplate: preReg/GetApplicationStatusWithPrId/getApplicationStatusWithPrId @@ -29,6 +31,7 @@ GetApplicationStatusWithPrId: }' Prereg_GetApplicationStatusWithPrId_Blank_PRID_sid: endPoint: /preregistration/v1/applications/prereg/status/{preRegistrationId} + description: Retrieve the application status using an blank PRID role: batch restMethod: get inputTemplate: preReg/GetApplicationStatusWithPrId/getApplicationStatusWithPrId diff --git a/apitest/src/main/resources/preReg/GetApplicationStatusWithPrId/getApplicationStatusWithPrId.hbs b/api-test/src/main/resources/preReg/GetApplicationStatusWithPrId/getApplicationStatusWithPrId.hbs similarity index 100% rename from apitest/src/main/resources/preReg/GetApplicationStatusWithPrId/getApplicationStatusWithPrId.hbs rename to api-test/src/main/resources/preReg/GetApplicationStatusWithPrId/getApplicationStatusWithPrId.hbs diff --git a/apitest/src/main/resources/preReg/GetApplicationStatusWithPrId/getApplicationStatusWithPrIdResult.hbs b/api-test/src/main/resources/preReg/GetApplicationStatusWithPrId/getApplicationStatusWithPrIdResult.hbs similarity index 100% rename from apitest/src/main/resources/preReg/GetApplicationStatusWithPrId/getApplicationStatusWithPrIdResult.hbs rename to api-test/src/main/resources/preReg/GetApplicationStatusWithPrId/getApplicationStatusWithPrIdResult.hbs diff --git a/apitest/src/main/resources/preReg/GetApplicationWithPrId/GetApplicationWithPrId.yml b/api-test/src/main/resources/preReg/GetApplicationWithPrId/GetApplicationWithPrId.yml similarity index 84% rename from apitest/src/main/resources/preReg/GetApplicationWithPrId/GetApplicationWithPrId.yml rename to api-test/src/main/resources/preReg/GetApplicationWithPrId/GetApplicationWithPrId.yml index a6d6ed9b187..49a765cbc1b 100644 --- a/apitest/src/main/resources/preReg/GetApplicationWithPrId/GetApplicationWithPrId.yml +++ b/api-test/src/main/resources/preReg/GetApplicationWithPrId/GetApplicationWithPrId.yml @@ -1,6 +1,7 @@ GetApplicationWithPrId: Prereg_GetApplicationWithPrId_inValid_preRegistrationId: endPoint: /preregistration/v1/applications/{preRegistrationId} + description: Retrieve application with an invalid pre-registration ID (PRID) role: batch restMethod: get inputTemplate: preReg/GetApplicationWithPrId/getApplicationWithPrId diff --git a/apitest/src/main/resources/preReg/GetApplicationWithPrId/getApplicationWithPrId.hbs b/api-test/src/main/resources/preReg/GetApplicationWithPrId/getApplicationWithPrId.hbs similarity index 100% rename from apitest/src/main/resources/preReg/GetApplicationWithPrId/getApplicationWithPrId.hbs rename to api-test/src/main/resources/preReg/GetApplicationWithPrId/getApplicationWithPrId.hbs diff --git a/apitest/src/main/resources/preReg/GetApplicationWithPrId/getApplicationWithPrIdResult.hbs b/api-test/src/main/resources/preReg/GetApplicationWithPrId/getApplicationWithPrIdResult.hbs similarity index 100% rename from apitest/src/main/resources/preReg/GetApplicationWithPrId/getApplicationWithPrIdResult.hbs rename to api-test/src/main/resources/preReg/GetApplicationWithPrId/getApplicationWithPrIdResult.hbs diff --git a/api-test/src/main/resources/preReg/GetApplicationsApplicationID/GetApplicationsApplicationID.yml b/api-test/src/main/resources/preReg/GetApplicationsApplicationID/GetApplicationsApplicationID.yml new file mode 100644 index 00000000000..83b927cb94e --- /dev/null +++ b/api-test/src/main/resources/preReg/GetApplicationsApplicationID/GetApplicationsApplicationID.yml @@ -0,0 +1,32 @@ +GetApplicationsApplicationID: + Prereg_GetApplicationsApplicationID_All_Valid_Smoke_sid: + endPoint: /preregistration/v1/applications/{applicationId} + description: Retrieve the application by application ID + role: batch + checkErrorsOnlyInResponse: true + restMethod: get + inputTemplate: preReg/GetApplicationsApplicationID/getApplicationsApplicationID + outputTemplate: preReg/GetApplicationsApplicationID/getApplicationsApplicationIDResult + input: '{ + "applicationId": "52917592714578" +}' + output: '{ + "applicationId": "52917592714578" +}' + Prereg_GetApplicationsApplicationID_InValid_applicationID: + endPoint: /preregistration/v1/applications/{applicationId} + description: Retrieve the application by invalid application ID + role: batch + restMethod: get + inputTemplate: preReg/GetApplicationsApplicationID/getApplicationsApplicationID + outputTemplate: preReg/error + input: '{ + "applicationId": "erwsdhgqw5dcfbz" +}' + output: '{ + "errors": [ + { + "errorCode": "PRG_APP_013" + } + ] +}' \ No newline at end of file diff --git a/api-test/src/main/resources/preReg/GetApplicationsApplicationID/getApplicationsApplicationID.hbs b/api-test/src/main/resources/preReg/GetApplicationsApplicationID/getApplicationsApplicationID.hbs new file mode 100644 index 00000000000..95f5a367e5a --- /dev/null +++ b/api-test/src/main/resources/preReg/GetApplicationsApplicationID/getApplicationsApplicationID.hbs @@ -0,0 +1,3 @@ +{ + "applicationId": "{{applicationId}}" +} \ No newline at end of file diff --git a/api-test/src/main/resources/preReg/GetApplicationsApplicationID/getApplicationsApplicationIDResult.hbs b/api-test/src/main/resources/preReg/GetApplicationsApplicationID/getApplicationsApplicationIDResult.hbs new file mode 100644 index 00000000000..24fe17af947 --- /dev/null +++ b/api-test/src/main/resources/preReg/GetApplicationsApplicationID/getApplicationsApplicationIDResult.hbs @@ -0,0 +1,5 @@ +{ + "response": { + "applicationId": "{{applicationId}}" + } +} \ No newline at end of file diff --git a/apitest/src/main/resources/preReg/GetAppointmentDetails/GetAppointmentDetails.yml b/api-test/src/main/resources/preReg/GetAppointmentDetails/GetAppointmentDetails.yml similarity index 85% rename from apitest/src/main/resources/preReg/GetAppointmentDetails/GetAppointmentDetails.yml rename to api-test/src/main/resources/preReg/GetAppointmentDetails/GetAppointmentDetails.yml index ae02d25efc4..111e1a2ed8b 100644 --- a/apitest/src/main/resources/preReg/GetAppointmentDetails/GetAppointmentDetails.yml +++ b/api-test/src/main/resources/preReg/GetAppointmentDetails/GetAppointmentDetails.yml @@ -1,6 +1,7 @@ GetAppointmentDetails: Prereg_GetAppointmentDetails_BookByPRID_All_Valid_Smoke_sid: endPoint: /preregistration/v1/appointment/{preRegistrationId} + description: Retrieve appointment details booked by a valid PRID role: batch restMethod: get inputTemplate: preReg/GetAppointmentDetails/getAppointmentDetails @@ -13,6 +14,7 @@ GetAppointmentDetails: }' Prereg_GetAppointmentDetails_with_cancelled_appoinment: endPoint: /preregistration/v1/appointment/{preRegistrationId} + description: Retrieve appointment details for a cancelled appointment role: batch restMethod: get inputTemplate: preReg/GetAppointmentDetails/getAppointmentDetails @@ -25,6 +27,7 @@ GetAppointmentDetails: }' Prereg_GetAppointmentDetails_AllValid_Smoke_sid: endPoint: /preregistration/v1/appointment/{preRegistrationId} + description: Retrieve appointment details for a valid preregistrationID role: batch restMethod: get inputTemplate: preReg/GetAppointmentDetails/getAppointmentDetails @@ -38,6 +41,7 @@ GetAppointmentDetails: Prereg_GetAppointmentDetails_inValid_preRegistrationId: endPoint: /preregistration/v1/appointment/{preRegistrationId} + description: Retrieve appointment details for a invalid preregistrationID role: batch restMethod: get inputTemplate: preReg/GetAppointmentDetails/getAppointmentDetails @@ -54,6 +58,7 @@ GetAppointmentDetails: }' Prereg_GetAppointmentDetails_empty_space_preRegistrationId: endPoint: /preregistration/v1/appointment/{preRegistrationId} + description: Retrieve appointment details for an empty space preregistration ID role: batch restMethod: get inputTemplate: preReg/GetAppointmentDetails/getAppointmentDetails diff --git a/apitest/src/main/resources/preReg/GetAppointmentDetails/getAppointmentDetails.hbs b/api-test/src/main/resources/preReg/GetAppointmentDetails/getAppointmentDetails.hbs similarity index 100% rename from apitest/src/main/resources/preReg/GetAppointmentDetails/getAppointmentDetails.hbs rename to api-test/src/main/resources/preReg/GetAppointmentDetails/getAppointmentDetails.hbs diff --git a/apitest/src/main/resources/preReg/GetAppointmentDetails/getAppointmentDetailsResult.hbs b/api-test/src/main/resources/preReg/GetAppointmentDetails/getAppointmentDetailsResult.hbs similarity index 100% rename from apitest/src/main/resources/preReg/GetAppointmentDetails/getAppointmentDetailsResult.hbs rename to api-test/src/main/resources/preReg/GetAppointmentDetails/getAppointmentDetailsResult.hbs diff --git a/apitest/src/main/resources/preReg/GetAvailableSlotForRegCentreId/GetAvailableSlotForRegCentreId.yml b/api-test/src/main/resources/preReg/GetAvailableSlotForRegCentreId/GetAvailableSlotForRegCentreId.yml similarity index 85% rename from apitest/src/main/resources/preReg/GetAvailableSlotForRegCentreId/GetAvailableSlotForRegCentreId.yml rename to api-test/src/main/resources/preReg/GetAvailableSlotForRegCentreId/GetAvailableSlotForRegCentreId.yml index 07ad9e5a2d6..8f906b254aa 100644 --- a/apitest/src/main/resources/preReg/GetAvailableSlotForRegCentreId/GetAvailableSlotForRegCentreId.yml +++ b/api-test/src/main/resources/preReg/GetAvailableSlotForRegCentreId/GetAvailableSlotForRegCentreId.yml @@ -1,6 +1,7 @@ GetAvailableSlotForRegCentreId: Prereg_GetAvailableSlotForRegCentreId_All_Valid_Smoke_sid: endPoint: /preregistration/v1/appointment/availability/{registrationCenterId} + description: Retrieve available slots for a valid registration center ID role: batch restMethod: get inputTemplate: preReg/GetAvailableSlotForRegCentreId/getAvailableSlotForRegCentreId @@ -13,6 +14,7 @@ GetAvailableSlotForRegCentreId: }' Prereg_GetAvailableSlotForRegCentreId_inValid_registrationCenterId_sid: endPoint: /preregistration/v1/appointment/availability/{registrationCenterId} + description: Retrieve available slots for an invalid registration center ID role: batch restMethod: get inputTemplate: preReg/GetAvailableSlotForRegCentreId/getAvailableSlotForRegCentreId @@ -29,6 +31,7 @@ GetAvailableSlotForRegCentreId: }' Prereg_GetAvailableSlotForRegCentreId_Valid_Smoke_sid: endPoint: /preregistration/v1/appointment/availability/{registrationCenterId} + description: Retrieve available slots for a valid registration center ID role: batch restMethod: get inputTemplate: preReg/GetAvailableSlotForRegCentreId/getAvailableSlotForRegCentreId diff --git a/apitest/src/main/resources/preReg/GetPRIDForRegCent/getPRIDForRegCent.hbs b/api-test/src/main/resources/preReg/GetAvailableSlotForRegCentreId/getAvailableSlotForRegCentreId.hbs similarity index 100% rename from apitest/src/main/resources/preReg/GetPRIDForRegCent/getPRIDForRegCent.hbs rename to api-test/src/main/resources/preReg/GetAvailableSlotForRegCentreId/getAvailableSlotForRegCentreId.hbs diff --git a/apitest/src/main/resources/preReg/GetAvailableSlotForRegCentreId/getAvailableSlotForRegCentreIdResult.hbs b/api-test/src/main/resources/preReg/GetAvailableSlotForRegCentreId/getAvailableSlotForRegCentreIdResult.hbs similarity index 100% rename from apitest/src/main/resources/preReg/GetAvailableSlotForRegCentreId/getAvailableSlotForRegCentreIdResult.hbs rename to api-test/src/main/resources/preReg/GetAvailableSlotForRegCentreId/getAvailableSlotForRegCentreIdResult.hbs diff --git a/apitest/src/main/resources/preReg/GetBookingsForRegCenter/GetBookingsForRegCenter.yml b/api-test/src/main/resources/preReg/GetBookingsForRegCenter/GetBookingsForRegCenter.yml similarity index 65% rename from apitest/src/main/resources/preReg/GetBookingsForRegCenter/GetBookingsForRegCenter.yml rename to api-test/src/main/resources/preReg/GetBookingsForRegCenter/GetBookingsForRegCenter.yml index 77e4a954e2d..8461fb03196 100644 --- a/apitest/src/main/resources/preReg/GetBookingsForRegCenter/GetBookingsForRegCenter.yml +++ b/api-test/src/main/resources/preReg/GetBookingsForRegCenter/GetBookingsForRegCenter.yml @@ -1,10 +1,11 @@ GetBookingsForRegCenter: Prereg_GetBookingsForRegCenter_All_Valid_Smoke_sid: endPoint: /preregistration/v1/applications/bookings/{regCenterId}?from_date=2020-10-01&to_date=2034-10-13 + description: Retrieve booking for a valid registration center ID role: batch restMethod: get - inputTemplate: preReg/GetAvailableSlotForRegCentreId/getAvailableSlotForRegCentreId - outputTemplate: preReg/GetAvailableSlotForRegCentreId/getAvailableSlotForRegCentreIdResult + inputTemplate: preReg/GetBookingsForRegCenter/getBookingsForRegCenter + outputTemplate: preReg/GetBookingsForRegCenter/getBookingsForRegCenterResult input: '{ "regCenterId": "10003" }' @@ -13,9 +14,10 @@ GetBookingsForRegCenter: }' Prereg_GetBookingsForRegCenter_with_InValid_date_format: endPoint: /preregistration/v1/applications/bookings/{regCenterId}?from_date=2020-45461&to_date=2034-10-13 + description: Retrieve booking for a registration center with an invalid date format role: batch restMethod: get - inputTemplate: preReg/GetAvailableSlotForRegCentreId/getAvailableSlotForRegCentreId + inputTemplate: preReg/GetBookingsForRegCenter/getBookingsForRegCenter outputTemplate: preReg/error input: '{ "regCenterId": "10003" @@ -29,9 +31,10 @@ GetBookingsForRegCenter: }' Prereg_GetBookingsForRegCenter_with_InValid_regcenter: endPoint: /preregistration/v1/applications/bookings/{regCenterId}?from_date=2020-10-01&to_date=2034-10-13 + description: Retrieve booking for a registration center with an invalid registration center ID role: batch restMethod: get - inputTemplate: preReg/GetAvailableSlotForRegCentreId/getAvailableSlotForRegCentreId + inputTemplate: preReg/GetBookingsForRegCenter/getBookingsForRegCenter outputTemplate: preReg/error input: '{ "regCenterId": "10@@#$$003" @@ -45,9 +48,10 @@ GetBookingsForRegCenter: }' Prereg_GetBookingsForRegCenter_with_InValid_regcenter_invalidDate: endPoint: /preregistration/v1/applications/bookings/{regCenterId}?from_date=20204555&to_date=2034-10-13 + description: Retrieve booking for a registration center with an invalid registration center ID and an invalid date role: batch restMethod: get - inputTemplate: preReg/GetAvailableSlotForRegCentreId/getAvailableSlotForRegCentreId + inputTemplate: preReg/GetBookingsForRegCenter/getBookingsForRegCenter outputTemplate: preReg/error input: '{ "regCenterId": "10@@#$$003" diff --git a/apitest/src/main/resources/preReg/GetBookingsForRegCenter/getBookingsForRegCenter.hbs b/api-test/src/main/resources/preReg/GetBookingsForRegCenter/getBookingsForRegCenter.hbs similarity index 100% rename from apitest/src/main/resources/preReg/GetBookingsForRegCenter/getBookingsForRegCenter.hbs rename to api-test/src/main/resources/preReg/GetBookingsForRegCenter/getBookingsForRegCenter.hbs diff --git a/apitest/src/main/resources/preReg/GetBookingsForRegCenter/getBookingsForRegCenterResult.hbs b/api-test/src/main/resources/preReg/GetBookingsForRegCenter/getBookingsForRegCenterResult.hbs similarity index 100% rename from apitest/src/main/resources/preReg/GetBookingsForRegCenter/getBookingsForRegCenterResult.hbs rename to api-test/src/main/resources/preReg/GetBookingsForRegCenter/getBookingsForRegCenterResult.hbs diff --git a/apitest/src/main/resources/preReg/GetPRIDByDateRange/GetPRIDByDateRange.yml b/api-test/src/main/resources/preReg/GetPRIDByDateRange/GetPRIDByDateRange.yml similarity index 84% rename from apitest/src/main/resources/preReg/GetPRIDByDateRange/GetPRIDByDateRange.yml rename to api-test/src/main/resources/preReg/GetPRIDByDateRange/GetPRIDByDateRange.yml index 9f5895f62d9..a4225419839 100644 --- a/apitest/src/main/resources/preReg/GetPRIDByDateRange/GetPRIDByDateRange.yml +++ b/api-test/src/main/resources/preReg/GetPRIDByDateRange/GetPRIDByDateRange.yml @@ -1,7 +1,9 @@ GetPRIDByDateRange: Prereg_GetPRIDByDateRange_All_Valid_Smoke_sid: endPoint: /preregistration/v1/sync + description: Retrieve the PRID within the given date range role: regproc + checkErrorsOnlyInResponse: true restMethod: post inputTemplate: preReg/GetPRIDByDateRange/getPRIDByDateRange outputTemplate: preReg/GetPRIDByDateRange/getPRIDByDateRangeResult @@ -18,6 +20,7 @@ GetPRIDByDateRange: }' Prereg_GetPRIDByDateRange_inValid_id: endPoint: /preregistration/v1/sync + description: Retrieve the PRID within the specified date range for the Invalid ID role: regproc restMethod: post inputTemplate: preReg/GetPRIDByDateRange/getPRIDByDateRange @@ -39,6 +42,7 @@ GetPRIDByDateRange: }' Prereg_GetPRIDByDateRange_blank_id: endPoint: /preregistration/v1/sync + description: Retrieve the PRID within the specified date range for the blank ID role: regproc restMethod: post inputTemplate: preReg/GetPRIDByDateRange/getPRIDByDateRange @@ -60,6 +64,7 @@ GetPRIDByDateRange: }' Prereg_GetPRIDByDateRange_missing_id: endPoint: /preregistration/v1/sync + description: Retrieve the PRID within the specified date range for the missing ID role: regproc restMethod: post inputTemplate: preReg/GetPRIDByDateRange/getPRIDByDateRange @@ -81,6 +86,7 @@ GetPRIDByDateRange: }' Prereg_GetPRIDByDateRange_invalid_version: endPoint: /preregistration/v1/sync + description: Retrieve the PRID within the specified date range for the invalid version role: regproc restMethod: post inputTemplate: preReg/GetPRIDByDateRange/getPRIDByDateRange @@ -102,6 +108,7 @@ GetPRIDByDateRange: }' Prereg_GetPRIDByDateRange_missing_version: endPoint: /preregistration/v1/sync + description: Retrieve the PRID within the specified date range for the missing version role: regproc restMethod: post inputTemplate: preReg/GetPRIDByDateRange/getPRIDByDateRange @@ -123,6 +130,7 @@ GetPRIDByDateRange: }' Prereg_GetPRIDByDateRange_blank_version: endPoint: /preregistration/v1/sync + description: Retrieve the PRID within the specified date range for the blank version role: regproc restMethod: post inputTemplate: preReg/GetPRIDByDateRange/getPRIDByDateRange @@ -144,6 +152,7 @@ GetPRIDByDateRange: }' Prereg_GetPRIDByDateRange_blank_requesttime: endPoint: /preregistration/v1/sync + description: Retrieve the PRID within the specified date range for the request time that is blank role: regproc restMethod: post inputTemplate: preReg/GetPRIDByDateRange/getPRIDByDateRange @@ -165,6 +174,7 @@ GetPRIDByDateRange: }' Prereg_GetPRIDByDateRange_missing_requesttime: endPoint: /preregistration/v1/sync + description: Retrieve the PRID within the specified date range for the missing request time role: regproc restMethod: post inputTemplate: preReg/GetPRIDByDateRange/getPRIDByDateRange @@ -186,6 +196,7 @@ GetPRIDByDateRange: }' Prereg_GetPRIDByDateRange_Invalid_requesttime: endPoint: /preregistration/v1/sync + description: Retrieve the PRID within the specified date range for the invalid request time role: regproc restMethod: post inputTemplate: preReg/GetPRIDByDateRange/getPRIDByDateRange @@ -207,6 +218,7 @@ GetPRIDByDateRange: }' Prereg_GetPRIDByDateRange_Invalid_registrationCenterId: endPoint: /preregistration/v1/sync + description: Retrieve the PRID within the specified date range for the invalid registration center ID role: regproc restMethod: post inputTemplate: preReg/GetPRIDByDateRange/getPRIDByDateRange @@ -228,6 +240,7 @@ GetPRIDByDateRange: }' Prereg_GetPRIDByDateRange_blank_registrationCenterId: endPoint: /preregistration/v1/sync + description: Retrieve the PRID within the specified date range for the blank registration center ID role: regproc restMethod: post inputTemplate: preReg/GetPRIDByDateRange/getPRIDByDateRange @@ -249,6 +262,7 @@ GetPRIDByDateRange: }' Prereg_GetPRIDByDateRange_missing_registrationCenterId: endPoint: /preregistration/v1/sync + description: Retrieve the PRID within the specified date range for the missing registration center ID role: regproc restMethod: post inputTemplate: preReg/GetPRIDByDateRange/getPRIDByDateRange @@ -270,6 +284,7 @@ GetPRIDByDateRange: }' Prereg_GetPRIDByDateRange_missing_fromDate: endPoint: /preregistration/v1/sync + description: Retrieve the PRID within the specified date range where the fromDate is missing role: regproc restMethod: post inputTemplate: preReg/GetPRIDByDateRange/getPRIDByDateRange @@ -291,6 +306,7 @@ GetPRIDByDateRange: }' Prereg_GetPRIDByDateRange_Invalid_fromDate: endPoint: /preregistration/v1/sync + description: Retrieve the PRID within the specified date range where the fromDate is missing role: regproc restMethod: post inputTemplate: preReg/GetPRIDByDateRange/getPRIDByDateRange @@ -312,6 +328,7 @@ GetPRIDByDateRange: }' Prereg_GetPRIDByDateRange_blank_fromDate: endPoint: /preregistration/v1/sync + description: Retrieve the PRID within the specified date range where the fromDate field is blank role: regproc restMethod: post inputTemplate: preReg/GetPRIDByDateRange/getPRIDByDateRange @@ -333,6 +350,7 @@ GetPRIDByDateRange: }' Prereg_GetPRIDByDateRange_blank_toDate: endPoint: /preregistration/v1/sync + description: Retrieve the PRID within the specified date range where the toDate field is blank role: regproc restMethod: post inputTemplate: preReg/GetPRIDByDateRange/getPRIDByDateRange @@ -354,6 +372,7 @@ GetPRIDByDateRange: }' Prereg_GetPRIDByDateRange_missing_toDate: endPoint: /preregistration/v1/sync + description: Retrieve the PRID within the specified date range where the toDate field is missing role: regproc restMethod: post inputTemplate: preReg/GetPRIDByDateRange/getPRIDByDateRange @@ -375,6 +394,7 @@ GetPRIDByDateRange: }' Prereg_GetPRIDByDateRange_Invalid_toDate: endPoint: /preregistration/v1/sync + description: Retrieve the PRID within the specified date range where the 'toDate' field is invalid role: regproc restMethod: post inputTemplate: preReg/GetPRIDByDateRange/getPRIDByDateRange diff --git a/apitest/src/main/resources/preReg/GetPRIDByDateRange/getPRIDByDateRange.hbs b/api-test/src/main/resources/preReg/GetPRIDByDateRange/getPRIDByDateRange.hbs similarity index 100% rename from apitest/src/main/resources/preReg/GetPRIDByDateRange/getPRIDByDateRange.hbs rename to api-test/src/main/resources/preReg/GetPRIDByDateRange/getPRIDByDateRange.hbs diff --git a/apitest/src/main/resources/preReg/GetPRIDByDateRange/getPRIDByDateRangeResult.hbs b/api-test/src/main/resources/preReg/GetPRIDByDateRange/getPRIDByDateRangeResult.hbs similarity index 100% rename from apitest/src/main/resources/preReg/GetPRIDByDateRange/getPRIDByDateRangeResult.hbs rename to api-test/src/main/resources/preReg/GetPRIDByDateRange/getPRIDByDateRangeResult.hbs diff --git a/apitest/src/main/resources/preReg/GetPRIDForRegCent/GetPRIDForRegCent.yml b/api-test/src/main/resources/preReg/GetPRIDForRegCent/GetPRIDForRegCent.yml similarity index 87% rename from apitest/src/main/resources/preReg/GetPRIDForRegCent/GetPRIDForRegCent.yml rename to api-test/src/main/resources/preReg/GetPRIDForRegCent/GetPRIDForRegCent.yml index bfe838ce631..125887e0b5f 100644 --- a/apitest/src/main/resources/preReg/GetPRIDForRegCent/GetPRIDForRegCent.yml +++ b/api-test/src/main/resources/preReg/GetPRIDForRegCent/GetPRIDForRegCent.yml @@ -1,6 +1,7 @@ GetPRIDForRegCent: Prereg_GetPRIDForRegCent_All_Valid_Smoke_sid: endPoint: /preregistration/v1/appointment/preRegistrationId/{registrationCenterId}?from_date=2020-10-01&to_date=2034-10-13 + description: Retrieve PRID for a valid registration center ID role: batch restMethod: get inputTemplate: preReg/GetPRIDForRegCent/getPRIDForRegCent @@ -13,6 +14,7 @@ GetPRIDForRegCent: }' Prereg_GetPRIDForRegCent_inValid_registrationCenterId_sid: endPoint: /preregistration/v1/appointment/preRegistrationId/{registrationCenterId}?from_date=2020-10-01&to_date=2021-10-13 + description: Retrieve PRID for an invalid registration center ID role: batch restMethod: get inputTemplate: preReg/GetPRIDForRegCent/getPRIDForRegCent diff --git a/api-test/src/main/resources/preReg/GetPRIDForRegCent/getPRIDForRegCent.hbs b/api-test/src/main/resources/preReg/GetPRIDForRegCent/getPRIDForRegCent.hbs new file mode 100644 index 00000000000..38c9e50ee98 --- /dev/null +++ b/api-test/src/main/resources/preReg/GetPRIDForRegCent/getPRIDForRegCent.hbs @@ -0,0 +1,3 @@ +{ + "registrationCenterId": "{{registrationCenterId}}" +} \ No newline at end of file diff --git a/apitest/src/main/resources/preReg/GetPRIDForRegCent/getPRIDForRegCentResult.hbs b/api-test/src/main/resources/preReg/GetPRIDForRegCent/getPRIDForRegCentResult.hbs similarity index 100% rename from apitest/src/main/resources/preReg/GetPRIDForRegCent/getPRIDForRegCentResult.hbs rename to api-test/src/main/resources/preReg/GetPRIDForRegCent/getPRIDForRegCentResult.hbs diff --git a/api-test/src/main/resources/preReg/GetPreRegDemographicDataByPrid/GetPreRegDemographicDataByPrid.yml b/api-test/src/main/resources/preReg/GetPreRegDemographicDataByPrid/GetPreRegDemographicDataByPrid.yml new file mode 100644 index 00000000000..49bd14ccb99 --- /dev/null +++ b/api-test/src/main/resources/preReg/GetPreRegDemographicDataByPrid/GetPreRegDemographicDataByPrid.yml @@ -0,0 +1,35 @@ +GetPreRegDemographicDataByPrid: + Prereg_GetPreRegDemographicDataByPrid_Valid_preRegistrationId: + endPoint: /preregistration/v1/applications/prereg/{preRegistrationId} + description: Retrieve the PreReg demographic data by PRID + role: batch + restMethod: get + inputTemplate: preReg/GetPreRegDemographicDataByPrid/getPreRegDemographicDataByPrid + outputTemplate: preReg/GetPreRegDemographicDataByPrid/getPreRegDemographicDataByPridResult + input: '{ + "preRegistrationId": "$ID:CreatePrereg_Smoke_PreRegDemographicData_sid_preRegistrationId$" +}' + output: '{ + "preRegistrationId": "$ID:CreatePrereg_Smoke_PreRegDemographicData_sid_preRegistrationId$", + "postalCode":"14022", + "dateOfBirth": "$IGNORE$", + "IDSchemaVersion": "$IGNORE$", + "phone": "$IGNORE$" +}' + Prereg_GetPreRegDemographicDataByPrid_inValid_preRegistrationId: + endPoint: /preregistration/v1/applications/prereg/info/{preRegistrationId} + description: Retrieve the PreReg demographic data by invalid PRID + role: batch + restMethod: get + inputTemplate: preReg/GetPreRegDemographicDataByPrid/getPreRegDemographicDataByPrid + outputTemplate: preReg/error + input: '{ + "preRegistrationId": "123456" +}' + output: '{ + "errors": [ + { + "errorCode": "PRG_PAM_APP_005" + } + ] +}' \ No newline at end of file diff --git a/apitest/src/main/resources/preReg/GetPreRegInfoByPrid/getPreRegInfoByPrid.hbs b/api-test/src/main/resources/preReg/GetPreRegDemographicDataByPrid/getPreRegDemographicDataByPrid.hbs similarity index 100% rename from apitest/src/main/resources/preReg/GetPreRegInfoByPrid/getPreRegInfoByPrid.hbs rename to api-test/src/main/resources/preReg/GetPreRegDemographicDataByPrid/getPreRegDemographicDataByPrid.hbs diff --git a/api-test/src/main/resources/preReg/GetPreRegDemographicDataByPrid/getPreRegDemographicDataByPridResult.hbs b/api-test/src/main/resources/preReg/GetPreRegDemographicDataByPrid/getPreRegDemographicDataByPridResult.hbs new file mode 100644 index 00000000000..3f14f25249c --- /dev/null +++ b/api-test/src/main/resources/preReg/GetPreRegDemographicDataByPrid/getPreRegDemographicDataByPridResult.hbs @@ -0,0 +1,11 @@ +{ + "response": { + "demographicDetails": { + "identity": { + "postalCode": "14022", + "dateOfBirth": "1996/01/01", + "phone": "8249742850" + } + } + } +} \ No newline at end of file diff --git a/apitest/src/main/resources/preReg/GetPreRegInfoByPrid/GetPreRegInfoByPrid.yml b/api-test/src/main/resources/preReg/GetPreRegInfoByPrid/GetPreRegInfoByPrid.yml similarity index 81% rename from apitest/src/main/resources/preReg/GetPreRegInfoByPrid/GetPreRegInfoByPrid.yml rename to api-test/src/main/resources/preReg/GetPreRegInfoByPrid/GetPreRegInfoByPrid.yml index 6b26c8c8a1f..fd7d9319d33 100644 --- a/apitest/src/main/resources/preReg/GetPreRegInfoByPrid/GetPreRegInfoByPrid.yml +++ b/api-test/src/main/resources/preReg/GetPreRegInfoByPrid/GetPreRegInfoByPrid.yml @@ -1,6 +1,7 @@ GetPreRegInfoByPrid: Prereg_GetPreRegInfoByPrid_Valid_preRegistrationId: endPoint: /preregistration/v1/applications/prereg/info/{preRegistrationId} + description: Retrieve preregistration information using the preReg Id with a valid preRegistrationId role: batch restMethod: get inputTemplate: preReg/GetPreRegInfoByPrid/getPreRegInfoByPrid @@ -17,6 +18,7 @@ GetPreRegInfoByPrid: Prereg_GetPreRegInfoByPrid_inValid_preRegistrationId: endPoint: /preregistration/v1/applications/prereg/info/{preRegistrationId} + description: Retrieve preregistration information using the preReg Id with an invalid preRegistrationId role: batch restMethod: get inputTemplate: preReg/GetPreRegInfoByPrid/getPreRegInfoByPrid diff --git a/api-test/src/main/resources/preReg/GetPreRegInfoByPrid/getPreRegInfoByPrid.hbs b/api-test/src/main/resources/preReg/GetPreRegInfoByPrid/getPreRegInfoByPrid.hbs new file mode 100644 index 00000000000..790ad2f2993 --- /dev/null +++ b/api-test/src/main/resources/preReg/GetPreRegInfoByPrid/getPreRegInfoByPrid.hbs @@ -0,0 +1,3 @@ +{ + "preRegistrationId": "{{preRegistrationId}}" +} \ No newline at end of file diff --git a/apitest/src/main/resources/preReg/GetPreRegInfoByPrid/getPreRegInfoByPridResult.hbs b/api-test/src/main/resources/preReg/GetPreRegInfoByPrid/getPreRegInfoByPridResult.hbs similarity index 100% rename from apitest/src/main/resources/preReg/GetPreRegInfoByPrid/getPreRegInfoByPridResult.hbs rename to api-test/src/main/resources/preReg/GetPreRegInfoByPrid/getPreRegInfoByPridResult.hbs diff --git a/apitest/src/main/resources/preReg/GetSpecificDocumentforaPRID/GetSpecificDocumentforaPRID.yml b/api-test/src/main/resources/preReg/GetSpecificDocumentforaPRID/GetSpecificDocumentforaPRID.yml similarity index 87% rename from apitest/src/main/resources/preReg/GetSpecificDocumentforaPRID/GetSpecificDocumentforaPRID.yml rename to api-test/src/main/resources/preReg/GetSpecificDocumentforaPRID/GetSpecificDocumentforaPRID.yml index ff67fcaa8c2..df74af9566e 100644 --- a/apitest/src/main/resources/preReg/GetSpecificDocumentforaPRID/GetSpecificDocumentforaPRID.yml +++ b/api-test/src/main/resources/preReg/GetSpecificDocumentforaPRID/GetSpecificDocumentforaPRID.yml @@ -1,6 +1,7 @@ GetSpecificDocumentforaPRID: Prereg_GetSpecificDocumentforaPRID_All_Valid_Smoke_sid: endPoint: /preregistration/v1/documents/{documentId}?preRegistrationId={preRegistrationId} + description: Retrieve the specific document with a valid preregistration ID role: batch checkErrorsOnlyInResponse: true restMethod: get @@ -15,6 +16,7 @@ GetSpecificDocumentforaPRID: }' Prereg_GetSpecificDocumentforaPRID_inValid_preRegistrationId_sid: endPoint: /preregistration/v1/documents/{documentId}?preRegistrationId={preRegistrationId} + description: Retrieve the specific document with an invalid preregistration ID role: batch restMethod: get inputTemplate: preReg/GetSpecificDocumentforaPRID/getSpecificDocumentforaPRID @@ -32,6 +34,7 @@ GetSpecificDocumentforaPRID: }' Prereg_GetSpecificDocumentforaPRID_inValid_documentId_sid: endPoint: /preregistration/v1/documents/{documentId}?preRegistrationId={preRegistrationId} + description: Retrieve the specific document with an invalid document ID role: batch restMethod: get inputTemplate: preReg/GetSpecificDocumentforaPRID/getSpecificDocumentforaPRID diff --git a/apitest/src/main/resources/preReg/GetSpecificDocumentforaPRID/getSpecificDocumentforaPRID.hbs b/api-test/src/main/resources/preReg/GetSpecificDocumentforaPRID/getSpecificDocumentforaPRID.hbs similarity index 100% rename from apitest/src/main/resources/preReg/GetSpecificDocumentforaPRID/getSpecificDocumentforaPRID.hbs rename to api-test/src/main/resources/preReg/GetSpecificDocumentforaPRID/getSpecificDocumentforaPRID.hbs diff --git a/apitest/src/main/resources/preReg/GetSpecificDocumentforaPRID/getSpecificDocumentforaPRIDResult.hbs b/api-test/src/main/resources/preReg/GetSpecificDocumentforaPRID/getSpecificDocumentforaPRIDResult.hbs similarity index 100% rename from apitest/src/main/resources/preReg/GetSpecificDocumentforaPRID/getSpecificDocumentforaPRIDResult.hbs rename to api-test/src/main/resources/preReg/GetSpecificDocumentforaPRID/getSpecificDocumentforaPRIDResult.hbs diff --git a/apitest/src/main/resources/preReg/GetUpdatedDateTimeByPrid/GetUpdatedDateTimeByPrid.yml b/api-test/src/main/resources/preReg/GetUpdatedDateTimeByPrid/GetUpdatedDateTimeByPrid.yml similarity index 90% rename from apitest/src/main/resources/preReg/GetUpdatedDateTimeByPrid/GetUpdatedDateTimeByPrid.yml rename to api-test/src/main/resources/preReg/GetUpdatedDateTimeByPrid/GetUpdatedDateTimeByPrid.yml index ac4ba56f9cf..b2f049f63ee 100644 --- a/apitest/src/main/resources/preReg/GetUpdatedDateTimeByPrid/GetUpdatedDateTimeByPrid.yml +++ b/api-test/src/main/resources/preReg/GetUpdatedDateTimeByPrid/GetUpdatedDateTimeByPrid.yml @@ -1,6 +1,7 @@ GetUpdatedDateTimeByPrid: Prereg_GetUpdatedDateTimeByPrid_All_Valid_Smoke_sid: endPoint: /preregistration/v1/applications/prereg/updatedTime + description: Retrieve all applications with the application ID using valid data role: batch checkErrorsOnlyInResponse: true restMethod: post @@ -27,6 +28,7 @@ GetUpdatedDateTimeByPrid: }' Prereg_GetUpdatedDateTimeByPrid_InValid_ID: endPoint: /preregistration/v1/applications/prereg/updatedTime + description: Retrieve all applications with the application ID using invalid ID role: batch restMethod: post inputTemplate: preReg/GetUpdatedDateTimeByPrid/getUpdatedDateTimeByPrid diff --git a/apitest/src/main/resources/preReg/GetUpdatedDateTimeByPrid/getUpdatedDateTimeByPrid.hbs b/api-test/src/main/resources/preReg/GetUpdatedDateTimeByPrid/getUpdatedDateTimeByPrid.hbs similarity index 100% rename from apitest/src/main/resources/preReg/GetUpdatedDateTimeByPrid/getUpdatedDateTimeByPrid.hbs rename to api-test/src/main/resources/preReg/GetUpdatedDateTimeByPrid/getUpdatedDateTimeByPrid.hbs diff --git a/apitest/src/main/resources/preReg/GetUpdatedDateTimeByPrid/getUpdatedDateTimeByPridResult.hbs b/api-test/src/main/resources/preReg/GetUpdatedDateTimeByPrid/getUpdatedDateTimeByPridResult.hbs similarity index 100% rename from apitest/src/main/resources/preReg/GetUpdatedDateTimeByPrid/getUpdatedDateTimeByPridResult.hbs rename to api-test/src/main/resources/preReg/GetUpdatedDateTimeByPrid/getUpdatedDateTimeByPridResult.hbs diff --git a/apitest/src/main/resources/preReg/InvalidateToken/InvalidateToken.yml b/api-test/src/main/resources/preReg/InvalidateToken/InvalidateToken.yml similarity index 87% rename from apitest/src/main/resources/preReg/InvalidateToken/InvalidateToken.yml rename to api-test/src/main/resources/preReg/InvalidateToken/InvalidateToken.yml index ce93d3c279b..4c2289efe08 100644 --- a/apitest/src/main/resources/preReg/InvalidateToken/InvalidateToken.yml +++ b/api-test/src/main/resources/preReg/InvalidateToken/InvalidateToken.yml @@ -1,6 +1,7 @@ InvalidateToken: Prereg_InvalidateToken_All_Valid_Smoke_sid: endPoint: /preregistration/v1/login/invalidateToken + description: Invalidate token using valid data role: batch restMethod: post inputTemplate: preReg/InvalidateToken/invalidatetoken diff --git a/apitest/src/main/resources/preReg/InvalidateToken/invalidatetoken.hbs b/api-test/src/main/resources/preReg/InvalidateToken/invalidatetoken.hbs similarity index 100% rename from apitest/src/main/resources/preReg/InvalidateToken/invalidatetoken.hbs rename to api-test/src/main/resources/preReg/InvalidateToken/invalidatetoken.hbs diff --git a/api-test/src/main/resources/preReg/InvalidateToken/invalidatetokenresult.hbs b/api-test/src/main/resources/preReg/InvalidateToken/invalidatetokenresult.hbs new file mode 100644 index 00000000000..eb8d6fea9a8 --- /dev/null +++ b/api-test/src/main/resources/preReg/InvalidateToken/invalidatetokenresult.hbs @@ -0,0 +1,3 @@ +{ + "response": "{{response}}" +} \ No newline at end of file diff --git a/apitest/src/main/resources/preReg/SendNotifications/SendNotifications.yml b/api-test/src/main/resources/preReg/SendNotifications/SendNotifications.yml similarity index 83% rename from apitest/src/main/resources/preReg/SendNotifications/SendNotifications.yml rename to api-test/src/main/resources/preReg/SendNotifications/SendNotifications.yml index 69fb53a07aa..fb1ac060fef 100644 --- a/apitest/src/main/resources/preReg/SendNotifications/SendNotifications.yml +++ b/api-test/src/main/resources/preReg/SendNotifications/SendNotifications.yml @@ -1,10 +1,11 @@ SendNotifications: Prereg_SendNotifications_All_Valid_Smoke: - endPoint: /preregistration/v1/notification + description: Trigger notification with valid data + endPoint: /preregistration/v1/notification/notify role: batch checkErrorsOnlyInResponse: true restMethod: post - inputTemplate: preReg/SendNotifications/sendNotifications_$LANGNUMBER$ + inputTemplate: preReg/SendNotifications/sendNotificationsNotify outputTemplate: preReg/SendNotifications/sendNotificationsResult input: '{ "id":"mosip.pre-registration.notification.notify", @@ -14,15 +15,15 @@ SendNotifications: "preRegistrationId":"$ID:CreatePrereg_All_Valid_Smoke_BookByPRID_sid_preRegistrationId$", "appointmentDate":"$ID:GetAppointmentDetails_BookByPRID_All_Valid_Smoke_sid_appointment_date$", "appointmentTime":"$ID:GetAppointmentDetails_BookByPRID_All_Valid_Smoke_sid_time_slot_from$", - "mobNum":"9090872300", - "emailID":"mosipuser123@mailinator.com", - "additionalRecipient":false, - "isBatch":false + "mobNum":"9090872333", + "emailID":"mosipuser1234@mailinator.com", + "isBatch":true }' output: '{ }' Prereg_SendNotifications_Notify_All_Valid_Smoke: endPoint: /preregistration/v1/notification/notify + description: Trigger notification to notify with valid data role: batch checkErrorsOnlyInResponse: true restMethod: post @@ -44,9 +45,10 @@ SendNotifications: }' Prereg_SendNotifications_InValid_id: endPoint: /preregistration/v1/notification + description: Trigger notification with an invalid ID role: batch restMethod: post - inputTemplate: preReg/SendNotifications/sendNotifications_$LANGNUMBER$ + inputTemplate: preReg/SendNotifications/sendNotificationsNotify outputTemplate: preReg/error input: '{ "id":"mosip.pre-registration.notification.notifyasdf", @@ -70,9 +72,10 @@ SendNotifications: }' Prereg_SendNotifications_InValid_preRegId: endPoint: /preregistration/v1/notification + description: Trigger notification with an invalid pre-registration ID role: batch restMethod: post - inputTemplate: preReg/SendNotifications/sendNotifications_$LANGNUMBER$ + inputTemplate: preReg/SendNotifications/sendNotificationsNotify outputTemplate: preReg/error input: '{ "id":"mosip.pre-registration.notification.notify", diff --git a/apitest/src/main/resources/preReg/SendNotifications/sendNotificationsNotify.hbs b/api-test/src/main/resources/preReg/SendNotifications/sendNotificationsNotify.hbs similarity index 100% rename from apitest/src/main/resources/preReg/SendNotifications/sendNotificationsNotify.hbs rename to api-test/src/main/resources/preReg/SendNotifications/sendNotificationsNotify.hbs diff --git a/apitest/src/main/resources/preReg/SendNotifications/sendNotificationsResult.hbs b/api-test/src/main/resources/preReg/SendNotifications/sendNotificationsResult.hbs similarity index 100% rename from apitest/src/main/resources/preReg/SendNotifications/sendNotificationsResult.hbs rename to api-test/src/main/resources/preReg/SendNotifications/sendNotificationsResult.hbs diff --git a/apitest/src/main/resources/preReg/SendNotifications/sendNotifications_DOUBLE.hbs b/api-test/src/main/resources/preReg/SendNotifications/sendNotifications_DOUBLE.hbs similarity index 100% rename from apitest/src/main/resources/preReg/SendNotifications/sendNotifications_DOUBLE.hbs rename to api-test/src/main/resources/preReg/SendNotifications/sendNotifications_DOUBLE.hbs diff --git a/apitest/src/main/resources/preReg/SendNotifications/sendNotifications_DOUBLE_V3.hbs b/api-test/src/main/resources/preReg/SendNotifications/sendNotifications_DOUBLE_V3.hbs similarity index 100% rename from apitest/src/main/resources/preReg/SendNotifications/sendNotifications_DOUBLE_V3.hbs rename to api-test/src/main/resources/preReg/SendNotifications/sendNotifications_DOUBLE_V3.hbs diff --git a/apitest/src/main/resources/preReg/SendNotifications/sendNotifications_SINGLE.hbs b/api-test/src/main/resources/preReg/SendNotifications/sendNotifications_SINGLE.hbs similarity index 100% rename from apitest/src/main/resources/preReg/SendNotifications/sendNotifications_SINGLE.hbs rename to api-test/src/main/resources/preReg/SendNotifications/sendNotifications_SINGLE.hbs diff --git a/apitest/src/main/resources/preReg/SendNotifications/sendNotifications_TRIPLE.hbs b/api-test/src/main/resources/preReg/SendNotifications/sendNotifications_TRIPLE.hbs similarity index 100% rename from apitest/src/main/resources/preReg/SendNotifications/sendNotifications_TRIPLE.hbs rename to api-test/src/main/resources/preReg/SendNotifications/sendNotifications_TRIPLE.hbs diff --git a/apitest/src/main/resources/preReg/SendOtp/SendOtp.yml b/api-test/src/main/resources/preReg/SendOtp/SendOtp.yml similarity index 70% rename from apitest/src/main/resources/preReg/SendOtp/SendOtp.yml rename to api-test/src/main/resources/preReg/SendOtp/SendOtp.yml index 5e7968946a9..353e2fe8e75 100644 --- a/apitest/src/main/resources/preReg/SendOtp/SendOtp.yml +++ b/api-test/src/main/resources/preReg/SendOtp/SendOtp.yml @@ -1,6 +1,7 @@ SendOtp: Prereg_SendOtp_All_Valid_Smoke_Phone_sid: endPoint: /preregistration/v1/login/sendOtp/langcode + description: Send OTP with a valid phone number on the phone channel role: batch restMethod: post inputTemplate: preReg/SendOtp/sendotp @@ -17,6 +18,7 @@ SendOtp: Prereg_SendOtp_Invalid_Phone_Neg: endPoint: /preregistration/v1/login/sendOtp/langcode + description: Send OTP by providing an invalid phone number on the phone channel side role: batch restMethod: post inputTemplate: preReg/SendOtp/sendotp @@ -37,6 +39,7 @@ SendOtp: Prereg_SendOtp_MISSING_Phone_Neg: endPoint: /preregistration/v1/login/sendOtp/langcode + description: Sent OTP without a phone number role: batch restMethod: post inputTemplate: preReg/SendOtp/sendotp @@ -57,7 +60,8 @@ SendOtp: Prereg_SendOtp_SpacialCharacter_Val_Phone_Neg: endPoint: /preregistration/v1/login/sendOtp/langcode - role: batch + description: Sent OTP with special characters through the phone channel + role: batch restMethod: post inputTemplate: preReg/SendOtp/sendotp outputTemplate: preReg/error @@ -77,6 +81,7 @@ SendOtp: Prereg_SendOtp_All_Valid_Smoke_email_sid: endPoint: /preregistration/v1/login/sendOtp/langcode + description: Send OTP using a valid email address through the email channel role: batch restMethod: post inputTemplate: preReg/SendOtp/sendotp @@ -93,6 +98,7 @@ SendOtp: Prereg_SendOtp_Invalid__email_Neg: endPoint: /preregistration/v1/login/sendOtp/langcode + description: Send OTP using an invalid email address via the email channel role: batch restMethod: post inputTemplate: preReg/SendOtp/sendotp @@ -113,6 +119,7 @@ SendOtp: Prereg_SendOtp_Missing_email_Neg: endPoint: /preregistration/v1/login/sendOtp/langcode + description: Sent OTP without an email address via the email channel role: batch restMethod: post inputTemplate: preReg/SendOtp/sendotp @@ -133,6 +140,7 @@ SendOtp: Prereg_SendOtp_SpacialCharacter_email_Neg: endPoint: /preregistration/v1/login/sendOtp/langcode + description: Sent OTP with special characters through the email channel role: batch restMethod: post inputTemplate: preReg/SendOtp/sendotp @@ -149,4 +157,34 @@ SendOtp: "errorCode": "PRG_PAM_LGN_008" } ] -}' \ No newline at end of file +}' + Prereg_SendOtp_All_Valid_Smoke_Phone_sid: + endPoint: /preregistration/v1/login/sendOtp/langcode + role: batch + restMethod: post + inputTemplate: preReg/SendOtp/sendotp + outputTemplate: preReg/SendOtp/sendotpResult + input: '{ + "version": "1.0", + "requesttime": "$TIMESTAMP$", + "userId": "9090872300", + "id": "mosip.pre-registration.login.sendotp" +}' + output: '{ + "status": "success" +}' + Prereg_SendOtp_All_Valid_Smoke_email_sid: + endPoint: /preregistration/v1/login/sendOtp/langcode + role: batch + restMethod: post + inputTemplate: preReg/SendOtp/sendotp + outputTemplate: preReg/SendOtp/sendotpResult + input: '{ + "version": "1.0", + "requesttime": "$TIMESTAMP$", + "userId": "john.doe@mailinator.com", + "id": "mosip.pre-registration.login.sendotp" +}' + output: '{ + "status": "success" +}' diff --git a/apitest/src/main/resources/preReg/SendOtp/sendotp.hbs b/api-test/src/main/resources/preReg/SendOtp/sendotp.hbs similarity index 100% rename from apitest/src/main/resources/preReg/SendOtp/sendotp.hbs rename to api-test/src/main/resources/preReg/SendOtp/sendotp.hbs diff --git a/apitest/src/main/resources/preReg/SendOtp/sendotpResult.hbs b/api-test/src/main/resources/preReg/SendOtp/sendotpResult.hbs similarity index 100% rename from apitest/src/main/resources/preReg/SendOtp/sendotpResult.hbs rename to api-test/src/main/resources/preReg/SendOtp/sendotpResult.hbs diff --git a/apitest/src/main/resources/preReg/Transliteration/Translate.yml b/api-test/src/main/resources/preReg/Transliteration/Translate.yml similarity index 87% rename from apitest/src/main/resources/preReg/Transliteration/Translate.yml rename to api-test/src/main/resources/preReg/Transliteration/Translate.yml index c9c78174036..5208a0c1b52 100644 --- a/apitest/src/main/resources/preReg/Transliteration/Translate.yml +++ b/api-test/src/main/resources/preReg/Transliteration/Translate.yml @@ -1,6 +1,7 @@ Transliteration: Prereg_Transliteration_All_Valid_Smoke_sid: endPoint: /preregistration/v1/transliteration/transliterate + description: Retrieve the preregistration data using valid transliteration role: batch restMethod: post inputTemplate: preReg/Transliteration/translate @@ -22,6 +23,7 @@ Transliteration: }' Prereg_Transliteration_inValid_tofieldlang: endPoint: /preregistration/v1/transliteration/transliterate + description: Retrieve the transliteration data for an invalid to-field language role: batch restMethod: post inputTemplate: preReg/Transliteration/translate @@ -44,6 +46,7 @@ Transliteration: }' Prereg_Transliteration_inValid_fromfieldlang: endPoint: /preregistration/v1/transliteration/transliterate + description: Retrieve the Transliteration data for an invalid 'to-field' language role: batch restMethod: post inputTemplate: preReg/Transliteration/translate diff --git a/apitest/src/main/resources/preReg/Transliteration/translate.hbs b/api-test/src/main/resources/preReg/Transliteration/translate.hbs similarity index 100% rename from apitest/src/main/resources/preReg/Transliteration/translate.hbs rename to api-test/src/main/resources/preReg/Transliteration/translate.hbs diff --git a/apitest/src/main/resources/preReg/Transliteration/translateResult.hbs b/api-test/src/main/resources/preReg/Transliteration/translateResult.hbs similarity index 100% rename from apitest/src/main/resources/preReg/Transliteration/translateResult.hbs rename to api-test/src/main/resources/preReg/Transliteration/translateResult.hbs diff --git a/apitest/src/main/resources/preReg/UpdateDocRefID/UpdateDocRefID.yml b/api-test/src/main/resources/preReg/UpdateDocRefID/UpdateDocRefID.yml similarity index 87% rename from apitest/src/main/resources/preReg/UpdateDocRefID/UpdateDocRefID.yml rename to api-test/src/main/resources/preReg/UpdateDocRefID/UpdateDocRefID.yml index 8ca0d9fda82..97405bd4855 100644 --- a/apitest/src/main/resources/preReg/UpdateDocRefID/UpdateDocRefID.yml +++ b/api-test/src/main/resources/preReg/UpdateDocRefID/UpdateDocRefID.yml @@ -1,6 +1,7 @@ UpdateDocRefID: Prereg_UpdateDocRefID_All_Valid_Smoke_POA_sid: endPoint: /preregistration/v1/documents/document/{documentId}?preRegistrationId={preRegistrationId}&refNumber={refNumber} + description: Update the document reference ID for the valid Proof of Address (POA) role: batch checkErrorsOnlyInResponse: true restMethod: put @@ -15,6 +16,7 @@ UpdateDocRefID: }' Prereg_UpdateDocRefID_All_Valid_Smoke_POI_sid: endPoint: /preregistration/v1/documents/document/{documentId}?preRegistrationId={preRegistrationId}&refNumber={refNumber} + description: Update the document reference ID for the valid Proof of Identity (POI) role: batch checkErrorsOnlyInResponse: true restMethod: put @@ -29,6 +31,7 @@ UpdateDocRefID: }' Prereg_UpdateDocRefID_All_Valid_Smoke_POB_sid: endPoint: /preregistration/v1/documents/document/{documentId}?preRegistrationId={preRegistrationId}&refNumber={refNumber} + description: Update the document reference ID for the valid Proof of Date of Birth (POB) role: batch checkErrorsOnlyInResponse: true restMethod: put @@ -43,6 +46,7 @@ UpdateDocRefID: }' Prereg_UpdateDocRefID_All_Valid_Smoke_POR_sid: endPoint: /preregistration/v1/documents/document/{documentId}?preRegistrationId={preRegistrationId}&refNumber={refNumber} + description: Update the document reference ID for the valid Proof of Residence (POR) role: batch checkErrorsOnlyInResponse: true restMethod: put @@ -57,6 +61,7 @@ UpdateDocRefID: }' Prereg_UpdateDocRefID_inValid_documentId: endPoint: /preregistration/v1/documents/document/{documentId}?preRegistrationId={preRegistrationId}&refNumber={refNumber} + description: Update the document reference ID for the invalid document ID role: batch restMethod: put inputTemplate: preReg/UpdateDocRefID/updateDocRefID @@ -76,6 +81,7 @@ UpdateDocRefID: Prereg_UpdateDocRefID_All_SpatialCharacter_RefNum_Neg: endPoint: /preregistration/v1/documents/document/{documentId}?preRegistrationId={preRegistrationId}&refNumber={refNumber} + description: Update the document reference ID with the special character and reference number role: batch checkErrorsOnlyInResponse: true restMethod: put @@ -96,6 +102,7 @@ UpdateDocRefID: Prereg_UpdateDocRefID_Exceeding_Limit_RefNum_Neg: endPoint: /preregistration/v1/documents/document/{documentId}?preRegistrationId={preRegistrationId}&refNumber={refNumber} + description: Update the document reference ID with an exceeding limit and reference number role: batch checkErrorsOnlyInResponse: true restMethod: put diff --git a/apitest/src/main/resources/preReg/UpdateDocRefID/updateDocRefID.hbs b/api-test/src/main/resources/preReg/UpdateDocRefID/updateDocRefID.hbs similarity index 100% rename from apitest/src/main/resources/preReg/UpdateDocRefID/updateDocRefID.hbs rename to api-test/src/main/resources/preReg/UpdateDocRefID/updateDocRefID.hbs diff --git a/apitest/src/main/resources/preReg/UpdateDocRefID/updateDocRefIDResult.hbs b/api-test/src/main/resources/preReg/UpdateDocRefID/updateDocRefIDResult.hbs similarity index 100% rename from apitest/src/main/resources/preReg/UpdateDocRefID/updateDocRefIDResult.hbs rename to api-test/src/main/resources/preReg/UpdateDocRefID/updateDocRefIDResult.hbs diff --git a/apitest/src/main/resources/preReg/UpdatePreRegStatus/updatePreRegStatus.hbs b/api-test/src/main/resources/preReg/UpdatePreRegStatus/updatePreRegStatus.hbs similarity index 100% rename from apitest/src/main/resources/preReg/UpdatePreRegStatus/updatePreRegStatus.hbs rename to api-test/src/main/resources/preReg/UpdatePreRegStatus/updatePreRegStatus.hbs diff --git a/apitest/src/main/resources/preReg/UpdatePreRegStatus/updatePreRegStatus.yml b/api-test/src/main/resources/preReg/UpdatePreRegStatus/updatePreRegStatus.yml similarity index 82% rename from apitest/src/main/resources/preReg/UpdatePreRegStatus/updatePreRegStatus.yml rename to api-test/src/main/resources/preReg/UpdatePreRegStatus/updatePreRegStatus.yml index ef04ce3c4cc..53eaf31dd46 100644 --- a/apitest/src/main/resources/preReg/UpdatePreRegStatus/updatePreRegStatus.yml +++ b/api-test/src/main/resources/preReg/UpdatePreRegStatus/updatePreRegStatus.yml @@ -1,6 +1,7 @@ UpdatePreRegStatus: Prereg_UpdatePreRegStatus_All_Valid_Smoke_sid: endPoint: /preregistration/v1/applications/prereg/status/{preRegistrationId}?statusCode={statusCode} + description: Update the status of an application to 'Pending Appointment' using the prereg ID and status code role: batch checkErrorsOnlyInResponse: true restMethod: get @@ -14,6 +15,7 @@ UpdatePreRegStatus: }' Prereg_UpdatePreRegStatus_for_expired_testcase_sid: endPoint: /preregistration/v1/applications/prereg/status/{preRegistrationId}?statusCode={statusCode} + description: Update the status of the expired test case application using the prereg ID and status code role: batch checkErrorsOnlyInResponse: true restMethod: get @@ -27,6 +29,7 @@ UpdatePreRegStatus: }' Prereg_UpdatePreRegStatus_All_Valid_Smoke_BookByPRID_sid: endPoint: /preregistration/v1/applications/prereg/status/{preRegistrationId}?statusCode={statusCode} + description: Update the status for a valid booking using the PRID (Preregistration ID) role: batch checkErrorsOnlyInResponse: true restMethod: get @@ -40,6 +43,7 @@ UpdatePreRegStatus: }' Prereg_UpdatePreRegStatus_Valid_Smoke_sid: endPoint: /preregistration/v1/applications/prereg/status/{preRegistrationId}?statusCode={statusCode} + description: Update the application status to 'Pending Appointment' using the prereg ID and status code role: batch checkErrorsOnlyInResponse: true restMethod: get @@ -53,6 +57,7 @@ UpdatePreRegStatus: }' Prereg_UpdatePreRegStatus_CA_Valid_Smoke_sid: endPoint: /preregistration/v1/applications/prereg/status/{preRegistrationId}?statusCode={statusCode} + description: Update the status of an application to'Pending Appointment'for canceling using the prereg ID and status code role: batch checkErrorsOnlyInResponse: true restMethod: get @@ -66,6 +71,7 @@ UpdatePreRegStatus: }' Prereg_UpdatePreRegStatus_Smoke_alldel_sid: endPoint: /preregistration/v1/applications/prereg/status/{preRegistrationId}?statusCode={statusCode} + description: Update the status of an application to 'pending Appointment' for deleted the prereg ID and status code role: batch checkErrorsOnlyInResponse: true restMethod: get @@ -79,6 +85,7 @@ UpdatePreRegStatus: }' Prereg_UpdatePreRegStatus_Smoke_CancellAppointment_sid: endPoint: /preregistration/v1/applications/prereg/status/{preRegistrationId}?statusCode={statusCode} + description: Update the status of an application to 'cancell Appointment' using the preregistration ID and status code role: batch checkErrorsOnlyInResponse: true restMethod: get @@ -92,6 +99,7 @@ UpdatePreRegStatus: }' Prereg_UpdatePreRegStatus_Smoke_CancelApplicationsAppointment_sid: endPoint: /preregistration/v1/applications/prereg/status/{preRegistrationId}?statusCode={statusCode} + description: Update the status of an application to'cancell application Appointment'using the prereg ID and status code role: batch checkErrorsOnlyInResponse: true restMethod: get @@ -105,6 +113,7 @@ UpdatePreRegStatus: }' Prereg_UpdatePreRegStatus_without_update_prereg_status_sid: endPoint: /preregistration/v1/applications/prereg/status/{preRegistrationId}?statusCode={statusCode} + description: Update the application status without modifying the preregistration status role: batch checkErrorsOnlyInResponse: true restMethod: get diff --git a/apitest/src/main/resources/preReg/UpdatePreRegStatus/updatePreRegStatusResult.hbs b/api-test/src/main/resources/preReg/UpdatePreRegStatus/updatePreRegStatusResult.hbs similarity index 100% rename from apitest/src/main/resources/preReg/UpdatePreRegStatus/updatePreRegStatusResult.hbs rename to api-test/src/main/resources/preReg/UpdatePreRegStatus/updatePreRegStatusResult.hbs diff --git a/apitest/src/main/resources/preReg/UpdatePreregistration/UpdatePreregistration.yml b/api-test/src/main/resources/preReg/UpdatePreregistration/UpdatePreregistration.yml similarity index 90% rename from apitest/src/main/resources/preReg/UpdatePreregistration/UpdatePreregistration.yml rename to api-test/src/main/resources/preReg/UpdatePreregistration/UpdatePreregistration.yml index a60b44479e6..cb7e3534b63 100644 --- a/apitest/src/main/resources/preReg/UpdatePreregistration/UpdatePreregistration.yml +++ b/api-test/src/main/resources/preReg/UpdatePreregistration/UpdatePreregistration.yml @@ -1,6 +1,7 @@ UpdatePreregistration: Prereg_UpdatePrereg_All_Valid_Smoke_sid: endPoint: /preregistration/v1/applications/prereg/{preRegistrationId} + description: Update demographic data for a new preregistration application role: batch restMethod: put inputTemplate: preReg/UpdatePreregistration/updatePreregistration @@ -22,6 +23,7 @@ UpdatePreregistration: }' Prereg_UpdatePrereg_All_Valid_Smoke_BookByPRID_sid: endPoint: /preregistration/v1/applications/prereg/{preRegistrationId} + description: Update the demographic data for booking an appointment with the new PRID role: batch restMethod: put inputTemplate: preReg/UpdatePreregistration/updatePreregistration @@ -43,6 +45,7 @@ UpdatePreregistration: }' Prereg_UpdatePrereg_inValid_dateOfBirth_sid: endPoint: /preregistration/v1/applications/prereg/{preRegistrationId} + description: Update the demographic data with an invalid date of birth role: batch restMethod: put inputTemplate: preReg/UpdatePreregistration/updatePreregistration @@ -68,6 +71,7 @@ UpdatePreregistration: }' Prereg_UpdatePrereg_missing_Version_sid: endPoint: /preregistration/v1/applications/prereg/{preRegistrationId} + description: Update the demographic data with a missing version number role: batch restMethod: put inputTemplate: preReg/UpdatePreregistration/updatePreregistration @@ -93,6 +97,7 @@ UpdatePreregistration: }' Prereg_UpdatePrereg_invalid_Version_sid: endPoint: /preregistration/v1/applications/prereg/{preRegistrationId} + description: Update the demographic data with an invalid version role: batch restMethod: put inputTemplate: preReg/UpdatePreregistration/updatePreregistration @@ -118,6 +123,7 @@ UpdatePreregistration: }' Prereg_UpdatePrereg_invalid_email_sid: endPoint: /preregistration/v1/applications/prereg/{preRegistrationId} + description: Update the demographic data with an invalid email address role: batch restMethod: put inputTemplate: preReg/UpdatePreregistration/updatePreregistration @@ -143,6 +149,7 @@ UpdatePreregistration: }' Prereg_UpdatePrereg_missing_langCode_sid: endPoint: /preregistration/v1/applications/prereg/{preRegistrationId} + description: Update the demographic data with an missing language code role: batch restMethod: put inputTemplate: preReg/UpdatePreregistration/updatePreregistration @@ -168,6 +175,7 @@ UpdatePreregistration: }' Prereg_UpdatePrereg_INVALID_langCode_sid: endPoint: /preregistration/v1/applications/prereg/{preRegistrationId} + description: Update the demographic data with an invalid language code role: batch restMethod: put inputTemplate: preReg/UpdatePreregistration/updatePreregistration @@ -193,6 +201,7 @@ UpdatePreregistration: }' Prereg_UpdatePrereg_INVALID_requesttime_sid: endPoint: /preregistration/v1/applications/prereg/{preRegistrationId} + description: Update the demographic data with an invalid request time role: batch restMethod: put inputTemplate: preReg/UpdatePreregistration/updatePreregistration @@ -218,6 +227,7 @@ UpdatePreregistration: }' Prereg_UpdatePrereg_Missing_requesttime_sid: endPoint: /preregistration/v1/applications/prereg/{preRegistrationId} + description: Update the demographic data without a request time role: batch restMethod: put inputTemplate: preReg/UpdatePreregistration/updatePreregistration @@ -243,6 +253,7 @@ UpdatePreregistration: }' Prereg_UpdatePrereg_previous_date_sid: endPoint: /preregistration/v1/applications/prereg/{preRegistrationId} + description: Update the demographic data with a past date role: batch restMethod: put inputTemplate: preReg/UpdatePreregistration/updatePreregistration @@ -268,6 +279,7 @@ UpdatePreregistration: }' Prereg_UpdatePrereg_invalid_id_sid: endPoint: /preregistration/v1/applications/prereg/{preRegistrationId} + description: Update the demographic data with an invalid ID role: batch restMethod: put inputTemplate: preReg/UpdatePreregistration/updatePreregistration @@ -293,6 +305,7 @@ UpdatePreregistration: }' Prereg_UpdatePrereg_missing_id_sid: endPoint: /preregistration/v1/applications/prereg/{preRegistrationId} + description: Update the demographic data with a missing ID role: batch restMethod: put inputTemplate: preReg/UpdatePreregistration/updatePreregistration @@ -318,6 +331,7 @@ UpdatePreregistration: }' Prereg_UpdatePrereg_blank_id_sid: endPoint: /preregistration/v1/applications/prereg/{preRegistrationId} + description: Update the demographic data with a blank ID role: batch restMethod: put inputTemplate: preReg/UpdatePreregistration/updatePreregistration @@ -343,6 +357,7 @@ UpdatePreregistration: }' Prereg_UpdatePrereg_update_date_without_Status_change_sid: endPoint: /preregistration/v1/applications/prereg/{preRegistrationId} + description: Update the demographic data for date of birth without changing the status role: batch restMethod: put inputTemplate: preReg/UpdatePreregistration/updatePreregistration diff --git a/apitest/src/main/resources/preReg/UpdatePreregistration/updatePreregistrationResult.hbs b/api-test/src/main/resources/preReg/UpdatePreregistration/updatePreregistrationResult.hbs similarity index 100% rename from apitest/src/main/resources/preReg/UpdatePreregistration/updatePreregistrationResult.hbs rename to api-test/src/main/resources/preReg/UpdatePreregistration/updatePreregistrationResult.hbs diff --git a/apitest/src/main/resources/preReg/UpdatePridStatus/UpdatePridStatus.yml b/api-test/src/main/resources/preReg/UpdatePridStatus/UpdatePridStatus.yml similarity index 100% rename from apitest/src/main/resources/preReg/UpdatePridStatus/UpdatePridStatus.yml rename to api-test/src/main/resources/preReg/UpdatePridStatus/UpdatePridStatus.yml diff --git a/apitest/src/main/resources/preReg/UpdatePridStatus/updatePridStatus.hbs b/api-test/src/main/resources/preReg/UpdatePridStatus/updatePridStatus.hbs similarity index 100% rename from apitest/src/main/resources/preReg/UpdatePridStatus/updatePridStatus.hbs rename to api-test/src/main/resources/preReg/UpdatePridStatus/updatePridStatus.hbs diff --git a/apitest/src/main/resources/preReg/UpdatePridStatus/updatePridStatusResult.hbs b/api-test/src/main/resources/preReg/UpdatePridStatus/updatePridStatusResult.hbs similarity index 100% rename from apitest/src/main/resources/preReg/UpdatePridStatus/updatePridStatusResult.hbs rename to api-test/src/main/resources/preReg/UpdatePridStatus/updatePridStatusResult.hbs diff --git a/apitest/src/main/resources/preReg/ValidateOtp/ValidateOtp.yml b/api-test/src/main/resources/preReg/ValidateOtp/ValidateOtp.yml similarity index 76% rename from apitest/src/main/resources/preReg/ValidateOtp/ValidateOtp.yml rename to api-test/src/main/resources/preReg/ValidateOtp/ValidateOtp.yml index 9303967830c..09b4fe1136d 100644 --- a/apitest/src/main/resources/preReg/ValidateOtp/ValidateOtp.yml +++ b/api-test/src/main/resources/preReg/ValidateOtp/ValidateOtp.yml @@ -1,6 +1,7 @@ ValidateOtp: - Prereg_ValidateOtp_All_Valid_Smoke_Phone_sid: + Prereg_ValidateOtp_All_Valid_Smoke_email_sid: endPoint: /preregistration/v1/login/validateOtp + description: Validating OTP with a valid phone number role: batch checkErrorsOnlyInResponse: true restMethod: post @@ -9,37 +10,33 @@ ValidateOtp: input: '{ "version": "1.0", "requesttime": "$TIMESTAMP$", - "userId": "9090872300", - "otp": "111111", + "userId": "john.doe@mailinator.com", + "otp": "DYNAMICOTP", "id": "mosip.pre-registration.login.useridotp" }' output: '{ }' - - Prereg_ValidateOtp_Invalid_Phone_Neg: + Prereg_ValidateOtp_All_Valid_Smoke_Phone_sid: endPoint: /preregistration/v1/login/validateOtp + description: Validating OTP with an invalid phone number role: batch checkErrorsOnlyInResponse: true restMethod: post inputTemplate: preReg/ValidateOtp/validateOtp - outputTemplate: preReg/error + outputTemplate: preReg/ValidateOtp/validateOtpResult input: '{ "version": "1.0", "requesttime": "$TIMESTAMP$", - "userId": "909", - "otp": "111111", + "userId": "9090872300", + "otp": "DYNAMICOTP", "id": "mosip.pre-registration.login.useridotp" }' output: '{ - "errors": [ - { - "errorCode": "PRG_PAM_LGN_013" - } - ] }' - Prereg_ValidateOtp_SpacialCharacters_Phone_Neg: + Prereg_ValidateOtp_Invalid_Phone_Neg_INVALIDOTP: endPoint: /preregistration/v1/login/validateOtp + description: Validating OTP with a phone number containing special characters role: batch checkErrorsOnlyInResponse: true restMethod: post @@ -48,8 +45,8 @@ ValidateOtp: input: '{ "version": "1.0", "requesttime": "$TIMESTAMP$", - "userId": "$!(", - "otp": "111111", + "userId": "909", + "otp": "DYNAMICOTP", "id": "mosip.pre-registration.login.useridotp" }' output: '{ @@ -59,26 +56,31 @@ ValidateOtp: } ] }' - - Prereg_SendOtp_All_Valid_Smoke_email_sid: + Prereg_ValidateOtp_SpacialCharacters_Phone_Neg_INVALIDOTP: endPoint: /preregistration/v1/login/validateOtp + description: validating OPT with valid email address role: batch checkErrorsOnlyInResponse: true restMethod: post inputTemplate: preReg/ValidateOtp/validateOtp - outputTemplate: preReg/ValidateOtp/validateOtpResult + outputTemplate: preReg/error input: '{ "version": "1.0", "requesttime": "$TIMESTAMP$", - "userId": "john.doe@mailinator.com", - "otp": "111111", + "userId": "$!(", + "otp": "DYNAMICOTP", "id": "mosip.pre-registration.login.useridotp" }' output: '{ + "errors": [ + { + "errorCode": "PRG_PAM_LGN_013" + } + ] }' - - Prereg_ValidateOtp_SpacialCharacters_Email_Neg: + Prereg_ValidateOtp_SpacialCharacters_Email_Neg_INVALIDOTP: endPoint: /preregistration/v1/login/validateOtp + description: Validating OTP with an email address containing special characters role: batch checkErrorsOnlyInResponse: true restMethod: post @@ -88,7 +90,7 @@ ValidateOtp: "version": "1.0", "requesttime": "$TIMESTAMP$", "userId": "john.doe@mail$!inator.com", - "otp": "111111", + "otp": "DYNAMICOTP", "id": "mosip.pre-registration.login.useridotp" }' output: '{ @@ -98,8 +100,9 @@ ValidateOtp: } ] }' - Prereg_ValidateOtp_Invalid_Email_Neg: + Prereg_ValidateOtp_Invalid_Email_Neg_INVALIDOTP: endPoint: /preregistration/v1/login/validateOtp + description: Validating OTP with an invalid email address role: batch checkErrorsOnlyInResponse: true restMethod: post @@ -109,7 +112,7 @@ ValidateOtp: "version": "1.0", "requesttime": "$TIMESTAMP$", "userId": "joh23", - "otp": "111111", + "otp": "DYNAMICOTP", "id": "mosip.pre-registration.login.useridotp" }' output: '{ diff --git a/apitest/src/main/resources/preReg/autoGeneratedId.properties b/api-test/src/main/resources/preReg/ValidateOtp/autoGeneratedId.properties similarity index 100% rename from apitest/src/main/resources/preReg/autoGeneratedId.properties rename to api-test/src/main/resources/preReg/ValidateOtp/autoGeneratedId.properties diff --git a/apitest/src/main/resources/preReg/ValidateOtp/validateOtp.hbs b/api-test/src/main/resources/preReg/ValidateOtp/validateOtp.hbs similarity index 100% rename from apitest/src/main/resources/preReg/ValidateOtp/validateOtp.hbs rename to api-test/src/main/resources/preReg/ValidateOtp/validateOtp.hbs diff --git a/apitest/src/main/resources/preReg/ValidateOtp/validateOtpResult.hbs b/api-test/src/main/resources/preReg/ValidateOtp/validateOtpResult.hbs similarity index 100% rename from apitest/src/main/resources/preReg/ValidateOtp/validateOtpResult.hbs rename to api-test/src/main/resources/preReg/ValidateOtp/validateOtpResult.hbs diff --git a/api-test/src/main/resources/preReg/autoGeneratedId.properties b/api-test/src/main/resources/preReg/autoGeneratedId.properties new file mode 100644 index 00000000000..e10844ac374 --- /dev/null +++ b/api-test/src/main/resources/preReg/autoGeneratedId.properties @@ -0,0 +1 @@ +CreatePrereg_All_Valid_Smoke_sid=1234567890 \ No newline at end of file diff --git a/apitest/src/main/resources/preReg/bookAppointment/bookAppointment.hbs b/api-test/src/main/resources/preReg/bookAppointment/bookAppointment.hbs similarity index 100% rename from apitest/src/main/resources/preReg/bookAppointment/bookAppointment.hbs rename to api-test/src/main/resources/preReg/bookAppointment/bookAppointment.hbs diff --git a/apitest/src/main/resources/preReg/bookAppointment/bookAppointment.yml b/api-test/src/main/resources/preReg/bookAppointment/bookAppointment.yml similarity index 91% rename from apitest/src/main/resources/preReg/bookAppointment/bookAppointment.yml rename to api-test/src/main/resources/preReg/bookAppointment/bookAppointment.yml index 1a8daa292fa..14326106ae8 100644 --- a/apitest/src/main/resources/preReg/bookAppointment/bookAppointment.yml +++ b/api-test/src/main/resources/preReg/bookAppointment/bookAppointment.yml @@ -1,6 +1,7 @@ BookAppointment: Prereg_BookAppointment_All_Valid_Smoke: endPoint: /preregistration/v1/applications/appointment/{preRegistrationId} + description: Book an appoinment valid data role: batch checkErrorsOnlyInResponse: true restMethod: post @@ -20,6 +21,7 @@ BookAppointment: }' Prereg_BookAppointment_CA_Smoke: endPoint: /preregistration/v1/applications/appointment/{preRegistrationId} + description: Book an appointment to cancel the existing appointment role: batch checkErrorsOnlyInResponse: true restMethod: post @@ -39,6 +41,7 @@ BookAppointment: }' Prereg_BookAppointment_CancelApplicationsAppointment_Smoke: endPoint: /preregistration/v1/applications/appointment/{preRegistrationId} + description: Book an appointment to cancel applications the existing appointment role: batch checkErrorsOnlyInResponse: true restMethod: post @@ -58,6 +61,7 @@ BookAppointment: }' Prereg_BookAppointment_inValid_preRegistrationId: endPoint: /preregistration/v1/applications/appointment/{preRegistrationId} + description: Book an appointment with an invalid preregistration ID role: batch restMethod: post inputTemplate: preReg/bookAppointment/bookAppointment @@ -81,6 +85,7 @@ BookAppointment: }' Prereg_BookAppointment_blank_preRegistrationId: endPoint: /preregistration/v1/applications/appointment/{preRegistrationId} + description: Book an appointment with a blank preregistration ID role: batch restMethod: post inputTemplate: preReg/bookAppointment/bookAppointment @@ -105,6 +110,7 @@ BookAppointment: }' Prereg_BookAppointment_Invalid_Id: endPoint: /preregistration/v1/applications/appointment/{preRegistrationId} + description: Book an appointment with a invalid preregistration ID role: batch restMethod: post inputTemplate: preReg/bookAppointment/bookAppointment @@ -128,6 +134,7 @@ BookAppointment: }' Prereg_BookAppointment_Blank_Id: endPoint: /preregistration/v1/applications/appointment/{preRegistrationId} + description: Book an appointment with a blank ID role: batch restMethod: post inputTemplate: preReg/bookAppointment/bookAppointment @@ -152,6 +159,7 @@ BookAppointment: }' Prereg_BookAppointment_Blank_version: endPoint: /preregistration/v1/applications/appointment/{preRegistrationId} + description: Book an appointment with a blank version role: batch restMethod: post inputTemplate: preReg/bookAppointment/bookAppointment @@ -175,6 +183,7 @@ BookAppointment: }' Prereg_BookAppointment_Missing_version: endPoint: /preregistration/v1/applications/appointment/{preRegistrationId} + description: Book an appointment with a missing version role: batch restMethod: post inputTemplate: preReg/bookAppointment/bookAppointment @@ -198,6 +207,7 @@ BookAppointment: }' Prereg_BookAppointment_Invalid_version: endPoint: /preregistration/v1/applications/appointment/{preRegistrationId} + description: Book an appointment with a invalid version role: batch restMethod: post inputTemplate: preReg/bookAppointment/bookAppointment @@ -221,6 +231,7 @@ BookAppointment: }' Prereg_BookAppointment_Invalid_registration_center_id: endPoint: /preregistration/v1/applications/appointment/{preRegistrationId} + description: Book an appointment with an invalid registration center ID role: batch restMethod: post inputTemplate: preReg/bookAppointment/bookAppointment @@ -245,6 +256,7 @@ BookAppointment: }' Prereg_BookAppointment_Missing_registration_center_id: endPoint: /preregistration/v1/applications/appointment/{preRegistrationId} + description: Book an appointment with a missing registration center ID role: batch restMethod: post inputTemplate: preReg/bookAppointment/bookAppointment @@ -269,6 +281,7 @@ BookAppointment: }' Prereg_BookAppointment_Blank_registration_center_id: endPoint: /preregistration/v1/applications/appointment/{preRegistrationId} + description: Book an appointment with a blank registration center ID role: batch restMethod: post inputTemplate: preReg/bookAppointment/bookAppointment @@ -293,6 +306,7 @@ BookAppointment: }' Prereg_BookAppointment_Blank_appointment_date: endPoint: /preregistration/v1/applications/appointment/{preRegistrationId} + description: Book an appointment with a blank appointment date role: batch restMethod: post inputTemplate: preReg/bookAppointment/bookAppointment @@ -317,6 +331,7 @@ BookAppointment: }' Prereg_BookAppointment_Missing_appointment_date: endPoint: /preregistration/v1/applications/appointment/{preRegistrationId} + description: Book an appointment with a missing appointment date role: batch restMethod: post inputTemplate: preReg/bookAppointment/bookAppointment @@ -340,6 +355,7 @@ BookAppointment: }' Prereg_BookAppointment_Invalid_appointment_date: endPoint: /preregistration/v1/applications/appointment/{preRegistrationId} + description: Book an appointment with a invalid appointment date role: batch restMethod: post inputTemplate: preReg/bookAppointment/bookAppointment @@ -364,6 +380,7 @@ BookAppointment: }' Prereg_BookAppointment_Invalid_time_slot_to: endPoint: /preregistration/v1/applications/appointment/{preRegistrationId} + description: Book an appointment with an invalid time slot role: batch restMethod: post inputTemplate: preReg/bookAppointment/bookAppointment @@ -387,6 +404,7 @@ BookAppointment: }' Prereg_BookAppointment_Missing_time_slot_to: endPoint: /preregistration/v1/applications/appointment/{preRegistrationId} + description: Book an appointment with a missing time slot role: batch restMethod: post inputTemplate: preReg/bookAppointment/bookAppointment @@ -410,6 +428,7 @@ BookAppointment: }' Prereg_BookAppointment_Invalid_time_slot_from: endPoint: /preregistration/v1/applications/appointment/{preRegistrationId} + description: Book an appointment with an invalid time slot from role: batch restMethod: post inputTemplate: preReg/bookAppointment/bookAppointment @@ -433,6 +452,7 @@ BookAppointment: }' Prereg_BookAppointment_Blank_time_slot_to: endPoint: /preregistration/v1/applications/appointment/{preRegistrationId} + description: Book an appointment with an Blank time slot form role: batch restMethod: post inputTemplate: preReg/bookAppointment/bookAppointment @@ -456,6 +476,7 @@ BookAppointment: }' Prereg_BookAppointment_Blank_time_slot_from: endPoint: /preregistration/v1/applications/appointment/{preRegistrationId} + description: Book an appointment with an blank time slot role: batch restMethod: post inputTemplate: preReg/bookAppointment/bookAppointment @@ -479,6 +500,7 @@ BookAppointment: }' Prereg_BookAppointment_missing_time_slot_from: endPoint: /preregistration/v1/applications/appointment/{preRegistrationId} + description: Book an appointment with an missing time slot from role: batch restMethod: post inputTemplate: preReg/bookAppointment/bookAppointment @@ -502,6 +524,7 @@ BookAppointment: }' Prereg_BookAppointment_missing_requesttime: endPoint: /preregistration/v1/applications/appointment/{preRegistrationId} + description: Book an appointment with a missing request time role: batch restMethod: post inputTemplate: preReg/bookAppointment/bookAppointment @@ -525,6 +548,7 @@ BookAppointment: }' Prereg_BookAppointment_Invalid_requesttime: endPoint: /preregistration/v1/applications/appointment/{preRegistrationId} + description: Book an appointment with a invalid request time role: batch restMethod: post inputTemplate: preReg/bookAppointment/bookAppointment @@ -549,6 +573,7 @@ BookAppointment: }' Prereg_BookAppointment_Blank_requesttime: endPoint: /preregistration/v1/applications/appointment/{preRegistrationId} + description: Book an appointment with a Blank request time role: batch restMethod: post inputTemplate: preReg/bookAppointment/bookAppointment @@ -572,6 +597,7 @@ BookAppointment: }' Prereg_BookAppointment_previous_date: endPoint: /preregistration/v1/applications/appointment/{preRegistrationId} + description: Book an appointment with a previous date role: batch restMethod: post inputTemplate: preReg/bookAppointment/bookAppointment @@ -596,6 +622,7 @@ BookAppointment: Prereg_BookAppointment_On_holiday: endPoint: /preregistration/v1/applications/appointment/{preRegistrationId} + description: Book an appointment on a holiday role: batch restMethod: post inputTemplate: preReg/bookAppointment/bookAppointment @@ -613,7 +640,7 @@ BookAppointment: output: '{ "errors": [ { - "errorCode": "PRG_CORE_REQ_013" + "errorCode": "PRG_BOOK_RCI_002" } ] @@ -621,6 +648,7 @@ BookAppointment: Prereg_BookAppointment_with_expired_status: endPoint: /preregistration/v1/applications/appointment/{preRegistrationId} + description: Book an appointment with an expired status role: batch checkErrorsOnlyInResponse: true restMethod: post @@ -639,13 +667,14 @@ BookAppointment: output: '{ "errors": [ { - "errorCode": "PRG_CORE_REQ_013" + "errorCode": "PRG_BOOK_RCI_031" } ] }' Prereg_BookAppointment_with_All_InValid_data: endPoint: /preregistration/v1/applications/appointment/{preRegistrationId} + description: Book an appointment with an invalid data role: batch checkErrorsOnlyInResponse: true restMethod: post @@ -664,7 +693,7 @@ BookAppointment: output: '{ "errors": [ { - "errorCode": "PRG_CORE_REQ_013" + "errorCode": "PRG_CORE_REQ_015" } ] diff --git a/apitest/src/main/resources/preReg/bookAppointment/bookAppointmentResult.hbs b/api-test/src/main/resources/preReg/bookAppointment/bookAppointmentResult.hbs similarity index 100% rename from apitest/src/main/resources/preReg/bookAppointment/bookAppointmentResult.hbs rename to api-test/src/main/resources/preReg/bookAppointment/bookAppointmentResult.hbs diff --git a/apitest/src/main/resources/preReg/bookAppointmentByPRID/bookAppointmentByPRID.hbs b/api-test/src/main/resources/preReg/bookAppointmentByPRID/bookAppointmentByPRID.hbs similarity index 100% rename from apitest/src/main/resources/preReg/bookAppointmentByPRID/bookAppointmentByPRID.hbs rename to api-test/src/main/resources/preReg/bookAppointmentByPRID/bookAppointmentByPRID.hbs diff --git a/apitest/src/main/resources/preReg/bookAppointmentByPRID/bookAppointmentByPRID.yml b/api-test/src/main/resources/preReg/bookAppointmentByPRID/bookAppointmentByPRID.yml similarity index 90% rename from apitest/src/main/resources/preReg/bookAppointmentByPRID/bookAppointmentByPRID.yml rename to api-test/src/main/resources/preReg/bookAppointmentByPRID/bookAppointmentByPRID.yml index 1816a11e5e6..a9b5f405429 100644 --- a/apitest/src/main/resources/preReg/bookAppointmentByPRID/bookAppointmentByPRID.yml +++ b/api-test/src/main/resources/preReg/bookAppointmentByPRID/bookAppointmentByPRID.yml @@ -1,6 +1,7 @@ BookAppointmentByPRID: Prereg_BookAppointmentByPRID_All_Valid_Smoke: endPoint: /preregistration/v1/applications/appointment + description: Book an appointment with a PRID for validation role: batch checkErrorsOnlyInResponse: true restMethod: post @@ -20,6 +21,7 @@ BookAppointmentByPRID: }' Prereg_BookAppointmentByPRID_inValid_preRegistrationId: endPoint: /preregistration/v1/applications/appointment + description: Book an appointment with a PRID for an invalid preregistration ID role: batch restMethod: post inputTemplate: preReg/bookAppointmentByPRID/bookAppointmentByPRID @@ -43,6 +45,7 @@ BookAppointmentByPRID: }' Prereg_BookAppointmentByPRID_blank_preRegistrationId: endPoint: /preregistration/v1/applications/appointment + description: Book an appointment with a PRID for a blank preregistration ID role: batch restMethod: post inputTemplate: preReg/bookAppointmentByPRID/bookAppointmentByPRID @@ -66,6 +69,7 @@ BookAppointmentByPRID: }' Prereg_BookAppointmentByPRID_missing_preRegistrationId: endPoint: /preregistration/v1/applications/appointment + description: Book an appointment with a PRID for a missing preregistration ID role: batch restMethod: post inputTemplate: preReg/bookAppointmentByPRID/bookAppointmentByPRID @@ -89,6 +93,7 @@ BookAppointmentByPRID: }' Prereg_BookAppointmentByPRID_inValid_Id: endPoint: /preregistration/v1/applications/appointment + description: Book an appointment with a PRID for a invalid preregistration ID role: batch restMethod: post inputTemplate: preReg/bookAppointmentByPRID/bookAppointmentByPRID @@ -112,6 +117,7 @@ BookAppointmentByPRID: }' Prereg_BookAppointmentByPRID_Blank_Id: endPoint: /preregistration/v1/applications/appointment + description: Book an appointment with a PRID for a blank ID role: batch restMethod: post inputTemplate: preReg/bookAppointmentByPRID/bookAppointmentByPRID @@ -135,6 +141,7 @@ BookAppointmentByPRID: }' Prereg_BookAppointmentByPRID_Blank_version: endPoint: /preregistration/v1/applications/appointment + description: Book an appointment with a PRID for a blank version role: batch restMethod: post inputTemplate: preReg/bookAppointmentByPRID/bookAppointmentByPRID @@ -158,6 +165,7 @@ BookAppointmentByPRID: }' Prereg_BookAppointmentByPRID_Missing_version: endPoint: /preregistration/v1/applications/appointment + description: Book an appointment with a PRID for a missing version role: batch restMethod: post inputTemplate: preReg/bookAppointmentByPRID/bookAppointmentByPRID @@ -181,6 +189,7 @@ BookAppointmentByPRID: }' Prereg_BookAppointmentByPRID_Invalid_version: endPoint: /preregistration/v1/applications/appointment + description: Schedule an appointment with a PRID for a invalid version role: batch restMethod: post inputTemplate: preReg/bookAppointmentByPRID/bookAppointmentByPRID @@ -204,6 +213,7 @@ BookAppointmentByPRID: }' Prereg_BookAppointmentByPRID_Invalid_registration_center_id: endPoint: /preregistration/v1/applications/appointment + description: Book an appointment with a PRID for an invalid registration center ID role: batch restMethod: post inputTemplate: preReg/bookAppointmentByPRID/bookAppointmentByPRID @@ -227,6 +237,7 @@ BookAppointmentByPRID: }' Prereg_BookAppointmentByPRID_Missing_registration_center_id: endPoint: /preregistration/v1/applications/appointment + description: Book an appointment with a PRID for an missing registration center ID role: batch restMethod: post inputTemplate: preReg/bookAppointmentByPRID/bookAppointmentByPRID @@ -250,6 +261,7 @@ BookAppointmentByPRID: }' Prereg_BookAppointmentByPRID_Blank_registration_center_id: endPoint: /preregistration/v1/applications/appointment + description: Book an appointment with a PRID for an Blank registration center ID role: batch restMethod: post inputTemplate: preReg/bookAppointmentByPRID/bookAppointmentByPRID @@ -273,6 +285,7 @@ BookAppointmentByPRID: }' Prereg_BookAppointmentByPRID_Blank_appointment_date: endPoint: /preregistration/v1/applications/appointment + description: Book an appointment with a PRID for an Blank appointment date role: batch restMethod: post inputTemplate: preReg/bookAppointmentByPRID/bookAppointmentByPRID @@ -296,6 +309,7 @@ BookAppointmentByPRID: }' Prereg_BookAppointmentByPRID_Missing_appointment_date: endPoint: /preregistration/v1/applications/appointment + description: Book an appointment with a PRID for a missing appointment date role: batch restMethod: post inputTemplate: preReg/bookAppointmentByPRID/bookAppointmentByPRID @@ -319,6 +333,7 @@ BookAppointmentByPRID: }' Prereg_BookAppointmentByPRID_Invalid_appointment_date: endPoint: /preregistration/v1/applications/appointment + description: Book an appointment with a PRID for an invalid appointment date role: batch restMethod: post inputTemplate: preReg/bookAppointmentByPRID/bookAppointmentByPRID @@ -343,6 +358,7 @@ BookAppointmentByPRID: }' Prereg_BookAppointmentByPRID_blank_time_slot_to: endPoint: /preregistration/v1/applications/appointment + description: Book an appointment with a PRID for an Blank time slot to role: batch restMethod: post inputTemplate: preReg/bookAppointmentByPRID/bookAppointmentByPRID @@ -366,6 +382,7 @@ BookAppointmentByPRID: }' Prereg_BookAppointmentByPRID_blank_time_slot_from: endPoint: /preregistration/v1/applications/appointment + description: Book an appointment with a PRID for an Blank time slot from role: batch restMethod: post inputTemplate: preReg/bookAppointmentByPRID/bookAppointmentByPRID @@ -389,6 +406,7 @@ BookAppointmentByPRID: }' Prereg_BookAppointmentByPRID_Missing_time_slot_to: endPoint: /preregistration/v1/applications/appointment + description: Book an appointment with a PRID for an missing time slot to role: batch restMethod: post inputTemplate: preReg/bookAppointmentByPRID/bookAppointmentByPRID @@ -412,6 +430,7 @@ BookAppointmentByPRID: }' Prereg_BookAppointmentByPRID_Missing_time_slot_from: endPoint: /preregistration/v1/applications/appointment + description: Book an appointment with a PRID for an missing time slot from role: batch restMethod: post inputTemplate: preReg/bookAppointmentByPRID/bookAppointmentByPRID @@ -435,6 +454,7 @@ BookAppointmentByPRID: }' Prereg_BookAppointmentByPRID_missing_requesttime: endPoint: /preregistration/v1/applications/appointment + description: Book an appointment with a PRID for a missing request time role: batch restMethod: post inputTemplate: preReg/bookAppointmentByPRID/bookAppointmentByPRID @@ -458,6 +478,7 @@ BookAppointmentByPRID: }' Prereg_BookAppointmentByPRID_Invalid_requesttime: endPoint: /preregistration/v1/applications/appointment + description: Book an appointment with a PRID for a invalid request time role: batch restMethod: post inputTemplate: preReg/bookAppointmentByPRID/bookAppointmentByPRID @@ -482,6 +503,7 @@ BookAppointmentByPRID: }' Prereg_BookAppointmentByPRID_Blank_requesttime: endPoint: /preregistration/v1/applications/appointment + description: Book an appointment with a PRID for a Blank request time role: batch restMethod: post inputTemplate: preReg/bookAppointmentByPRID/bookAppointmentByPRID @@ -505,6 +527,7 @@ BookAppointmentByPRID: }' Prereg_BookAppointmentByPRID_previous_requesttime: endPoint: /preregistration/v1/applications/appointment + description: Book an appointment with a PRID for a previous request time role: batch restMethod: post inputTemplate: preReg/bookAppointmentByPRID/bookAppointmentByPRID diff --git a/apitest/src/main/resources/preReg/bookAppointmentByPRID/bookAppointmentByPRIDResult.hbs b/api-test/src/main/resources/preReg/bookAppointmentByPRID/bookAppointmentByPRIDResult.hbs similarity index 100% rename from apitest/src/main/resources/preReg/bookAppointmentByPRID/bookAppointmentByPRIDResult.hbs rename to api-test/src/main/resources/preReg/bookAppointmentByPRID/bookAppointmentByPRIDResult.hbs diff --git a/apitest/src/main/resources/preReg/config/preRegistrationResourceURL.properties b/api-test/src/main/resources/preReg/config/preRegistrationResourceURL.properties similarity index 100% rename from apitest/src/main/resources/preReg/config/preRegistrationResourceURL.properties rename to api-test/src/main/resources/preReg/config/preRegistrationResourceURL.properties diff --git a/apitest/src/main/resources/preReg/config/preregistrationConfig.properties b/api-test/src/main/resources/preReg/config/preregistrationConfig.properties similarity index 100% rename from apitest/src/main/resources/preReg/config/preregistrationConfig.properties rename to api-test/src/main/resources/preReg/config/preregistrationConfig.properties diff --git a/apitest/src/main/resources/preReg/createPrereg/createPrereg.yml b/api-test/src/main/resources/preReg/createPrereg/createPrereg.yml similarity index 86% rename from apitest/src/main/resources/preReg/createPrereg/createPrereg.yml rename to api-test/src/main/resources/preReg/createPrereg/createPrereg.yml index fe8af7aa305..aee7974e46c 100644 --- a/apitest/src/main/resources/preReg/createPrereg/createPrereg.yml +++ b/api-test/src/main/resources/preReg/createPrereg/createPrereg.yml @@ -1,6 +1,7 @@ CreatePrereg: Prereg_CreatePrereg_All_Valid_Smoke_sid: endPoint: /preregistration/v1/applications/prereg + description: Creating demographic details with valid data role: batch checkErrorsOnlyInResponse: true restMethod: post @@ -21,6 +22,7 @@ CreatePrereg: }' Prereg_CreatePrereg_book_appoinment_without_update_prereg_status_sid: endPoint: /preregistration/v1/applications/prereg + description: Creating preregistration for booking an appointment without updating preregistration status role: batch checkErrorsOnlyInResponse: true restMethod: post @@ -41,6 +43,7 @@ CreatePrereg: }' Prereg_CreatePrereg_All_Valid_Smoke_UpdateDocRefID_sid: endPoint: /preregistration/v1/applications/prereg + description: Creating preregistration with a valid updated document reference ID role: batch checkErrorsOnlyInResponse: true restMethod: post @@ -62,6 +65,7 @@ CreatePrereg: }' Prereg_CreatePrereg_All_Valid_Smoke_BookByPRID_sid: endPoint: /preregistration/v1/applications/prereg + description: Creating preregistration for a valid booking using the PRID (Patient Registration ID) role: batch checkErrorsOnlyInResponse: true restMethod: post @@ -84,6 +88,7 @@ CreatePrereg: }' Prereg_CreatePrereg_Valid_Smoke_sid: endPoint: /preregistration/v1/applications/prereg + description: Creating demographic details with valid data role: batch checkErrorsOnlyInResponse: true restMethod: post @@ -105,6 +110,7 @@ CreatePrereg: }' Prereg_CreatePrereg_Smoke_alldel_sid: endPoint: /preregistration/v1/applications/prereg + description: Creating preregistration to delete data role: batch checkErrorsOnlyInResponse: true restMethod: post @@ -126,6 +132,7 @@ CreatePrereg: }' Prereg_CreatePrereg_Smoke_CancellAppointment_sid: endPoint: /preregistration/v1/applications/prereg + description: Creating preregistration data to cancel a booked appointment role: batch checkErrorsOnlyInResponse: true restMethod: post @@ -147,6 +154,7 @@ CreatePrereg: }' Prereg_CreatePrereg_Smoke_CancelApplicationsAppointment_sid: endPoint: /preregistration/v1/applications/prereg + description: Creating preregistration and cancelling the appointment after booking role: batch checkErrorsOnlyInResponse: true restMethod: post @@ -168,6 +176,7 @@ CreatePrereg: }' Prereg_CreatePrereg_All_Valid_Smoke_for_expiry_sid: endPoint: /preregistration/v1/applications/prereg + description: Creating preregistration, booking an appointment, and checking the expiration status if the user does not reach the center by the scheduled slot time role: batch checkErrorsOnlyInResponse: true restMethod: post @@ -188,6 +197,7 @@ CreatePrereg: }' Prereg_CreatePrereg_in_Valid_id_sid: endPoint: /preregistration/v1/applications/prereg + description: Creating demographic details with an invalid field ID role: batch restMethod: post inputTemplate: preReg/createPrereg/createPrereg @@ -213,6 +223,7 @@ CreatePrereg: }' Prereg_CreatePrereg_missing_id_sid: endPoint: /preregistration/v1/applications/prereg + description: Creating preregistration with a missing ID role: batch restMethod: post inputTemplate: preReg/createPrereg/createPrereg @@ -238,6 +249,7 @@ CreatePrereg: }' Prereg_CreatePrereg_blank_id_sid: endPoint: /preregistration/v1/applications/prereg + description: Creating preregistration with a blank ID role: batch restMethod: post inputTemplate: preReg/createPrereg/createPrereg @@ -263,6 +275,7 @@ CreatePrereg: }' Prereg_CreatePrereg_missing_langCode_sid: endPoint: /preregistration/v1/applications/prereg + description: Creating preregistration without specifying a langcode role: batch restMethod: post inputTemplate: preReg/createPrereg/createPrereg @@ -288,6 +301,7 @@ CreatePrereg: }' Prereg_CreatePrereg_invalid_langCode_sid: endPoint: /preregistration/v1/applications/prereg + description: Creating preregistration with an invalid langcode role: batch restMethod: post inputTemplate: preReg/createPrereg/createPrereg @@ -313,6 +327,7 @@ CreatePrereg: }' Prereg_CreatePrereg_invalid_email_sid: endPoint: /preregistration/v1/applications/prereg + description: Creating preregistration with an invalid email address role: batch restMethod: post inputTemplate: preReg/createPrereg/createPrereg @@ -338,6 +353,7 @@ CreatePrereg: }' Prereg_CreatePrereg_invalid_requesttime_format_sid: endPoint: /preregistration/v1/applications/prereg + description: Creating preregistration with an invalid request-time format role: batch restMethod: post inputTemplate: preReg/createPrereg/createPrereg @@ -363,6 +379,7 @@ CreatePrereg: }' Prereg_CreatePrereg_missing_requesttime_sid: endPoint: /preregistration/v1/applications/prereg + description: Creating preregistration without specifying a request time role: batch restMethod: post inputTemplate: preReg/createPrereg/createPrereg @@ -388,6 +405,7 @@ CreatePrereg: }' Prereg_CreatePrereg_previous_date_sid: endPoint: /preregistration/v1/applications/prereg + description: Creating preregistration with a previous date role: batch restMethod: post inputTemplate: preReg/createPrereg/createPrereg @@ -413,6 +431,7 @@ CreatePrereg: }' Prereg_CreatePrereg_invalid_version_sid: endPoint: /preregistration/v1/applications/prereg + description: Creating preregistration with an invalid version role: batch restMethod: post inputTemplate: preReg/createPrereg/createPrereg @@ -438,6 +457,7 @@ CreatePrereg: }' Prereg_CreatePrereg_missing_version_sid: endPoint: /preregistration/v1/applications/prereg + description: Creating preregistration without specifying a version role: batch restMethod: post inputTemplate: preReg/createPrereg/createPrereg @@ -464,6 +484,7 @@ CreatePrereg: Prereg_CreatePrereg_Invalid_PostalCode_Neg: endPoint: /preregistration/v1/applications/prereg + description: Creating preregistration with an invalid postal code role: batch checkErrorsOnlyInResponse: true restMethod: post @@ -491,6 +512,7 @@ CreatePrereg: Prereg_CreatePrereg_SpacialCharacter_PostalCode_Neg: endPoint: /preregistration/v1/applications/prereg + description: Creating preregistration with a special character in the postal code role: batch checkErrorsOnlyInResponse: true restMethod: post @@ -517,6 +539,7 @@ CreatePrereg: }' Prereg_CreatePrereg_Invalid_OTP_Neg: endPoint: /preregistration/v1/applications/prereg + description: Creating preregistration with an invalid OTP role: invalidBatch checkErrorsOnlyInResponse: true restMethod: post @@ -543,6 +566,7 @@ CreatePrereg: }' Prereg_CreatePrereg_All_Valid_Smoke_date_verification_sid: endPoint: /preregistration/v1/applications/prereg + description: Creating preregistration with an invalid OTP role: batch checkErrorsOnlyInResponse: true restMethod: post @@ -563,7 +587,8 @@ CreatePrereg: }' Prereg_CreatePrereg_with_special_characters_date: endPoint: /preregistration/v1/applications/prereg - role: batch + description: Creating preregistration with special characters on the date filed + role: batch checkErrorsOnlyInResponse: true restMethod: post inputTemplate: preReg/createPrereg/createPrereg @@ -588,6 +613,7 @@ CreatePrereg: }' Prereg_CreatePrereg_with_future_date: endPoint: /preregistration/v1/applications/prereg + description: Creating preregistration with a future date role: batch checkErrorsOnlyInResponse: true restMethod: post @@ -608,6 +634,7 @@ CreatePrereg: }' Prereg_CreatePrereg_cancell_incomplete_prid_sid: endPoint: /preregistration/v1/applications/prereg + description: Creating preregistration and canceling the incomplete PRID role: batch checkErrorsOnlyInResponse: true restMethod: post @@ -628,6 +655,28 @@ CreatePrereg: }' Prereg_CreatePrereg_cancell_pending_appoinment_prid_sid: endPoint: /preregistration/v1/applications/prereg + description: Creating preregistration and canceling pending appointment using PRID + role: batch + checkErrorsOnlyInResponse: true + restMethod: post + inputTemplate: preReg/createPrereg/createPrereg + outputTemplate: preReg/createPrereg/createPreregResult + input: '{ + "postalCode": "14022", + "phone": "8249742850", + "email": "goku@technoforte.co.in", + "IDSchemaVersion": $SCHEMAVERSION$, + "dateOfBirth": "1996/01/01", + "version": "1.0", + "langCode": "$1STLANG$", + "requesttime": "$TIMESTAMP$", + "id": "mosip.pre-registration.demographic.create" +}' + output: '{ +}' + Prereg_CreatePrereg_Smoke_PreRegDemographicData_sid: + endPoint: /preregistration/v1/applications/prereg + description: Creating preregistration appointment using PRID for demographic data role: batch checkErrorsOnlyInResponse: true restMethod: post diff --git a/apitest/src/main/resources/preReg/createPrereg/createPreregResult.hbs b/api-test/src/main/resources/preReg/createPrereg/createPreregResult.hbs similarity index 100% rename from apitest/src/main/resources/preReg/createPrereg/createPreregResult.hbs rename to api-test/src/main/resources/preReg/createPrereg/createPreregResult.hbs diff --git a/apitest/src/main/resources/preReg/error.hbs b/api-test/src/main/resources/preReg/error.hbs similarity index 100% rename from apitest/src/main/resources/preReg/error.hbs rename to api-test/src/main/resources/preReg/error.hbs diff --git a/apitest/src/main/resources/preReg/file/moethan3mb.pdf b/api-test/src/main/resources/preReg/file/moethan3mb.pdf similarity index 100% rename from apitest/src/main/resources/preReg/file/moethan3mb.pdf rename to api-test/src/main/resources/preReg/file/moethan3mb.pdf diff --git a/apitest/src/main/resources/preReg/file/morethan10mbpdf.pdf b/api-test/src/main/resources/preReg/file/morethan10mbpdf.pdf similarity index 100% rename from apitest/src/main/resources/preReg/file/morethan10mbpdf.pdf rename to api-test/src/main/resources/preReg/file/morethan10mbpdf.pdf diff --git a/apitest/src/main/resources/preReg/file/morethan1mb.PDF b/api-test/src/main/resources/preReg/file/morethan1mb.PDF similarity index 100% rename from apitest/src/main/resources/preReg/file/morethan1mb.PDF rename to api-test/src/main/resources/preReg/file/morethan1mb.PDF diff --git a/apitest/src/main/resources/preReg/file/morethan2mb.pdf b/api-test/src/main/resources/preReg/file/morethan2mb.pdf similarity index 100% rename from apitest/src/main/resources/preReg/file/morethan2mb.pdf rename to api-test/src/main/resources/preReg/file/morethan2mb.pdf diff --git a/apitest/src/main/resources/preReg/file/morethan4mb.pdf b/api-test/src/main/resources/preReg/file/morethan4mb.pdf similarity index 100% rename from apitest/src/main/resources/preReg/file/morethan4mb.pdf rename to api-test/src/main/resources/preReg/file/morethan4mb.pdf diff --git a/apitest/src/main/resources/preReg/file/morethan5mb.pdf b/api-test/src/main/resources/preReg/file/morethan5mb.pdf similarity index 100% rename from apitest/src/main/resources/preReg/file/morethan5mb.pdf rename to api-test/src/main/resources/preReg/file/morethan5mb.pdf diff --git a/apitest/src/main/resources/preReg/uploadDocument/doc_POA.pdf b/api-test/src/main/resources/preReg/uploadDocument/doc_POA.pdf similarity index 100% rename from apitest/src/main/resources/preReg/uploadDocument/doc_POA.pdf rename to api-test/src/main/resources/preReg/uploadDocument/doc_POA.pdf diff --git a/apitest/src/main/resources/preReg/uploadDocument/doc_POB.pdf b/api-test/src/main/resources/preReg/uploadDocument/doc_POB.pdf similarity index 100% rename from apitest/src/main/resources/preReg/uploadDocument/doc_POB.pdf rename to api-test/src/main/resources/preReg/uploadDocument/doc_POB.pdf diff --git a/apitest/src/main/resources/preReg/uploadDocument/doc_POI.pdf b/api-test/src/main/resources/preReg/uploadDocument/doc_POI.pdf similarity index 100% rename from apitest/src/main/resources/preReg/uploadDocument/doc_POI.pdf rename to api-test/src/main/resources/preReg/uploadDocument/doc_POI.pdf diff --git a/apitest/src/main/resources/preReg/uploadDocument/doc_POR.pdf b/api-test/src/main/resources/preReg/uploadDocument/doc_POR.pdf similarity index 100% rename from apitest/src/main/resources/preReg/uploadDocument/doc_POR.pdf rename to api-test/src/main/resources/preReg/uploadDocument/doc_POR.pdf diff --git a/apitest/src/main/resources/preReg/uploadDocument/morethan1mbsmoke.pdf b/api-test/src/main/resources/preReg/uploadDocument/morethan1mbsmoke.pdf similarity index 100% rename from apitest/src/main/resources/preReg/uploadDocument/morethan1mbsmoke.pdf rename to api-test/src/main/resources/preReg/uploadDocument/morethan1mbsmoke.pdf diff --git a/apitest/src/main/resources/preReg/uploadDocument/uploadDocument.hbs b/api-test/src/main/resources/preReg/uploadDocument/uploadDocument.hbs similarity index 100% rename from apitest/src/main/resources/preReg/uploadDocument/uploadDocument.hbs rename to api-test/src/main/resources/preReg/uploadDocument/uploadDocument.hbs diff --git a/apitest/src/main/resources/preReg/uploadDocument/uploadDocument.yml b/api-test/src/main/resources/preReg/uploadDocument/uploadDocument.yml similarity index 89% rename from apitest/src/main/resources/preReg/uploadDocument/uploadDocument.yml rename to api-test/src/main/resources/preReg/uploadDocument/uploadDocument.yml index be0b4e6cfd4..584e567636e 100644 --- a/apitest/src/main/resources/preReg/uploadDocument/uploadDocument.yml +++ b/api-test/src/main/resources/preReg/uploadDocument/uploadDocument.yml @@ -1,6 +1,7 @@ UploadDocument: Prereg_UploadDocument_All_Valid_Smoke_sid: endPoint: /preregistration/v1/documents/{preRegistrationId} + description: Upload the valid document preregistration ID role: batch restMethod: post inputTemplate: preReg/uploadDocument/uploadDocument @@ -24,6 +25,7 @@ UploadDocument: }' Prereg_UploadDocument_Rebook_the_booked_appoinment_Smoke_sid: endPoint: /preregistration/v1/documents/{preRegistrationId} + description: Upload the document to rebook the booked appointment role: batch restMethod: post inputTemplate: preReg/uploadDocument/uploadDocument @@ -47,6 +49,7 @@ UploadDocument: }' Prereg_UploadDocument_All_Valid_Smoke_POI_sid: endPoint: /preregistration/v1/documents/{preRegistrationId} + description: Upload the valid Proof of Identity (POI) document role: batch restMethod: post inputTemplate: preReg/uploadDocument/uploadDocument @@ -70,6 +73,7 @@ UploadDocument: }' Prereg_UploadDocument_All_Valid_Smoke_POB_sid: endPoint: /preregistration/v1/documents/{preRegistrationId} + description: Upload the valid Proof of Date of Birth (POB) document role: batch restMethod: post inputTemplate: preReg/uploadDocument/uploadDocument @@ -93,6 +97,7 @@ UploadDocument: }' Prereg_UploadDocument_All_Valid_Smoke_POR_sid: endPoint: /preregistration/v1/documents/{preRegistrationId} + description: Upload the valid Proof of Residence (POR) document role: batch restMethod: post inputTemplate: preReg/uploadDocument/uploadDocument @@ -116,6 +121,7 @@ UploadDocument: }' Prereg_UploadDocument_All_Valid_Smoke_UpdateDocRefID_sid: endPoint: /preregistration/v1/documents/{preRegistrationId} + description: upload the valid document with the updated document reference ID role: batch restMethod: post inputTemplate: preReg/uploadDocument/uploadDocument @@ -139,6 +145,7 @@ UploadDocument: }' Prereg_UploadDocument_All_Valid_Smoke_POI_UpdateDocRefID_sid: endPoint: /preregistration/v1/documents/{preRegistrationId} + description: Upload the valid Proof of Identity (POI) document with the updated reference ID role: batch restMethod: post inputTemplate: preReg/uploadDocument/uploadDocument @@ -162,6 +169,7 @@ UploadDocument: }' Prereg_UploadDocument_All_Valid_Smoke_POB_UpdateDocRefID_sid: endPoint: /preregistration/v1/documents/{preRegistrationId} + description: Upload the valid Proof of Date of Birth (POB) document with the updated reference ID role: batch restMethod: post inputTemplate: preReg/uploadDocument/uploadDocument @@ -185,6 +193,7 @@ UploadDocument: }' Prereg_UploadDocument_All_Valid_Smoke_POR_UpdateDocRefID_sid: endPoint: /preregistration/v1/documents/{preRegistrationId} + description: Upload the valid Proof of Residence (POR) document with the updated reference ID role: batch restMethod: post inputTemplate: preReg/uploadDocument/uploadDocument @@ -208,6 +217,7 @@ UploadDocument: }' Prereg_UploadDocument_All_Valid_Smoke_BookByPRID_sid: endPoint: /preregistration/v1/documents/{preRegistrationId} + description: Upload the valid document to book an appointment using PRID role: batch restMethod: post inputTemplate: preReg/uploadDocument/uploadDocument @@ -231,6 +241,7 @@ UploadDocument: }' Prereg_UploadDocument_All_Valid_Smoke_POI_BookByPRID_sid: endPoint: /preregistration/v1/documents/{preRegistrationId} + description: Upload the valid Proof of Identity (POI) document to book an appointment using PRID role: batch restMethod: post inputTemplate: preReg/uploadDocument/uploadDocument @@ -254,6 +265,7 @@ UploadDocument: }' Prereg_UploadDocument_All_Valid_Smoke_POB_BookByPRID_sid: endPoint: /preregistration/v1/documents/{preRegistrationId} + description: Upload the valid Proof of Date of Birth (POB) document to book an appointment using PRID role: batch restMethod: post inputTemplate: preReg/uploadDocument/uploadDocument @@ -277,6 +289,7 @@ UploadDocument: }' Prereg_UploadDocument_All_Valid_Smoke_POR_BookByPRID_sid: endPoint: /preregistration/v1/documents/{preRegistrationId} + description: Upload the valid Proof of Residence (POR) document to book an appointment using PRID role: batch restMethod: post inputTemplate: preReg/uploadDocument/uploadDocument @@ -300,6 +313,7 @@ UploadDocument: }' Prereg_UploadDocument_Valid_Smoke_sid: endPoint: /preregistration/v1/documents/{preRegistrationId} + description: Upload the valid Proof of Address (POA) document role: batch restMethod: post inputTemplate: preReg/uploadDocument/uploadDocument @@ -323,6 +337,7 @@ UploadDocument: }' Prereg_UploadDocument_Valid_Smoke_POI_sid: endPoint: /preregistration/v1/documents/{preRegistrationId} + description: Upload the valid Proof of Identity (POI) document role: batch restMethod: post inputTemplate: preReg/uploadDocument/uploadDocument @@ -346,6 +361,7 @@ UploadDocument: }' Prereg_UploadDocument_Valid_POB_Smoke_sid: endPoint: /preregistration/v1/documents/{preRegistrationId} + description: Upload the valid Proof of Date of Birth (POB) document role: batch restMethod: post inputTemplate: preReg/uploadDocument/uploadDocument @@ -369,6 +385,7 @@ UploadDocument: }' Prereg_UploadDocument_Valid_POR_Smoke_sid: endPoint: /preregistration/v1/documents/{preRegistrationId} + description: Upload the valid Proof of Residence (POR) document role: batch restMethod: post inputTemplate: preReg/uploadDocument/uploadDocument @@ -392,6 +409,7 @@ UploadDocument: }' Prereg_UploadDocument_Smoke_alldel_sid: endPoint: /preregistration/v1/documents/{preRegistrationId} + description: Upload the Proof of Address (POA) document for deletion role: batch restMethod: post inputTemplate: preReg/uploadDocument/uploadDocument @@ -415,6 +433,7 @@ UploadDocument: }' Prereg_UploadDocument_Smoke_POI_alldel_sid: endPoint: /preregistration/v1/documents/{preRegistrationId} + description: Upload the Proof of Identity (POI) document for deletion role: batch restMethod: post inputTemplate: preReg/uploadDocument/uploadDocument @@ -438,6 +457,7 @@ UploadDocument: }' Prereg_UploadDocument_Smoke_POB_alldel_sid: endPoint: /preregistration/v1/documents/{preRegistrationId} + description: Upload the Proof of Date of Birth (POB) document for deletion role: batch restMethod: post inputTemplate: preReg/uploadDocument/uploadDocument @@ -461,6 +481,7 @@ UploadDocument: }' Prereg_UploadDocument_Smoke_POR_alldel_sid: endPoint: /preregistration/v1/documents/{preRegistrationId} + description: Upload the Proof of Residence (POR) document for deletion role: batch restMethod: post inputTemplate: preReg/uploadDocument/uploadDocument @@ -484,6 +505,7 @@ UploadDocument: }' Prereg_UploadDocument_Smoke_cancellappointment_sid: endPoint: /preregistration/v1/documents/{preRegistrationId} + description: Upload the valid Proof of Address (POA) document to cancelling the appointment role: batch restMethod: post inputTemplate: preReg/uploadDocument/uploadDocument @@ -507,6 +529,7 @@ UploadDocument: }' Prereg_UploadDocument_Smoke_cancellappointment_POI_sid: endPoint: /preregistration/v1/documents/{preRegistrationId} + description: Upload the valid Proof of Address (POI) document to cancelling the appointment role: batch restMethod: post inputTemplate: preReg/uploadDocument/uploadDocument @@ -530,6 +553,7 @@ UploadDocument: }' Prereg_UploadDocument_Smoke_cancellappointment_POB_sid: endPoint: /preregistration/v1/documents/{preRegistrationId} + description: Upload the valid Proof of Date of Birth (POB) document to cancel the appointment role: batch restMethod: post inputTemplate: preReg/uploadDocument/uploadDocument @@ -553,6 +577,7 @@ UploadDocument: }' Prereg_UploadDocument_Smoke_cancellappointment_POR_sid: endPoint: /preregistration/v1/documents/{preRegistrationId} + description: Upload the valid Proof of Residence (POR) document to cancel the appointment role: batch restMethod: post inputTemplate: preReg/uploadDocument/uploadDocument @@ -576,6 +601,7 @@ UploadDocument: }' Prereg_UploadDocument_Smoke_CancelApplicationsAppointment_sid: endPoint: /preregistration/v1/documents/{preRegistrationId} + description: Upload the valid Proof of Address (POA) document to cancel the application appointment role: batch restMethod: post inputTemplate: preReg/uploadDocument/uploadDocument @@ -599,6 +625,7 @@ UploadDocument: }' Prereg_UploadDocument_Smoke_CancelApplicationsAppointment_POI_sid: endPoint: /preregistration/v1/documents/{preRegistrationId} + description: Upload the valid Proof of Identity (POI) document to cancel the application appointment role: batch restMethod: post inputTemplate: preReg/uploadDocument/uploadDocument @@ -622,6 +649,7 @@ UploadDocument: }' Prereg_UploadDocument_Smoke_CancelApplicationsAppointment_POB_sid: endPoint: /preregistration/v1/documents/{preRegistrationId} + description: Upload the valid Proof of Date of Birth (POB) document to cancel the application appointment role: batch restMethod: post inputTemplate: preReg/uploadDocument/uploadDocument @@ -645,6 +673,7 @@ UploadDocument: }' Prereg_UploadDocument_Smoke_CancelApplicationsAppointment_POR_sid: endPoint: /preregistration/v1/documents/{preRegistrationId} + description: Upload the valid Proof of Residence (POR) document to cancel the application appointment role: batch restMethod: post inputTemplate: preReg/uploadDocument/uploadDocument @@ -668,6 +697,7 @@ UploadDocument: }' Prereg_UploadDocument_inValid_docTypCode_sid: endPoint: /preregistration/v1/documents/{preRegistrationId} + description: Upload the invalid Proof of Address (POA) document type code role: batch restMethod: post inputTemplate: preReg/uploadDocument/uploadDocument @@ -691,6 +721,7 @@ UploadDocument: }' Prereg_UploadDocument_blank_docTypCode_sid: endPoint: /preregistration/v1/documents/{preRegistrationId} + description: Upload the blank Proof of Address (POA) document type code role: batch restMethod: post inputTemplate: preReg/uploadDocument/uploadDocument @@ -709,11 +740,12 @@ UploadDocument: "errors": [ { "errorCode": "PRG_CORE_REQ_017" - + } ] }' Prereg_UploadDocument_missing_docTypCode_sid: endPoint: /preregistration/v1/documents/{preRegistrationId} + description: Upload the Proof of Address (POA) document without the document type code role: batch restMethod: post inputTemplate: preReg/uploadDocument/uploadDocument @@ -737,6 +769,7 @@ UploadDocument: }' Prereg_UploadDocument_blank_doccatCode_sid: endPoint: /preregistration/v1/documents/{preRegistrationId} + description: Upload the Proof of Address (POA) document blank the document category code role: batch restMethod: post inputTemplate: preReg/uploadDocument/uploadDocument @@ -760,6 +793,7 @@ UploadDocument: }' Prereg_UploadDocument_missing_doccatCode_sid: endPoint: /preregistration/v1/documents/{preRegistrationId} + description: Upload the Proof of Address (POA) document without the document category code role: batch restMethod: post inputTemplate: preReg/uploadDocument/uploadDocument @@ -783,6 +817,7 @@ UploadDocument: }' Prereg_UploadDocument_Invalid_doccatCode_sid: endPoint: /preregistration/v1/documents/{preRegistrationId} + description: Upload the Proof of Address (POA) document with the invalid document category code role: batch restMethod: post inputTemplate: preReg/uploadDocument/uploadDocument @@ -806,6 +841,7 @@ UploadDocument: }' Prereg_UploadDocument_Invalid_langCode_sid: endPoint: /preregistration/v1/documents/{preRegistrationId} + description: Upload the Proof of Address (POA) document with the invalid language code role: batch restMethod: post inputTemplate: preReg/uploadDocument/uploadDocument @@ -830,6 +866,7 @@ UploadDocument: }' Prereg_UploadDocument_missing_langCode_sid: endPoint: /preregistration/v1/documents/{preRegistrationId} + description: Upload the Proof of Address (POA) document with the missing document category code role: batch restMethod: post inputTemplate: preReg/uploadDocument/uploadDocument @@ -854,6 +891,7 @@ UploadDocument: }' Prereg_UploadDocument_inValid_id_sid: endPoint: /preregistration/v1/documents/{preRegistrationId} + description: Upload the Proof of Address (POA) document with an invalid ID role: batch restMethod: post inputTemplate: preReg/uploadDocument/uploadDocument @@ -878,6 +916,7 @@ UploadDocument: }' Prereg_UploadDocument_Blank_id_sid: endPoint: /preregistration/v1/documents/{preRegistrationId} + description: Upload the Proof of Address (POA) document with a blank ID role: batch restMethod: post inputTemplate: preReg/uploadDocument/uploadDocument @@ -905,6 +944,7 @@ UploadDocument: Prereg_UploadDocument_All_Valid_Smoke_expiry_sid: endPoint: /preregistration/v1/documents/{preRegistrationId} + description: Upload the Proof of Address (POA) document with an expired ID role: batch restMethod: post inputTemplate: preReg/uploadDocument/uploadDocument @@ -928,6 +968,7 @@ UploadDocument: }' Prereg_UploadDocument_All_Valid_Smoke_POI_expired_sid: endPoint: /preregistration/v1/documents/{preRegistrationId} + description: Upload the Proof of Identity (POI) document with an expired ID role: batch restMethod: post inputTemplate: preReg/uploadDocument/uploadDocument @@ -951,6 +992,7 @@ UploadDocument: }' Prereg_UploadDocument_All_Valid_Smoke_POB_expired_sid: endPoint: /preregistration/v1/documents/{preRegistrationId} + description: Upload the Proof of Date of Birth (POB) document with an expired ID role: batch restMethod: post inputTemplate: preReg/uploadDocument/uploadDocument @@ -974,6 +1016,7 @@ UploadDocument: }' Prereg_UploadDocument_All_Valid_Smoke_POR_expired_sid: endPoint: /preregistration/v1/documents/{preRegistrationId} + description: Upload the Proof of Residence (POR) document with an expired ID role: batch restMethod: post inputTemplate: preReg/uploadDocument/uploadDocument @@ -998,6 +1041,7 @@ UploadDocument: Prereg_UploadDocument_All_Valid_Smoke_cancell_pending_appoinment_prid: endPoint: /preregistration/v1/documents/{preRegistrationId} + description: Upload the Proof of Address (POA) document to cancel a pending appointment with PRID role: batch restMethod: post inputTemplate: preReg/uploadDocument/uploadDocument @@ -1021,6 +1065,7 @@ UploadDocument: }' Prereg_UploadDocument_All_Valid_Smoke_POI_cancell_pending_appoinment_prid_sid: endPoint: /preregistration/v1/documents/{preRegistrationId} + description: Upload the Proof of Identity (POI) document to cancel a pending appointment with PRID role: batch restMethod: post inputTemplate: preReg/uploadDocument/uploadDocument @@ -1044,6 +1089,7 @@ UploadDocument: }' Prereg_UploadDocument_All_Valid_Smoke_POB_cancell_pending_appoinment_prid_sid: endPoint: /preregistration/v1/documents/{preRegistrationId} + description: Upload the Proof of date of Birth (POB) document to cancel a pending appointment with PRID role: batch restMethod: post inputTemplate: preReg/uploadDocument/uploadDocument @@ -1067,6 +1113,7 @@ UploadDocument: }' Prereg_UploadDocument_All_Valid_Smoke_POR_cancell_pending_appoinment_prid_sid: endPoint: /preregistration/v1/documents/{preRegistrationId} + description: Upload the Proof of Residence (POR) document to cancel a pending appointment with PRID role: batch restMethod: post inputTemplate: preReg/uploadDocument/uploadDocument diff --git a/apitest/src/main/resources/preReg/uploadDocument/uploadDocumentResult.hbs b/api-test/src/main/resources/preReg/uploadDocument/uploadDocumentResult.hbs similarity index 100% rename from apitest/src/main/resources/preReg/uploadDocument/uploadDocumentResult.hbs rename to api-test/src/main/resources/preReg/uploadDocument/uploadDocumentResult.hbs diff --git a/apitest/src/main/resources/spring.properties b/api-test/src/main/resources/spring.properties similarity index 100% rename from apitest/src/main/resources/spring.properties rename to api-test/src/main/resources/spring.properties diff --git a/api-test/src/main/resources/testCaseSkippedList.txt b/api-test/src/main/resources/testCaseSkippedList.txt new file mode 100644 index 00000000000..76c50d7e341 --- /dev/null +++ b/api-test/src/main/resources/testCaseSkippedList.txt @@ -0,0 +1,2 @@ +##### JIRA number;testcase +#MOSIP-12456------Mimoto_AddIdentity_Binding_smoke_Pos \ No newline at end of file diff --git a/apitest/src/main/resources/validations.properties b/api-test/src/main/resources/validations.properties similarity index 100% rename from apitest/src/main/resources/validations.properties rename to api-test/src/main/resources/validations.properties diff --git a/apitest/testNgXmlFiles/preregApi.xml b/api-test/testNgXmlFiles/preregApi.xml similarity index 90% rename from apitest/testNgXmlFiles/preregApi.xml rename to api-test/testNgXmlFiles/preregApi.xml index 1540ab430df..45f92e02430 100644 --- a/apitest/testNgXmlFiles/preregApi.xml +++ b/api-test/testNgXmlFiles/preregApi.xml @@ -9,20 +9,6 @@ - - - - - - - - - - - - @@ -332,4 +318,46 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file From bf5701662fde0fedcb04b853a2a45a1fbdb32ee9 Mon Sep 17 00:00:00 2001 From: Mohanachandran S Date: Tue, 15 Oct 2024 12:05:50 +0530 Subject: [PATCH 2/5] MOSIP-36093 - updated apitest in release branch Signed-off-by: Mohanachandran S --- .../apirig/testrunner/MosipTestRunner.java | 82 +++--- .../apirig/testscripts/BookAppoinment.java | 4 +- .../testscripts/BookAppoinmentByPrid.java | 4 +- .../apirig/testscripts/CreatePreReg.java | 19 +- .../apirig/testscripts/DeleteWithParam.java | 3 +- .../apirig/testscripts/GetWithParam.java | 3 +- .../testscripts/GetWithParamForAutoGenId.java | 3 +- ...WithFormDataAndFileForNotificationAPI.java | 3 +- .../PostWithFormPathParamAndFile.java | 3 +- .../PostWithPathParamsAndBody.java | 3 +- .../testscripts/PreregAuditValidator.java | 3 +- .../apirig/testscripts/PutWithPathParam.java | 3 +- .../apirig/testscripts/SimplePost.java | 3 +- .../apirig/testscripts/UpdatePrereg.java | 3 +- .../apirig/utils/PreRegConfigManager.java | 33 +++ .../main/resources/config/prereg.properties | 0 .../GetAllApplications/GetAllApplications.yml | 2 +- .../GetApplicationStatusByApplicationID.yml | 2 +- .../preReg/ValidateOtp/ValidateOtp.yml | 251 +++++++++--------- .../preReg/createPrereg/createPrereg.yml | 11 +- 20 files changed, 242 insertions(+), 196 deletions(-) create mode 100644 api-test/src/main/java/io/mosip/testrig/apirig/utils/PreRegConfigManager.java create mode 100644 api-test/src/main/resources/config/prereg.properties diff --git a/api-test/src/main/java/io/mosip/testrig/apirig/testrunner/MosipTestRunner.java b/api-test/src/main/java/io/mosip/testrig/apirig/testrunner/MosipTestRunner.java index c0d679e5699..1e412e9494c 100644 --- a/api-test/src/main/java/io/mosip/testrig/apirig/testrunner/MosipTestRunner.java +++ b/api-test/src/main/java/io/mosip/testrig/apirig/testrunner/MosipTestRunner.java @@ -14,6 +14,7 @@ import java.util.Map; import java.util.Properties; +import org.apache.log4j.Level; import org.apache.log4j.Logger; import org.bouncycastle.openssl.jcajce.JcaPEMWriter; import org.testng.TestNG; @@ -21,12 +22,10 @@ import com.nimbusds.jose.jwk.KeyUse; import com.nimbusds.jose.jwk.RSAKey; -import io.mosip.testrig.apirig.dbaccess.DBManager; import io.mosip.testrig.apirig.utils.AdminTestUtil; -import io.mosip.testrig.apirig.utils.CertificateGenerationUtil; +import io.mosip.testrig.apirig.utils.AuthTestsUtil; import io.mosip.testrig.apirig.utils.CertsUtil; import io.mosip.testrig.apirig.utils.ConfigManager; -import io.mosip.testrig.apirig.utils.EncryptionDecrptionUtil; import io.mosip.testrig.apirig.utils.GlobalConstants; import io.mosip.testrig.apirig.utils.JWKKeyUtil; import io.mosip.testrig.apirig.utils.KeyCloakUserAndAPIKeyGeneration; @@ -34,6 +33,7 @@ import io.mosip.testrig.apirig.utils.MispPartnerAndLicenseKeyGeneration; import io.mosip.testrig.apirig.utils.OutputValidationUtil; import io.mosip.testrig.apirig.utils.PartnerRegistration; +import io.mosip.testrig.apirig.utils.PreRegConfigManager; import io.mosip.testrig.apirig.utils.SkipTestCaseHandler; /** @@ -63,14 +63,16 @@ public static void main(String[] arg) { for (String envName : envMap.keySet()) { LOGGER.info(String.format("ENV %s = %s%n", envName, envMap.get(envName))); } + BaseTestCase.setRunContext(getRunType(), jarUrl); ExtractResource.removeOldMosipTestTestResource(); - if (checkRunType().equalsIgnoreCase("JAR")) { + if (getRunType().equalsIgnoreCase("JAR")) { ExtractResource.extractCommonResourceFromJar(); } else { ExtractResource.copyCommonResources(); } - ConfigManager.init(); - BaseTestCase.suiteSetup(); + AdminTestUtil.init(); + PreRegConfigManager.init(); + suiteSetup(getRunType()); SkipTestCaseHandler.loadTestcaseToBeSkippedList("testCaseSkippedList.txt"); setLogLevels(); @@ -88,12 +90,14 @@ public static void main(String[] arg) { //List localDocCatCode =new ArrayList<>(BaseTestCase.getDocCatCode()); + // List localDocCatCode =new ArrayList<>(BaseTestCase.getDocCatCode()); + startTestRunner(); } catch (Exception e) { LOGGER.error("Exception " + e.getMessage()); } - MockSMTPListener.bTerminate = true; + OTPListener.bTerminate = true; if (BaseTestCase.isTargetEnvLTS()) HealthChecker.bTerminate = true; @@ -101,6 +105,25 @@ public static void main(String[] arg) { System.exit(0); } + + public static void suiteSetup(String runType) { + if (ConfigManager.IsDebugEnabled()) + LOGGER.setLevel(Level.ALL); + else + LOGGER.info("Test Framework for Mosip api Initialized"); + BaseTestCase.initialize(); + LOGGER.info("Done with BeforeSuite and test case setup! su TEST EXECUTION!\n\n"); + + if (!runType.equalsIgnoreCase("JAR")) { + AuthTestsUtil.removeOldMosipTempTestResource(); + } + + BaseTestCase.currentModule = GlobalConstants.PREREG; + BaseTestCase.setReportName(GlobalConstants.PREREG); + AdminTestUtil.copyPreregTestResource(); + BaseTestCase.otpListener = new OTPListener(); + BaseTestCase.otpListener.run(); + } private static void setLogLevels() { AdminTestUtil.setLogLevel(); @@ -121,10 +144,9 @@ public static void startTestRunner() { File homeDir = null; TestNG runner = new TestNG(); List suitefiles = new ArrayList<>(); - List modulesToRun = BaseTestCase.listOfModules; String os = System.getProperty("os.name"); LOGGER.info(os); - if (checkRunType().contains("IDE") || os.toLowerCase().contains("windows")) { + if (getRunType().contains("IDE") || os.toLowerCase().contains("windows")) { homeDir = new File(System.getProperty("user.dir") + "/testNgXmlFiles"); LOGGER.info("IDE :" + homeDir); } else { @@ -133,12 +155,8 @@ public static void startTestRunner() { LOGGER.info("ELSE :" + homeDir); } for (File file : homeDir.listFiles()) { - for (String fileName : modulesToRun) { - if (file.getName().toLowerCase().contains(fileName)) { - suitefiles.add(file.getAbsolutePath()); - } else if (fileName.equals("all") && file.getName().toLowerCase().contains("testng")) { - suitefiles.add(file.getAbsolutePath()); - } + if (file.getName().toLowerCase().contains(GlobalConstants.PREREG)) { + suitefiles.add(file.getAbsolutePath()); } } runner.setTestSuites(suitefiles); @@ -147,34 +165,15 @@ public static void startTestRunner() { runner.run(); } - /** - * The method to return class loader resource path - * - * @return String - * @throws IOException - */ - /* - * public static String getGlobalResourcePath() { if - * (checkRunType().equalsIgnoreCase("JAR")) { return new - * File(jarUrl).getParentFile().getAbsolutePath() + - * "/MosipTestResource/MosipTemporaryTestResource"; } else if - * (checkRunType().equalsIgnoreCase("IDE")) { String path = new - * File(MosipTestRunner.class.getClassLoader().getResource("").getPath()). - * getAbsolutePath() + "/MosipTestResource/MosipTemporaryTestResource"; if - * (path.contains(GlobalConstants.TESTCLASSES)) path = - * path.replace(GlobalConstants.TESTCLASSES, "classes"); return path; } return - * "Global Resource File Path Not Found"; } - */ - public static String getGlobalResourcePath() { if (cachedPath != null) { return cachedPath; } String path = null; - if (checkRunType().equalsIgnoreCase("JAR")) { + if (getRunType().equalsIgnoreCase("JAR")) { path = new File(jarUrl).getParentFile().getAbsolutePath() + "/MosipTestResource/MosipTemporaryTestResource"; - } else if (checkRunType().equalsIgnoreCase("IDE")) { + } else if (getRunType().equalsIgnoreCase("IDE")) { path = new File(MosipTestRunner.class.getClassLoader().getResource("").getPath()).getAbsolutePath() + "/MosipTestResource/MosipTemporaryTestResource"; if (path.contains(GlobalConstants.TESTCLASSES)) @@ -191,15 +190,6 @@ public static String getGlobalResourcePath() { public static String getResourcePath() { return getGlobalResourcePath(); -// if (checkRunType().equalsIgnoreCase("JAR")) { -// return new File(jarUrl).getParentFile().getAbsolutePath(); -// } else if (checkRunType().equalsIgnoreCase("IDE")) { -// String path = new File(MosipTestRunner.class.getClassLoader().getResource("").getPath()).getAbsolutePath(); -// if (path.contains(GlobalConstants.TESTCLASSES)) -// path = path.replace(GlobalConstants.TESTCLASSES, "classes"); -// return path; -// } -// return "Global Resource File Path Not Found"; } public static String generatePulicKey() { @@ -293,7 +283,7 @@ public static Properties getproperty(String path) { * * @return */ - public static String checkRunType() { + public static String getRunType() { if (MosipTestRunner.class.getResource("MosipTestRunner.class").getPath().contains(".jar")) return "JAR"; else diff --git a/api-test/src/main/java/io/mosip/testrig/apirig/testscripts/BookAppoinment.java b/api-test/src/main/java/io/mosip/testrig/apirig/testscripts/BookAppoinment.java index de683690b81..f6a488a51bb 100644 --- a/api-test/src/main/java/io/mosip/testrig/apirig/testscripts/BookAppoinment.java +++ b/api-test/src/main/java/io/mosip/testrig/apirig/testscripts/BookAppoinment.java @@ -28,10 +28,10 @@ import io.mosip.testrig.apirig.utils.AdminTestException; import io.mosip.testrig.apirig.utils.AdminTestUtil; import io.mosip.testrig.apirig.utils.AuthenticationTestException; -import io.mosip.testrig.apirig.utils.ConfigManager; import io.mosip.testrig.apirig.utils.GlobalConstants; import io.mosip.testrig.apirig.utils.KernelAuthentication; import io.mosip.testrig.apirig.utils.OutputValidationUtil; +import io.mosip.testrig.apirig.utils.PreRegConfigManager; import io.mosip.testrig.apirig.utils.PreRegUtil; import io.mosip.testrig.apirig.utils.ReportUtil; import io.mosip.testrig.apirig.utils.RestClient; @@ -44,7 +44,7 @@ public class BookAppoinment extends AdminTestUtil implements ITest { @BeforeClass public static void setLogLevel() { - if (ConfigManager.IsDebugEnabled()) + if (PreRegConfigManager.IsDebugEnabled()) logger.setLevel(Level.ALL); else logger.setLevel(Level.ERROR); diff --git a/api-test/src/main/java/io/mosip/testrig/apirig/testscripts/BookAppoinmentByPrid.java b/api-test/src/main/java/io/mosip/testrig/apirig/testscripts/BookAppoinmentByPrid.java index 8271c390535..ed8cea4972a 100644 --- a/api-test/src/main/java/io/mosip/testrig/apirig/testscripts/BookAppoinmentByPrid.java +++ b/api-test/src/main/java/io/mosip/testrig/apirig/testscripts/BookAppoinmentByPrid.java @@ -27,10 +27,10 @@ import io.mosip.testrig.apirig.utils.AdminTestException; import io.mosip.testrig.apirig.utils.AdminTestUtil; import io.mosip.testrig.apirig.utils.AuthenticationTestException; -import io.mosip.testrig.apirig.utils.ConfigManager; import io.mosip.testrig.apirig.utils.GlobalConstants; import io.mosip.testrig.apirig.utils.KernelAuthentication; import io.mosip.testrig.apirig.utils.OutputValidationUtil; +import io.mosip.testrig.apirig.utils.PreRegConfigManager; import io.mosip.testrig.apirig.utils.PreRegUtil; import io.mosip.testrig.apirig.utils.ReportUtil; import io.mosip.testrig.apirig.utils.RestClient; @@ -43,7 +43,7 @@ public class BookAppoinmentByPrid extends AdminTestUtil implements ITest { @BeforeClass public static void setLogLevel() { - if (ConfigManager.IsDebugEnabled()) + if (PreRegConfigManager.IsDebugEnabled()) logger.setLevel(Level.ALL); else logger.setLevel(Level.ERROR); diff --git a/api-test/src/main/java/io/mosip/testrig/apirig/testscripts/CreatePreReg.java b/api-test/src/main/java/io/mosip/testrig/apirig/testscripts/CreatePreReg.java index 7eee5435097..c21814194f9 100644 --- a/api-test/src/main/java/io/mosip/testrig/apirig/testscripts/CreatePreReg.java +++ b/api-test/src/main/java/io/mosip/testrig/apirig/testscripts/CreatePreReg.java @@ -3,6 +3,7 @@ import java.lang.reflect.Field; import java.security.NoSuchAlgorithmException; import java.util.ArrayList; +import java.util.HashMap; import java.util.List; import java.util.Map; @@ -28,9 +29,9 @@ import io.mosip.testrig.apirig.utils.AdminTestException; import io.mosip.testrig.apirig.utils.AdminTestUtil; import io.mosip.testrig.apirig.utils.AuthenticationTestException; -import io.mosip.testrig.apirig.utils.ConfigManager; import io.mosip.testrig.apirig.utils.GlobalConstants; import io.mosip.testrig.apirig.utils.OutputValidationUtil; +import io.mosip.testrig.apirig.utils.PreRegConfigManager; import io.mosip.testrig.apirig.utils.PreRegUtil; import io.mosip.testrig.apirig.utils.ReportUtil; import io.restassured.response.Response; @@ -43,7 +44,7 @@ public class CreatePreReg extends AdminTestUtil implements ITest { @BeforeClass public static void setLogLevel() { - if (ConfigManager.IsDebugEnabled()) + if (PreRegConfigManager.IsDebugEnabled()) logger.setLevel(Level.ALL); else logger.setLevel(Level.ERROR); @@ -119,8 +120,18 @@ public void test(TestCaseDTO testCaseDTO) } else { response = postWithBodyAndCookieForAutoGeneratedId(ApplnURI + testCaseDTO.getEndPoint(), inputJson, COOKIENAME, testCaseDTO.getRole(), testCaseDTO.getTestCaseName(), idKeyName); - Map> ouputValid = OutputValidationUtil - .doJsonOutputValidation(response.asString(), outputJson, testCaseDTO, response.getStatusCode()); + Map> ouputValid = null; + if (testCaseName.contains("_StatusCode")) { + + OutputValidationDto customResponse = customStatusCodeResponse(String.valueOf(response.getStatusCode()), + testCaseDTO.getOutput()); + + ouputValid = new HashMap<>(); + ouputValid.put(GlobalConstants.EXPECTED_VS_ACTUAL, List.of(customResponse)); + } else { + ouputValid = OutputValidationUtil + .doJsonOutputValidation(response.asString(), outputJson, testCaseDTO, response.getStatusCode()); + } Reporter.log(ReportUtil.getOutputValidationReport(ouputValid)); if (!OutputValidationUtil.publishOutputResult(ouputValid)) throw new AdminTestException("Failed at output validation"); diff --git a/api-test/src/main/java/io/mosip/testrig/apirig/testscripts/DeleteWithParam.java b/api-test/src/main/java/io/mosip/testrig/apirig/testscripts/DeleteWithParam.java index ff975a331fd..ef87e0c0543 100644 --- a/api-test/src/main/java/io/mosip/testrig/apirig/testscripts/DeleteWithParam.java +++ b/api-test/src/main/java/io/mosip/testrig/apirig/testscripts/DeleteWithParam.java @@ -29,6 +29,7 @@ import io.mosip.testrig.apirig.utils.ConfigManager; import io.mosip.testrig.apirig.utils.GlobalConstants; import io.mosip.testrig.apirig.utils.OutputValidationUtil; +import io.mosip.testrig.apirig.utils.PreRegConfigManager; import io.mosip.testrig.apirig.utils.PreRegUtil; import io.mosip.testrig.apirig.utils.ReportUtil; import io.restassured.response.Response; @@ -40,7 +41,7 @@ public class DeleteWithParam extends AdminTestUtil implements ITest { @BeforeClass public static void setLogLevel() { - if (ConfigManager.IsDebugEnabled()) + if (PreRegConfigManager.IsDebugEnabled()) logger.setLevel(Level.ALL); else logger.setLevel(Level.ERROR); diff --git a/api-test/src/main/java/io/mosip/testrig/apirig/testscripts/GetWithParam.java b/api-test/src/main/java/io/mosip/testrig/apirig/testscripts/GetWithParam.java index d04e3d735ed..65757bb2d63 100644 --- a/api-test/src/main/java/io/mosip/testrig/apirig/testscripts/GetWithParam.java +++ b/api-test/src/main/java/io/mosip/testrig/apirig/testscripts/GetWithParam.java @@ -29,6 +29,7 @@ import io.mosip.testrig.apirig.utils.ConfigManager; import io.mosip.testrig.apirig.utils.GlobalConstants; import io.mosip.testrig.apirig.utils.OutputValidationUtil; +import io.mosip.testrig.apirig.utils.PreRegConfigManager; import io.mosip.testrig.apirig.utils.PreRegUtil; import io.mosip.testrig.apirig.utils.ReportUtil; import io.restassured.response.Response; @@ -41,7 +42,7 @@ public class GetWithParam extends AdminTestUtil implements ITest { @BeforeClass public static void setLogLevel() { - if (ConfigManager.IsDebugEnabled()) + if (PreRegConfigManager.IsDebugEnabled()) logger.setLevel(Level.ALL); else logger.setLevel(Level.ERROR); diff --git a/api-test/src/main/java/io/mosip/testrig/apirig/testscripts/GetWithParamForAutoGenId.java b/api-test/src/main/java/io/mosip/testrig/apirig/testscripts/GetWithParamForAutoGenId.java index cff83158b7c..378ea411905 100644 --- a/api-test/src/main/java/io/mosip/testrig/apirig/testscripts/GetWithParamForAutoGenId.java +++ b/api-test/src/main/java/io/mosip/testrig/apirig/testscripts/GetWithParamForAutoGenId.java @@ -29,6 +29,7 @@ import io.mosip.testrig.apirig.utils.ConfigManager; import io.mosip.testrig.apirig.utils.GlobalConstants; import io.mosip.testrig.apirig.utils.OutputValidationUtil; +import io.mosip.testrig.apirig.utils.PreRegConfigManager; import io.mosip.testrig.apirig.utils.PreRegUtil; import io.mosip.testrig.apirig.utils.ReportUtil; import io.restassured.response.Response; @@ -42,7 +43,7 @@ public class GetWithParamForAutoGenId extends AdminTestUtil implements ITest { @BeforeClass public static void setLogLevel() { - if (ConfigManager.IsDebugEnabled()) + if (PreRegConfigManager.IsDebugEnabled()) logger.setLevel(Level.ALL); else logger.setLevel(Level.ERROR); diff --git a/api-test/src/main/java/io/mosip/testrig/apirig/testscripts/PostWithFormDataAndFileForNotificationAPI.java b/api-test/src/main/java/io/mosip/testrig/apirig/testscripts/PostWithFormDataAndFileForNotificationAPI.java index 3b5907a2e44..6a6c485bcab 100644 --- a/api-test/src/main/java/io/mosip/testrig/apirig/testscripts/PostWithFormDataAndFileForNotificationAPI.java +++ b/api-test/src/main/java/io/mosip/testrig/apirig/testscripts/PostWithFormDataAndFileForNotificationAPI.java @@ -27,6 +27,7 @@ import io.mosip.testrig.apirig.utils.ConfigManager; import io.mosip.testrig.apirig.utils.GlobalConstants; import io.mosip.testrig.apirig.utils.OutputValidationUtil; +import io.mosip.testrig.apirig.utils.PreRegConfigManager; import io.mosip.testrig.apirig.utils.PreRegUtil; import io.mosip.testrig.apirig.utils.ReportUtil; import io.restassured.response.Response; @@ -39,7 +40,7 @@ public class PostWithFormDataAndFileForNotificationAPI extends AdminTestUtil imp @BeforeClass public static void setLogLevel() { - if (ConfigManager.IsDebugEnabled()) + if (PreRegConfigManager.IsDebugEnabled()) logger.setLevel(Level.ALL); else logger.setLevel(Level.ERROR); diff --git a/api-test/src/main/java/io/mosip/testrig/apirig/testscripts/PostWithFormPathParamAndFile.java b/api-test/src/main/java/io/mosip/testrig/apirig/testscripts/PostWithFormPathParamAndFile.java index 783291485b2..f3fc0b6439d 100644 --- a/api-test/src/main/java/io/mosip/testrig/apirig/testscripts/PostWithFormPathParamAndFile.java +++ b/api-test/src/main/java/io/mosip/testrig/apirig/testscripts/PostWithFormPathParamAndFile.java @@ -27,6 +27,7 @@ import io.mosip.testrig.apirig.utils.ConfigManager; import io.mosip.testrig.apirig.utils.GlobalConstants; import io.mosip.testrig.apirig.utils.OutputValidationUtil; +import io.mosip.testrig.apirig.utils.PreRegConfigManager; import io.mosip.testrig.apirig.utils.PreRegUtil; import io.mosip.testrig.apirig.utils.ReportUtil; import io.restassured.response.Response; @@ -39,7 +40,7 @@ public class PostWithFormPathParamAndFile extends AdminTestUtil implements ITest @BeforeClass public static void setLogLevel() { - if (ConfigManager.IsDebugEnabled()) + if (PreRegConfigManager.IsDebugEnabled()) logger.setLevel(Level.ALL); else logger.setLevel(Level.ERROR); diff --git a/api-test/src/main/java/io/mosip/testrig/apirig/testscripts/PostWithPathParamsAndBody.java b/api-test/src/main/java/io/mosip/testrig/apirig/testscripts/PostWithPathParamsAndBody.java index d7bdf2e6186..5d59bbdf843 100644 --- a/api-test/src/main/java/io/mosip/testrig/apirig/testscripts/PostWithPathParamsAndBody.java +++ b/api-test/src/main/java/io/mosip/testrig/apirig/testscripts/PostWithPathParamsAndBody.java @@ -27,6 +27,7 @@ import io.mosip.testrig.apirig.utils.ConfigManager; import io.mosip.testrig.apirig.utils.GlobalConstants; import io.mosip.testrig.apirig.utils.OutputValidationUtil; +import io.mosip.testrig.apirig.utils.PreRegConfigManager; import io.mosip.testrig.apirig.utils.PreRegUtil; import io.mosip.testrig.apirig.utils.ReportUtil; import io.restassured.response.Response; @@ -38,7 +39,7 @@ public class PostWithPathParamsAndBody extends AdminTestUtil implements ITest { @BeforeClass public static void setLogLevel() { - if (ConfigManager.IsDebugEnabled()) + if (PreRegConfigManager.IsDebugEnabled()) logger.setLevel(Level.ALL); else logger.setLevel(Level.ERROR); diff --git a/api-test/src/main/java/io/mosip/testrig/apirig/testscripts/PreregAuditValidator.java b/api-test/src/main/java/io/mosip/testrig/apirig/testscripts/PreregAuditValidator.java index 6a9b380990b..f7be19fa190 100644 --- a/api-test/src/main/java/io/mosip/testrig/apirig/testscripts/PreregAuditValidator.java +++ b/api-test/src/main/java/io/mosip/testrig/apirig/testscripts/PreregAuditValidator.java @@ -32,6 +32,7 @@ import io.mosip.testrig.apirig.utils.ConfigManager; import io.mosip.testrig.apirig.utils.GlobalConstants; import io.mosip.testrig.apirig.utils.OutputValidationUtil; +import io.mosip.testrig.apirig.utils.PreRegConfigManager; import io.mosip.testrig.apirig.utils.PreRegUtil; import io.restassured.response.Response; @@ -51,7 +52,7 @@ public String getTestName() { @BeforeClass public static void setLogLevel() { - if (ConfigManager.IsDebugEnabled()) + if (PreRegConfigManager.IsDebugEnabled()) logger.setLevel(Level.ALL); else logger.setLevel(Level.ERROR); diff --git a/api-test/src/main/java/io/mosip/testrig/apirig/testscripts/PutWithPathParam.java b/api-test/src/main/java/io/mosip/testrig/apirig/testscripts/PutWithPathParam.java index 7c3039f8cba..5930fecebd8 100644 --- a/api-test/src/main/java/io/mosip/testrig/apirig/testscripts/PutWithPathParam.java +++ b/api-test/src/main/java/io/mosip/testrig/apirig/testscripts/PutWithPathParam.java @@ -29,6 +29,7 @@ import io.mosip.testrig.apirig.utils.ConfigManager; import io.mosip.testrig.apirig.utils.GlobalConstants; import io.mosip.testrig.apirig.utils.OutputValidationUtil; +import io.mosip.testrig.apirig.utils.PreRegConfigManager; import io.mosip.testrig.apirig.utils.PreRegUtil; import io.mosip.testrig.apirig.utils.ReportUtil; import io.restassured.response.Response; @@ -40,7 +41,7 @@ public class PutWithPathParam extends AdminTestUtil implements ITest { @BeforeClass public static void setLogLevel() { - if (ConfigManager.IsDebugEnabled()) + if (PreRegConfigManager.IsDebugEnabled()) logger.setLevel(Level.ALL); else logger.setLevel(Level.ERROR); diff --git a/api-test/src/main/java/io/mosip/testrig/apirig/testscripts/SimplePost.java b/api-test/src/main/java/io/mosip/testrig/apirig/testscripts/SimplePost.java index 8e17639d083..ea0480aec30 100644 --- a/api-test/src/main/java/io/mosip/testrig/apirig/testscripts/SimplePost.java +++ b/api-test/src/main/java/io/mosip/testrig/apirig/testscripts/SimplePost.java @@ -29,6 +29,7 @@ import io.mosip.testrig.apirig.utils.ConfigManager; import io.mosip.testrig.apirig.utils.GlobalConstants; import io.mosip.testrig.apirig.utils.OutputValidationUtil; +import io.mosip.testrig.apirig.utils.PreRegConfigManager; import io.mosip.testrig.apirig.utils.PreRegUtil; import io.mosip.testrig.apirig.utils.ReportUtil; import io.restassured.response.Response; @@ -41,7 +42,7 @@ public class SimplePost extends AdminTestUtil implements ITest { @BeforeClass public static void setLogLevel() { - if (ConfigManager.IsDebugEnabled()) + if (PreRegConfigManager.IsDebugEnabled()) logger.setLevel(Level.ALL); else logger.setLevel(Level.ERROR); diff --git a/api-test/src/main/java/io/mosip/testrig/apirig/testscripts/UpdatePrereg.java b/api-test/src/main/java/io/mosip/testrig/apirig/testscripts/UpdatePrereg.java index 94e63c03227..8546d4a6257 100644 --- a/api-test/src/main/java/io/mosip/testrig/apirig/testscripts/UpdatePrereg.java +++ b/api-test/src/main/java/io/mosip/testrig/apirig/testscripts/UpdatePrereg.java @@ -29,6 +29,7 @@ import io.mosip.testrig.apirig.utils.ConfigManager; import io.mosip.testrig.apirig.utils.GlobalConstants; import io.mosip.testrig.apirig.utils.OutputValidationUtil; +import io.mosip.testrig.apirig.utils.PreRegConfigManager; import io.mosip.testrig.apirig.utils.PreRegUtil; import io.mosip.testrig.apirig.utils.ReportUtil; import io.restassured.response.Response; @@ -41,7 +42,7 @@ public class UpdatePrereg extends AdminTestUtil implements ITest { @BeforeClass public static void setLogLevel() { - if (ConfigManager.IsDebugEnabled()) + if (PreRegConfigManager.IsDebugEnabled()) logger.setLevel(Level.ALL); else logger.setLevel(Level.ERROR); diff --git a/api-test/src/main/java/io/mosip/testrig/apirig/utils/PreRegConfigManager.java b/api-test/src/main/java/io/mosip/testrig/apirig/utils/PreRegConfigManager.java new file mode 100644 index 00000000000..2821c6e0c2d --- /dev/null +++ b/api-test/src/main/java/io/mosip/testrig/apirig/utils/PreRegConfigManager.java @@ -0,0 +1,33 @@ +package io.mosip.testrig.apirig.utils; + +import java.util.HashMap; +import java.util.Map; +import java.util.Properties; + +import org.apache.log4j.Logger; + +import io.mosip.testrig.apirig.testrunner.MosipTestRunner; + +public class PreRegConfigManager extends ConfigManager{ + private static final Logger LOGGER = Logger.getLogger(PreRegConfigManager.class); + + public static void init() { + Map moduleSpecificPropertiesMap = new HashMap<>(); + // Load scope specific properties + try { + String path = MosipTestRunner.getGlobalResourcePath() + "/config/prereg.properties"; + Properties props = getproperties(path); + // Convert Properties to Map and add to moduleSpecificPropertiesMap + for (String key : props.stringPropertyNames()) { + moduleSpecificPropertiesMap.put(key, props.getProperty(key)); + } + } catch (Exception e) { + LOGGER.error(e.getMessage()); + } + // Add module specific properties as well. + init(moduleSpecificPropertiesMap); + } + + + +} \ No newline at end of file diff --git a/api-test/src/main/resources/config/prereg.properties b/api-test/src/main/resources/config/prereg.properties new file mode 100644 index 00000000000..e69de29bb2d diff --git a/api-test/src/main/resources/preReg/GetAllApplications/GetAllApplications.yml b/api-test/src/main/resources/preReg/GetAllApplications/GetAllApplications.yml index dafbf32c58b..acdecaa2318 100644 --- a/api-test/src/main/resources/preReg/GetAllApplications/GetAllApplications.yml +++ b/api-test/src/main/resources/preReg/GetAllApplications/GetAllApplications.yml @@ -13,7 +13,7 @@ GetAllApplications: output: '{ }' Prereg_GetAllApplications_InValid: - endPoint: /preregistration/v1/applications + endPoint: /preregistration/v1/applications?type={type} description: Retrieve all applications with invalid data role: batch checkErrorsOnlyInResponse: true diff --git a/api-test/src/main/resources/preReg/GetApplicationStatusByApplicationID/GetApplicationStatusByApplicationID.yml b/api-test/src/main/resources/preReg/GetApplicationStatusByApplicationID/GetApplicationStatusByApplicationID.yml index 699c47f3038..97a4af3955b 100644 --- a/api-test/src/main/resources/preReg/GetApplicationStatusByApplicationID/GetApplicationStatusByApplicationID.yml +++ b/api-test/src/main/resources/preReg/GetApplicationStatusByApplicationID/GetApplicationStatusByApplicationID.yml @@ -8,7 +8,7 @@ GetApplicationStatusByApplicationID: inputTemplate: preReg/GetApplicationStatusByApplicationID/getApplicationStatusByApplicationID outputTemplate: preReg/GetApplicationStatusByApplicationID/getApplicationStatusByApplicationIDResult input: '{ - "applicationId": "52917592714578" + "applicationId": "$ID:CreatePrereg_All_Valid_Smoke_sid_preRegistrationId$" }' output: '{ "response": "Cancelled" diff --git a/api-test/src/main/resources/preReg/ValidateOtp/ValidateOtp.yml b/api-test/src/main/resources/preReg/ValidateOtp/ValidateOtp.yml index 09b4fe1136d..da01ddcc396 100644 --- a/api-test/src/main/resources/preReg/ValidateOtp/ValidateOtp.yml +++ b/api-test/src/main/resources/preReg/ValidateOtp/ValidateOtp.yml @@ -1,124 +1,131 @@ ValidateOtp: - Prereg_ValidateOtp_All_Valid_Smoke_email_sid: - endPoint: /preregistration/v1/login/validateOtp - description: Validating OTP with a valid phone number - role: batch - checkErrorsOnlyInResponse: true - restMethod: post - inputTemplate: preReg/ValidateOtp/validateOtp - outputTemplate: preReg/ValidateOtp/validateOtpResult - input: '{ - "version": "1.0", - "requesttime": "$TIMESTAMP$", - "userId": "john.doe@mailinator.com", - "otp": "DYNAMICOTP", - "id": "mosip.pre-registration.login.useridotp" -}' - output: '{ -}' - Prereg_ValidateOtp_All_Valid_Smoke_Phone_sid: - endPoint: /preregistration/v1/login/validateOtp - description: Validating OTP with an invalid phone number - role: batch - checkErrorsOnlyInResponse: true - restMethod: post - inputTemplate: preReg/ValidateOtp/validateOtp - outputTemplate: preReg/ValidateOtp/validateOtpResult - input: '{ - "version": "1.0", - "requesttime": "$TIMESTAMP$", - "userId": "9090872300", - "otp": "DYNAMICOTP", - "id": "mosip.pre-registration.login.useridotp" -}' - output: '{ -}' + Prereg_ValidateOtp_All_Valid_Smoke_email_sid: + endPoint: /preregistration/v1/login/validateOtp + description: Validating OTP with a valid phone number + role: batch + checkErrorsOnlyInResponse: true + restMethod: post + inputTemplate: preReg/ValidateOtp/validateOtp + outputTemplate: preReg/ValidateOtp/validateOtpResult + input: '{ + "version": "1.0", + "requesttime": "$TIMESTAMP$", + "userId": "john.doe@mailinator.com", + "otp": "DYNAMICOTP", + "id": "mosip.pre-registration.login.useridotp" + }' + output: '{}' - Prereg_ValidateOtp_Invalid_Phone_Neg_INVALIDOTP: - endPoint: /preregistration/v1/login/validateOtp - description: Validating OTP with a phone number containing special characters - role: batch - checkErrorsOnlyInResponse: true - restMethod: post - inputTemplate: preReg/ValidateOtp/validateOtp - outputTemplate: preReg/error - input: '{ - "version": "1.0", - "requesttime": "$TIMESTAMP$", - "userId": "909", - "otp": "DYNAMICOTP", - "id": "mosip.pre-registration.login.useridotp" -}' - output: '{ - "errors": [ - { - "errorCode": "PRG_PAM_LGN_013" - } - ] -}' - Prereg_ValidateOtp_SpacialCharacters_Phone_Neg_INVALIDOTP: - endPoint: /preregistration/v1/login/validateOtp - description: validating OPT with valid email address - role: batch - checkErrorsOnlyInResponse: true - restMethod: post - inputTemplate: preReg/ValidateOtp/validateOtp - outputTemplate: preReg/error - input: '{ - "version": "1.0", - "requesttime": "$TIMESTAMP$", - "userId": "$!(", - "otp": "DYNAMICOTP", - "id": "mosip.pre-registration.login.useridotp" -}' - output: '{ - "errors": [ - { - "errorCode": "PRG_PAM_LGN_013" - } - ] -}' - Prereg_ValidateOtp_SpacialCharacters_Email_Neg_INVALIDOTP: - endPoint: /preregistration/v1/login/validateOtp - description: Validating OTP with an email address containing special characters - role: batch - checkErrorsOnlyInResponse: true - restMethod: post - inputTemplate: preReg/ValidateOtp/validateOtp - outputTemplate: preReg/error - input: '{ - "version": "1.0", - "requesttime": "$TIMESTAMP$", - "userId": "john.doe@mail$!inator.com", - "otp": "DYNAMICOTP", - "id": "mosip.pre-registration.login.useridotp" -}' - output: '{ - "errors": [ - { - "errorCode": "PRG_PAM_LGN_013" - } - ] -}' - Prereg_ValidateOtp_Invalid_Email_Neg_INVALIDOTP: - endPoint: /preregistration/v1/login/validateOtp - description: Validating OTP with an invalid email address - role: batch - checkErrorsOnlyInResponse: true - restMethod: post - inputTemplate: preReg/ValidateOtp/validateOtp - outputTemplate: preReg/error - input: '{ - "version": "1.0", - "requesttime": "$TIMESTAMP$", - "userId": "joh23", - "otp": "DYNAMICOTP", - "id": "mosip.pre-registration.login.useridotp" -}' - output: '{ - "errors": [ - { - "errorCode": "PRG_PAM_LGN_013" - } - ] -}' \ No newline at end of file + Prereg_ValidateOtp_All_Valid_Smoke_Phone_sid: + endPoint: /preregistration/v1/login/validateOtp + description: Validating OTP with an invalid phone number + role: batch + restMethod: post + inputTemplate: preReg/ValidateOtp/validateOtp + outputTemplate: preReg/error + input: '{ + "version": "1.0", + "requesttime": "$TIMESTAMP$", + "userId": "9090872300", + "otp": "DYNAMICOTP", + "id": "mosip.pre-registration.login.useridotp" + }' + output: '{ + "errors": [ + { + "errorCode": "KER-OTV-005" + } + ] + }' + + Prereg_ValidateOtp_Invalid_Phone_Neg_INVALIDOTP: + endPoint: /preregistration/v1/login/validateOtp + description: Validating OTP with a phone number containing special characters + role: batch + checkErrorsOnlyInResponse: true + restMethod: post + inputTemplate: preReg/ValidateOtp/validateOtp + outputTemplate: preReg/error + input: '{ + "version": "1.0", + "requesttime": "$TIMESTAMP$", + "userId": "909", + "otp": "DYNAMICOTP", + "id": "mosip.pre-registration.login.useridotp" + }' + output: '{ + "errors": [ + { + "errorCode": "KER-OTV-005" + } + ] + }' + + Prereg_ValidateOtp_SpacialCharacters_Phone_Neg_INVALIDOTP: + endPoint: /preregistration/v1/login/validateOtp + description: Validating OTP with a valid email address + role: batch + checkErrorsOnlyInResponse: true + restMethod: post + inputTemplate: preReg/ValidateOtp/validateOtp + outputTemplate: preReg/error + input: '{ + "version": "1.0", + "requesttime": "$TIMESTAMP$", + "userId": "$!(", + "otp": "DYNAMICOTP", + "id": "mosip.pre-registration.login.useridotp" + }' + output: '{ + "errors": [ + { + "errorCode": "KER-OTV-005" + } + ] + }' + + Prereg_ValidateOtp_SpacialCharacters_Email_Neg_INVALIDOTP: + endPoint: /preregistration/v1/login/validateOtp + description: Validating OTP with an email address containing special characters + role: batch + checkErrorsOnlyInResponse: true + restMethod: post + inputTemplate: preReg/ValidateOtp/validateOtp + outputTemplate: preReg/error + input: '{ + "version": "1.0", + "requesttime": "$TIMESTAMP$", + "userId": "john.doe@mail$!inator.com", + "otp": "DYNAMICOTP", + "id": "mosip.pre-registration.login.useridotp" + }' + output: '{ + "errors": [ + { + "errorCode": "KER-OTV-005" + } + ] + }' + + Prereg_ValidateOtp_Invalid_Email_Neg_INVALIDOTP: + endPoint: /preregistration/v1/login/validateOtp + description: Validating OTP with an invalid email address + role: batch + checkErrorsOnlyInResponse: true + restMethod: post + inputTemplate: preReg/ValidateOtp/validateOtp + outputTemplate: preReg/error + input: '{ + "version": "1.0", + "requesttime": "$TIMESTAMP$", + "userId": "joh23", + "otp": "DYNAMICOTP", + "id": "mosip.pre-registration.login.useridotp" + }' + output: '{ + "errors": [ + { + "errorCode": "KER-OTV-005" + } + ] + }' \ No newline at end of file diff --git a/api-test/src/main/resources/preReg/createPrereg/createPrereg.yml b/api-test/src/main/resources/preReg/createPrereg/createPrereg.yml index aee7974e46c..854ca8b9403 100644 --- a/api-test/src/main/resources/preReg/createPrereg/createPrereg.yml +++ b/api-test/src/main/resources/preReg/createPrereg/createPrereg.yml @@ -537,7 +537,7 @@ CreatePrereg: } ] }' - Prereg_CreatePrereg_Invalid_OTP_Neg: + Prereg_CreatePrereg_Invalid_OTP_Neg_StatusCode: endPoint: /preregistration/v1/applications/prereg description: Creating preregistration with an invalid OTP role: invalidBatch @@ -557,13 +557,8 @@ CreatePrereg: "requesttime": "$TIMESTAMP$", "id": "mosip.pre-registration.demographic.create" }' - output: '{ - "errors": [ - { - "errorCode": "KER-IOV-004" - } - ] -}' + output: "500" + Prereg_CreatePrereg_All_Valid_Smoke_date_verification_sid: endPoint: /preregistration/v1/applications/prereg description: Creating preregistration with an invalid OTP From b5f680c4e8956a0ce033b338e0259622e7099d64 Mon Sep 17 00:00:00 2001 From: Mohanachandran S Date: Tue, 15 Oct 2024 12:13:43 +0530 Subject: [PATCH 3/5] MOSIP-36093 - updated apitest in release branch Signed-off-by: Mohanachandran S --- api-test/pom.xml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/api-test/pom.xml b/api-test/pom.xml index 2e5aa737c54..4ac0500da36 100644 --- a/api-test/pom.xml +++ b/api-test/pom.xml @@ -8,7 +8,7 @@ apitest-prereg Parent project of MOSIP Pre-Registration apitests https://github.com/mosip/pre-registration - 1.2.1-SNAPSHOT + 1.3.0-SNAPSHOT @@ -49,7 +49,7 @@ 2.2.1 3.0.1 - apitest-prereg-1.2.1-SNAPSHOT-jar-with-dependencies + apitest-prereg-1.3.0-SNAPSHOT-jar-with-dependencies From bce296d6254ac07440995a2a37f022d62fb44e61 Mon Sep 17 00:00:00 2001 From: Mohanachandran S Date: Wed, 23 Oct 2024 10:12:00 +0530 Subject: [PATCH 4/5] MOSIP-36093 - Updated the unique identifiers and apitest commons version Signed-off-by: Mohanachandran S --- api-test/pom.xml | 4 +- .../apirig/testrunner/MosipTestRunner.java | 2 + .../AddLostUinApplication.yml | 9 ++++ .../AddUpdateRegistration.yml | 2 + .../CancelApplicationsAppointment.yml | 2 + .../CancelAppointment/CancelAppointment.yml | 4 ++ .../preReg/CopyDocument/CopyDocument.yml | 4 ++ .../DeleteAllDocForaPRID.yml | 2 + .../preReg/DeleteBooking/DeleteBooking.yml | 1 + .../DeleteLostUinApplication.yml | 5 ++ .../DeletePreRegistration.yml | 2 + .../DeleteSpecificDocForaPRID.yml | 3 ++ .../FetchApplicationByPrid.yml | 2 + .../FetchAppointmentDetailsByPrid.yml | 2 + .../FetchAvailabilityData.yml | 2 + .../GetAllApplications/GetAllApplications.yml | 4 ++ .../GetAllApplicationsWithapplicationId.yml | 3 ++ .../GetAllDocForPrId/GetAllDocForPrId.yml | 2 + .../GetAllPreRegApplications.yml | 3 ++ .../GetApplicationStatusByApplicationID.yml | 2 + .../GetApplicationStatusWithPrId.yml | 3 ++ .../GetApplicationWithPrId.yml | 1 + .../GetAppointmentDetails.yml | 5 ++ .../GetAvailableSlotForRegCentreId.yml | 3 ++ .../GetBookingsForRegCenter.yml | 10 ++-- .../GetPRIDByDateRange/GetPRIDByDateRange.yml | 19 ++++++++ .../GetPRIDForRegCent/GetPRIDForRegCent.yml | 2 + .../GetPreRegDemographicDataByPrid.yml | 2 + .../GetPreRegInfoByPrid.yml | 2 + .../GetSpecificDocumentforaPRID.yml | 3 ++ .../GetUpdatedDateTimeByPrid.yml | 2 + .../InvalidateToken/InvalidateToken.yml | 1 + .../SendNotifications/SendNotifications.yml | 6 ++- .../main/resources/preReg/SendOtp/SendOtp.yml | 12 +++++ .../preReg/Transliteration/Translate.yml | 3 ++ .../preReg/UpdateDocRefID/UpdateDocRefID.yml | 7 +++ .../UpdatePreRegStatus/updatePreRegStatus.yml | 9 ++++ .../UpdatePreregistration.yml | 15 ++++++ .../preReg/ValidateOtp/ValidateOtp.yml | 6 +++ .../bookAppointment/bookAppointment.yml | 29 ++++++++++++ .../bookAppointmentByPRID.yml | 23 +++++++++ .../preReg/createPrereg/createPrereg.yml | 33 ++++++++++++- .../preReg/uploadDocument/uploadDocument.yml | 47 +++++++++++++++++++ 43 files changed, 295 insertions(+), 8 deletions(-) diff --git a/api-test/pom.xml b/api-test/pom.xml index 4ac0500da36..6414f5d2225 100644 --- a/api-test/pom.xml +++ b/api-test/pom.xml @@ -54,9 +54,9 @@ - io.mosip.testrig.apirig.apitest.commons + io.mosip.testrig.apitest.commons apitest-commons - 1.2.2-SNAPSHOT + 1.3.0-SNAPSHOT diff --git a/api-test/src/main/java/io/mosip/testrig/apirig/testrunner/MosipTestRunner.java b/api-test/src/main/java/io/mosip/testrig/apirig/testrunner/MosipTestRunner.java index 1e412e9494c..ad678c6992a 100644 --- a/api-test/src/main/java/io/mosip/testrig/apirig/testrunner/MosipTestRunner.java +++ b/api-test/src/main/java/io/mosip/testrig/apirig/testrunner/MosipTestRunner.java @@ -92,6 +92,8 @@ public static void main(String[] arg) { // List localDocCatCode =new ArrayList<>(BaseTestCase.getDocCatCode()); + // List localDocCatCode =new ArrayList<>(BaseTestCase.getDocCatCode()); + startTestRunner(); } catch (Exception e) { LOGGER.error("Exception " + e.getMessage()); diff --git a/api-test/src/main/resources/preReg/AddLostUinApplication/AddLostUinApplication.yml b/api-test/src/main/resources/preReg/AddLostUinApplication/AddLostUinApplication.yml index 8a82d19ddf3..b7d2f73b3fe 100644 --- a/api-test/src/main/resources/preReg/AddLostUinApplication/AddLostUinApplication.yml +++ b/api-test/src/main/resources/preReg/AddLostUinApplication/AddLostUinApplication.yml @@ -1,6 +1,7 @@ AddLostUinApplication: Prereg_AddLostUinApplication_All_Valid_Smoke_sid: endPoint: /preregistration/v1/applications/lostuin + uniqueIdentifier: TC_prereg_AddLostUinApplication_01 description: process the lost UIN application with a valid ID role: batch templateFields: ["langCode"] @@ -19,6 +20,7 @@ AddLostUinApplication: }' Prereg_AddLostUinApplication_Invalid_id: endPoint: /preregistration/v1/applications/lostuin + uniqueIdentifier: TC_prereg_AddLostUinApplication_02 description: process the lost UIN application with an invalid ID role: batch templateFields: ["langCode"] @@ -40,6 +42,7 @@ AddLostUinApplication: }' Prereg_AddLostUinApplication_invalid_lang_code: endPoint: /preregistration/v1/applications/lostuin + uniqueIdentifier: TC_prereg_AddLostUinApplication_03 description: Process the lost UIN application with an invalid language code role: batch restMethod: post @@ -60,6 +63,7 @@ AddLostUinApplication: }' Prereg_AddLostUinApplication_without_version: endPoint: /preregistration/v1/applications/lostuin + uniqueIdentifier: TC_prereg_AddLostUinApplication_04 description: Process the lost UIN application without specifying the version role: batch templateFields: ["langCode"] @@ -81,6 +85,7 @@ AddLostUinApplication: }' Prereg_AddLostUinApplication_without_version_attribute: endPoint: /preregistration/v1/applications/lostuin + uniqueIdentifier: TC_prereg_AddLostUinApplication_05 description: Process the lost UIN application without specifying the version and attribute role: batch templateFields: ["langCode"] @@ -102,6 +107,7 @@ AddLostUinApplication: }' Prereg_AddLostUinApplication_with_INVALID_version: endPoint: /preregistration/v1/applications/lostuin + uniqueIdentifier: TC_prereg_AddLostUinApplication_06 description: Process the lost UIN application with an invalid version role: batch templateFields: ["langCode"] @@ -123,6 +129,7 @@ AddLostUinApplication: }' Prereg_AddLostUinApplication_Valid_Smoke_sid: endPoint: /preregistration/v1/applications/lostuin + uniqueIdentifier: TC_prereg_AddLostUinApplication_07 description: Process the lost UIN application with a valid data role: batch templateFields: ["langCode"] @@ -142,6 +149,7 @@ AddLostUinApplication: Prereg_AddLostUinApplication_inValid_langcode: endPoint: /preregistration/v1/applications/lostuin + uniqueIdentifier: TC_prereg_AddLostUinApplication_08 description: Process the lost UIN application with an invalid language code role: batch restMethod: post @@ -162,6 +170,7 @@ AddLostUinApplication: }' Prereg_AddLostUinApplication_without_any_data: endPoint: /preregistration/v1/applications/lostuin + uniqueIdentifier: TC_prereg_AddLostUinApplication_09 description: Process the lost UIN application with no data provided role: batch restMethod: post diff --git a/api-test/src/main/resources/preReg/AddUpdateRegistration/AddUpdateRegistration.yml b/api-test/src/main/resources/preReg/AddUpdateRegistration/AddUpdateRegistration.yml index 6acfd17bbad..80266a24f0e 100644 --- a/api-test/src/main/resources/preReg/AddUpdateRegistration/AddUpdateRegistration.yml +++ b/api-test/src/main/resources/preReg/AddUpdateRegistration/AddUpdateRegistration.yml @@ -1,6 +1,7 @@ AddUpdateRegistration: Prereg_AddUpdateRegistration_All_Valid_Smoke_sid: endPoint: /preregistration/v1/applications/updateregistration + uniqueIdentifier: TC_prereg_AddUpdateRegistration_01 description: add an update to the registration with valid data role: batch templateFields: ["langCode"] @@ -20,6 +21,7 @@ AddUpdateRegistration: Prereg_AddUpdateRegistration_inValid_langcode: endPoint: /preregistration/v1/applications/updateregistration + uniqueIdentifier: TC_prereg_AddUpdateRegistration_02 description: add an update to the registration with an invalid data role: batch restMethod: post diff --git a/api-test/src/main/resources/preReg/CancelApplicationsAppointment/CancelApplicationsAppointment.yml b/api-test/src/main/resources/preReg/CancelApplicationsAppointment/CancelApplicationsAppointment.yml index 7fd03826f1c..c01e0c9c191 100644 --- a/api-test/src/main/resources/preReg/CancelApplicationsAppointment/CancelApplicationsAppointment.yml +++ b/api-test/src/main/resources/preReg/CancelApplicationsAppointment/CancelApplicationsAppointment.yml @@ -1,6 +1,7 @@ CancelApplicationsAppointment: Prereg_CancelApplicationsAppointment_All_Valid_Smoke_sid: endPoint: /preregistration/v1/applications/appointment/{preRegistrationId} + uniqueIdentifier: TC_prereg_CancelAppointment_01 description: Canceling appointment for a valid preregistration ID role: batch checkErrorsOnlyInResponse: true @@ -14,6 +15,7 @@ CancelApplicationsAppointment: }' Prereg_CancelApplicationsAppointment_inValid_preRegistrationId_sid: endPoint: /preregistration/v1/applications/appointment/{preRegistrationId} + uniqueIdentifier: TC_prereg_CancelAppointment_02 description: Canceling appointment for an invalid preregistration ID role: batch restMethod: put diff --git a/api-test/src/main/resources/preReg/CancelAppointment/CancelAppointment.yml b/api-test/src/main/resources/preReg/CancelAppointment/CancelAppointment.yml index c26e4a872b1..0c3221b7eca 100644 --- a/api-test/src/main/resources/preReg/CancelAppointment/CancelAppointment.yml +++ b/api-test/src/main/resources/preReg/CancelAppointment/CancelAppointment.yml @@ -1,6 +1,7 @@ CancelAppointment: Prereg_CancelAppointment_All_Valid_Smoke_sid: endPoint: /preregistration/v1/appointment/{preRegistrationId} + uniqueIdentifier: TC_prereg_CancelAppointment_01 description: Cancel appointment for a valid preregistration ID role: batch checkErrorsOnlyInResponse: true @@ -14,6 +15,7 @@ CancelAppointment: }' Prereg_CancelAppointment_with_already_cancelled_appoinment: endPoint: /preregistration/v1/appointment/{preRegistrationId} + uniqueIdentifier: TC_prereg_CancelAppointment_02 description: Canceling an appointment that has already been cancelled role: batch checkErrorsOnlyInResponse: true @@ -32,6 +34,7 @@ CancelAppointment: }' Prereg_CancelAppointment_cancell_incomplete_appoinment: endPoint: /preregistration/v1/appointment/{preRegistrationId} + uniqueIdentifier: TC_prereg_CancelAppointment_03 description: Canceling an appointment with an incomplete appointment data role: batch checkErrorsOnlyInResponse: true @@ -50,6 +53,7 @@ CancelAppointment: }' Prereg_CancelAppointment_inValid_preRegistrationId_sid: endPoint: /preregistration/v1/appointment/{preRegistrationId} + uniqueIdentifier: TC_prereg_CancelAppointment_04 description: Canceling an appointment with an invalid preregistration ID role: batch restMethod: put diff --git a/api-test/src/main/resources/preReg/CopyDocument/CopyDocument.yml b/api-test/src/main/resources/preReg/CopyDocument/CopyDocument.yml index 0d3245c6442..5deefd5788d 100644 --- a/api-test/src/main/resources/preReg/CopyDocument/CopyDocument.yml +++ b/api-test/src/main/resources/preReg/CopyDocument/CopyDocument.yml @@ -1,6 +1,7 @@ CopyDocument: Prereg_CopyDocument_All_Valid_Smoke_sid: endPoint: /preregistration/v1/documents/{preRegistrationId}?catCode={doc_cat_code}&sourcePreId={preRegistrationId} + uniqueIdentifier: TC_prereg_CopyDocument_01 description: Copy the valid Proof of Address (POA) document role: batch restMethod: put @@ -16,6 +17,7 @@ CopyDocument: }' Prereg_CopyDocument_in_Valid_doc_cat_code_sid: endPoint: /preregistration/v1/documents/{preRegistrationId}?catCode={doc_cat_code}&sourcePreId={preRegistrationId} + uniqueIdentifier: TC_prereg_CopyDocument_02 description: Copy the Proof of Address (POA) document with the invalid document category code role: batch restMethod: put @@ -34,6 +36,7 @@ CopyDocument: }' Prereg_CopyDocument_blank_doc_cat_code_sid: endPoint: /preregistration/v1/documents/{preRegistrationId}?catCode={doc_cat_code}&sourcePreId={preRegistrationId} + uniqueIdentifier: TC_prereg_CopyDocument_03 description: Copy the blank document and categorize it with the code role: batch restMethod: put @@ -52,6 +55,7 @@ CopyDocument: }' Prereg_CopyDocument_Invalid_preRegistrationId_sid: endPoint: /preregistration/v1/documents/{preRegistrationId}?catCode={doc_cat_code}&sourcePreId={preRegistrationId} + uniqueIdentifier: TC_prereg_CopyDocument_04 description: Copy the Proof of Address (POA) document with the invalid preregistration ID role: batch restMethod: put diff --git a/api-test/src/main/resources/preReg/DeleteAllDocForaPRID/DeleteAllDocForaPRID.yml b/api-test/src/main/resources/preReg/DeleteAllDocForaPRID/DeleteAllDocForaPRID.yml index 8c5f4bc80f5..82ac241b667 100644 --- a/api-test/src/main/resources/preReg/DeleteAllDocForaPRID/DeleteAllDocForaPRID.yml +++ b/api-test/src/main/resources/preReg/DeleteAllDocForaPRID/DeleteAllDocForaPRID.yml @@ -1,6 +1,7 @@ DeleteAllDocForaPRID: Prereg_DeletePreRegistration_All_Valid_Smoke_sid: endPoint: /preregistration/v1/documents/preregistration/{preRegistrationId} + uniqueIdentifier: TC_prereg_DeleteAllDocForaPRID_01 description: Delete preregistration with all valid preregistration ID role: batch checkErrorsOnlyInResponse: true @@ -14,6 +15,7 @@ DeleteAllDocForaPRID: }' Prereg_DeletePreRegistration_InValid_preRegistrationId_sid: endPoint: /preregistration/v1/documents/preregistration/{preRegistrationId} + uniqueIdentifier: TC_prereg_DeleteAllDocForaPRID_02 description: Delete preregistration with an invalid preregisteration ID role: batch restMethod: delete diff --git a/api-test/src/main/resources/preReg/DeleteBooking/DeleteBooking.yml b/api-test/src/main/resources/preReg/DeleteBooking/DeleteBooking.yml index 99c4abde1ef..527cd7fe17e 100644 --- a/api-test/src/main/resources/preReg/DeleteBooking/DeleteBooking.yml +++ b/api-test/src/main/resources/preReg/DeleteBooking/DeleteBooking.yml @@ -1,6 +1,7 @@ DeleteBooking: Prereg_DeleteBooking_All_Valid_Smoke_sid: endPoint: /preregistration/v1/applications/appointment?preRegistrationId={preRegistrationId} + uniqueIdentifier: TC_prereg_DeleteBooking_01 description: Delete bookings for all valid preregistration ID role: batch restMethod: delete diff --git a/api-test/src/main/resources/preReg/DeleteLostUinApplication/DeleteLostUinApplication.yml b/api-test/src/main/resources/preReg/DeleteLostUinApplication/DeleteLostUinApplication.yml index 88b22c85bd8..5770543f205 100644 --- a/api-test/src/main/resources/preReg/DeleteLostUinApplication/DeleteLostUinApplication.yml +++ b/api-test/src/main/resources/preReg/DeleteLostUinApplication/DeleteLostUinApplication.yml @@ -1,6 +1,7 @@ DeleteLostUinApplication: Prereg_DeleteLostUinApplication_All_Valid_Smoke_sid: endPoint: /preregistration/v1/applications/prereg/{applicationId} + uniqueIdentifier: TC_prereg_DeleteLostUinApplication_01 description: Delete the lost UIN application with valid data role: batch checkErrorsOnlyInResponse: true @@ -15,6 +16,7 @@ DeleteLostUinApplication: }' Prereg_DeleteLostUinApplication_after_its_deletion: endPoint: /preregistration/v1/applications/prereg/{applicationId} + uniqueIdentifier: TC_prereg_DeleteLostUinApplication_02 description: Delete the lost UIN application after it has been removed role: batch checkErrorsOnlyInResponse: true @@ -33,6 +35,7 @@ DeleteLostUinApplication: }' Prereg_DeleteLostUinApplication_multiple_application_sid: endPoint: /preregistration/v1/applications/prereg/{applicationId} + uniqueIdentifier: TC_prereg_DeleteLostUinApplication_03 description: Delete the lost UIN application with multiple preregistration IDs for the application role: batch checkErrorsOnlyInResponse: true @@ -47,6 +50,7 @@ DeleteLostUinApplication: }' Prereg_DeleteLostUinApplication_inValid_preRegistrationId_sid: endPoint: /preregistration/v1/applications/prereg/{applicationId} + uniqueIdentifier: TC_prereg_DeleteLostUinApplication_04 description: Delete the lost UIN application with an invalid preregistration ID role: batch restMethod: delete @@ -64,6 +68,7 @@ DeleteLostUinApplication: }' Prereg_DeleteLostUinApplication_random_number_sid: endPoint: /preregistration/v1/applications/prereg/{applicationId} + uniqueIdentifier: TC_prereg_DeleteLostUinApplication_05 description: Delete the lost UIN application with a random number preregistration ID role: batch restMethod: delete diff --git a/api-test/src/main/resources/preReg/DeletePreRegistration/DeletePreRegistration.yml b/api-test/src/main/resources/preReg/DeletePreRegistration/DeletePreRegistration.yml index 5a496023a7d..4d1e375b121 100644 --- a/api-test/src/main/resources/preReg/DeletePreRegistration/DeletePreRegistration.yml +++ b/api-test/src/main/resources/preReg/DeletePreRegistration/DeletePreRegistration.yml @@ -1,6 +1,7 @@ DeletePreRegistration: Prereg_DeletePreRegistration_All_Valid_Smoke_sid: endPoint: /preregistration/v1/applications/prereg/{preRegistrationId} + uniqueIdentifier: TC_prereg_DeletePreRegistration_01 description: Delete the preregistration with a valid preregistration ID role: batch restMethod: delete @@ -14,6 +15,7 @@ DeletePreRegistration: }' Prereg_DeletePreRegistration_inValid_preRegistrationId_sid: endPoint: /preregistration/v1/applications/prereg/{preRegistrationId} + uniqueIdentifier: TC_prereg_DeletePreRegistration_02 description: Delete the preregistration with an invalid preregistration ID role: batch restMethod: delete diff --git a/api-test/src/main/resources/preReg/DeleteSpecificDocForaPRID/DeleteSpecificDocForaPRID.yml b/api-test/src/main/resources/preReg/DeleteSpecificDocForaPRID/DeleteSpecificDocForaPRID.yml index 7b4ff9bc460..6c00c09bb71 100644 --- a/api-test/src/main/resources/preReg/DeleteSpecificDocForaPRID/DeleteSpecificDocForaPRID.yml +++ b/api-test/src/main/resources/preReg/DeleteSpecificDocForaPRID/DeleteSpecificDocForaPRID.yml @@ -1,6 +1,7 @@ DeleteSpecificDocForaPRID: Prereg_DeleteSpecificDocForaPRID_All_Valid_Smoke_sid: endPoint: /preregistration/v1/documents/{documentId}?preRegistrationId={preRegistrationId} + uniqueIdentifier: TC_prereg_DeleteSpecificDocForaPRID_01 description: Delete specific document for a valid PRID role: batch checkErrorsOnlyInResponse: true @@ -16,6 +17,7 @@ DeleteSpecificDocForaPRID: }' Prereg_DeletePreRegistration_inValid_preRegistrationId_sid: endPoint: /preregistration/v1/documents/{documentId}?preRegistrationId={preRegistrationId} + uniqueIdentifier: TC_prereg_DeleteSpecificDocForaPRID_02 description: Delete preregistration with an invalid PRID role: batch restMethod: post @@ -34,6 +36,7 @@ DeleteSpecificDocForaPRID: }' Prereg_DeletePreRegistration_inValid_documentId_sid: endPoint: /preregistration/v1/documents/{documentId}?preRegistrationId={preRegistrationId} + uniqueIdentifier: TC_prereg_DeleteSpecificDocForaPRID_03 description: Delete preregistration with an invalid document ID role: batch restMethod: post diff --git a/api-test/src/main/resources/preReg/FetchApplicationByPrid/FetchApplicationByPrid.yml b/api-test/src/main/resources/preReg/FetchApplicationByPrid/FetchApplicationByPrid.yml index e508d257a66..7e2b6ab70cd 100644 --- a/api-test/src/main/resources/preReg/FetchApplicationByPrid/FetchApplicationByPrid.yml +++ b/api-test/src/main/resources/preReg/FetchApplicationByPrid/FetchApplicationByPrid.yml @@ -1,6 +1,7 @@ FetchApplicationByPrid: Prereg_FetchApplicationByPrid_All_Valid_Smoke_sid: endPoint: /preregistration/v1/applications/prereg/{preRegistrationId} + uniqueIdentifier: TC_prereg_FetchApplicationByPrid_01 description: Fetch demographic details using a valid PRID role: batch restMethod: get @@ -14,6 +15,7 @@ FetchApplicationByPrid: }' Prereg_FetchApplicationByPrid_inValid_preRegistrationId_sid: endPoint: /preregistration/v1/applications/prereg/{preRegistrationId} + uniqueIdentifier: TC_prereg_FetchApplicationByPrid_02 description: Fetch demographic details using an invalid PRID role: batch restMethod: get diff --git a/api-test/src/main/resources/preReg/FetchAppointmentDetailsByPrid/FetchAppointmentDetailsByPrid.yml b/api-test/src/main/resources/preReg/FetchAppointmentDetailsByPrid/FetchAppointmentDetailsByPrid.yml index af5c2bb668d..d5d7d891db5 100644 --- a/api-test/src/main/resources/preReg/FetchAppointmentDetailsByPrid/FetchAppointmentDetailsByPrid.yml +++ b/api-test/src/main/resources/preReg/FetchAppointmentDetailsByPrid/FetchAppointmentDetailsByPrid.yml @@ -1,6 +1,7 @@ FetchAppointmentDetailsByPrid: Prereg_FetchAppointmentDetailsByPrid_All_Valid_Smoke_sid: endPoint: /preregistration/v1/applications/appointment/{preRegistrationId} + uniqueIdentifier: TC_prereg_FetchAppointmentDetailsByPrid_01 description: Fetch appointment details for the preregistration ID role: batch restMethod: get @@ -14,6 +15,7 @@ FetchAppointmentDetailsByPrid: }' Prereg_FetchAppointmentDetailsByPrid_inValid_preRegistrationId_sid: endPoint: /preregistration/v1/applications/appointment/{preRegistrationId} + uniqueIdentifier: TC_prereg_FetchAppointmentDetailsByPrid_02 description: Fetch appointment details for the invalid preregistration ID role: batch restMethod: get diff --git a/api-test/src/main/resources/preReg/FetchAvailabilityData/FetchAvailabilityData.yml b/api-test/src/main/resources/preReg/FetchAvailabilityData/FetchAvailabilityData.yml index 275effbd61d..517b3d6a660 100644 --- a/api-test/src/main/resources/preReg/FetchAvailabilityData/FetchAvailabilityData.yml +++ b/api-test/src/main/resources/preReg/FetchAvailabilityData/FetchAvailabilityData.yml @@ -1,6 +1,7 @@ FetchAvailabilityDataByCenterID: Prereg_FetchAvailabilityDataByCenterID_All_Valid_Smoke_sid: endPoint: /preregistration/v1/applications/appointment/slots/availability/10003 + uniqueIdentifier: TC_prereg_FetchAvailabilityDataByCenterID_01 description: Fetch the available data by center ID role: batch restMethod: get @@ -14,6 +15,7 @@ FetchAvailabilityDataByCenterID: }' Prereg_FetchAvailabilityData_inValid_CenterID_Smoke_sid: endPoint: /preregistration/v1/applications/appointment/slots/availability/{registrationCenterId} + uniqueIdentifier: TC_prereg_FetchAvailabilityDataByCenterID_02 description: Fetch the available data by invalid center ID role: batch restMethod: get diff --git a/api-test/src/main/resources/preReg/GetAllApplications/GetAllApplications.yml b/api-test/src/main/resources/preReg/GetAllApplications/GetAllApplications.yml index acdecaa2318..e0992fd44fb 100644 --- a/api-test/src/main/resources/preReg/GetAllApplications/GetAllApplications.yml +++ b/api-test/src/main/resources/preReg/GetAllApplications/GetAllApplications.yml @@ -1,6 +1,7 @@ GetAllApplications: Prereg_GetAllApplications_All_Valid_Smoke_sid: endPoint: /preregistration/v1/applications + uniqueIdentifier: TC_prereg_GetAllApplications_01 description: Retrieve all applications with valid data role: batch checkErrorsOnlyInResponse: true @@ -14,6 +15,7 @@ GetAllApplications: }' Prereg_GetAllApplications_InValid: endPoint: /preregistration/v1/applications?type={type} + uniqueIdentifier: TC_prereg_GetAllApplications_02 description: Retrieve all applications with invalid data role: batch checkErrorsOnlyInResponse: true @@ -32,6 +34,7 @@ GetAllApplications: }' Prereg_GetAllApplications_InValid_Type: endPoint: /preregistration/v1/applications?type={type} + uniqueIdentifier: TC_prereg_GetAllApplications_03 description: Retrieve all applications with an invalid type role: batch restMethod: get @@ -49,6 +52,7 @@ GetAllApplications: }' Prereg_GetAllApplications_Valid_Type_Smoke_sid: endPoint: /preregistration/v1/applications?type={type} + uniqueIdentifier: TC_prereg_GetAllApplications_04 description: Retrieve all applications with a valid type role: batch checkErrorsOnlyInResponse: true diff --git a/api-test/src/main/resources/preReg/GetAllApplicationsWithapplicationId/GetAllApplicationsWithapplicationId.yml b/api-test/src/main/resources/preReg/GetAllApplicationsWithapplicationId/GetAllApplicationsWithapplicationId.yml index 5060c7b3f0b..eda5b008cc3 100644 --- a/api-test/src/main/resources/preReg/GetAllApplicationsWithapplicationId/GetAllApplicationsWithapplicationId.yml +++ b/api-test/src/main/resources/preReg/GetAllApplicationsWithapplicationId/GetAllApplicationsWithapplicationId.yml @@ -1,6 +1,7 @@ GetAllApplicationsWithapplicationId: Prereg_GetAllApplicationsWithapplicationId_All_Valid_Smoke_sid: endPoint: /preregistration/v1/applications/{applicationId} + uniqueIdentifier: TC_prereg_GetAllApplicationsWithapplicationId_01 description: Retrieve all applications with the application ID role: batch checkErrorsOnlyInResponse: true @@ -14,6 +15,7 @@ GetAllApplicationsWithapplicationId: }' Prereg_GetAllApplicationsWithapplicationId_with_expired: endPoint: /preregistration/v1/applications/{applicationId} + uniqueIdentifier: TC_prereg_GetAllApplicationsWithapplicationId_02 description: Retrieve all applications with the expired application ID role: batch checkErrorsOnlyInResponse: true @@ -27,6 +29,7 @@ GetAllApplicationsWithapplicationId: }' Prereg_GetAllApplicationsWithapplicationId_with_invalid_applicationId: endPoint: /preregistration/v1/applications/{applicationId} + uniqueIdentifier: TC_prereg_GetAllApplicationsWithapplicationId_03 description: Retrieve all applications with an invalid application ID role: batch checkErrorsOnlyInResponse: true diff --git a/api-test/src/main/resources/preReg/GetAllDocForPrId/GetAllDocForPrId.yml b/api-test/src/main/resources/preReg/GetAllDocForPrId/GetAllDocForPrId.yml index 37b8684a484..eb23b681a4d 100644 --- a/api-test/src/main/resources/preReg/GetAllDocForPrId/GetAllDocForPrId.yml +++ b/api-test/src/main/resources/preReg/GetAllDocForPrId/GetAllDocForPrId.yml @@ -1,6 +1,7 @@ GetAllDocForPrId: Prereg_GetAllDocForPrId_All_Valid_Smoke_sid: endPoint: /preregistration/v1/documents/preregistration/{preRegistrationId} + uniqueIdentifier: TC_prereg_UploadDocument_01 description: Retrieve all documents associated with the valid Pre-Registration ID role: batch checkErrorsOnlyInResponse: true @@ -16,6 +17,7 @@ GetAllDocForPrId: }' Prereg_GetAllDocForPrId_inValid_preRegistrationId_sid: endPoint: /preregistration/v1/documents/preregistration/{preRegistrationId} + uniqueIdentifier: TC_prereg_UploadDocument_02 description: Retrieve all documents associated with the invalid Pre-Registration ID role: batch restMethod: get diff --git a/api-test/src/main/resources/preReg/GetAllPreRegApplications/GetAllPreRegApplications.yml b/api-test/src/main/resources/preReg/GetAllPreRegApplications/GetAllPreRegApplications.yml index 80e8d61737e..0868a11ef5d 100644 --- a/api-test/src/main/resources/preReg/GetAllPreRegApplications/GetAllPreRegApplications.yml +++ b/api-test/src/main/resources/preReg/GetAllPreRegApplications/GetAllPreRegApplications.yml @@ -1,6 +1,7 @@ GetAllPreRegApplications: Prereg_GetAllPreRegApplications_All_Valid_Smoke_sid: endPoint: /preregistration/v1/applications + uniqueIdentifier: TC_prereg_GetAllPreRegApplications_01 description: Retrieve all preregistered applications with a valid preregistration ID role: batch checkErrorsOnlyInResponse: true @@ -13,6 +14,7 @@ GetAllPreRegApplications: }' Prereg_GetAllPreRegApplications_LOST_UIN_APPLICATION_sid: endPoint: /preregistration/v1/applications + uniqueIdentifier: TC_prereg_GetAllPreRegApplications_02 description: Retrieve all preregistered applications with a prereg ID associated with the lost UIN application role: batch checkErrorsOnlyInResponse: true @@ -25,6 +27,7 @@ GetAllPreRegApplications: }' Prereg_GetAllPreRegApplications_DELETE_UIN_APPLICATION_sid: endPoint: /preregistration/v1/applications + uniqueIdentifier: TC_prereg_GetAllPreRegApplications_03 description: Retrieve all preregistered applications with a prereg ID associated with a deleted UIN application role: batch checkErrorsOnlyInResponse: true diff --git a/api-test/src/main/resources/preReg/GetApplicationStatusByApplicationID/GetApplicationStatusByApplicationID.yml b/api-test/src/main/resources/preReg/GetApplicationStatusByApplicationID/GetApplicationStatusByApplicationID.yml index 97a4af3955b..f75f4457c1a 100644 --- a/api-test/src/main/resources/preReg/GetApplicationStatusByApplicationID/GetApplicationStatusByApplicationID.yml +++ b/api-test/src/main/resources/preReg/GetApplicationStatusByApplicationID/GetApplicationStatusByApplicationID.yml @@ -1,6 +1,7 @@ GetApplicationStatusByApplicationID: Prereg_GetApplicationStatusByApplicationID_All_Valid_Smoke_sid: endPoint: /preregistration/v1/applications/status/{applicationId} + uniqueIdentifier: TC_prereg_GetApplicationStatusByApplicationID_01 description: Retrieve the application status by application ID role: batch checkErrorsOnlyInResponse: true @@ -15,6 +16,7 @@ GetApplicationStatusByApplicationID: }' Prereg_GetApplicationStatusByApplicationID_InValid_applicationId: endPoint: /preregistration/v1/applications/status/{applicationId} + uniqueIdentifier: TC_prereg_GetApplicationStatusByApplicationID_02 description: Retrieve the application status by invalid application ID role: batch restMethod: get diff --git a/api-test/src/main/resources/preReg/GetApplicationStatusWithPrId/GetApplicationStatusWithPrId.yml b/api-test/src/main/resources/preReg/GetApplicationStatusWithPrId/GetApplicationStatusWithPrId.yml index 01bd3239714..8d2d577b3de 100644 --- a/api-test/src/main/resources/preReg/GetApplicationStatusWithPrId/GetApplicationStatusWithPrId.yml +++ b/api-test/src/main/resources/preReg/GetApplicationStatusWithPrId/GetApplicationStatusWithPrId.yml @@ -1,6 +1,7 @@ GetApplicationStatusWithPrId: Prereg_GetApplicationStatusWithPrId_All_Valid_Smoke_sid: endPoint: /preregistration/v1/applications/prereg/status/{preRegistrationId} + uniqueIdentifier: TC_prereg_GetApplicationStatusWithPrId_01 description: Retrieve the application status using a valid PRID role: batch restMethod: get @@ -14,6 +15,7 @@ GetApplicationStatusWithPrId: }' Prereg_GetApplicationStatusWithPrId_inValid_PRID_sid: endPoint: /preregistration/v1/applications/prereg/status/{preRegistrationId} + uniqueIdentifier: TC_prereg_GetApplicationStatusWithPrId_02 description: Retrieve the application status using an invalid PRID role: batch restMethod: get @@ -31,6 +33,7 @@ GetApplicationStatusWithPrId: }' Prereg_GetApplicationStatusWithPrId_Blank_PRID_sid: endPoint: /preregistration/v1/applications/prereg/status/{preRegistrationId} + uniqueIdentifier: TC_prereg_GetApplicationStatusWithPrId_03 description: Retrieve the application status using an blank PRID role: batch restMethod: get diff --git a/api-test/src/main/resources/preReg/GetApplicationWithPrId/GetApplicationWithPrId.yml b/api-test/src/main/resources/preReg/GetApplicationWithPrId/GetApplicationWithPrId.yml index 49a765cbc1b..7213f680705 100644 --- a/api-test/src/main/resources/preReg/GetApplicationWithPrId/GetApplicationWithPrId.yml +++ b/api-test/src/main/resources/preReg/GetApplicationWithPrId/GetApplicationWithPrId.yml @@ -1,6 +1,7 @@ GetApplicationWithPrId: Prereg_GetApplicationWithPrId_inValid_preRegistrationId: endPoint: /preregistration/v1/applications/{preRegistrationId} + uniqueIdentifier: TC_prereg_GetApplicationWithPrId_01 description: Retrieve application with an invalid pre-registration ID (PRID) role: batch restMethod: get diff --git a/api-test/src/main/resources/preReg/GetAppointmentDetails/GetAppointmentDetails.yml b/api-test/src/main/resources/preReg/GetAppointmentDetails/GetAppointmentDetails.yml index 111e1a2ed8b..15dd54c456a 100644 --- a/api-test/src/main/resources/preReg/GetAppointmentDetails/GetAppointmentDetails.yml +++ b/api-test/src/main/resources/preReg/GetAppointmentDetails/GetAppointmentDetails.yml @@ -1,6 +1,7 @@ GetAppointmentDetails: Prereg_GetAppointmentDetails_BookByPRID_All_Valid_Smoke_sid: endPoint: /preregistration/v1/appointment/{preRegistrationId} + uniqueIdentifier: TC_prereg_GetAppointmentDetails_01 description: Retrieve appointment details booked by a valid PRID role: batch restMethod: get @@ -14,6 +15,7 @@ GetAppointmentDetails: }' Prereg_GetAppointmentDetails_with_cancelled_appoinment: endPoint: /preregistration/v1/appointment/{preRegistrationId} + uniqueIdentifier: TC_prereg_GetAppointmentDetails_02 description: Retrieve appointment details for a cancelled appointment role: batch restMethod: get @@ -27,6 +29,7 @@ GetAppointmentDetails: }' Prereg_GetAppointmentDetails_AllValid_Smoke_sid: endPoint: /preregistration/v1/appointment/{preRegistrationId} + uniqueIdentifier: TC_prereg_GetAppointmentDetails_03 description: Retrieve appointment details for a valid preregistrationID role: batch restMethod: get @@ -41,6 +44,7 @@ GetAppointmentDetails: Prereg_GetAppointmentDetails_inValid_preRegistrationId: endPoint: /preregistration/v1/appointment/{preRegistrationId} + uniqueIdentifier: TC_prereg_GetAppointmentDetails_04 description: Retrieve appointment details for a invalid preregistrationID role: batch restMethod: get @@ -58,6 +62,7 @@ GetAppointmentDetails: }' Prereg_GetAppointmentDetails_empty_space_preRegistrationId: endPoint: /preregistration/v1/appointment/{preRegistrationId} + uniqueIdentifier: TC_prereg_GetAppointmentDetails_05 description: Retrieve appointment details for an empty space preregistration ID role: batch restMethod: get diff --git a/api-test/src/main/resources/preReg/GetAvailableSlotForRegCentreId/GetAvailableSlotForRegCentreId.yml b/api-test/src/main/resources/preReg/GetAvailableSlotForRegCentreId/GetAvailableSlotForRegCentreId.yml index 8f906b254aa..9c813681aed 100644 --- a/api-test/src/main/resources/preReg/GetAvailableSlotForRegCentreId/GetAvailableSlotForRegCentreId.yml +++ b/api-test/src/main/resources/preReg/GetAvailableSlotForRegCentreId/GetAvailableSlotForRegCentreId.yml @@ -1,6 +1,7 @@ GetAvailableSlotForRegCentreId: Prereg_GetAvailableSlotForRegCentreId_All_Valid_Smoke_sid: endPoint: /preregistration/v1/appointment/availability/{registrationCenterId} + uniqueIdentifier: TC_prereg_GetAvailableSlotForRegCentreId_01 description: Retrieve available slots for a valid registration center ID role: batch restMethod: get @@ -14,6 +15,7 @@ GetAvailableSlotForRegCentreId: }' Prereg_GetAvailableSlotForRegCentreId_inValid_registrationCenterId_sid: endPoint: /preregistration/v1/appointment/availability/{registrationCenterId} + uniqueIdentifier: TC_prereg_GetAvailableSlotForRegCentreId_02 description: Retrieve available slots for an invalid registration center ID role: batch restMethod: get @@ -31,6 +33,7 @@ GetAvailableSlotForRegCentreId: }' Prereg_GetAvailableSlotForRegCentreId_Valid_Smoke_sid: endPoint: /preregistration/v1/appointment/availability/{registrationCenterId} + uniqueIdentifier: TC_prereg_GetAvailableSlotForRegCentreId_03 description: Retrieve available slots for a valid registration center ID role: batch restMethod: get diff --git a/api-test/src/main/resources/preReg/GetBookingsForRegCenter/GetBookingsForRegCenter.yml b/api-test/src/main/resources/preReg/GetBookingsForRegCenter/GetBookingsForRegCenter.yml index 8461fb03196..c3e2e3de9fc 100644 --- a/api-test/src/main/resources/preReg/GetBookingsForRegCenter/GetBookingsForRegCenter.yml +++ b/api-test/src/main/resources/preReg/GetBookingsForRegCenter/GetBookingsForRegCenter.yml @@ -1,6 +1,7 @@ GetBookingsForRegCenter: Prereg_GetBookingsForRegCenter_All_Valid_Smoke_sid: - endPoint: /preregistration/v1/applications/bookings/{regCenterId}?from_date=2020-10-01&to_date=2034-10-13 + endPoint: /preregistration/v1/applications/bookings/{regCenterId}?appointmentDate=2020-10-01&appointmentToDate=2034-10-13 + uniqueIdentifier: TC_prereg_GetBookingsForRegCenter_01 description: Retrieve booking for a valid registration center ID role: batch restMethod: get @@ -14,6 +15,7 @@ GetBookingsForRegCenter: }' Prereg_GetBookingsForRegCenter_with_InValid_date_format: endPoint: /preregistration/v1/applications/bookings/{regCenterId}?from_date=2020-45461&to_date=2034-10-13 + uniqueIdentifier: TC_prereg_GetBookingsForRegCenter_02 description: Retrieve booking for a registration center with an invalid date format role: batch restMethod: get @@ -30,7 +32,8 @@ GetBookingsForRegCenter: ] }' Prereg_GetBookingsForRegCenter_with_InValid_regcenter: - endPoint: /preregistration/v1/applications/bookings/{regCenterId}?from_date=2020-10-01&to_date=2034-10-13 + endPoint: /preregistration/v1/applications/bookings/{regCenterId}?appointmentDate=2020-10-01&appointmentToDate=2034-10-13 + uniqueIdentifier: TC_prereg_GetBookingsForRegCenter_03 description: Retrieve booking for a registration center with an invalid registration center ID role: batch restMethod: get @@ -47,7 +50,8 @@ GetBookingsForRegCenter: ] }' Prereg_GetBookingsForRegCenter_with_InValid_regcenter_invalidDate: - endPoint: /preregistration/v1/applications/bookings/{regCenterId}?from_date=20204555&to_date=2034-10-13 + endPoint: /preregistration/v1/applications/bookings/{regCenterId}?appointmentDate=20204y464tg1&appointmentToDate=2034-10-13 + uniqueIdentifier: TC_prereg_GetBookingsForRegCenter_04 description: Retrieve booking for a registration center with an invalid registration center ID and an invalid date role: batch restMethod: get diff --git a/api-test/src/main/resources/preReg/GetPRIDByDateRange/GetPRIDByDateRange.yml b/api-test/src/main/resources/preReg/GetPRIDByDateRange/GetPRIDByDateRange.yml index a4225419839..c7881763655 100644 --- a/api-test/src/main/resources/preReg/GetPRIDByDateRange/GetPRIDByDateRange.yml +++ b/api-test/src/main/resources/preReg/GetPRIDByDateRange/GetPRIDByDateRange.yml @@ -1,6 +1,7 @@ GetPRIDByDateRange: Prereg_GetPRIDByDateRange_All_Valid_Smoke_sid: endPoint: /preregistration/v1/sync + uniqueIdentifier: TC_prereg_GetPRIDByDateRange_01 description: Retrieve the PRID within the given date range role: regproc checkErrorsOnlyInResponse: true @@ -20,6 +21,7 @@ GetPRIDByDateRange: }' Prereg_GetPRIDByDateRange_inValid_id: endPoint: /preregistration/v1/sync + uniqueIdentifier: TC_prereg_GetPRIDByDateRange_02 description: Retrieve the PRID within the specified date range for the Invalid ID role: regproc restMethod: post @@ -42,6 +44,7 @@ GetPRIDByDateRange: }' Prereg_GetPRIDByDateRange_blank_id: endPoint: /preregistration/v1/sync + uniqueIdentifier: TC_prereg_GetPRIDByDateRange_03 description: Retrieve the PRID within the specified date range for the blank ID role: regproc restMethod: post @@ -64,6 +67,7 @@ GetPRIDByDateRange: }' Prereg_GetPRIDByDateRange_missing_id: endPoint: /preregistration/v1/sync + uniqueIdentifier: TC_prereg_GetPRIDByDateRange_04 description: Retrieve the PRID within the specified date range for the missing ID role: regproc restMethod: post @@ -86,6 +90,7 @@ GetPRIDByDateRange: }' Prereg_GetPRIDByDateRange_invalid_version: endPoint: /preregistration/v1/sync + uniqueIdentifier: TC_prereg_GetPRIDByDateRange_05 description: Retrieve the PRID within the specified date range for the invalid version role: regproc restMethod: post @@ -108,6 +113,7 @@ GetPRIDByDateRange: }' Prereg_GetPRIDByDateRange_missing_version: endPoint: /preregistration/v1/sync + uniqueIdentifier: TC_prereg_GetPRIDByDateRange_06 description: Retrieve the PRID within the specified date range for the missing version role: regproc restMethod: post @@ -130,6 +136,7 @@ GetPRIDByDateRange: }' Prereg_GetPRIDByDateRange_blank_version: endPoint: /preregistration/v1/sync + uniqueIdentifier: TC_prereg_GetPRIDByDateRange_07 description: Retrieve the PRID within the specified date range for the blank version role: regproc restMethod: post @@ -152,6 +159,7 @@ GetPRIDByDateRange: }' Prereg_GetPRIDByDateRange_blank_requesttime: endPoint: /preregistration/v1/sync + uniqueIdentifier: TC_prereg_GetPRIDByDateRange_08 description: Retrieve the PRID within the specified date range for the request time that is blank role: regproc restMethod: post @@ -174,6 +182,7 @@ GetPRIDByDateRange: }' Prereg_GetPRIDByDateRange_missing_requesttime: endPoint: /preregistration/v1/sync + uniqueIdentifier: TC_prereg_GetPRIDByDateRange_09 description: Retrieve the PRID within the specified date range for the missing request time role: regproc restMethod: post @@ -196,6 +205,7 @@ GetPRIDByDateRange: }' Prereg_GetPRIDByDateRange_Invalid_requesttime: endPoint: /preregistration/v1/sync + uniqueIdentifier: TC_prereg_GetPRIDByDateRange_10 description: Retrieve the PRID within the specified date range for the invalid request time role: regproc restMethod: post @@ -218,6 +228,7 @@ GetPRIDByDateRange: }' Prereg_GetPRIDByDateRange_Invalid_registrationCenterId: endPoint: /preregistration/v1/sync + uniqueIdentifier: TC_prereg_GetPRIDByDateRange_11 description: Retrieve the PRID within the specified date range for the invalid registration center ID role: regproc restMethod: post @@ -240,6 +251,7 @@ GetPRIDByDateRange: }' Prereg_GetPRIDByDateRange_blank_registrationCenterId: endPoint: /preregistration/v1/sync + uniqueIdentifier: TC_prereg_GetPRIDByDateRange_12 description: Retrieve the PRID within the specified date range for the blank registration center ID role: regproc restMethod: post @@ -262,6 +274,7 @@ GetPRIDByDateRange: }' Prereg_GetPRIDByDateRange_missing_registrationCenterId: endPoint: /preregistration/v1/sync + uniqueIdentifier: TC_prereg_GetPRIDByDateRange_13 description: Retrieve the PRID within the specified date range for the missing registration center ID role: regproc restMethod: post @@ -284,6 +297,7 @@ GetPRIDByDateRange: }' Prereg_GetPRIDByDateRange_missing_fromDate: endPoint: /preregistration/v1/sync + uniqueIdentifier: TC_prereg_GetPRIDByDateRange_14 description: Retrieve the PRID within the specified date range where the fromDate is missing role: regproc restMethod: post @@ -306,6 +320,7 @@ GetPRIDByDateRange: }' Prereg_GetPRIDByDateRange_Invalid_fromDate: endPoint: /preregistration/v1/sync + uniqueIdentifier: TC_prereg_GetPRIDByDateRange_15 description: Retrieve the PRID within the specified date range where the fromDate is missing role: regproc restMethod: post @@ -328,6 +343,7 @@ GetPRIDByDateRange: }' Prereg_GetPRIDByDateRange_blank_fromDate: endPoint: /preregistration/v1/sync + uniqueIdentifier: TC_prereg_GetPRIDByDateRange_16 description: Retrieve the PRID within the specified date range where the fromDate field is blank role: regproc restMethod: post @@ -350,6 +366,7 @@ GetPRIDByDateRange: }' Prereg_GetPRIDByDateRange_blank_toDate: endPoint: /preregistration/v1/sync + uniqueIdentifier: TC_prereg_GetPRIDByDateRange_17 description: Retrieve the PRID within the specified date range where the toDate field is blank role: regproc restMethod: post @@ -372,6 +389,7 @@ GetPRIDByDateRange: }' Prereg_GetPRIDByDateRange_missing_toDate: endPoint: /preregistration/v1/sync + uniqueIdentifier: TC_prereg_GetPRIDByDateRange_18 description: Retrieve the PRID within the specified date range where the toDate field is missing role: regproc restMethod: post @@ -394,6 +412,7 @@ GetPRIDByDateRange: }' Prereg_GetPRIDByDateRange_Invalid_toDate: endPoint: /preregistration/v1/sync + uniqueIdentifier: TC_prereg_GetPRIDByDateRange_19 description: Retrieve the PRID within the specified date range where the 'toDate' field is invalid role: regproc restMethod: post diff --git a/api-test/src/main/resources/preReg/GetPRIDForRegCent/GetPRIDForRegCent.yml b/api-test/src/main/resources/preReg/GetPRIDForRegCent/GetPRIDForRegCent.yml index 125887e0b5f..904fcfcec4c 100644 --- a/api-test/src/main/resources/preReg/GetPRIDForRegCent/GetPRIDForRegCent.yml +++ b/api-test/src/main/resources/preReg/GetPRIDForRegCent/GetPRIDForRegCent.yml @@ -1,6 +1,7 @@ GetPRIDForRegCent: Prereg_GetPRIDForRegCent_All_Valid_Smoke_sid: endPoint: /preregistration/v1/appointment/preRegistrationId/{registrationCenterId}?from_date=2020-10-01&to_date=2034-10-13 + uniqueIdentifier: TC_prereg_GetPRIDForRegCent_01 description: Retrieve PRID for a valid registration center ID role: batch restMethod: get @@ -14,6 +15,7 @@ GetPRIDForRegCent: }' Prereg_GetPRIDForRegCent_inValid_registrationCenterId_sid: endPoint: /preregistration/v1/appointment/preRegistrationId/{registrationCenterId}?from_date=2020-10-01&to_date=2021-10-13 + uniqueIdentifier: TC_prereg_GetPRIDForRegCent_02 description: Retrieve PRID for an invalid registration center ID role: batch restMethod: get diff --git a/api-test/src/main/resources/preReg/GetPreRegDemographicDataByPrid/GetPreRegDemographicDataByPrid.yml b/api-test/src/main/resources/preReg/GetPreRegDemographicDataByPrid/GetPreRegDemographicDataByPrid.yml index 49bd14ccb99..0afc7bf4abf 100644 --- a/api-test/src/main/resources/preReg/GetPreRegDemographicDataByPrid/GetPreRegDemographicDataByPrid.yml +++ b/api-test/src/main/resources/preReg/GetPreRegDemographicDataByPrid/GetPreRegDemographicDataByPrid.yml @@ -1,6 +1,7 @@ GetPreRegDemographicDataByPrid: Prereg_GetPreRegDemographicDataByPrid_Valid_preRegistrationId: endPoint: /preregistration/v1/applications/prereg/{preRegistrationId} + uniqueIdentifier: TC_prereg_GetPreRegDemographicDataByPrid_01 description: Retrieve the PreReg demographic data by PRID role: batch restMethod: get @@ -18,6 +19,7 @@ GetPreRegDemographicDataByPrid: }' Prereg_GetPreRegDemographicDataByPrid_inValid_preRegistrationId: endPoint: /preregistration/v1/applications/prereg/info/{preRegistrationId} + uniqueIdentifier: TC_prereg_GetPreRegDemographicDataByPrid_02 description: Retrieve the PreReg demographic data by invalid PRID role: batch restMethod: get diff --git a/api-test/src/main/resources/preReg/GetPreRegInfoByPrid/GetPreRegInfoByPrid.yml b/api-test/src/main/resources/preReg/GetPreRegInfoByPrid/GetPreRegInfoByPrid.yml index fd7d9319d33..56e76215069 100644 --- a/api-test/src/main/resources/preReg/GetPreRegInfoByPrid/GetPreRegInfoByPrid.yml +++ b/api-test/src/main/resources/preReg/GetPreRegInfoByPrid/GetPreRegInfoByPrid.yml @@ -1,6 +1,7 @@ GetPreRegInfoByPrid: Prereg_GetPreRegInfoByPrid_Valid_preRegistrationId: endPoint: /preregistration/v1/applications/prereg/info/{preRegistrationId} + uniqueIdentifier: TC_prereg_GetPreRegInfoByPrid_01 description: Retrieve preregistration information using the preReg Id with a valid preRegistrationId role: batch restMethod: get @@ -18,6 +19,7 @@ GetPreRegInfoByPrid: Prereg_GetPreRegInfoByPrid_inValid_preRegistrationId: endPoint: /preregistration/v1/applications/prereg/info/{preRegistrationId} + uniqueIdentifier: TC_prereg_GetPreRegInfoByPrid_02 description: Retrieve preregistration information using the preReg Id with an invalid preRegistrationId role: batch restMethod: get diff --git a/api-test/src/main/resources/preReg/GetSpecificDocumentforaPRID/GetSpecificDocumentforaPRID.yml b/api-test/src/main/resources/preReg/GetSpecificDocumentforaPRID/GetSpecificDocumentforaPRID.yml index df74af9566e..dc0a6352a20 100644 --- a/api-test/src/main/resources/preReg/GetSpecificDocumentforaPRID/GetSpecificDocumentforaPRID.yml +++ b/api-test/src/main/resources/preReg/GetSpecificDocumentforaPRID/GetSpecificDocumentforaPRID.yml @@ -1,6 +1,7 @@ GetSpecificDocumentforaPRID: Prereg_GetSpecificDocumentforaPRID_All_Valid_Smoke_sid: endPoint: /preregistration/v1/documents/{documentId}?preRegistrationId={preRegistrationId} + uniqueIdentifier: TC_prereg_GetSpecificDocumentforaPRID_01 description: Retrieve the specific document with a valid preregistration ID role: batch checkErrorsOnlyInResponse: true @@ -16,6 +17,7 @@ GetSpecificDocumentforaPRID: }' Prereg_GetSpecificDocumentforaPRID_inValid_preRegistrationId_sid: endPoint: /preregistration/v1/documents/{documentId}?preRegistrationId={preRegistrationId} + uniqueIdentifier: TC_prereg_GetSpecificDocumentforaPRID_02 description: Retrieve the specific document with an invalid preregistration ID role: batch restMethod: get @@ -34,6 +36,7 @@ GetSpecificDocumentforaPRID: }' Prereg_GetSpecificDocumentforaPRID_inValid_documentId_sid: endPoint: /preregistration/v1/documents/{documentId}?preRegistrationId={preRegistrationId} + uniqueIdentifier: TC_prereg_GetSpecificDocumentforaPRID_03 description: Retrieve the specific document with an invalid document ID role: batch restMethod: get diff --git a/api-test/src/main/resources/preReg/GetUpdatedDateTimeByPrid/GetUpdatedDateTimeByPrid.yml b/api-test/src/main/resources/preReg/GetUpdatedDateTimeByPrid/GetUpdatedDateTimeByPrid.yml index b2f049f63ee..f929a29acdd 100644 --- a/api-test/src/main/resources/preReg/GetUpdatedDateTimeByPrid/GetUpdatedDateTimeByPrid.yml +++ b/api-test/src/main/resources/preReg/GetUpdatedDateTimeByPrid/GetUpdatedDateTimeByPrid.yml @@ -1,6 +1,7 @@ GetUpdatedDateTimeByPrid: Prereg_GetUpdatedDateTimeByPrid_All_Valid_Smoke_sid: endPoint: /preregistration/v1/applications/prereg/updatedTime + uniqueIdentifier: TC_prereg_GetUpdatedDateTimeByPrid_01 description: Retrieve all applications with the application ID using valid data role: batch checkErrorsOnlyInResponse: true @@ -28,6 +29,7 @@ GetUpdatedDateTimeByPrid: }' Prereg_GetUpdatedDateTimeByPrid_InValid_ID: endPoint: /preregistration/v1/applications/prereg/updatedTime + uniqueIdentifier: TC_prereg_GetUpdatedDateTimeByPrid_02 description: Retrieve all applications with the application ID using invalid ID role: batch restMethod: post diff --git a/api-test/src/main/resources/preReg/InvalidateToken/InvalidateToken.yml b/api-test/src/main/resources/preReg/InvalidateToken/InvalidateToken.yml index 4c2289efe08..6a280e89798 100644 --- a/api-test/src/main/resources/preReg/InvalidateToken/InvalidateToken.yml +++ b/api-test/src/main/resources/preReg/InvalidateToken/InvalidateToken.yml @@ -1,6 +1,7 @@ InvalidateToken: Prereg_InvalidateToken_All_Valid_Smoke_sid: endPoint: /preregistration/v1/login/invalidateToken + uniqueIdentifier: TC_prereg_InvalidateToken_01 description: Invalidate token using valid data role: batch restMethod: post diff --git a/api-test/src/main/resources/preReg/SendNotifications/SendNotifications.yml b/api-test/src/main/resources/preReg/SendNotifications/SendNotifications.yml index fb1ac060fef..7f7d358014e 100644 --- a/api-test/src/main/resources/preReg/SendNotifications/SendNotifications.yml +++ b/api-test/src/main/resources/preReg/SendNotifications/SendNotifications.yml @@ -1,7 +1,8 @@ SendNotifications: Prereg_SendNotifications_All_Valid_Smoke: - description: Trigger notification with valid data endPoint: /preregistration/v1/notification/notify + uniqueIdentifier: TC_prereg_SendNotifications_01 + description: Trigger notification with valid data role: batch checkErrorsOnlyInResponse: true restMethod: post @@ -23,6 +24,7 @@ SendNotifications: }' Prereg_SendNotifications_Notify_All_Valid_Smoke: endPoint: /preregistration/v1/notification/notify + uniqueIdentifier: TC_prereg_SendNotifications_02 description: Trigger notification to notify with valid data role: batch checkErrorsOnlyInResponse: true @@ -45,6 +47,7 @@ SendNotifications: }' Prereg_SendNotifications_InValid_id: endPoint: /preregistration/v1/notification + uniqueIdentifier: TC_prereg_SendNotifications_03 description: Trigger notification with an invalid ID role: batch restMethod: post @@ -72,6 +75,7 @@ SendNotifications: }' Prereg_SendNotifications_InValid_preRegId: endPoint: /preregistration/v1/notification + uniqueIdentifier: TC_prereg_SendNotifications_04 description: Trigger notification with an invalid pre-registration ID role: batch restMethod: post diff --git a/api-test/src/main/resources/preReg/SendOtp/SendOtp.yml b/api-test/src/main/resources/preReg/SendOtp/SendOtp.yml index 353e2fe8e75..8f946b5c260 100644 --- a/api-test/src/main/resources/preReg/SendOtp/SendOtp.yml +++ b/api-test/src/main/resources/preReg/SendOtp/SendOtp.yml @@ -1,6 +1,7 @@ SendOtp: Prereg_SendOtp_All_Valid_Smoke_Phone_sid: endPoint: /preregistration/v1/login/sendOtp/langcode + uniqueIdentifier: TC_prereg_SendOtp_01 description: Send OTP with a valid phone number on the phone channel role: batch restMethod: post @@ -18,6 +19,7 @@ SendOtp: Prereg_SendOtp_Invalid_Phone_Neg: endPoint: /preregistration/v1/login/sendOtp/langcode + uniqueIdentifier: TC_prereg_SendOtp_02 description: Send OTP by providing an invalid phone number on the phone channel side role: batch restMethod: post @@ -39,6 +41,7 @@ SendOtp: Prereg_SendOtp_MISSING_Phone_Neg: endPoint: /preregistration/v1/login/sendOtp/langcode + uniqueIdentifier: TC_prereg_SendOtp_03 description: Sent OTP without a phone number role: batch restMethod: post @@ -60,6 +63,7 @@ SendOtp: Prereg_SendOtp_SpacialCharacter_Val_Phone_Neg: endPoint: /preregistration/v1/login/sendOtp/langcode + uniqueIdentifier: TC_prereg_SendOtp_04 description: Sent OTP with special characters through the phone channel role: batch restMethod: post @@ -81,6 +85,7 @@ SendOtp: Prereg_SendOtp_All_Valid_Smoke_email_sid: endPoint: /preregistration/v1/login/sendOtp/langcode + uniqueIdentifier: TC_prereg_SendOtp_05 description: Send OTP using a valid email address through the email channel role: batch restMethod: post @@ -98,6 +103,7 @@ SendOtp: Prereg_SendOtp_Invalid__email_Neg: endPoint: /preregistration/v1/login/sendOtp/langcode + uniqueIdentifier: TC_prereg_SendOtp_06 description: Send OTP using an invalid email address via the email channel role: batch restMethod: post @@ -119,6 +125,7 @@ SendOtp: Prereg_SendOtp_Missing_email_Neg: endPoint: /preregistration/v1/login/sendOtp/langcode + uniqueIdentifier: TC_prereg_SendOtp_07 description: Sent OTP without an email address via the email channel role: batch restMethod: post @@ -140,6 +147,7 @@ SendOtp: Prereg_SendOtp_SpacialCharacter_email_Neg: endPoint: /preregistration/v1/login/sendOtp/langcode + uniqueIdentifier: TC_prereg_SendOtp_08 description: Sent OTP with special characters through the email channel role: batch restMethod: post @@ -160,6 +168,8 @@ SendOtp: }' Prereg_SendOtp_All_Valid_Smoke_Phone_sid: endPoint: /preregistration/v1/login/sendOtp/langcode + uniqueIdentifier: TC_prereg_SendOtp_09 + description: Send OTP with a valid phone number on the phone channel role: batch restMethod: post inputTemplate: preReg/SendOtp/sendotp @@ -175,6 +185,8 @@ SendOtp: }' Prereg_SendOtp_All_Valid_Smoke_email_sid: endPoint: /preregistration/v1/login/sendOtp/langcode + uniqueIdentifier: TC_prereg_SendOtp_10 + description: Send OTP with a valid phone number on the phone channel role: batch restMethod: post inputTemplate: preReg/SendOtp/sendotp diff --git a/api-test/src/main/resources/preReg/Transliteration/Translate.yml b/api-test/src/main/resources/preReg/Transliteration/Translate.yml index 5208a0c1b52..cb4e18ff9f2 100644 --- a/api-test/src/main/resources/preReg/Transliteration/Translate.yml +++ b/api-test/src/main/resources/preReg/Transliteration/Translate.yml @@ -1,6 +1,7 @@ Transliteration: Prereg_Transliteration_All_Valid_Smoke_sid: endPoint: /preregistration/v1/transliteration/transliterate + uniqueIdentifier: TC_prereg_Transliteration_01 description: Retrieve the preregistration data using valid transliteration role: batch restMethod: post @@ -23,6 +24,7 @@ Transliteration: }' Prereg_Transliteration_inValid_tofieldlang: endPoint: /preregistration/v1/transliteration/transliterate + uniqueIdentifier: TC_prereg_Transliteration_02 description: Retrieve the transliteration data for an invalid to-field language role: batch restMethod: post @@ -46,6 +48,7 @@ Transliteration: }' Prereg_Transliteration_inValid_fromfieldlang: endPoint: /preregistration/v1/transliteration/transliterate + uniqueIdentifier: TC_prereg_Transliteration_03 description: Retrieve the Transliteration data for an invalid 'to-field' language role: batch restMethod: post diff --git a/api-test/src/main/resources/preReg/UpdateDocRefID/UpdateDocRefID.yml b/api-test/src/main/resources/preReg/UpdateDocRefID/UpdateDocRefID.yml index 97405bd4855..09f9c971bcf 100644 --- a/api-test/src/main/resources/preReg/UpdateDocRefID/UpdateDocRefID.yml +++ b/api-test/src/main/resources/preReg/UpdateDocRefID/UpdateDocRefID.yml @@ -1,6 +1,7 @@ UpdateDocRefID: Prereg_UpdateDocRefID_All_Valid_Smoke_POA_sid: endPoint: /preregistration/v1/documents/document/{documentId}?preRegistrationId={preRegistrationId}&refNumber={refNumber} + uniqueIdentifier: TC_prereg_UpdateDocRefID_01 description: Update the document reference ID for the valid Proof of Address (POA) role: batch checkErrorsOnlyInResponse: true @@ -16,6 +17,7 @@ UpdateDocRefID: }' Prereg_UpdateDocRefID_All_Valid_Smoke_POI_sid: endPoint: /preregistration/v1/documents/document/{documentId}?preRegistrationId={preRegistrationId}&refNumber={refNumber} + uniqueIdentifier: TC_prereg_UpdateDocRefID_02 description: Update the document reference ID for the valid Proof of Identity (POI) role: batch checkErrorsOnlyInResponse: true @@ -31,6 +33,7 @@ UpdateDocRefID: }' Prereg_UpdateDocRefID_All_Valid_Smoke_POB_sid: endPoint: /preregistration/v1/documents/document/{documentId}?preRegistrationId={preRegistrationId}&refNumber={refNumber} + uniqueIdentifier: TC_prereg_UpdateDocRefID_03 description: Update the document reference ID for the valid Proof of Date of Birth (POB) role: batch checkErrorsOnlyInResponse: true @@ -46,6 +49,7 @@ UpdateDocRefID: }' Prereg_UpdateDocRefID_All_Valid_Smoke_POR_sid: endPoint: /preregistration/v1/documents/document/{documentId}?preRegistrationId={preRegistrationId}&refNumber={refNumber} + uniqueIdentifier: TC_prereg_UpdateDocRefID_04 description: Update the document reference ID for the valid Proof of Residence (POR) role: batch checkErrorsOnlyInResponse: true @@ -61,6 +65,7 @@ UpdateDocRefID: }' Prereg_UpdateDocRefID_inValid_documentId: endPoint: /preregistration/v1/documents/document/{documentId}?preRegistrationId={preRegistrationId}&refNumber={refNumber} + uniqueIdentifier: TC_prereg_UpdateDocRefID_05 description: Update the document reference ID for the invalid document ID role: batch restMethod: put @@ -81,6 +86,7 @@ UpdateDocRefID: Prereg_UpdateDocRefID_All_SpatialCharacter_RefNum_Neg: endPoint: /preregistration/v1/documents/document/{documentId}?preRegistrationId={preRegistrationId}&refNumber={refNumber} + uniqueIdentifier: TC_prereg_UpdateDocRefID_06 description: Update the document reference ID with the special character and reference number role: batch checkErrorsOnlyInResponse: true @@ -102,6 +108,7 @@ UpdateDocRefID: Prereg_UpdateDocRefID_Exceeding_Limit_RefNum_Neg: endPoint: /preregistration/v1/documents/document/{documentId}?preRegistrationId={preRegistrationId}&refNumber={refNumber} + uniqueIdentifier: TC_prereg_UpdateDocRefID_07 description: Update the document reference ID with an exceeding limit and reference number role: batch checkErrorsOnlyInResponse: true diff --git a/api-test/src/main/resources/preReg/UpdatePreRegStatus/updatePreRegStatus.yml b/api-test/src/main/resources/preReg/UpdatePreRegStatus/updatePreRegStatus.yml index 53eaf31dd46..e9329a26014 100644 --- a/api-test/src/main/resources/preReg/UpdatePreRegStatus/updatePreRegStatus.yml +++ b/api-test/src/main/resources/preReg/UpdatePreRegStatus/updatePreRegStatus.yml @@ -1,6 +1,7 @@ UpdatePreRegStatus: Prereg_UpdatePreRegStatus_All_Valid_Smoke_sid: endPoint: /preregistration/v1/applications/prereg/status/{preRegistrationId}?statusCode={statusCode} + uniqueIdentifier: TC_prereg_UpdatePreRegStatus_01 description: Update the status of an application to 'Pending Appointment' using the prereg ID and status code role: batch checkErrorsOnlyInResponse: true @@ -15,6 +16,7 @@ UpdatePreRegStatus: }' Prereg_UpdatePreRegStatus_for_expired_testcase_sid: endPoint: /preregistration/v1/applications/prereg/status/{preRegistrationId}?statusCode={statusCode} + uniqueIdentifier: TC_prereg_UpdatePreRegStatus_02 description: Update the status of the expired test case application using the prereg ID and status code role: batch checkErrorsOnlyInResponse: true @@ -29,6 +31,7 @@ UpdatePreRegStatus: }' Prereg_UpdatePreRegStatus_All_Valid_Smoke_BookByPRID_sid: endPoint: /preregistration/v1/applications/prereg/status/{preRegistrationId}?statusCode={statusCode} + uniqueIdentifier: TC_prereg_UpdatePreRegStatus_03 description: Update the status for a valid booking using the PRID (Preregistration ID) role: batch checkErrorsOnlyInResponse: true @@ -43,6 +46,7 @@ UpdatePreRegStatus: }' Prereg_UpdatePreRegStatus_Valid_Smoke_sid: endPoint: /preregistration/v1/applications/prereg/status/{preRegistrationId}?statusCode={statusCode} + uniqueIdentifier: TC_prereg_UpdatePreRegStatus_04 description: Update the application status to 'Pending Appointment' using the prereg ID and status code role: batch checkErrorsOnlyInResponse: true @@ -57,6 +61,7 @@ UpdatePreRegStatus: }' Prereg_UpdatePreRegStatus_CA_Valid_Smoke_sid: endPoint: /preregistration/v1/applications/prereg/status/{preRegistrationId}?statusCode={statusCode} + uniqueIdentifier: TC_prereg_UpdatePreRegStatus_05 description: Update the status of an application to'Pending Appointment'for canceling using the prereg ID and status code role: batch checkErrorsOnlyInResponse: true @@ -71,6 +76,7 @@ UpdatePreRegStatus: }' Prereg_UpdatePreRegStatus_Smoke_alldel_sid: endPoint: /preregistration/v1/applications/prereg/status/{preRegistrationId}?statusCode={statusCode} + uniqueIdentifier: TC_prereg_UpdatePreRegStatus_06 description: Update the status of an application to 'pending Appointment' for deleted the prereg ID and status code role: batch checkErrorsOnlyInResponse: true @@ -85,6 +91,7 @@ UpdatePreRegStatus: }' Prereg_UpdatePreRegStatus_Smoke_CancellAppointment_sid: endPoint: /preregistration/v1/applications/prereg/status/{preRegistrationId}?statusCode={statusCode} + uniqueIdentifier: TC_prereg_UpdatePreRegStatus_07 description: Update the status of an application to 'cancell Appointment' using the preregistration ID and status code role: batch checkErrorsOnlyInResponse: true @@ -99,6 +106,7 @@ UpdatePreRegStatus: }' Prereg_UpdatePreRegStatus_Smoke_CancelApplicationsAppointment_sid: endPoint: /preregistration/v1/applications/prereg/status/{preRegistrationId}?statusCode={statusCode} + uniqueIdentifier: TC_prereg_UpdatePreRegStatus_08 description: Update the status of an application to'cancell application Appointment'using the prereg ID and status code role: batch checkErrorsOnlyInResponse: true @@ -113,6 +121,7 @@ UpdatePreRegStatus: }' Prereg_UpdatePreRegStatus_without_update_prereg_status_sid: endPoint: /preregistration/v1/applications/prereg/status/{preRegistrationId}?statusCode={statusCode} + uniqueIdentifier: TC_prereg_UpdatePreRegStatus_09 description: Update the application status without modifying the preregistration status role: batch checkErrorsOnlyInResponse: true diff --git a/api-test/src/main/resources/preReg/UpdatePreregistration/UpdatePreregistration.yml b/api-test/src/main/resources/preReg/UpdatePreregistration/UpdatePreregistration.yml index cb7e3534b63..daa1867b96b 100644 --- a/api-test/src/main/resources/preReg/UpdatePreregistration/UpdatePreregistration.yml +++ b/api-test/src/main/resources/preReg/UpdatePreregistration/UpdatePreregistration.yml @@ -1,6 +1,7 @@ UpdatePreregistration: Prereg_UpdatePrereg_All_Valid_Smoke_sid: endPoint: /preregistration/v1/applications/prereg/{preRegistrationId} + uniqueIdentifier: TC_prereg_UpdatePreregistration_01 description: Update demographic data for a new preregistration application role: batch restMethod: put @@ -23,6 +24,7 @@ UpdatePreregistration: }' Prereg_UpdatePrereg_All_Valid_Smoke_BookByPRID_sid: endPoint: /preregistration/v1/applications/prereg/{preRegistrationId} + uniqueIdentifier: TC_prereg_UpdatePreregistration_02 description: Update the demographic data for booking an appointment with the new PRID role: batch restMethod: put @@ -45,6 +47,7 @@ UpdatePreregistration: }' Prereg_UpdatePrereg_inValid_dateOfBirth_sid: endPoint: /preregistration/v1/applications/prereg/{preRegistrationId} + uniqueIdentifier: TC_prereg_UpdatePreregistration_03 description: Update the demographic data with an invalid date of birth role: batch restMethod: put @@ -71,6 +74,7 @@ UpdatePreregistration: }' Prereg_UpdatePrereg_missing_Version_sid: endPoint: /preregistration/v1/applications/prereg/{preRegistrationId} + uniqueIdentifier: TC_prereg_UpdatePreregistration_04 description: Update the demographic data with a missing version number role: batch restMethod: put @@ -97,6 +101,7 @@ UpdatePreregistration: }' Prereg_UpdatePrereg_invalid_Version_sid: endPoint: /preregistration/v1/applications/prereg/{preRegistrationId} + uniqueIdentifier: TC_prereg_UpdatePreregistration_05 description: Update the demographic data with an invalid version role: batch restMethod: put @@ -123,6 +128,7 @@ UpdatePreregistration: }' Prereg_UpdatePrereg_invalid_email_sid: endPoint: /preregistration/v1/applications/prereg/{preRegistrationId} + uniqueIdentifier: TC_prereg_UpdatePreregistration_06 description: Update the demographic data with an invalid email address role: batch restMethod: put @@ -149,6 +155,7 @@ UpdatePreregistration: }' Prereg_UpdatePrereg_missing_langCode_sid: endPoint: /preregistration/v1/applications/prereg/{preRegistrationId} + uniqueIdentifier: TC_prereg_UpdatePreregistration_07 description: Update the demographic data with an missing language code role: batch restMethod: put @@ -175,6 +182,7 @@ UpdatePreregistration: }' Prereg_UpdatePrereg_INVALID_langCode_sid: endPoint: /preregistration/v1/applications/prereg/{preRegistrationId} + uniqueIdentifier: TC_prereg_UpdatePreregistration_08 description: Update the demographic data with an invalid language code role: batch restMethod: put @@ -201,6 +209,7 @@ UpdatePreregistration: }' Prereg_UpdatePrereg_INVALID_requesttime_sid: endPoint: /preregistration/v1/applications/prereg/{preRegistrationId} + uniqueIdentifier: TC_prereg_UpdatePreregistration_09 description: Update the demographic data with an invalid request time role: batch restMethod: put @@ -227,6 +236,7 @@ UpdatePreregistration: }' Prereg_UpdatePrereg_Missing_requesttime_sid: endPoint: /preregistration/v1/applications/prereg/{preRegistrationId} + uniqueIdentifier: TC_prereg_UpdatePreregistration_010 description: Update the demographic data without a request time role: batch restMethod: put @@ -253,6 +263,7 @@ UpdatePreregistration: }' Prereg_UpdatePrereg_previous_date_sid: endPoint: /preregistration/v1/applications/prereg/{preRegistrationId} + uniqueIdentifier: TC_prereg_UpdatePreregistration_011 description: Update the demographic data with a past date role: batch restMethod: put @@ -279,6 +290,7 @@ UpdatePreregistration: }' Prereg_UpdatePrereg_invalid_id_sid: endPoint: /preregistration/v1/applications/prereg/{preRegistrationId} + uniqueIdentifier: TC_prereg_UpdatePreregistration_012 description: Update the demographic data with an invalid ID role: batch restMethod: put @@ -305,6 +317,7 @@ UpdatePreregistration: }' Prereg_UpdatePrereg_missing_id_sid: endPoint: /preregistration/v1/applications/prereg/{preRegistrationId} + uniqueIdentifier: TC_prereg_UpdatePreregistration_013 description: Update the demographic data with a missing ID role: batch restMethod: put @@ -331,6 +344,7 @@ UpdatePreregistration: }' Prereg_UpdatePrereg_blank_id_sid: endPoint: /preregistration/v1/applications/prereg/{preRegistrationId} + uniqueIdentifier: TC_prereg_UpdatePreregistration_014 description: Update the demographic data with a blank ID role: batch restMethod: put @@ -357,6 +371,7 @@ UpdatePreregistration: }' Prereg_UpdatePrereg_update_date_without_Status_change_sid: endPoint: /preregistration/v1/applications/prereg/{preRegistrationId} + uniqueIdentifier: TC_prereg_UpdatePreregistration_015 description: Update the demographic data for date of birth without changing the status role: batch restMethod: put diff --git a/api-test/src/main/resources/preReg/ValidateOtp/ValidateOtp.yml b/api-test/src/main/resources/preReg/ValidateOtp/ValidateOtp.yml index da01ddcc396..e2d290914e6 100644 --- a/api-test/src/main/resources/preReg/ValidateOtp/ValidateOtp.yml +++ b/api-test/src/main/resources/preReg/ValidateOtp/ValidateOtp.yml @@ -1,6 +1,7 @@ ValidateOtp: Prereg_ValidateOtp_All_Valid_Smoke_email_sid: endPoint: /preregistration/v1/login/validateOtp + uniqueIdentifier: TC_prereg_ValidateOtp_01 description: Validating OTP with a valid phone number role: batch checkErrorsOnlyInResponse: true @@ -18,6 +19,7 @@ ValidateOtp: Prereg_ValidateOtp_All_Valid_Smoke_Phone_sid: endPoint: /preregistration/v1/login/validateOtp + uniqueIdentifier: TC_prereg_ValidateOtp_02 description: Validating OTP with an invalid phone number role: batch restMethod: post @@ -40,6 +42,7 @@ ValidateOtp: Prereg_ValidateOtp_Invalid_Phone_Neg_INVALIDOTP: endPoint: /preregistration/v1/login/validateOtp + uniqueIdentifier: TC_prereg_ValidateOtp_03 description: Validating OTP with a phone number containing special characters role: batch checkErrorsOnlyInResponse: true @@ -63,6 +66,7 @@ ValidateOtp: Prereg_ValidateOtp_SpacialCharacters_Phone_Neg_INVALIDOTP: endPoint: /preregistration/v1/login/validateOtp + uniqueIdentifier: TC_prereg_ValidateOtp_04 description: Validating OTP with a valid email address role: batch checkErrorsOnlyInResponse: true @@ -86,6 +90,7 @@ ValidateOtp: Prereg_ValidateOtp_SpacialCharacters_Email_Neg_INVALIDOTP: endPoint: /preregistration/v1/login/validateOtp + uniqueIdentifier: TC_prereg_ValidateOtp_05 description: Validating OTP with an email address containing special characters role: batch checkErrorsOnlyInResponse: true @@ -109,6 +114,7 @@ ValidateOtp: Prereg_ValidateOtp_Invalid_Email_Neg_INVALIDOTP: endPoint: /preregistration/v1/login/validateOtp + uniqueIdentifier: TC_prereg_ValidateOtp_06 description: Validating OTP with an invalid email address role: batch checkErrorsOnlyInResponse: true diff --git a/api-test/src/main/resources/preReg/bookAppointment/bookAppointment.yml b/api-test/src/main/resources/preReg/bookAppointment/bookAppointment.yml index 14326106ae8..13fde3d886e 100644 --- a/api-test/src/main/resources/preReg/bookAppointment/bookAppointment.yml +++ b/api-test/src/main/resources/preReg/bookAppointment/bookAppointment.yml @@ -1,6 +1,7 @@ BookAppointment: Prereg_BookAppointment_All_Valid_Smoke: endPoint: /preregistration/v1/applications/appointment/{preRegistrationId} + uniqueIdentifier: TC_prereg_BookAppointment_01 description: Book an appoinment valid data role: batch checkErrorsOnlyInResponse: true @@ -21,6 +22,7 @@ BookAppointment: }' Prereg_BookAppointment_CA_Smoke: endPoint: /preregistration/v1/applications/appointment/{preRegistrationId} + uniqueIdentifier: TC_prereg_BookAppointment_02 description: Book an appointment to cancel the existing appointment role: batch checkErrorsOnlyInResponse: true @@ -41,6 +43,7 @@ BookAppointment: }' Prereg_BookAppointment_CancelApplicationsAppointment_Smoke: endPoint: /preregistration/v1/applications/appointment/{preRegistrationId} + uniqueIdentifier: TC_prereg_BookAppointment_03 description: Book an appointment to cancel applications the existing appointment role: batch checkErrorsOnlyInResponse: true @@ -61,6 +64,7 @@ BookAppointment: }' Prereg_BookAppointment_inValid_preRegistrationId: endPoint: /preregistration/v1/applications/appointment/{preRegistrationId} + uniqueIdentifier: TC_prereg_BookAppointment_04 description: Book an appointment with an invalid preregistration ID role: batch restMethod: post @@ -85,6 +89,7 @@ BookAppointment: }' Prereg_BookAppointment_blank_preRegistrationId: endPoint: /preregistration/v1/applications/appointment/{preRegistrationId} + uniqueIdentifier: TC_prereg_BookAppointment_05 description: Book an appointment with a blank preregistration ID role: batch restMethod: post @@ -110,6 +115,7 @@ BookAppointment: }' Prereg_BookAppointment_Invalid_Id: endPoint: /preregistration/v1/applications/appointment/{preRegistrationId} + uniqueIdentifier: TC_prereg_BookAppointment_06 description: Book an appointment with a invalid preregistration ID role: batch restMethod: post @@ -134,6 +140,7 @@ BookAppointment: }' Prereg_BookAppointment_Blank_Id: endPoint: /preregistration/v1/applications/appointment/{preRegistrationId} + uniqueIdentifier: TC_prereg_BookAppointment_07 description: Book an appointment with a blank ID role: batch restMethod: post @@ -159,6 +166,7 @@ BookAppointment: }' Prereg_BookAppointment_Blank_version: endPoint: /preregistration/v1/applications/appointment/{preRegistrationId} + uniqueIdentifier: TC_prereg_BookAppointment_08 description: Book an appointment with a blank version role: batch restMethod: post @@ -183,6 +191,7 @@ BookAppointment: }' Prereg_BookAppointment_Missing_version: endPoint: /preregistration/v1/applications/appointment/{preRegistrationId} + uniqueIdentifier: TC_prereg_BookAppointment_09 description: Book an appointment with a missing version role: batch restMethod: post @@ -207,6 +216,7 @@ BookAppointment: }' Prereg_BookAppointment_Invalid_version: endPoint: /preregistration/v1/applications/appointment/{preRegistrationId} + uniqueIdentifier: TC_prereg_BookAppointment_10 description: Book an appointment with a invalid version role: batch restMethod: post @@ -231,6 +241,7 @@ BookAppointment: }' Prereg_BookAppointment_Invalid_registration_center_id: endPoint: /preregistration/v1/applications/appointment/{preRegistrationId} + uniqueIdentifier: TC_prereg_BookAppointment_11 description: Book an appointment with an invalid registration center ID role: batch restMethod: post @@ -256,6 +267,7 @@ BookAppointment: }' Prereg_BookAppointment_Missing_registration_center_id: endPoint: /preregistration/v1/applications/appointment/{preRegistrationId} + uniqueIdentifier: TC_prereg_BookAppointment_12 description: Book an appointment with a missing registration center ID role: batch restMethod: post @@ -281,6 +293,7 @@ BookAppointment: }' Prereg_BookAppointment_Blank_registration_center_id: endPoint: /preregistration/v1/applications/appointment/{preRegistrationId} + uniqueIdentifier: TC_prereg_BookAppointment_13 description: Book an appointment with a blank registration center ID role: batch restMethod: post @@ -306,6 +319,7 @@ BookAppointment: }' Prereg_BookAppointment_Blank_appointment_date: endPoint: /preregistration/v1/applications/appointment/{preRegistrationId} + uniqueIdentifier: TC_prereg_BookAppointment_14 description: Book an appointment with a blank appointment date role: batch restMethod: post @@ -331,6 +345,7 @@ BookAppointment: }' Prereg_BookAppointment_Missing_appointment_date: endPoint: /preregistration/v1/applications/appointment/{preRegistrationId} + uniqueIdentifier: TC_prereg_BookAppointment_15 description: Book an appointment with a missing appointment date role: batch restMethod: post @@ -355,6 +370,7 @@ BookAppointment: }' Prereg_BookAppointment_Invalid_appointment_date: endPoint: /preregistration/v1/applications/appointment/{preRegistrationId} + uniqueIdentifier: TC_prereg_BookAppointment_16 description: Book an appointment with a invalid appointment date role: batch restMethod: post @@ -380,6 +396,7 @@ BookAppointment: }' Prereg_BookAppointment_Invalid_time_slot_to: endPoint: /preregistration/v1/applications/appointment/{preRegistrationId} + uniqueIdentifier: TC_prereg_BookAppointment_17 description: Book an appointment with an invalid time slot role: batch restMethod: post @@ -404,6 +421,7 @@ BookAppointment: }' Prereg_BookAppointment_Missing_time_slot_to: endPoint: /preregistration/v1/applications/appointment/{preRegistrationId} + uniqueIdentifier: TC_prereg_BookAppointment_18 description: Book an appointment with a missing time slot role: batch restMethod: post @@ -428,6 +446,7 @@ BookAppointment: }' Prereg_BookAppointment_Invalid_time_slot_from: endPoint: /preregistration/v1/applications/appointment/{preRegistrationId} + uniqueIdentifier: TC_prereg_BookAppointment_19 description: Book an appointment with an invalid time slot from role: batch restMethod: post @@ -452,6 +471,7 @@ BookAppointment: }' Prereg_BookAppointment_Blank_time_slot_to: endPoint: /preregistration/v1/applications/appointment/{preRegistrationId} + uniqueIdentifier: TC_prereg_BookAppointment_20 description: Book an appointment with an Blank time slot form role: batch restMethod: post @@ -476,6 +496,7 @@ BookAppointment: }' Prereg_BookAppointment_Blank_time_slot_from: endPoint: /preregistration/v1/applications/appointment/{preRegistrationId} + uniqueIdentifier: TC_prereg_BookAppointment_21 description: Book an appointment with an blank time slot role: batch restMethod: post @@ -500,6 +521,7 @@ BookAppointment: }' Prereg_BookAppointment_missing_time_slot_from: endPoint: /preregistration/v1/applications/appointment/{preRegistrationId} + uniqueIdentifier: TC_prereg_BookAppointment_22 description: Book an appointment with an missing time slot from role: batch restMethod: post @@ -524,6 +546,7 @@ BookAppointment: }' Prereg_BookAppointment_missing_requesttime: endPoint: /preregistration/v1/applications/appointment/{preRegistrationId} + uniqueIdentifier: TC_prereg_BookAppointment_23 description: Book an appointment with a missing request time role: batch restMethod: post @@ -548,6 +571,7 @@ BookAppointment: }' Prereg_BookAppointment_Invalid_requesttime: endPoint: /preregistration/v1/applications/appointment/{preRegistrationId} + uniqueIdentifier: TC_prereg_BookAppointment_24 description: Book an appointment with a invalid request time role: batch restMethod: post @@ -573,6 +597,7 @@ BookAppointment: }' Prereg_BookAppointment_Blank_requesttime: endPoint: /preregistration/v1/applications/appointment/{preRegistrationId} + uniqueIdentifier: TC_prereg_BookAppointment_25 description: Book an appointment with a Blank request time role: batch restMethod: post @@ -597,6 +622,7 @@ BookAppointment: }' Prereg_BookAppointment_previous_date: endPoint: /preregistration/v1/applications/appointment/{preRegistrationId} + uniqueIdentifier: TC_prereg_BookAppointment_26 description: Book an appointment with a previous date role: batch restMethod: post @@ -622,6 +648,7 @@ BookAppointment: Prereg_BookAppointment_On_holiday: endPoint: /preregistration/v1/applications/appointment/{preRegistrationId} + uniqueIdentifier: TC_prereg_BookAppointment_27 description: Book an appointment on a holiday role: batch restMethod: post @@ -648,6 +675,7 @@ BookAppointment: Prereg_BookAppointment_with_expired_status: endPoint: /preregistration/v1/applications/appointment/{preRegistrationId} + uniqueIdentifier: TC_prereg_BookAppointment_28 description: Book an appointment with an expired status role: batch checkErrorsOnlyInResponse: true @@ -674,6 +702,7 @@ BookAppointment: }' Prereg_BookAppointment_with_All_InValid_data: endPoint: /preregistration/v1/applications/appointment/{preRegistrationId} + uniqueIdentifier: TC_prereg_BookAppointment_29 description: Book an appointment with an invalid data role: batch checkErrorsOnlyInResponse: true diff --git a/api-test/src/main/resources/preReg/bookAppointmentByPRID/bookAppointmentByPRID.yml b/api-test/src/main/resources/preReg/bookAppointmentByPRID/bookAppointmentByPRID.yml index a9b5f405429..deb598c56e0 100644 --- a/api-test/src/main/resources/preReg/bookAppointmentByPRID/bookAppointmentByPRID.yml +++ b/api-test/src/main/resources/preReg/bookAppointmentByPRID/bookAppointmentByPRID.yml @@ -1,6 +1,7 @@ BookAppointmentByPRID: Prereg_BookAppointmentByPRID_All_Valid_Smoke: endPoint: /preregistration/v1/applications/appointment + uniqueIdentifier: TC_prereg_BookAppointmentByPRID_01 description: Book an appointment with a PRID for validation role: batch checkErrorsOnlyInResponse: true @@ -21,6 +22,7 @@ BookAppointmentByPRID: }' Prereg_BookAppointmentByPRID_inValid_preRegistrationId: endPoint: /preregistration/v1/applications/appointment + uniqueIdentifier: TC_prereg_BookAppointmentByPRID_02 description: Book an appointment with a PRID for an invalid preregistration ID role: batch restMethod: post @@ -45,6 +47,7 @@ BookAppointmentByPRID: }' Prereg_BookAppointmentByPRID_blank_preRegistrationId: endPoint: /preregistration/v1/applications/appointment + uniqueIdentifier: TC_prereg_BookAppointmentByPRID_03 description: Book an appointment with a PRID for a blank preregistration ID role: batch restMethod: post @@ -69,6 +72,7 @@ BookAppointmentByPRID: }' Prereg_BookAppointmentByPRID_missing_preRegistrationId: endPoint: /preregistration/v1/applications/appointment + uniqueIdentifier: TC_prereg_BookAppointmentByPRID_04 description: Book an appointment with a PRID for a missing preregistration ID role: batch restMethod: post @@ -93,6 +97,7 @@ BookAppointmentByPRID: }' Prereg_BookAppointmentByPRID_inValid_Id: endPoint: /preregistration/v1/applications/appointment + uniqueIdentifier: TC_prereg_BookAppointmentByPRID_05 description: Book an appointment with a PRID for a invalid preregistration ID role: batch restMethod: post @@ -117,6 +122,7 @@ BookAppointmentByPRID: }' Prereg_BookAppointmentByPRID_Blank_Id: endPoint: /preregistration/v1/applications/appointment + uniqueIdentifier: TC_prereg_BookAppointmentByPRID_06 description: Book an appointment with a PRID for a blank ID role: batch restMethod: post @@ -141,6 +147,7 @@ BookAppointmentByPRID: }' Prereg_BookAppointmentByPRID_Blank_version: endPoint: /preregistration/v1/applications/appointment + uniqueIdentifier: TC_prereg_BookAppointmentByPRID_07 description: Book an appointment with a PRID for a blank version role: batch restMethod: post @@ -165,6 +172,7 @@ BookAppointmentByPRID: }' Prereg_BookAppointmentByPRID_Missing_version: endPoint: /preregistration/v1/applications/appointment + uniqueIdentifier: TC_prereg_BookAppointmentByPRID_08 description: Book an appointment with a PRID for a missing version role: batch restMethod: post @@ -189,6 +197,7 @@ BookAppointmentByPRID: }' Prereg_BookAppointmentByPRID_Invalid_version: endPoint: /preregistration/v1/applications/appointment + uniqueIdentifier: TC_prereg_BookAppointmentByPRID_09 description: Schedule an appointment with a PRID for a invalid version role: batch restMethod: post @@ -213,6 +222,7 @@ BookAppointmentByPRID: }' Prereg_BookAppointmentByPRID_Invalid_registration_center_id: endPoint: /preregistration/v1/applications/appointment + uniqueIdentifier: TC_prereg_BookAppointmentByPRID_10 description: Book an appointment with a PRID for an invalid registration center ID role: batch restMethod: post @@ -237,6 +247,7 @@ BookAppointmentByPRID: }' Prereg_BookAppointmentByPRID_Missing_registration_center_id: endPoint: /preregistration/v1/applications/appointment + uniqueIdentifier: TC_prereg_BookAppointmentByPRID_11 description: Book an appointment with a PRID for an missing registration center ID role: batch restMethod: post @@ -261,6 +272,7 @@ BookAppointmentByPRID: }' Prereg_BookAppointmentByPRID_Blank_registration_center_id: endPoint: /preregistration/v1/applications/appointment + uniqueIdentifier: TC_prereg_BookAppointmentByPRID_12 description: Book an appointment with a PRID for an Blank registration center ID role: batch restMethod: post @@ -285,6 +297,7 @@ BookAppointmentByPRID: }' Prereg_BookAppointmentByPRID_Blank_appointment_date: endPoint: /preregistration/v1/applications/appointment + uniqueIdentifier: TC_prereg_BookAppointmentByPRID_13 description: Book an appointment with a PRID for an Blank appointment date role: batch restMethod: post @@ -309,6 +322,7 @@ BookAppointmentByPRID: }' Prereg_BookAppointmentByPRID_Missing_appointment_date: endPoint: /preregistration/v1/applications/appointment + uniqueIdentifier: TC_prereg_BookAppointmentByPRID_14 description: Book an appointment with a PRID for a missing appointment date role: batch restMethod: post @@ -333,6 +347,7 @@ BookAppointmentByPRID: }' Prereg_BookAppointmentByPRID_Invalid_appointment_date: endPoint: /preregistration/v1/applications/appointment + uniqueIdentifier: TC_prereg_BookAppointmentByPRID_15 description: Book an appointment with a PRID for an invalid appointment date role: batch restMethod: post @@ -358,6 +373,7 @@ BookAppointmentByPRID: }' Prereg_BookAppointmentByPRID_blank_time_slot_to: endPoint: /preregistration/v1/applications/appointment + uniqueIdentifier: TC_prereg_BookAppointmentByPRID_16 description: Book an appointment with a PRID for an Blank time slot to role: batch restMethod: post @@ -382,6 +398,7 @@ BookAppointmentByPRID: }' Prereg_BookAppointmentByPRID_blank_time_slot_from: endPoint: /preregistration/v1/applications/appointment + uniqueIdentifier: TC_prereg_BookAppointmentByPRID_17 description: Book an appointment with a PRID for an Blank time slot from role: batch restMethod: post @@ -406,6 +423,7 @@ BookAppointmentByPRID: }' Prereg_BookAppointmentByPRID_Missing_time_slot_to: endPoint: /preregistration/v1/applications/appointment + uniqueIdentifier: TC_prereg_BookAppointmentByPRID_18 description: Book an appointment with a PRID for an missing time slot to role: batch restMethod: post @@ -430,6 +448,7 @@ BookAppointmentByPRID: }' Prereg_BookAppointmentByPRID_Missing_time_slot_from: endPoint: /preregistration/v1/applications/appointment + uniqueIdentifier: TC_prereg_BookAppointmentByPRID_19 description: Book an appointment with a PRID for an missing time slot from role: batch restMethod: post @@ -454,6 +473,7 @@ BookAppointmentByPRID: }' Prereg_BookAppointmentByPRID_missing_requesttime: endPoint: /preregistration/v1/applications/appointment + uniqueIdentifier: TC_prereg_BookAppointmentByPRID_20 description: Book an appointment with a PRID for a missing request time role: batch restMethod: post @@ -478,6 +498,7 @@ BookAppointmentByPRID: }' Prereg_BookAppointmentByPRID_Invalid_requesttime: endPoint: /preregistration/v1/applications/appointment + uniqueIdentifier: TC_prereg_BookAppointmentByPRID_21 description: Book an appointment with a PRID for a invalid request time role: batch restMethod: post @@ -503,6 +524,7 @@ BookAppointmentByPRID: }' Prereg_BookAppointmentByPRID_Blank_requesttime: endPoint: /preregistration/v1/applications/appointment + uniqueIdentifier: TC_prereg_BookAppointmentByPRID_22 description: Book an appointment with a PRID for a Blank request time role: batch restMethod: post @@ -527,6 +549,7 @@ BookAppointmentByPRID: }' Prereg_BookAppointmentByPRID_previous_requesttime: endPoint: /preregistration/v1/applications/appointment + uniqueIdentifier: TC_prereg_BookAppointmentByPRID_23 description: Book an appointment with a PRID for a previous request time role: batch restMethod: post diff --git a/api-test/src/main/resources/preReg/createPrereg/createPrereg.yml b/api-test/src/main/resources/preReg/createPrereg/createPrereg.yml index 854ca8b9403..da115e2a3e0 100644 --- a/api-test/src/main/resources/preReg/createPrereg/createPrereg.yml +++ b/api-test/src/main/resources/preReg/createPrereg/createPrereg.yml @@ -1,6 +1,7 @@ CreatePrereg: Prereg_CreatePrereg_All_Valid_Smoke_sid: endPoint: /preregistration/v1/applications/prereg + uniqueIdentifier: TC_Prereg_CreatePrereg_01 description: Creating demographic details with valid data role: batch checkErrorsOnlyInResponse: true @@ -22,6 +23,7 @@ CreatePrereg: }' Prereg_CreatePrereg_book_appoinment_without_update_prereg_status_sid: endPoint: /preregistration/v1/applications/prereg + uniqueIdentifier: TC_Prereg_CreatePrereg_02 description: Creating preregistration for booking an appointment without updating preregistration status role: batch checkErrorsOnlyInResponse: true @@ -43,6 +45,7 @@ CreatePrereg: }' Prereg_CreatePrereg_All_Valid_Smoke_UpdateDocRefID_sid: endPoint: /preregistration/v1/applications/prereg + uniqueIdentifier: TC_Prereg_CreatePrereg_03 description: Creating preregistration with a valid updated document reference ID role: batch checkErrorsOnlyInResponse: true @@ -65,6 +68,7 @@ CreatePrereg: }' Prereg_CreatePrereg_All_Valid_Smoke_BookByPRID_sid: endPoint: /preregistration/v1/applications/prereg + uniqueIdentifier: TC_Prereg_CreatePrereg_04 description: Creating preregistration for a valid booking using the PRID (Patient Registration ID) role: batch checkErrorsOnlyInResponse: true @@ -88,6 +92,7 @@ CreatePrereg: }' Prereg_CreatePrereg_Valid_Smoke_sid: endPoint: /preregistration/v1/applications/prereg + uniqueIdentifier: TC_Prereg_CreatePrereg_05 description: Creating demographic details with valid data role: batch checkErrorsOnlyInResponse: true @@ -110,6 +115,7 @@ CreatePrereg: }' Prereg_CreatePrereg_Smoke_alldel_sid: endPoint: /preregistration/v1/applications/prereg + uniqueIdentifier: TC_Prereg_CreatePrereg_06 description: Creating preregistration to delete data role: batch checkErrorsOnlyInResponse: true @@ -132,6 +138,7 @@ CreatePrereg: }' Prereg_CreatePrereg_Smoke_CancellAppointment_sid: endPoint: /preregistration/v1/applications/prereg + uniqueIdentifier: TC_Prereg_CreatePrereg_07 description: Creating preregistration data to cancel a booked appointment role: batch checkErrorsOnlyInResponse: true @@ -154,6 +161,7 @@ CreatePrereg: }' Prereg_CreatePrereg_Smoke_CancelApplicationsAppointment_sid: endPoint: /preregistration/v1/applications/prereg + uniqueIdentifier: TC_Prereg_CreatePrereg_08 description: Creating preregistration and cancelling the appointment after booking role: batch checkErrorsOnlyInResponse: true @@ -176,6 +184,7 @@ CreatePrereg: }' Prereg_CreatePrereg_All_Valid_Smoke_for_expiry_sid: endPoint: /preregistration/v1/applications/prereg + uniqueIdentifier: TC_Prereg_CreatePrereg_09 description: Creating preregistration, booking an appointment, and checking the expiration status if the user does not reach the center by the scheduled slot time role: batch checkErrorsOnlyInResponse: true @@ -197,6 +206,7 @@ CreatePrereg: }' Prereg_CreatePrereg_in_Valid_id_sid: endPoint: /preregistration/v1/applications/prereg + uniqueIdentifier: TC_Prereg_CreatePrereg_10 description: Creating demographic details with an invalid field ID role: batch restMethod: post @@ -223,6 +233,7 @@ CreatePrereg: }' Prereg_CreatePrereg_missing_id_sid: endPoint: /preregistration/v1/applications/prereg + uniqueIdentifier: TC_Prereg_CreatePrereg_11 description: Creating preregistration with a missing ID role: batch restMethod: post @@ -249,6 +260,7 @@ CreatePrereg: }' Prereg_CreatePrereg_blank_id_sid: endPoint: /preregistration/v1/applications/prereg + uniqueIdentifier: TC_Prereg_CreatePrereg_12 description: Creating preregistration with a blank ID role: batch restMethod: post @@ -275,6 +287,7 @@ CreatePrereg: }' Prereg_CreatePrereg_missing_langCode_sid: endPoint: /preregistration/v1/applications/prereg + uniqueIdentifier: TC_Prereg_CreatePrereg_13 description: Creating preregistration without specifying a langcode role: batch restMethod: post @@ -301,6 +314,7 @@ CreatePrereg: }' Prereg_CreatePrereg_invalid_langCode_sid: endPoint: /preregistration/v1/applications/prereg + uniqueIdentifier: TC_Prereg_CreatePrereg_14 description: Creating preregistration with an invalid langcode role: batch restMethod: post @@ -327,6 +341,7 @@ CreatePrereg: }' Prereg_CreatePrereg_invalid_email_sid: endPoint: /preregistration/v1/applications/prereg + uniqueIdentifier: TC_Prereg_CreatePrereg_15 description: Creating preregistration with an invalid email address role: batch restMethod: post @@ -353,6 +368,7 @@ CreatePrereg: }' Prereg_CreatePrereg_invalid_requesttime_format_sid: endPoint: /preregistration/v1/applications/prereg + uniqueIdentifier: TC_Prereg_CreatePrereg_16 description: Creating preregistration with an invalid request-time format role: batch restMethod: post @@ -379,6 +395,7 @@ CreatePrereg: }' Prereg_CreatePrereg_missing_requesttime_sid: endPoint: /preregistration/v1/applications/prereg + uniqueIdentifier: TC_Prereg_CreatePrereg_17 description: Creating preregistration without specifying a request time role: batch restMethod: post @@ -405,6 +422,7 @@ CreatePrereg: }' Prereg_CreatePrereg_previous_date_sid: endPoint: /preregistration/v1/applications/prereg + uniqueIdentifier: TC_Prereg_CreatePrereg_18 description: Creating preregistration with a previous date role: batch restMethod: post @@ -431,6 +449,7 @@ CreatePrereg: }' Prereg_CreatePrereg_invalid_version_sid: endPoint: /preregistration/v1/applications/prereg + uniqueIdentifier: TC_Prereg_CreatePrereg_19 description: Creating preregistration with an invalid version role: batch restMethod: post @@ -457,6 +476,7 @@ CreatePrereg: }' Prereg_CreatePrereg_missing_version_sid: endPoint: /preregistration/v1/applications/prereg + uniqueIdentifier: TC_Prereg_CreatePrereg_20 description: Creating preregistration without specifying a version role: batch restMethod: post @@ -484,6 +504,7 @@ CreatePrereg: Prereg_CreatePrereg_Invalid_PostalCode_Neg: endPoint: /preregistration/v1/applications/prereg + uniqueIdentifier: TC_Prereg_CreatePrereg_21 description: Creating preregistration with an invalid postal code role: batch checkErrorsOnlyInResponse: true @@ -512,6 +533,7 @@ CreatePrereg: Prereg_CreatePrereg_SpacialCharacter_PostalCode_Neg: endPoint: /preregistration/v1/applications/prereg + uniqueIdentifier: TC_Prereg_CreatePrereg_22 description: Creating preregistration with a special character in the postal code role: batch checkErrorsOnlyInResponse: true @@ -539,6 +561,7 @@ CreatePrereg: }' Prereg_CreatePrereg_Invalid_OTP_Neg_StatusCode: endPoint: /preregistration/v1/applications/prereg + uniqueIdentifier: TC_Prereg_CreatePrereg_23 description: Creating preregistration with an invalid OTP role: invalidBatch checkErrorsOnlyInResponse: true @@ -561,7 +584,8 @@ CreatePrereg: Prereg_CreatePrereg_All_Valid_Smoke_date_verification_sid: endPoint: /preregistration/v1/applications/prereg - description: Creating preregistration with an invalid OTP + uniqueIdentifier: TC_Prereg_CreatePrereg_24 + description: Creating a preregistration process with accurate data verification role: batch checkErrorsOnlyInResponse: true restMethod: post @@ -582,6 +606,7 @@ CreatePrereg: }' Prereg_CreatePrereg_with_special_characters_date: endPoint: /preregistration/v1/applications/prereg + uniqueIdentifier: TC_Prereg_CreatePrereg_25 description: Creating preregistration with special characters on the date filed role: batch checkErrorsOnlyInResponse: true @@ -608,6 +633,7 @@ CreatePrereg: }' Prereg_CreatePrereg_with_future_date: endPoint: /preregistration/v1/applications/prereg + uniqueIdentifier: TC_Prereg_CreatePrereg_26 description: Creating preregistration with a future date role: batch checkErrorsOnlyInResponse: true @@ -629,6 +655,7 @@ CreatePrereg: }' Prereg_CreatePrereg_cancell_incomplete_prid_sid: endPoint: /preregistration/v1/applications/prereg + uniqueIdentifier: TC_Prereg_CreatePrereg_27 description: Creating preregistration and canceling the incomplete PRID role: batch checkErrorsOnlyInResponse: true @@ -650,6 +677,7 @@ CreatePrereg: }' Prereg_CreatePrereg_cancell_pending_appoinment_prid_sid: endPoint: /preregistration/v1/applications/prereg + uniqueIdentifier: TC_Prereg_CreatePrereg_28 description: Creating preregistration and canceling pending appointment using PRID role: batch checkErrorsOnlyInResponse: true @@ -671,6 +699,7 @@ CreatePrereg: }' Prereg_CreatePrereg_Smoke_PreRegDemographicData_sid: endPoint: /preregistration/v1/applications/prereg + uniqueIdentifier: TC_Prereg_CreatePrereg_29 description: Creating preregistration appointment using PRID for demographic data role: batch checkErrorsOnlyInResponse: true @@ -689,4 +718,4 @@ CreatePrereg: "id": "mosip.pre-registration.demographic.create" }' output: '{ -}' \ No newline at end of file +}' diff --git a/api-test/src/main/resources/preReg/uploadDocument/uploadDocument.yml b/api-test/src/main/resources/preReg/uploadDocument/uploadDocument.yml index 584e567636e..972bbd0ce6c 100644 --- a/api-test/src/main/resources/preReg/uploadDocument/uploadDocument.yml +++ b/api-test/src/main/resources/preReg/uploadDocument/uploadDocument.yml @@ -1,6 +1,7 @@ UploadDocument: Prereg_UploadDocument_All_Valid_Smoke_sid: endPoint: /preregistration/v1/documents/{preRegistrationId} + uniqueIdentifier: TC_prereg_UploadDocument_01 description: Upload the valid document preregistration ID role: batch restMethod: post @@ -25,6 +26,7 @@ UploadDocument: }' Prereg_UploadDocument_Rebook_the_booked_appoinment_Smoke_sid: endPoint: /preregistration/v1/documents/{preRegistrationId} + uniqueIdentifier: TC_prereg_UploadDocument_02 description: Upload the document to rebook the booked appointment role: batch restMethod: post @@ -49,6 +51,7 @@ UploadDocument: }' Prereg_UploadDocument_All_Valid_Smoke_POI_sid: endPoint: /preregistration/v1/documents/{preRegistrationId} + uniqueIdentifier: TC_prereg_UploadDocument_03 description: Upload the valid Proof of Identity (POI) document role: batch restMethod: post @@ -73,6 +76,7 @@ UploadDocument: }' Prereg_UploadDocument_All_Valid_Smoke_POB_sid: endPoint: /preregistration/v1/documents/{preRegistrationId} + uniqueIdentifier: TC_prereg_UploadDocument_04 description: Upload the valid Proof of Date of Birth (POB) document role: batch restMethod: post @@ -97,6 +101,7 @@ UploadDocument: }' Prereg_UploadDocument_All_Valid_Smoke_POR_sid: endPoint: /preregistration/v1/documents/{preRegistrationId} + uniqueIdentifier: TC_prereg_UploadDocument_05 description: Upload the valid Proof of Residence (POR) document role: batch restMethod: post @@ -121,6 +126,7 @@ UploadDocument: }' Prereg_UploadDocument_All_Valid_Smoke_UpdateDocRefID_sid: endPoint: /preregistration/v1/documents/{preRegistrationId} + uniqueIdentifier: TC_prereg_UploadDocument_06 description: upload the valid document with the updated document reference ID role: batch restMethod: post @@ -145,6 +151,7 @@ UploadDocument: }' Prereg_UploadDocument_All_Valid_Smoke_POI_UpdateDocRefID_sid: endPoint: /preregistration/v1/documents/{preRegistrationId} + uniqueIdentifier: TC_prereg_UploadDocument_07 description: Upload the valid Proof of Identity (POI) document with the updated reference ID role: batch restMethod: post @@ -169,6 +176,7 @@ UploadDocument: }' Prereg_UploadDocument_All_Valid_Smoke_POB_UpdateDocRefID_sid: endPoint: /preregistration/v1/documents/{preRegistrationId} + uniqueIdentifier: TC_prereg_UploadDocument_08 description: Upload the valid Proof of Date of Birth (POB) document with the updated reference ID role: batch restMethod: post @@ -193,6 +201,7 @@ UploadDocument: }' Prereg_UploadDocument_All_Valid_Smoke_POR_UpdateDocRefID_sid: endPoint: /preregistration/v1/documents/{preRegistrationId} + uniqueIdentifier: TC_prereg_UploadDocument_09 description: Upload the valid Proof of Residence (POR) document with the updated reference ID role: batch restMethod: post @@ -217,6 +226,7 @@ UploadDocument: }' Prereg_UploadDocument_All_Valid_Smoke_BookByPRID_sid: endPoint: /preregistration/v1/documents/{preRegistrationId} + uniqueIdentifier: TC_prereg_UploadDocument_10 description: Upload the valid document to book an appointment using PRID role: batch restMethod: post @@ -241,6 +251,7 @@ UploadDocument: }' Prereg_UploadDocument_All_Valid_Smoke_POI_BookByPRID_sid: endPoint: /preregistration/v1/documents/{preRegistrationId} + uniqueIdentifier: TC_prereg_UploadDocument_11 description: Upload the valid Proof of Identity (POI) document to book an appointment using PRID role: batch restMethod: post @@ -265,6 +276,7 @@ UploadDocument: }' Prereg_UploadDocument_All_Valid_Smoke_POB_BookByPRID_sid: endPoint: /preregistration/v1/documents/{preRegistrationId} + uniqueIdentifier: TC_prereg_UploadDocument_12 description: Upload the valid Proof of Date of Birth (POB) document to book an appointment using PRID role: batch restMethod: post @@ -289,6 +301,7 @@ UploadDocument: }' Prereg_UploadDocument_All_Valid_Smoke_POR_BookByPRID_sid: endPoint: /preregistration/v1/documents/{preRegistrationId} + uniqueIdentifier: TC_prereg_UploadDocument_13 description: Upload the valid Proof of Residence (POR) document to book an appointment using PRID role: batch restMethod: post @@ -313,6 +326,7 @@ UploadDocument: }' Prereg_UploadDocument_Valid_Smoke_sid: endPoint: /preregistration/v1/documents/{preRegistrationId} + uniqueIdentifier: TC_prereg_UploadDocument_14 description: Upload the valid Proof of Address (POA) document role: batch restMethod: post @@ -337,6 +351,7 @@ UploadDocument: }' Prereg_UploadDocument_Valid_Smoke_POI_sid: endPoint: /preregistration/v1/documents/{preRegistrationId} + uniqueIdentifier: TC_prereg_UploadDocument_15 description: Upload the valid Proof of Identity (POI) document role: batch restMethod: post @@ -361,6 +376,7 @@ UploadDocument: }' Prereg_UploadDocument_Valid_POB_Smoke_sid: endPoint: /preregistration/v1/documents/{preRegistrationId} + uniqueIdentifier: TC_prereg_UploadDocument_16 description: Upload the valid Proof of Date of Birth (POB) document role: batch restMethod: post @@ -385,6 +401,7 @@ UploadDocument: }' Prereg_UploadDocument_Valid_POR_Smoke_sid: endPoint: /preregistration/v1/documents/{preRegistrationId} + uniqueIdentifier: TC_prereg_UploadDocument_17 description: Upload the valid Proof of Residence (POR) document role: batch restMethod: post @@ -409,6 +426,7 @@ UploadDocument: }' Prereg_UploadDocument_Smoke_alldel_sid: endPoint: /preregistration/v1/documents/{preRegistrationId} + uniqueIdentifier: TC_prereg_UploadDocument_18 description: Upload the Proof of Address (POA) document for deletion role: batch restMethod: post @@ -433,6 +451,7 @@ UploadDocument: }' Prereg_UploadDocument_Smoke_POI_alldel_sid: endPoint: /preregistration/v1/documents/{preRegistrationId} + uniqueIdentifier: TC_prereg_UploadDocument_19 description: Upload the Proof of Identity (POI) document for deletion role: batch restMethod: post @@ -457,6 +476,7 @@ UploadDocument: }' Prereg_UploadDocument_Smoke_POB_alldel_sid: endPoint: /preregistration/v1/documents/{preRegistrationId} + uniqueIdentifier: TC_prereg_UploadDocument_20 description: Upload the Proof of Date of Birth (POB) document for deletion role: batch restMethod: post @@ -481,6 +501,7 @@ UploadDocument: }' Prereg_UploadDocument_Smoke_POR_alldel_sid: endPoint: /preregistration/v1/documents/{preRegistrationId} + uniqueIdentifier: TC_prereg_UploadDocument_21 description: Upload the Proof of Residence (POR) document for deletion role: batch restMethod: post @@ -505,6 +526,7 @@ UploadDocument: }' Prereg_UploadDocument_Smoke_cancellappointment_sid: endPoint: /preregistration/v1/documents/{preRegistrationId} + uniqueIdentifier: TC_prereg_UploadDocument_22 description: Upload the valid Proof of Address (POA) document to cancelling the appointment role: batch restMethod: post @@ -529,6 +551,7 @@ UploadDocument: }' Prereg_UploadDocument_Smoke_cancellappointment_POI_sid: endPoint: /preregistration/v1/documents/{preRegistrationId} + uniqueIdentifier: TC_prereg_UploadDocument_23 description: Upload the valid Proof of Address (POI) document to cancelling the appointment role: batch restMethod: post @@ -553,6 +576,7 @@ UploadDocument: }' Prereg_UploadDocument_Smoke_cancellappointment_POB_sid: endPoint: /preregistration/v1/documents/{preRegistrationId} + uniqueIdentifier: TC_prereg_UploadDocument_24 description: Upload the valid Proof of Date of Birth (POB) document to cancel the appointment role: batch restMethod: post @@ -577,6 +601,7 @@ UploadDocument: }' Prereg_UploadDocument_Smoke_cancellappointment_POR_sid: endPoint: /preregistration/v1/documents/{preRegistrationId} + uniqueIdentifier: TC_prereg_UploadDocument_25 description: Upload the valid Proof of Residence (POR) document to cancel the appointment role: batch restMethod: post @@ -601,6 +626,7 @@ UploadDocument: }' Prereg_UploadDocument_Smoke_CancelApplicationsAppointment_sid: endPoint: /preregistration/v1/documents/{preRegistrationId} + uniqueIdentifier: TC_prereg_UploadDocument_26 description: Upload the valid Proof of Address (POA) document to cancel the application appointment role: batch restMethod: post @@ -625,6 +651,7 @@ UploadDocument: }' Prereg_UploadDocument_Smoke_CancelApplicationsAppointment_POI_sid: endPoint: /preregistration/v1/documents/{preRegistrationId} + uniqueIdentifier: TC_prereg_UploadDocument_27 description: Upload the valid Proof of Identity (POI) document to cancel the application appointment role: batch restMethod: post @@ -649,6 +676,7 @@ UploadDocument: }' Prereg_UploadDocument_Smoke_CancelApplicationsAppointment_POB_sid: endPoint: /preregistration/v1/documents/{preRegistrationId} + uniqueIdentifier: TC_prereg_UploadDocument_28 description: Upload the valid Proof of Date of Birth (POB) document to cancel the application appointment role: batch restMethod: post @@ -673,6 +701,7 @@ UploadDocument: }' Prereg_UploadDocument_Smoke_CancelApplicationsAppointment_POR_sid: endPoint: /preregistration/v1/documents/{preRegistrationId} + uniqueIdentifier: TC_prereg_UploadDocument_29 description: Upload the valid Proof of Residence (POR) document to cancel the application appointment role: batch restMethod: post @@ -697,6 +726,7 @@ UploadDocument: }' Prereg_UploadDocument_inValid_docTypCode_sid: endPoint: /preregistration/v1/documents/{preRegistrationId} + uniqueIdentifier: TC_prereg_UploadDocument_30 description: Upload the invalid Proof of Address (POA) document type code role: batch restMethod: post @@ -721,6 +751,7 @@ UploadDocument: }' Prereg_UploadDocument_blank_docTypCode_sid: endPoint: /preregistration/v1/documents/{preRegistrationId} + uniqueIdentifier: TC_prereg_UploadDocument_31 description: Upload the blank Proof of Address (POA) document type code role: batch restMethod: post @@ -745,6 +776,7 @@ UploadDocument: }' Prereg_UploadDocument_missing_docTypCode_sid: endPoint: /preregistration/v1/documents/{preRegistrationId} + uniqueIdentifier: TC_prereg_UploadDocument_32 description: Upload the Proof of Address (POA) document without the document type code role: batch restMethod: post @@ -769,6 +801,7 @@ UploadDocument: }' Prereg_UploadDocument_blank_doccatCode_sid: endPoint: /preregistration/v1/documents/{preRegistrationId} + uniqueIdentifier: TC_prereg_UploadDocument_33 description: Upload the Proof of Address (POA) document blank the document category code role: batch restMethod: post @@ -793,6 +826,7 @@ UploadDocument: }' Prereg_UploadDocument_missing_doccatCode_sid: endPoint: /preregistration/v1/documents/{preRegistrationId} + uniqueIdentifier: TC_prereg_UploadDocument_34 description: Upload the Proof of Address (POA) document without the document category code role: batch restMethod: post @@ -817,6 +851,7 @@ UploadDocument: }' Prereg_UploadDocument_Invalid_doccatCode_sid: endPoint: /preregistration/v1/documents/{preRegistrationId} + uniqueIdentifier: TC_prereg_UploadDocument_35 description: Upload the Proof of Address (POA) document with the invalid document category code role: batch restMethod: post @@ -841,6 +876,7 @@ UploadDocument: }' Prereg_UploadDocument_Invalid_langCode_sid: endPoint: /preregistration/v1/documents/{preRegistrationId} + uniqueIdentifier: TC_prereg_UploadDocument_36 description: Upload the Proof of Address (POA) document with the invalid language code role: batch restMethod: post @@ -866,6 +902,7 @@ UploadDocument: }' Prereg_UploadDocument_missing_langCode_sid: endPoint: /preregistration/v1/documents/{preRegistrationId} + uniqueIdentifier: TC_prereg_UploadDocument_37 description: Upload the Proof of Address (POA) document with the missing document category code role: batch restMethod: post @@ -891,6 +928,7 @@ UploadDocument: }' Prereg_UploadDocument_inValid_id_sid: endPoint: /preregistration/v1/documents/{preRegistrationId} + uniqueIdentifier: TC_prereg_UploadDocument_38 description: Upload the Proof of Address (POA) document with an invalid ID role: batch restMethod: post @@ -916,6 +954,7 @@ UploadDocument: }' Prereg_UploadDocument_Blank_id_sid: endPoint: /preregistration/v1/documents/{preRegistrationId} + uniqueIdentifier: TC_prereg_UploadDocument_39 description: Upload the Proof of Address (POA) document with a blank ID role: batch restMethod: post @@ -944,6 +983,7 @@ UploadDocument: Prereg_UploadDocument_All_Valid_Smoke_expiry_sid: endPoint: /preregistration/v1/documents/{preRegistrationId} + uniqueIdentifier: TC_prereg_UploadDocument_40 description: Upload the Proof of Address (POA) document with an expired ID role: batch restMethod: post @@ -968,6 +1008,7 @@ UploadDocument: }' Prereg_UploadDocument_All_Valid_Smoke_POI_expired_sid: endPoint: /preregistration/v1/documents/{preRegistrationId} + uniqueIdentifier: TC_prereg_UploadDocument_41 description: Upload the Proof of Identity (POI) document with an expired ID role: batch restMethod: post @@ -992,6 +1033,7 @@ UploadDocument: }' Prereg_UploadDocument_All_Valid_Smoke_POB_expired_sid: endPoint: /preregistration/v1/documents/{preRegistrationId} + uniqueIdentifier: TC_prereg_UploadDocument_42 description: Upload the Proof of Date of Birth (POB) document with an expired ID role: batch restMethod: post @@ -1016,6 +1058,7 @@ UploadDocument: }' Prereg_UploadDocument_All_Valid_Smoke_POR_expired_sid: endPoint: /preregistration/v1/documents/{preRegistrationId} + uniqueIdentifier: TC_prereg_UploadDocument_43 description: Upload the Proof of Residence (POR) document with an expired ID role: batch restMethod: post @@ -1041,6 +1084,7 @@ UploadDocument: Prereg_UploadDocument_All_Valid_Smoke_cancell_pending_appoinment_prid: endPoint: /preregistration/v1/documents/{preRegistrationId} + uniqueIdentifier: TC_prereg_UploadDocument_44 description: Upload the Proof of Address (POA) document to cancel a pending appointment with PRID role: batch restMethod: post @@ -1065,6 +1109,7 @@ UploadDocument: }' Prereg_UploadDocument_All_Valid_Smoke_POI_cancell_pending_appoinment_prid_sid: endPoint: /preregistration/v1/documents/{preRegistrationId} + uniqueIdentifier: TC_prereg_UploadDocument_45 description: Upload the Proof of Identity (POI) document to cancel a pending appointment with PRID role: batch restMethod: post @@ -1089,6 +1134,7 @@ UploadDocument: }' Prereg_UploadDocument_All_Valid_Smoke_POB_cancell_pending_appoinment_prid_sid: endPoint: /preregistration/v1/documents/{preRegistrationId} + uniqueIdentifier: TC_prereg_UploadDocument_46 description: Upload the Proof of date of Birth (POB) document to cancel a pending appointment with PRID role: batch restMethod: post @@ -1113,6 +1159,7 @@ UploadDocument: }' Prereg_UploadDocument_All_Valid_Smoke_POR_cancell_pending_appoinment_prid_sid: endPoint: /preregistration/v1/documents/{preRegistrationId} + uniqueIdentifier: TC_prereg_UploadDocument_47 description: Upload the Proof of Residence (POR) document to cancel a pending appointment with PRID role: batch restMethod: post From c2957d581338a6964ac7bba86166022785c83e6c Mon Sep 17 00:00:00 2001 From: Mohanachandran S Date: Wed, 23 Oct 2024 18:59:27 +0530 Subject: [PATCH 5/5] MOSIP-36093 - Synced release branch with develop branch Signed-off-by: Mohanachandran S --- .../apirig/testrunner/MosipTestRunner.java | 3 +- .../apirig/testscripts/DeleteWithParam.java | 1 - .../apirig/testscripts/GetWithParam.java | 1 - .../testscripts/GetWithParamForAutoGenId.java | 1 - ...WithFormDataAndFileForNotificationAPI.java | 1 - .../PostWithFormPathParamAndFile.java | 1 - .../PostWithPathParamsAndBody.java | 1 - .../testscripts/PreregAuditValidator.java | 2 - .../apirig/testscripts/PutWithPathParam.java | 1 - .../apirig/testscripts/SimplePost.java | 1 - .../apirig/testscripts/UpdatePrereg.java | 1 - .../GetPRIDByDateRange/GetPRIDByDateRange.yml | 38 +++++++++---------- 12 files changed, 20 insertions(+), 32 deletions(-) diff --git a/api-test/src/main/java/io/mosip/testrig/apirig/testrunner/MosipTestRunner.java b/api-test/src/main/java/io/mosip/testrig/apirig/testrunner/MosipTestRunner.java index 1db8a1fdc5c..63fa15da52b 100644 --- a/api-test/src/main/java/io/mosip/testrig/apirig/testrunner/MosipTestRunner.java +++ b/api-test/src/main/java/io/mosip/testrig/apirig/testrunner/MosipTestRunner.java @@ -76,7 +76,6 @@ public static void main(String[] arg) { SkipTestCaseHandler.loadTestcaseToBeSkippedList("testCaseSkippedList.txt"); setLogLevels(); - // For now we are not doing health check for qa-115. if (BaseTestCase.isTargetEnvLTS()) { HealthChecker healthcheck = new HealthChecker(); @@ -87,7 +86,7 @@ public static void main(String[] arg) { KeycloakUserManager.removeUser(); KeycloakUserManager.createUsers(); KeycloakUserManager.closeKeycloakInstance(); - + startTestRunner(); } catch (Exception e) { LOGGER.error("Exception " + e.getMessage()); diff --git a/api-test/src/main/java/io/mosip/testrig/apirig/testscripts/DeleteWithParam.java b/api-test/src/main/java/io/mosip/testrig/apirig/testscripts/DeleteWithParam.java index ef87e0c0543..8c96e2e9f65 100644 --- a/api-test/src/main/java/io/mosip/testrig/apirig/testscripts/DeleteWithParam.java +++ b/api-test/src/main/java/io/mosip/testrig/apirig/testscripts/DeleteWithParam.java @@ -26,7 +26,6 @@ import io.mosip.testrig.apirig.utils.AdminTestException; import io.mosip.testrig.apirig.utils.AdminTestUtil; import io.mosip.testrig.apirig.utils.AuthenticationTestException; -import io.mosip.testrig.apirig.utils.ConfigManager; import io.mosip.testrig.apirig.utils.GlobalConstants; import io.mosip.testrig.apirig.utils.OutputValidationUtil; import io.mosip.testrig.apirig.utils.PreRegConfigManager; diff --git a/api-test/src/main/java/io/mosip/testrig/apirig/testscripts/GetWithParam.java b/api-test/src/main/java/io/mosip/testrig/apirig/testscripts/GetWithParam.java index 65757bb2d63..6d736b073f7 100644 --- a/api-test/src/main/java/io/mosip/testrig/apirig/testscripts/GetWithParam.java +++ b/api-test/src/main/java/io/mosip/testrig/apirig/testscripts/GetWithParam.java @@ -26,7 +26,6 @@ import io.mosip.testrig.apirig.utils.AdminTestException; import io.mosip.testrig.apirig.utils.AdminTestUtil; import io.mosip.testrig.apirig.utils.AuthenticationTestException; -import io.mosip.testrig.apirig.utils.ConfigManager; import io.mosip.testrig.apirig.utils.GlobalConstants; import io.mosip.testrig.apirig.utils.OutputValidationUtil; import io.mosip.testrig.apirig.utils.PreRegConfigManager; diff --git a/api-test/src/main/java/io/mosip/testrig/apirig/testscripts/GetWithParamForAutoGenId.java b/api-test/src/main/java/io/mosip/testrig/apirig/testscripts/GetWithParamForAutoGenId.java index 378ea411905..db5d502ff6f 100644 --- a/api-test/src/main/java/io/mosip/testrig/apirig/testscripts/GetWithParamForAutoGenId.java +++ b/api-test/src/main/java/io/mosip/testrig/apirig/testscripts/GetWithParamForAutoGenId.java @@ -26,7 +26,6 @@ import io.mosip.testrig.apirig.utils.AdminTestException; import io.mosip.testrig.apirig.utils.AdminTestUtil; import io.mosip.testrig.apirig.utils.AuthenticationTestException; -import io.mosip.testrig.apirig.utils.ConfigManager; import io.mosip.testrig.apirig.utils.GlobalConstants; import io.mosip.testrig.apirig.utils.OutputValidationUtil; import io.mosip.testrig.apirig.utils.PreRegConfigManager; diff --git a/api-test/src/main/java/io/mosip/testrig/apirig/testscripts/PostWithFormDataAndFileForNotificationAPI.java b/api-test/src/main/java/io/mosip/testrig/apirig/testscripts/PostWithFormDataAndFileForNotificationAPI.java index 6a6c485bcab..eabc0a3de64 100644 --- a/api-test/src/main/java/io/mosip/testrig/apirig/testscripts/PostWithFormDataAndFileForNotificationAPI.java +++ b/api-test/src/main/java/io/mosip/testrig/apirig/testscripts/PostWithFormDataAndFileForNotificationAPI.java @@ -24,7 +24,6 @@ import io.mosip.testrig.apirig.utils.AdminTestException; import io.mosip.testrig.apirig.utils.AdminTestUtil; import io.mosip.testrig.apirig.utils.AuthenticationTestException; -import io.mosip.testrig.apirig.utils.ConfigManager; import io.mosip.testrig.apirig.utils.GlobalConstants; import io.mosip.testrig.apirig.utils.OutputValidationUtil; import io.mosip.testrig.apirig.utils.PreRegConfigManager; diff --git a/api-test/src/main/java/io/mosip/testrig/apirig/testscripts/PostWithFormPathParamAndFile.java b/api-test/src/main/java/io/mosip/testrig/apirig/testscripts/PostWithFormPathParamAndFile.java index f3fc0b6439d..21894ad3d79 100644 --- a/api-test/src/main/java/io/mosip/testrig/apirig/testscripts/PostWithFormPathParamAndFile.java +++ b/api-test/src/main/java/io/mosip/testrig/apirig/testscripts/PostWithFormPathParamAndFile.java @@ -24,7 +24,6 @@ import io.mosip.testrig.apirig.utils.AdminTestException; import io.mosip.testrig.apirig.utils.AdminTestUtil; import io.mosip.testrig.apirig.utils.AuthenticationTestException; -import io.mosip.testrig.apirig.utils.ConfigManager; import io.mosip.testrig.apirig.utils.GlobalConstants; import io.mosip.testrig.apirig.utils.OutputValidationUtil; import io.mosip.testrig.apirig.utils.PreRegConfigManager; diff --git a/api-test/src/main/java/io/mosip/testrig/apirig/testscripts/PostWithPathParamsAndBody.java b/api-test/src/main/java/io/mosip/testrig/apirig/testscripts/PostWithPathParamsAndBody.java index 5d59bbdf843..6147bde81ef 100644 --- a/api-test/src/main/java/io/mosip/testrig/apirig/testscripts/PostWithPathParamsAndBody.java +++ b/api-test/src/main/java/io/mosip/testrig/apirig/testscripts/PostWithPathParamsAndBody.java @@ -24,7 +24,6 @@ import io.mosip.testrig.apirig.utils.AdminTestException; import io.mosip.testrig.apirig.utils.AdminTestUtil; import io.mosip.testrig.apirig.utils.AuthenticationTestException; -import io.mosip.testrig.apirig.utils.ConfigManager; import io.mosip.testrig.apirig.utils.GlobalConstants; import io.mosip.testrig.apirig.utils.OutputValidationUtil; import io.mosip.testrig.apirig.utils.PreRegConfigManager; diff --git a/api-test/src/main/java/io/mosip/testrig/apirig/testscripts/PreregAuditValidator.java b/api-test/src/main/java/io/mosip/testrig/apirig/testscripts/PreregAuditValidator.java index f7be19fa190..394635b38b8 100644 --- a/api-test/src/main/java/io/mosip/testrig/apirig/testscripts/PreregAuditValidator.java +++ b/api-test/src/main/java/io/mosip/testrig/apirig/testscripts/PreregAuditValidator.java @@ -24,12 +24,10 @@ import io.mosip.testrig.apirig.dbaccess.AuditDBManager; import io.mosip.testrig.apirig.dto.OutputValidationDto; import io.mosip.testrig.apirig.dto.TestCaseDTO; -import io.mosip.testrig.apirig.testrunner.BaseTestCase; import io.mosip.testrig.apirig.testrunner.HealthChecker; import io.mosip.testrig.apirig.utils.AdminTestException; import io.mosip.testrig.apirig.utils.AdminTestUtil; import io.mosip.testrig.apirig.utils.AuthenticationTestException; -import io.mosip.testrig.apirig.utils.ConfigManager; import io.mosip.testrig.apirig.utils.GlobalConstants; import io.mosip.testrig.apirig.utils.OutputValidationUtil; import io.mosip.testrig.apirig.utils.PreRegConfigManager; diff --git a/api-test/src/main/java/io/mosip/testrig/apirig/testscripts/PutWithPathParam.java b/api-test/src/main/java/io/mosip/testrig/apirig/testscripts/PutWithPathParam.java index 5930fecebd8..cf118694eef 100644 --- a/api-test/src/main/java/io/mosip/testrig/apirig/testscripts/PutWithPathParam.java +++ b/api-test/src/main/java/io/mosip/testrig/apirig/testscripts/PutWithPathParam.java @@ -26,7 +26,6 @@ import io.mosip.testrig.apirig.utils.AdminTestException; import io.mosip.testrig.apirig.utils.AdminTestUtil; import io.mosip.testrig.apirig.utils.AuthenticationTestException; -import io.mosip.testrig.apirig.utils.ConfigManager; import io.mosip.testrig.apirig.utils.GlobalConstants; import io.mosip.testrig.apirig.utils.OutputValidationUtil; import io.mosip.testrig.apirig.utils.PreRegConfigManager; diff --git a/api-test/src/main/java/io/mosip/testrig/apirig/testscripts/SimplePost.java b/api-test/src/main/java/io/mosip/testrig/apirig/testscripts/SimplePost.java index ea0480aec30..d7cb215a9a3 100644 --- a/api-test/src/main/java/io/mosip/testrig/apirig/testscripts/SimplePost.java +++ b/api-test/src/main/java/io/mosip/testrig/apirig/testscripts/SimplePost.java @@ -26,7 +26,6 @@ import io.mosip.testrig.apirig.utils.AdminTestException; import io.mosip.testrig.apirig.utils.AdminTestUtil; import io.mosip.testrig.apirig.utils.AuthenticationTestException; -import io.mosip.testrig.apirig.utils.ConfigManager; import io.mosip.testrig.apirig.utils.GlobalConstants; import io.mosip.testrig.apirig.utils.OutputValidationUtil; import io.mosip.testrig.apirig.utils.PreRegConfigManager; diff --git a/api-test/src/main/java/io/mosip/testrig/apirig/testscripts/UpdatePrereg.java b/api-test/src/main/java/io/mosip/testrig/apirig/testscripts/UpdatePrereg.java index 8546d4a6257..9feaebf4dcd 100644 --- a/api-test/src/main/java/io/mosip/testrig/apirig/testscripts/UpdatePrereg.java +++ b/api-test/src/main/java/io/mosip/testrig/apirig/testscripts/UpdatePrereg.java @@ -26,7 +26,6 @@ import io.mosip.testrig.apirig.utils.AdminTestException; import io.mosip.testrig.apirig.utils.AdminTestUtil; import io.mosip.testrig.apirig.utils.AuthenticationTestException; -import io.mosip.testrig.apirig.utils.ConfigManager; import io.mosip.testrig.apirig.utils.GlobalConstants; import io.mosip.testrig.apirig.utils.OutputValidationUtil; import io.mosip.testrig.apirig.utils.PreRegConfigManager; diff --git a/api-test/src/main/resources/preReg/GetPRIDByDateRange/GetPRIDByDateRange.yml b/api-test/src/main/resources/preReg/GetPRIDByDateRange/GetPRIDByDateRange.yml index c7881763655..8fed1dd6143 100644 --- a/api-test/src/main/resources/preReg/GetPRIDByDateRange/GetPRIDByDateRange.yml +++ b/api-test/src/main/resources/preReg/GetPRIDByDateRange/GetPRIDByDateRange.yml @@ -3,7 +3,7 @@ GetPRIDByDateRange: endPoint: /preregistration/v1/sync uniqueIdentifier: TC_prereg_GetPRIDByDateRange_01 description: Retrieve the PRID within the given date range - role: regproc + role: admin checkErrorsOnlyInResponse: true restMethod: post inputTemplate: preReg/GetPRIDByDateRange/getPRIDByDateRange @@ -23,7 +23,7 @@ GetPRIDByDateRange: endPoint: /preregistration/v1/sync uniqueIdentifier: TC_prereg_GetPRIDByDateRange_02 description: Retrieve the PRID within the specified date range for the Invalid ID - role: regproc + role: admin restMethod: post inputTemplate: preReg/GetPRIDByDateRange/getPRIDByDateRange outputTemplate: preReg/error @@ -46,7 +46,7 @@ GetPRIDByDateRange: endPoint: /preregistration/v1/sync uniqueIdentifier: TC_prereg_GetPRIDByDateRange_03 description: Retrieve the PRID within the specified date range for the blank ID - role: regproc + role: admin restMethod: post inputTemplate: preReg/GetPRIDByDateRange/getPRIDByDateRange outputTemplate: preReg/error @@ -69,7 +69,7 @@ GetPRIDByDateRange: endPoint: /preregistration/v1/sync uniqueIdentifier: TC_prereg_GetPRIDByDateRange_04 description: Retrieve the PRID within the specified date range for the missing ID - role: regproc + role: admin restMethod: post inputTemplate: preReg/GetPRIDByDateRange/getPRIDByDateRange outputTemplate: preReg/error @@ -92,7 +92,7 @@ GetPRIDByDateRange: endPoint: /preregistration/v1/sync uniqueIdentifier: TC_prereg_GetPRIDByDateRange_05 description: Retrieve the PRID within the specified date range for the invalid version - role: regproc + role: admin restMethod: post inputTemplate: preReg/GetPRIDByDateRange/getPRIDByDateRange outputTemplate: preReg/error @@ -115,7 +115,7 @@ GetPRIDByDateRange: endPoint: /preregistration/v1/sync uniqueIdentifier: TC_prereg_GetPRIDByDateRange_06 description: Retrieve the PRID within the specified date range for the missing version - role: regproc + role: admin restMethod: post inputTemplate: preReg/GetPRIDByDateRange/getPRIDByDateRange outputTemplate: preReg/error @@ -138,7 +138,7 @@ GetPRIDByDateRange: endPoint: /preregistration/v1/sync uniqueIdentifier: TC_prereg_GetPRIDByDateRange_07 description: Retrieve the PRID within the specified date range for the blank version - role: regproc + role: admin restMethod: post inputTemplate: preReg/GetPRIDByDateRange/getPRIDByDateRange outputTemplate: preReg/error @@ -161,7 +161,7 @@ GetPRIDByDateRange: endPoint: /preregistration/v1/sync uniqueIdentifier: TC_prereg_GetPRIDByDateRange_08 description: Retrieve the PRID within the specified date range for the request time that is blank - role: regproc + role: admin restMethod: post inputTemplate: preReg/GetPRIDByDateRange/getPRIDByDateRange outputTemplate: preReg/error @@ -184,7 +184,7 @@ GetPRIDByDateRange: endPoint: /preregistration/v1/sync uniqueIdentifier: TC_prereg_GetPRIDByDateRange_09 description: Retrieve the PRID within the specified date range for the missing request time - role: regproc + role: admin restMethod: post inputTemplate: preReg/GetPRIDByDateRange/getPRIDByDateRange outputTemplate: preReg/error @@ -207,7 +207,7 @@ GetPRIDByDateRange: endPoint: /preregistration/v1/sync uniqueIdentifier: TC_prereg_GetPRIDByDateRange_10 description: Retrieve the PRID within the specified date range for the invalid request time - role: regproc + role: admin restMethod: post inputTemplate: preReg/GetPRIDByDateRange/getPRIDByDateRange outputTemplate: preReg/error @@ -230,7 +230,7 @@ GetPRIDByDateRange: endPoint: /preregistration/v1/sync uniqueIdentifier: TC_prereg_GetPRIDByDateRange_11 description: Retrieve the PRID within the specified date range for the invalid registration center ID - role: regproc + role: admin restMethod: post inputTemplate: preReg/GetPRIDByDateRange/getPRIDByDateRange outputTemplate: preReg/error @@ -253,7 +253,7 @@ GetPRIDByDateRange: endPoint: /preregistration/v1/sync uniqueIdentifier: TC_prereg_GetPRIDByDateRange_12 description: Retrieve the PRID within the specified date range for the blank registration center ID - role: regproc + role: admin restMethod: post inputTemplate: preReg/GetPRIDByDateRange/getPRIDByDateRange outputTemplate: preReg/error @@ -276,7 +276,7 @@ GetPRIDByDateRange: endPoint: /preregistration/v1/sync uniqueIdentifier: TC_prereg_GetPRIDByDateRange_13 description: Retrieve the PRID within the specified date range for the missing registration center ID - role: regproc + role: admin restMethod: post inputTemplate: preReg/GetPRIDByDateRange/getPRIDByDateRange outputTemplate: preReg/error @@ -299,7 +299,7 @@ GetPRIDByDateRange: endPoint: /preregistration/v1/sync uniqueIdentifier: TC_prereg_GetPRIDByDateRange_14 description: Retrieve the PRID within the specified date range where the fromDate is missing - role: regproc + role: admin restMethod: post inputTemplate: preReg/GetPRIDByDateRange/getPRIDByDateRange outputTemplate: preReg/error @@ -322,7 +322,7 @@ GetPRIDByDateRange: endPoint: /preregistration/v1/sync uniqueIdentifier: TC_prereg_GetPRIDByDateRange_15 description: Retrieve the PRID within the specified date range where the fromDate is missing - role: regproc + role: admin restMethod: post inputTemplate: preReg/GetPRIDByDateRange/getPRIDByDateRange outputTemplate: preReg/error @@ -345,7 +345,7 @@ GetPRIDByDateRange: endPoint: /preregistration/v1/sync uniqueIdentifier: TC_prereg_GetPRIDByDateRange_16 description: Retrieve the PRID within the specified date range where the fromDate field is blank - role: regproc + role: admin restMethod: post inputTemplate: preReg/GetPRIDByDateRange/getPRIDByDateRange outputTemplate: preReg/error @@ -368,7 +368,7 @@ GetPRIDByDateRange: endPoint: /preregistration/v1/sync uniqueIdentifier: TC_prereg_GetPRIDByDateRange_17 description: Retrieve the PRID within the specified date range where the toDate field is blank - role: regproc + role: admin restMethod: post inputTemplate: preReg/GetPRIDByDateRange/getPRIDByDateRange outputTemplate: preReg/error @@ -391,7 +391,7 @@ GetPRIDByDateRange: endPoint: /preregistration/v1/sync uniqueIdentifier: TC_prereg_GetPRIDByDateRange_18 description: Retrieve the PRID within the specified date range where the toDate field is missing - role: regproc + role: admin restMethod: post inputTemplate: preReg/GetPRIDByDateRange/getPRIDByDateRange outputTemplate: preReg/error @@ -414,7 +414,7 @@ GetPRIDByDateRange: endPoint: /preregistration/v1/sync uniqueIdentifier: TC_prereg_GetPRIDByDateRange_19 description: Retrieve the PRID within the specified date range where the 'toDate' field is invalid - role: regproc + role: admin restMethod: post inputTemplate: preReg/GetPRIDByDateRange/getPRIDByDateRange outputTemplate: preReg/error