diff --git a/.github/workflows/push-trigger.yml b/.github/workflows/push-trigger.yml index 699c8ffaade..f22b393af71 100644 --- a/.github/workflows/push-trigger.yml +++ b/.github/workflows/push-trigger.yml @@ -94,9 +94,9 @@ jobs: SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK }} build-maven-apitest-prereg: - uses: mosip/kattu/.github/workflows/maven-build.yml@master + uses: mosip/kattu/.github/workflows/maven-build.yml@master-java21 with: - SERVICE_LOCATION: ./apitest + SERVICE_LOCATION: ./api-test BUILD_ARTIFACT: apitest-prereg secrets: OSSRH_USER: ${{ secrets.OSSRH_USER }} @@ -108,9 +108,9 @@ jobs: publish_to_nexus_apitest_prereg: if: "${{ !contains(github.ref, 'master') && github.event_name != 'pull_request' && github.event_name != 'release' && github.event_name != 'prerelease' && github.event_name != 'publish' }}" needs: build-maven-apitest-prereg - uses: mosip/kattu/.github/workflows/maven-publish-to-nexus.yml@master + uses: mosip/kattu/.github/workflows/maven-publish-to-nexus.yml@master-java21 with: - SERVICE_LOCATION: ./apitest + SERVICE_LOCATION: ./api-test secrets: OSSRH_USER: ${{ secrets.OSSRH_USER }} OSSRH_SECRET: ${{ secrets.OSSRH_SECRET }} @@ -125,15 +125,15 @@ 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 - - name: Set up JDK 11 - uses: actions/setup-java@v1 + - uses: actions/checkout@v3 + - name: Set up JDK 21 + uses: actions/setup-java@v3 with: - ref: ${{ github.ref }} - java-version: '11' + distribution: 'temurin' + java-version: 21 server-id: ossrh # Value of the distributionManagement/repository/id field of the pom.xml settings-path: ${{ github.workspace }} # location for the settings.xml file - name: Setup the settings file for ossrh server @@ -170,13 +170,13 @@ jobs: strategy: matrix: include: - - SERVICE_LOCATION: 'apitest' + - SERVICE_LOCATION: 'api-test' SERVICE_NAME: 'apitest-prereg' BUILD_ARTIFACT: 'apitest-prereg-local' ONLY_DOCKER: true fail-fast: false name: ${{ matrix.SERVICE_NAME }} - uses: mosip/kattu/.github/workflows/docker-build.yml@master + uses: mosip/kattu/.github/workflows/docker-build.yml@master-java21 with: SERVICE_LOCATION: ${{ matrix.SERVICE_LOCATION }} SERVICE_NAME: ${{ matrix.SERVICE_NAME }} @@ -191,9 +191,9 @@ jobs: sonar_analysis_apitest_prereg: needs: build-maven-apitest-prereg if: "${{ github.event_name != 'pull_request' }}" - uses: mosip/kattu/.github/workflows/maven-sonar-analysis.yml@master + uses: mosip/kattu/.github/workflows/maven-sonar-analysis.yml@master-java21 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 98% rename from apitest/pom.xml rename to api-test/pom.xml index 9fb8d881efc..f3efb15c30a 100644 --- a/apitest/pom.xml +++ b/api-test/pom.xml @@ -37,8 +37,8 @@ UTF-8 - 11 - 11 + 21 + 21 3.8.0 3.0.2 3.1.0 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