diff --git a/.github/workflows/push-trigger.yml b/.github/workflows/push-trigger.yml index ded26b8b..c182d0ba 100644 --- a/.github/workflows/push-trigger.yml +++ b/.github/workflows/push-trigger.yml @@ -89,7 +89,7 @@ jobs: build-maven-apitest-inji-certify: uses: mosip/kattu/.github/workflows/maven-build.yml@master-java21 with: - SERVICE_LOCATION: ./apitest + SERVICE_LOCATION: ./api-test BUILD_ARTIFACT: apitest-inji-certify secrets: OSSRH_USER: ${{ secrets.OSSRH_USER }} @@ -103,7 +103,7 @@ jobs: needs: build-maven-apitest-inji-certify 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 }} @@ -118,7 +118,7 @@ jobs: env: NAMESPACE: ${{ secrets.dev_namespace_docker_hub }} SERVICE_NAME: apitest-inji-certify - SERVICE_LOCATION: apitest + SERVICE_LOCATION: api-test BUILD_ARTIFACT: apitest-inji-certify-local steps: - uses: actions/checkout@v3 @@ -163,7 +163,7 @@ jobs: strategy: matrix: include: - - SERVICE_LOCATION: 'apitest' + - SERVICE_LOCATION: 'api-test' SERVICE_NAME: 'apitest-inji-certify' BUILD_ARTIFACT: 'apitest-inji-certify-local' ONLY_DOCKER: true @@ -186,7 +186,7 @@ jobs: if: "${{ github.event_name != 'pull_request' }}" 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/Biometric Devices/Face/DeviceDiscovery.json b/api-test/Biometric Devices/Face/DeviceDiscovery.json similarity index 100% rename from apitest/Biometric Devices/Face/DeviceDiscovery.json rename to api-test/Biometric Devices/Face/DeviceDiscovery.json diff --git a/apitest/Biometric Devices/Face/DeviceInfo.json b/api-test/Biometric Devices/Face/DeviceInfo.json similarity index 100% rename from apitest/Biometric Devices/Face/DeviceInfo.json rename to api-test/Biometric Devices/Face/DeviceInfo.json diff --git a/apitest/Biometric Devices/Face/DigitalId.json b/api-test/Biometric Devices/Face/DigitalId.json similarity index 100% rename from apitest/Biometric Devices/Face/DigitalId.json rename to api-test/Biometric Devices/Face/DigitalId.json diff --git a/apitest/Biometric Devices/Face/Stream Image/0.jpeg b/api-test/Biometric Devices/Face/Stream Image/0.jpeg similarity index 100% rename from apitest/Biometric Devices/Face/Stream Image/0.jpeg rename to api-test/Biometric Devices/Face/Stream Image/0.jpeg diff --git a/apitest/Biometric Devices/Finger/Single/DeviceDiscovery.json b/api-test/Biometric Devices/Finger/Single/DeviceDiscovery.json similarity index 100% rename from apitest/Biometric Devices/Finger/Single/DeviceDiscovery.json rename to api-test/Biometric Devices/Finger/Single/DeviceDiscovery.json diff --git a/apitest/Biometric Devices/Finger/Single/DeviceInfo.json b/api-test/Biometric Devices/Finger/Single/DeviceInfo.json similarity index 100% rename from apitest/Biometric Devices/Finger/Single/DeviceInfo.json rename to api-test/Biometric Devices/Finger/Single/DeviceInfo.json diff --git a/apitest/Biometric Devices/Finger/Single/DigitalId.json b/api-test/Biometric Devices/Finger/Single/DigitalId.json similarity index 100% rename from apitest/Biometric Devices/Finger/Single/DigitalId.json rename to api-test/Biometric Devices/Finger/Single/DigitalId.json diff --git a/apitest/Biometric Devices/Finger/Slap/DeviceDiscovery.json b/api-test/Biometric Devices/Finger/Slap/DeviceDiscovery.json similarity index 100% rename from apitest/Biometric Devices/Finger/Slap/DeviceDiscovery.json rename to api-test/Biometric Devices/Finger/Slap/DeviceDiscovery.json diff --git a/apitest/Biometric Devices/Finger/Slap/DeviceInfo.json b/api-test/Biometric Devices/Finger/Slap/DeviceInfo.json similarity index 100% rename from apitest/Biometric Devices/Finger/Slap/DeviceInfo.json rename to api-test/Biometric Devices/Finger/Slap/DeviceInfo.json diff --git a/apitest/Biometric Devices/Finger/Slap/DigitalId.json b/api-test/Biometric Devices/Finger/Slap/DigitalId.json similarity index 100% rename from apitest/Biometric Devices/Finger/Slap/DigitalId.json rename to api-test/Biometric Devices/Finger/Slap/DigitalId.json diff --git a/apitest/Biometric Devices/Finger/Slap/Stream Image/1.jpeg b/api-test/Biometric Devices/Finger/Slap/Stream Image/1.jpeg similarity index 100% rename from apitest/Biometric Devices/Finger/Slap/Stream Image/1.jpeg rename to api-test/Biometric Devices/Finger/Slap/Stream Image/1.jpeg diff --git a/apitest/Biometric Devices/Finger/Slap/Stream Image/2.jpeg b/api-test/Biometric Devices/Finger/Slap/Stream Image/2.jpeg similarity index 100% rename from apitest/Biometric Devices/Finger/Slap/Stream Image/2.jpeg rename to api-test/Biometric Devices/Finger/Slap/Stream Image/2.jpeg diff --git a/apitest/Biometric Devices/Finger/Slap/Stream Image/3.jpeg b/api-test/Biometric Devices/Finger/Slap/Stream Image/3.jpeg similarity index 100% rename from apitest/Biometric Devices/Finger/Slap/Stream Image/3.jpeg rename to api-test/Biometric Devices/Finger/Slap/Stream Image/3.jpeg diff --git a/apitest/Biometric Devices/Iris/Double/DeviceDiscovery.json b/api-test/Biometric Devices/Iris/Double/DeviceDiscovery.json similarity index 100% rename from apitest/Biometric Devices/Iris/Double/DeviceDiscovery.json rename to api-test/Biometric Devices/Iris/Double/DeviceDiscovery.json diff --git a/apitest/Biometric Devices/Iris/Double/DeviceInfo.json b/api-test/Biometric Devices/Iris/Double/DeviceInfo.json similarity index 100% rename from apitest/Biometric Devices/Iris/Double/DeviceInfo.json rename to api-test/Biometric Devices/Iris/Double/DeviceInfo.json diff --git a/apitest/Biometric Devices/Iris/Double/DigitalId.json b/api-test/Biometric Devices/Iris/Double/DigitalId.json similarity index 100% rename from apitest/Biometric Devices/Iris/Double/DigitalId.json rename to api-test/Biometric Devices/Iris/Double/DigitalId.json diff --git a/apitest/Biometric Devices/Iris/Double/Stream Image/1.jpeg b/api-test/Biometric Devices/Iris/Double/Stream Image/1.jpeg similarity index 100% rename from apitest/Biometric Devices/Iris/Double/Stream Image/1.jpeg rename to api-test/Biometric Devices/Iris/Double/Stream Image/1.jpeg diff --git a/apitest/Biometric Devices/Iris/Double/Stream Image/2.jpeg b/api-test/Biometric Devices/Iris/Double/Stream Image/2.jpeg similarity index 100% rename from apitest/Biometric Devices/Iris/Double/Stream Image/2.jpeg rename to api-test/Biometric Devices/Iris/Double/Stream Image/2.jpeg diff --git a/apitest/Biometric Devices/Iris/Double/Stream Image/3.jpeg b/api-test/Biometric Devices/Iris/Double/Stream Image/3.jpeg similarity index 100% rename from apitest/Biometric Devices/Iris/Double/Stream Image/3.jpeg rename to api-test/Biometric Devices/Iris/Double/Stream Image/3.jpeg diff --git a/apitest/Biometric Devices/Iris/Single/DeviceDiscovery.json b/api-test/Biometric Devices/Iris/Single/DeviceDiscovery.json similarity index 100% rename from apitest/Biometric Devices/Iris/Single/DeviceDiscovery.json rename to api-test/Biometric Devices/Iris/Single/DeviceDiscovery.json diff --git a/apitest/Biometric Devices/Iris/Single/DeviceInfo.json b/api-test/Biometric Devices/Iris/Single/DeviceInfo.json similarity index 100% rename from apitest/Biometric Devices/Iris/Single/DeviceInfo.json rename to api-test/Biometric Devices/Iris/Single/DeviceInfo.json diff --git a/apitest/Biometric Devices/Iris/Single/DigitalId.json b/api-test/Biometric Devices/Iris/Single/DigitalId.json similarity index 100% rename from apitest/Biometric Devices/Iris/Single/DigitalId.json rename to api-test/Biometric Devices/Iris/Single/DigitalId.json diff --git a/apitest/Biometric Devices/rootca.cer b/api-test/Biometric Devices/rootca.cer similarity index 100% rename from apitest/Biometric Devices/rootca.cer rename to api-test/Biometric Devices/rootca.cer diff --git a/apitest/Biometric Devices/rootcaftm.cer b/api-test/Biometric Devices/rootcaftm.cer similarity index 100% rename from apitest/Biometric Devices/rootcaftm.cer rename to api-test/Biometric Devices/rootcaftm.cer diff --git a/apitest/Dockerfile b/api-test/Dockerfile similarity index 98% rename from apitest/Dockerfile rename to api-test/Dockerfile index f941af4f..5acccb14 100644 --- a/apitest/Dockerfile +++ b/api-test/Dockerfile @@ -29,7 +29,7 @@ WORKDIR /home/${container_user} ENV work_dir=/home/${container_user} # Combine all necessary files into a single COPY command -COPY ./apitest/target $work_dir/ +COPY ./api-test/target $work_dir/ COPY application.properties $work_dir/ COPY ["Biometric Devices", "$work_dir/Biometric Devices"] COPY ["resource", "$work_dir/resource"] 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/application.properties b/api-test/application.properties similarity index 100% rename from apitest/application.properties rename to api-test/application.properties 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/metadata.xml b/api-test/metadata.xml similarity index 100% rename from apitest/metadata.xml rename to api-test/metadata.xml diff --git a/apitest/pom.xml b/api-test/pom.xml similarity index 100% rename from apitest/pom.xml rename to api-test/pom.xml diff --git a/apitest/resource/Profile/Automatic/Auth/0001Face.iso b/api-test/resource/Profile/Automatic/Auth/0001Face.iso similarity index 100% rename from apitest/resource/Profile/Automatic/Auth/0001Face.iso rename to api-test/resource/Profile/Automatic/Auth/0001Face.iso diff --git a/apitest/resource/Profile/Automatic/Auth/0001Left_Index.iso b/api-test/resource/Profile/Automatic/Auth/0001Left_Index.iso similarity index 100% rename from apitest/resource/Profile/Automatic/Auth/0001Left_Index.iso rename to api-test/resource/Profile/Automatic/Auth/0001Left_Index.iso diff --git a/apitest/resource/Profile/Automatic/Auth/0001Left_Index.wsq.iso b/api-test/resource/Profile/Automatic/Auth/0001Left_Index.wsq.iso similarity index 100% rename from apitest/resource/Profile/Automatic/Auth/0001Left_Index.wsq.iso rename to api-test/resource/Profile/Automatic/Auth/0001Left_Index.wsq.iso diff --git a/apitest/resource/Profile/Automatic/Auth/0001Left_Iris.iso b/api-test/resource/Profile/Automatic/Auth/0001Left_Iris.iso similarity index 100% rename from apitest/resource/Profile/Automatic/Auth/0001Left_Iris.iso rename to api-test/resource/Profile/Automatic/Auth/0001Left_Iris.iso diff --git a/apitest/resource/Profile/Automatic/Auth/0001Left_Little.iso b/api-test/resource/Profile/Automatic/Auth/0001Left_Little.iso similarity index 100% rename from apitest/resource/Profile/Automatic/Auth/0001Left_Little.iso rename to api-test/resource/Profile/Automatic/Auth/0001Left_Little.iso diff --git a/apitest/resource/Profile/Automatic/Auth/0001Left_Little.wsq.iso b/api-test/resource/Profile/Automatic/Auth/0001Left_Little.wsq.iso similarity index 100% rename from apitest/resource/Profile/Automatic/Auth/0001Left_Little.wsq.iso rename to api-test/resource/Profile/Automatic/Auth/0001Left_Little.wsq.iso diff --git a/apitest/resource/Profile/Automatic/Auth/0001Left_Middle.iso b/api-test/resource/Profile/Automatic/Auth/0001Left_Middle.iso similarity index 100% rename from apitest/resource/Profile/Automatic/Auth/0001Left_Middle.iso rename to api-test/resource/Profile/Automatic/Auth/0001Left_Middle.iso diff --git a/apitest/resource/Profile/Automatic/Auth/0001Left_Middle.wsq.iso b/api-test/resource/Profile/Automatic/Auth/0001Left_Middle.wsq.iso similarity index 100% rename from apitest/resource/Profile/Automatic/Auth/0001Left_Middle.wsq.iso rename to api-test/resource/Profile/Automatic/Auth/0001Left_Middle.wsq.iso diff --git a/apitest/resource/Profile/Automatic/Auth/0001Left_Ring.iso b/api-test/resource/Profile/Automatic/Auth/0001Left_Ring.iso similarity index 100% rename from apitest/resource/Profile/Automatic/Auth/0001Left_Ring.iso rename to api-test/resource/Profile/Automatic/Auth/0001Left_Ring.iso diff --git a/apitest/resource/Profile/Automatic/Auth/0001Left_Ring.wsq.iso b/api-test/resource/Profile/Automatic/Auth/0001Left_Ring.wsq.iso similarity index 100% rename from apitest/resource/Profile/Automatic/Auth/0001Left_Ring.wsq.iso rename to api-test/resource/Profile/Automatic/Auth/0001Left_Ring.wsq.iso diff --git a/apitest/resource/Profile/Automatic/Auth/0001Left_Thumb.iso b/api-test/resource/Profile/Automatic/Auth/0001Left_Thumb.iso similarity index 100% rename from apitest/resource/Profile/Automatic/Auth/0001Left_Thumb.iso rename to api-test/resource/Profile/Automatic/Auth/0001Left_Thumb.iso diff --git a/apitest/resource/Profile/Automatic/Auth/0001Left_Thumb.wsq.iso b/api-test/resource/Profile/Automatic/Auth/0001Left_Thumb.wsq.iso similarity index 100% rename from apitest/resource/Profile/Automatic/Auth/0001Left_Thumb.wsq.iso rename to api-test/resource/Profile/Automatic/Auth/0001Left_Thumb.wsq.iso diff --git a/apitest/resource/Profile/Automatic/Auth/0001Right_Index.iso b/api-test/resource/Profile/Automatic/Auth/0001Right_Index.iso similarity index 100% rename from apitest/resource/Profile/Automatic/Auth/0001Right_Index.iso rename to api-test/resource/Profile/Automatic/Auth/0001Right_Index.iso diff --git a/apitest/resource/Profile/Automatic/Auth/0001Right_Index.wsq.iso b/api-test/resource/Profile/Automatic/Auth/0001Right_Index.wsq.iso similarity index 100% rename from apitest/resource/Profile/Automatic/Auth/0001Right_Index.wsq.iso rename to api-test/resource/Profile/Automatic/Auth/0001Right_Index.wsq.iso diff --git a/apitest/resource/Profile/Automatic/Auth/0001Right_Iris.iso b/api-test/resource/Profile/Automatic/Auth/0001Right_Iris.iso similarity index 100% rename from apitest/resource/Profile/Automatic/Auth/0001Right_Iris.iso rename to api-test/resource/Profile/Automatic/Auth/0001Right_Iris.iso diff --git a/apitest/resource/Profile/Automatic/Auth/0001Right_Little.iso b/api-test/resource/Profile/Automatic/Auth/0001Right_Little.iso similarity index 100% rename from apitest/resource/Profile/Automatic/Auth/0001Right_Little.iso rename to api-test/resource/Profile/Automatic/Auth/0001Right_Little.iso diff --git a/apitest/resource/Profile/Automatic/Auth/0001Right_Little.wsq.iso b/api-test/resource/Profile/Automatic/Auth/0001Right_Little.wsq.iso similarity index 100% rename from apitest/resource/Profile/Automatic/Auth/0001Right_Little.wsq.iso rename to api-test/resource/Profile/Automatic/Auth/0001Right_Little.wsq.iso diff --git a/apitest/resource/Profile/Automatic/Auth/0001Right_Middle.iso b/api-test/resource/Profile/Automatic/Auth/0001Right_Middle.iso similarity index 100% rename from apitest/resource/Profile/Automatic/Auth/0001Right_Middle.iso rename to api-test/resource/Profile/Automatic/Auth/0001Right_Middle.iso diff --git a/apitest/resource/Profile/Automatic/Auth/0001Right_Middle.wsq.iso b/api-test/resource/Profile/Automatic/Auth/0001Right_Middle.wsq.iso similarity index 100% rename from apitest/resource/Profile/Automatic/Auth/0001Right_Middle.wsq.iso rename to api-test/resource/Profile/Automatic/Auth/0001Right_Middle.wsq.iso diff --git a/apitest/resource/Profile/Automatic/Auth/0001Right_Ring.iso b/api-test/resource/Profile/Automatic/Auth/0001Right_Ring.iso similarity index 100% rename from apitest/resource/Profile/Automatic/Auth/0001Right_Ring.iso rename to api-test/resource/Profile/Automatic/Auth/0001Right_Ring.iso diff --git a/apitest/resource/Profile/Automatic/Auth/0001Right_Ring.wsq.iso b/api-test/resource/Profile/Automatic/Auth/0001Right_Ring.wsq.iso similarity index 100% rename from apitest/resource/Profile/Automatic/Auth/0001Right_Ring.wsq.iso rename to api-test/resource/Profile/Automatic/Auth/0001Right_Ring.wsq.iso diff --git a/apitest/resource/Profile/Automatic/Auth/0001Right_Thumb.iso b/api-test/resource/Profile/Automatic/Auth/0001Right_Thumb.iso similarity index 100% rename from apitest/resource/Profile/Automatic/Auth/0001Right_Thumb.iso rename to api-test/resource/Profile/Automatic/Auth/0001Right_Thumb.iso diff --git a/apitest/resource/Profile/Automatic/Auth/0001Right_Thumb.wsq.iso b/api-test/resource/Profile/Automatic/Auth/0001Right_Thumb.wsq.iso similarity index 100% rename from apitest/resource/Profile/Automatic/Auth/0001Right_Thumb.wsq.iso rename to api-test/resource/Profile/Automatic/Auth/0001Right_Thumb.wsq.iso diff --git a/apitest/resource/Profile/Automatic/Registration/0001Exception_Photo.iso b/api-test/resource/Profile/Automatic/Registration/0001Exception_Photo.iso similarity index 100% rename from apitest/resource/Profile/Automatic/Registration/0001Exception_Photo.iso rename to api-test/resource/Profile/Automatic/Registration/0001Exception_Photo.iso diff --git a/apitest/resource/Profile/Automatic/Registration/0001Face.iso b/api-test/resource/Profile/Automatic/Registration/0001Face.iso similarity index 100% rename from apitest/resource/Profile/Automatic/Registration/0001Face.iso rename to api-test/resource/Profile/Automatic/Registration/0001Face.iso diff --git a/apitest/resource/Profile/Automatic/Registration/0001Left_Index.iso b/api-test/resource/Profile/Automatic/Registration/0001Left_Index.iso similarity index 100% rename from apitest/resource/Profile/Automatic/Registration/0001Left_Index.iso rename to api-test/resource/Profile/Automatic/Registration/0001Left_Index.iso diff --git a/apitest/resource/Profile/Automatic/Registration/0001Left_Iris.iso b/api-test/resource/Profile/Automatic/Registration/0001Left_Iris.iso similarity index 100% rename from apitest/resource/Profile/Automatic/Registration/0001Left_Iris.iso rename to api-test/resource/Profile/Automatic/Registration/0001Left_Iris.iso diff --git a/apitest/resource/Profile/Automatic/Registration/0001Left_Little.iso b/api-test/resource/Profile/Automatic/Registration/0001Left_Little.iso similarity index 100% rename from apitest/resource/Profile/Automatic/Registration/0001Left_Little.iso rename to api-test/resource/Profile/Automatic/Registration/0001Left_Little.iso diff --git a/apitest/resource/Profile/Automatic/Registration/0001Left_Middle.iso b/api-test/resource/Profile/Automatic/Registration/0001Left_Middle.iso similarity index 100% rename from apitest/resource/Profile/Automatic/Registration/0001Left_Middle.iso rename to api-test/resource/Profile/Automatic/Registration/0001Left_Middle.iso diff --git a/apitest/resource/Profile/Automatic/Registration/0001Left_Ring.iso b/api-test/resource/Profile/Automatic/Registration/0001Left_Ring.iso similarity index 100% rename from apitest/resource/Profile/Automatic/Registration/0001Left_Ring.iso rename to api-test/resource/Profile/Automatic/Registration/0001Left_Ring.iso diff --git a/apitest/resource/Profile/Automatic/Registration/0001Left_Thumb.iso b/api-test/resource/Profile/Automatic/Registration/0001Left_Thumb.iso similarity index 100% rename from apitest/resource/Profile/Automatic/Registration/0001Left_Thumb.iso rename to api-test/resource/Profile/Automatic/Registration/0001Left_Thumb.iso diff --git a/apitest/resource/Profile/Automatic/Registration/0001Right_Index.iso b/api-test/resource/Profile/Automatic/Registration/0001Right_Index.iso similarity index 100% rename from apitest/resource/Profile/Automatic/Registration/0001Right_Index.iso rename to api-test/resource/Profile/Automatic/Registration/0001Right_Index.iso diff --git a/apitest/resource/Profile/Automatic/Registration/0001Right_Iris.iso b/api-test/resource/Profile/Automatic/Registration/0001Right_Iris.iso similarity index 100% rename from apitest/resource/Profile/Automatic/Registration/0001Right_Iris.iso rename to api-test/resource/Profile/Automatic/Registration/0001Right_Iris.iso diff --git a/apitest/resource/Profile/Automatic/Registration/0001Right_Little.iso b/api-test/resource/Profile/Automatic/Registration/0001Right_Little.iso similarity index 100% rename from apitest/resource/Profile/Automatic/Registration/0001Right_Little.iso rename to api-test/resource/Profile/Automatic/Registration/0001Right_Little.iso diff --git a/apitest/resource/Profile/Automatic/Registration/0001Right_Middle.iso b/api-test/resource/Profile/Automatic/Registration/0001Right_Middle.iso similarity index 100% rename from apitest/resource/Profile/Automatic/Registration/0001Right_Middle.iso rename to api-test/resource/Profile/Automatic/Registration/0001Right_Middle.iso diff --git a/apitest/resource/Profile/Automatic/Registration/0001Right_Ring.iso b/api-test/resource/Profile/Automatic/Registration/0001Right_Ring.iso similarity index 100% rename from apitest/resource/Profile/Automatic/Registration/0001Right_Ring.iso rename to api-test/resource/Profile/Automatic/Registration/0001Right_Ring.iso diff --git a/apitest/resource/Profile/Automatic/Registration/0001Right_Thumb.iso b/api-test/resource/Profile/Automatic/Registration/0001Right_Thumb.iso similarity index 100% rename from apitest/resource/Profile/Automatic/Registration/0001Right_Thumb.iso rename to api-test/resource/Profile/Automatic/Registration/0001Right_Thumb.iso diff --git a/apitest/resource/Profile/Default/Auth/Face.iso b/api-test/resource/Profile/Default/Auth/Face.iso similarity index 100% rename from apitest/resource/Profile/Default/Auth/Face.iso rename to api-test/resource/Profile/Default/Auth/Face.iso diff --git a/apitest/resource/Profile/Default/Auth/Finger_UKNOWN.iso b/api-test/resource/Profile/Default/Auth/Finger_UKNOWN.iso similarity index 100% rename from apitest/resource/Profile/Default/Auth/Finger_UKNOWN.iso rename to api-test/resource/Profile/Default/Auth/Finger_UKNOWN.iso diff --git a/apitest/resource/Profile/Default/Auth/Finger_UKNOWN_wsq.iso b/api-test/resource/Profile/Default/Auth/Finger_UKNOWN_wsq.iso similarity index 100% rename from apitest/resource/Profile/Default/Auth/Finger_UKNOWN_wsq.iso rename to api-test/resource/Profile/Default/Auth/Finger_UKNOWN_wsq.iso diff --git a/apitest/resource/Profile/Default/Auth/Iris_UNKNOWN.iso b/api-test/resource/Profile/Default/Auth/Iris_UNKNOWN.iso similarity index 100% rename from apitest/resource/Profile/Default/Auth/Iris_UNKNOWN.iso rename to api-test/resource/Profile/Default/Auth/Iris_UNKNOWN.iso diff --git a/apitest/resource/Profile/Default/Auth/Left_Index.iso b/api-test/resource/Profile/Default/Auth/Left_Index.iso similarity index 100% rename from apitest/resource/Profile/Default/Auth/Left_Index.iso rename to api-test/resource/Profile/Default/Auth/Left_Index.iso diff --git a/apitest/resource/Profile/Default/Auth/Left_Index_wsq.iso b/api-test/resource/Profile/Default/Auth/Left_Index_wsq.iso similarity index 100% rename from apitest/resource/Profile/Default/Auth/Left_Index_wsq.iso rename to api-test/resource/Profile/Default/Auth/Left_Index_wsq.iso diff --git a/apitest/resource/Profile/Default/Auth/Left_Iris.iso b/api-test/resource/Profile/Default/Auth/Left_Iris.iso similarity index 100% rename from apitest/resource/Profile/Default/Auth/Left_Iris.iso rename to api-test/resource/Profile/Default/Auth/Left_Iris.iso diff --git a/apitest/resource/Profile/Default/Auth/Left_Little.iso b/api-test/resource/Profile/Default/Auth/Left_Little.iso similarity index 100% rename from apitest/resource/Profile/Default/Auth/Left_Little.iso rename to api-test/resource/Profile/Default/Auth/Left_Little.iso diff --git a/apitest/resource/Profile/Default/Auth/Left_Little_wsq.iso b/api-test/resource/Profile/Default/Auth/Left_Little_wsq.iso similarity index 100% rename from apitest/resource/Profile/Default/Auth/Left_Little_wsq.iso rename to api-test/resource/Profile/Default/Auth/Left_Little_wsq.iso diff --git a/apitest/resource/Profile/Default/Auth/Left_Middle.iso b/api-test/resource/Profile/Default/Auth/Left_Middle.iso similarity index 100% rename from apitest/resource/Profile/Default/Auth/Left_Middle.iso rename to api-test/resource/Profile/Default/Auth/Left_Middle.iso diff --git a/apitest/resource/Profile/Default/Auth/Left_Middle_wsq.iso b/api-test/resource/Profile/Default/Auth/Left_Middle_wsq.iso similarity index 100% rename from apitest/resource/Profile/Default/Auth/Left_Middle_wsq.iso rename to api-test/resource/Profile/Default/Auth/Left_Middle_wsq.iso diff --git a/apitest/resource/Profile/Default/Auth/Left_Ring.iso b/api-test/resource/Profile/Default/Auth/Left_Ring.iso similarity index 100% rename from apitest/resource/Profile/Default/Auth/Left_Ring.iso rename to api-test/resource/Profile/Default/Auth/Left_Ring.iso diff --git a/apitest/resource/Profile/Default/Auth/Left_Ring_wsq.iso b/api-test/resource/Profile/Default/Auth/Left_Ring_wsq.iso similarity index 100% rename from apitest/resource/Profile/Default/Auth/Left_Ring_wsq.iso rename to api-test/resource/Profile/Default/Auth/Left_Ring_wsq.iso diff --git a/apitest/resource/Profile/Default/Auth/Left_Thumb.iso b/api-test/resource/Profile/Default/Auth/Left_Thumb.iso similarity index 100% rename from apitest/resource/Profile/Default/Auth/Left_Thumb.iso rename to api-test/resource/Profile/Default/Auth/Left_Thumb.iso diff --git a/apitest/resource/Profile/Default/Auth/Left_Thumb_wsq.iso b/api-test/resource/Profile/Default/Auth/Left_Thumb_wsq.iso similarity index 100% rename from apitest/resource/Profile/Default/Auth/Left_Thumb_wsq.iso rename to api-test/resource/Profile/Default/Auth/Left_Thumb_wsq.iso diff --git a/apitest/resource/Profile/Default/Auth/Right_Index.iso b/api-test/resource/Profile/Default/Auth/Right_Index.iso similarity index 100% rename from apitest/resource/Profile/Default/Auth/Right_Index.iso rename to api-test/resource/Profile/Default/Auth/Right_Index.iso diff --git a/apitest/resource/Profile/Default/Auth/Right_Index_wsq.iso b/api-test/resource/Profile/Default/Auth/Right_Index_wsq.iso similarity index 100% rename from apitest/resource/Profile/Default/Auth/Right_Index_wsq.iso rename to api-test/resource/Profile/Default/Auth/Right_Index_wsq.iso diff --git a/apitest/resource/Profile/Default/Auth/Right_Iris.iso b/api-test/resource/Profile/Default/Auth/Right_Iris.iso similarity index 100% rename from apitest/resource/Profile/Default/Auth/Right_Iris.iso rename to api-test/resource/Profile/Default/Auth/Right_Iris.iso diff --git a/apitest/resource/Profile/Default/Auth/Right_Little.iso b/api-test/resource/Profile/Default/Auth/Right_Little.iso similarity index 100% rename from apitest/resource/Profile/Default/Auth/Right_Little.iso rename to api-test/resource/Profile/Default/Auth/Right_Little.iso diff --git a/apitest/resource/Profile/Default/Auth/Right_Little_wsq.iso b/api-test/resource/Profile/Default/Auth/Right_Little_wsq.iso similarity index 100% rename from apitest/resource/Profile/Default/Auth/Right_Little_wsq.iso rename to api-test/resource/Profile/Default/Auth/Right_Little_wsq.iso diff --git a/apitest/resource/Profile/Default/Auth/Right_Middle.iso b/api-test/resource/Profile/Default/Auth/Right_Middle.iso similarity index 100% rename from apitest/resource/Profile/Default/Auth/Right_Middle.iso rename to api-test/resource/Profile/Default/Auth/Right_Middle.iso diff --git a/apitest/resource/Profile/Default/Auth/Right_Middle_wsq.iso b/api-test/resource/Profile/Default/Auth/Right_Middle_wsq.iso similarity index 100% rename from apitest/resource/Profile/Default/Auth/Right_Middle_wsq.iso rename to api-test/resource/Profile/Default/Auth/Right_Middle_wsq.iso diff --git a/apitest/resource/Profile/Default/Auth/Right_Ring.iso b/api-test/resource/Profile/Default/Auth/Right_Ring.iso similarity index 100% rename from apitest/resource/Profile/Default/Auth/Right_Ring.iso rename to api-test/resource/Profile/Default/Auth/Right_Ring.iso diff --git a/apitest/resource/Profile/Default/Auth/Right_Ring_wsq.iso b/api-test/resource/Profile/Default/Auth/Right_Ring_wsq.iso similarity index 100% rename from apitest/resource/Profile/Default/Auth/Right_Ring_wsq.iso rename to api-test/resource/Profile/Default/Auth/Right_Ring_wsq.iso diff --git a/apitest/resource/Profile/Default/Auth/Right_Thumb.iso b/api-test/resource/Profile/Default/Auth/Right_Thumb.iso similarity index 100% rename from apitest/resource/Profile/Default/Auth/Right_Thumb.iso rename to api-test/resource/Profile/Default/Auth/Right_Thumb.iso diff --git a/apitest/resource/Profile/Default/Auth/Right_Thumb_wsq.iso b/api-test/resource/Profile/Default/Auth/Right_Thumb_wsq.iso similarity index 100% rename from apitest/resource/Profile/Default/Auth/Right_Thumb_wsq.iso rename to api-test/resource/Profile/Default/Auth/Right_Thumb_wsq.iso diff --git a/apitest/resource/Profile/Default/Registration/Exception_Photo.iso b/api-test/resource/Profile/Default/Registration/Exception_Photo.iso similarity index 100% rename from apitest/resource/Profile/Default/Registration/Exception_Photo.iso rename to api-test/resource/Profile/Default/Registration/Exception_Photo.iso diff --git a/apitest/resource/Profile/Default/Registration/Face.iso b/api-test/resource/Profile/Default/Registration/Face.iso similarity index 100% rename from apitest/resource/Profile/Default/Registration/Face.iso rename to api-test/resource/Profile/Default/Registration/Face.iso diff --git a/apitest/resource/Profile/Default/Registration/Left_Index.iso b/api-test/resource/Profile/Default/Registration/Left_Index.iso similarity index 100% rename from apitest/resource/Profile/Default/Registration/Left_Index.iso rename to api-test/resource/Profile/Default/Registration/Left_Index.iso diff --git a/apitest/resource/Profile/Default/Registration/Left_Iris.iso b/api-test/resource/Profile/Default/Registration/Left_Iris.iso similarity index 100% rename from apitest/resource/Profile/Default/Registration/Left_Iris.iso rename to api-test/resource/Profile/Default/Registration/Left_Iris.iso diff --git a/apitest/resource/Profile/Default/Registration/Left_Little.iso b/api-test/resource/Profile/Default/Registration/Left_Little.iso similarity index 100% rename from apitest/resource/Profile/Default/Registration/Left_Little.iso rename to api-test/resource/Profile/Default/Registration/Left_Little.iso diff --git a/apitest/resource/Profile/Default/Registration/Left_Middle.iso b/api-test/resource/Profile/Default/Registration/Left_Middle.iso similarity index 100% rename from apitest/resource/Profile/Default/Registration/Left_Middle.iso rename to api-test/resource/Profile/Default/Registration/Left_Middle.iso diff --git a/apitest/resource/Profile/Default/Registration/Left_Ring.iso b/api-test/resource/Profile/Default/Registration/Left_Ring.iso similarity index 100% rename from apitest/resource/Profile/Default/Registration/Left_Ring.iso rename to api-test/resource/Profile/Default/Registration/Left_Ring.iso diff --git a/apitest/resource/Profile/Default/Registration/Left_Thumb.iso b/api-test/resource/Profile/Default/Registration/Left_Thumb.iso similarity index 100% rename from apitest/resource/Profile/Default/Registration/Left_Thumb.iso rename to api-test/resource/Profile/Default/Registration/Left_Thumb.iso diff --git a/apitest/resource/Profile/Default/Registration/Right_Index.iso b/api-test/resource/Profile/Default/Registration/Right_Index.iso similarity index 100% rename from apitest/resource/Profile/Default/Registration/Right_Index.iso rename to api-test/resource/Profile/Default/Registration/Right_Index.iso diff --git a/apitest/resource/Profile/Default/Registration/Right_Iris.iso b/api-test/resource/Profile/Default/Registration/Right_Iris.iso similarity index 100% rename from apitest/resource/Profile/Default/Registration/Right_Iris.iso rename to api-test/resource/Profile/Default/Registration/Right_Iris.iso diff --git a/apitest/resource/Profile/Default/Registration/Right_Little.iso b/api-test/resource/Profile/Default/Registration/Right_Little.iso similarity index 100% rename from apitest/resource/Profile/Default/Registration/Right_Little.iso rename to api-test/resource/Profile/Default/Registration/Right_Little.iso diff --git a/apitest/resource/Profile/Default/Registration/Right_Middle.iso b/api-test/resource/Profile/Default/Registration/Right_Middle.iso similarity index 100% rename from apitest/resource/Profile/Default/Registration/Right_Middle.iso rename to api-test/resource/Profile/Default/Registration/Right_Middle.iso diff --git a/apitest/resource/Profile/Default/Registration/Right_Ring.iso b/api-test/resource/Profile/Default/Registration/Right_Ring.iso similarity index 100% rename from apitest/resource/Profile/Default/Registration/Right_Ring.iso rename to api-test/resource/Profile/Default/Registration/Right_Ring.iso diff --git a/apitest/resource/Profile/Default/Registration/Right_Thumb.iso b/api-test/resource/Profile/Default/Registration/Right_Thumb.iso similarity index 100% rename from apitest/resource/Profile/Default/Registration/Right_Thumb.iso rename to api-test/resource/Profile/Default/Registration/Right_Thumb.iso diff --git a/apitest/src/main/java/io/mosip/testrig/apirig/injicertify/testrunner/MosipTestRunner.java b/api-test/src/main/java/io/mosip/testrig/apirig/injicertify/testrunner/MosipTestRunner.java similarity index 86% rename from apitest/src/main/java/io/mosip/testrig/apirig/injicertify/testrunner/MosipTestRunner.java rename to api-test/src/main/java/io/mosip/testrig/apirig/injicertify/testrunner/MosipTestRunner.java index 87ffbde8..ccb6222e 100644 --- a/apitest/src/main/java/io/mosip/testrig/apirig/injicertify/testrunner/MosipTestRunner.java +++ b/api-test/src/main/java/io/mosip/testrig/apirig/injicertify/testrunner/MosipTestRunner.java @@ -26,6 +26,7 @@ import io.mosip.testrig.apirig.dataprovider.BiometricDataProvider; import io.mosip.testrig.apirig.dbaccess.DBManager; import io.mosip.testrig.apirig.injicertify.utils.InjiCertifyConfigManager; +import io.mosip.testrig.apirig.injicertify.utils.InjiCertifyUtil; import io.mosip.testrig.apirig.report.EmailableReport; import io.mosip.testrig.apirig.testrunner.BaseTestCase; import io.mosip.testrig.apirig.testrunner.ExtractResource; @@ -188,24 +189,50 @@ public static void startTestRunner() { return f1.getName().compareTo(f2.getName()); // default alphabetical order }); - for (File file : files) { - TestNG runner = new TestNG(); - List suitefiles = new ArrayList<>(); - if (file.getName().toLowerCase().contains(GlobalConstants.INJICERTIFY)) { - if (file.getName().toLowerCase().contains("prerequisite")) { - BaseTestCase.setReportName(GlobalConstants.INJICERTIFY + "-prerequisite"); - } else { - // if the prerequisite total skipped/failed count is greater than zero - if (EmailableReport.getFailedCount() > 0 || EmailableReport.getSkippedCount() > 0) { - // skipAll = true; + String useCaseToExecute = InjiCertifyConfigManager.getproperty("useCaseToExecute"); + + // Split the string by commas + String[] useCases = useCaseToExecute.split(","); + + // Loop through the resulting array and print each element + for (String useCase : useCases) { + InjiCertifyUtil.currentUseCase = useCase; + + for (File file : files) { + TestNG runner = new TestNG(); + List suitefiles = new ArrayList<>(); + + if (file.getName().toLowerCase().contains(GlobalConstants.INJICERTIFY)) { + if (file.getName().toLowerCase().contains("prerequisite")) { + if (useCase.equals("sunbird") == true) { + continue; + } else { + if (useCase != null && useCase.isBlank() == false) { + BaseTestCase.setReportName( + GlobalConstants.INJICERTIFY + "-" + useCase + "-prerequisite"); + } else { + BaseTestCase.setReportName(GlobalConstants.INJICERTIFY + "-prerequisite"); + } + } + } else { + // if the prerequisite total skipped/failed count is greater than zero + if (EmailableReport.getFailedCount() > 0 || EmailableReport.getSkippedCount() > 0) { + // skipAll = true; + } + if (useCase != null && useCase.isBlank() == false) { + BaseTestCase.setReportName(GlobalConstants.INJICERTIFY + "-" + useCase); + } else { + BaseTestCase.setReportName(GlobalConstants.INJICERTIFY); + } + } - BaseTestCase.setReportName(GlobalConstants.INJICERTIFY); + suitefiles.add(file.getAbsolutePath()); + runner.setTestSuites(suitefiles); + System.getProperties().setProperty("testng.outpur.dir", "testng-report"); + runner.setOutputDirectory("testng-report"); + runner.run(); } - suitefiles.add(file.getAbsolutePath()); - runner.setTestSuites(suitefiles); - System.getProperties().setProperty("testng.outpur.dir", "testng-report"); - runner.setOutputDirectory("testng-report"); - runner.run(); + } } } else { diff --git a/api-test/src/main/java/io/mosip/testrig/apirig/injicertify/testscripts/AddIdentity.java b/api-test/src/main/java/io/mosip/testrig/apirig/injicertify/testscripts/AddIdentity.java new file mode 100644 index 00000000..2b56c4c1 --- /dev/null +++ b/api-test/src/main/java/io/mosip/testrig/apirig/injicertify/testscripts/AddIdentity.java @@ -0,0 +1,224 @@ +package io.mosip.testrig.apirig.injicertify.testscripts; + +import java.lang.reflect.Field; +import java.text.DateFormat; +import java.text.SimpleDateFormat; +import java.util.Calendar; +import java.util.List; +import java.util.Map; + +import javax.ws.rs.core.MediaType; + +import org.apache.log4j.Level; +import org.apache.log4j.Logger; +import org.testng.ITest; +import org.testng.ITestContext; +import org.testng.ITestResult; +import org.testng.Reporter; +import org.testng.SkipException; +import org.testng.annotations.AfterClass; +import org.testng.annotations.AfterMethod; +import org.testng.annotations.BeforeClass; +import org.testng.annotations.DataProvider; +import org.testng.annotations.Test; +import org.testng.internal.BaseTestMethod; +import org.testng.internal.TestResult; + +import io.mosip.testrig.apirig.dto.OutputValidationDto; +import io.mosip.testrig.apirig.dto.TestCaseDTO; +import io.mosip.testrig.apirig.injicertify.utils.InjiCertifyConfigManager; +import io.mosip.testrig.apirig.injicertify.utils.InjiCertifyUtil; +import io.mosip.testrig.apirig.testrunner.HealthChecker; +import io.mosip.testrig.apirig.testrunner.JsonPrecondtion; +import io.mosip.testrig.apirig.utils.AdminTestException; +import io.mosip.testrig.apirig.utils.AdminTestUtil; +import io.mosip.testrig.apirig.utils.GlobalConstants; +import io.mosip.testrig.apirig.utils.GlobalMethods; +import io.mosip.testrig.apirig.utils.KernelAuthentication; +import io.mosip.testrig.apirig.utils.OutputValidationUtil; +import io.mosip.testrig.apirig.utils.ReportUtil; +import io.mosip.testrig.apirig.utils.RestClient; +import io.restassured.response.Response; + +public class AddIdentity extends AdminTestUtil implements ITest { + private static final Logger logger = Logger.getLogger(AddIdentity.class); + protected String testCaseName = ""; + public Response response = null; + private boolean isWaitRequired = false; + + /** + * get current testcaseName + */ + @Override + public String getTestName() { + return testCaseName; + + } + + @BeforeClass + public static void setLogLevel() { + if (InjiCertifyConfigManager.IsDebugEnabled()) + logger.setLevel(Level.ALL); + else + logger.setLevel(Level.ERROR); + } + + /** + * Data provider class provides test case list + * + * @return object of data provider + */ + @DataProvider(name = "testcaselist") + public Object[] getTestCaseList(ITestContext context) { + String ymlFile = context.getCurrentXmlTest().getLocalParameters().get("ymlFile"); + logger.info("Started executing yml: " + ymlFile); + return getYmlTestData(ymlFile); + } + + /** + * Test method for OTP Generation execution + * + * @param objTestParameters + * @param testScenario + * @param testcaseName + * @throws Exception + */ + @Test(dataProvider = "testcaselist") + public void test(TestCaseDTO testCaseDTO) throws Exception { + testCaseName = testCaseDTO.getTestCaseName(); + testCaseName = InjiCertifyUtil.isTestCaseValidForExecution(testCaseDTO); + if (HealthChecker.signalTerminateExecution) { + throw new SkipException( + GlobalConstants.TARGET_ENV_HEALTH_CHECK_FAILED + HealthChecker.healthCheckFailureMapS); + } + + if (testCaseDTO.getEndPoint().contains("mock-identity-system")) { + String individualIDStr = String.valueOf(Calendar.getInstance().getTimeInMillis()); + String phoneStr = generateRandomNumberString(10); + String emailStr = testCaseName + "@mosip.net"; + String passWordStr = properties.getProperty("passwordForAddIdentity"); + String url = ApplnURI.replace("-internal", "") + testCaseDTO.getEndPoint(); + + String inputJson = getJsonFromTemplate(testCaseDTO.getInput(), testCaseDTO.getInputTemplate()); + + inputJson = InjiCertifyUtil.inputstringKeyWordHandeler(inputJson, testCaseName); + + if (inputJson.contains("$RANDOMINDIVIDUALIDFORMOCKIDENTITY$")) { + inputJson = replaceKeywordWithValue(inputJson, "$RANDOMINDIVIDUALIDFORMOCKIDENTITY$", individualIDStr); + writeAutoGeneratedId(testCaseName, "UIN", individualIDStr); + } + + if (inputJson.contains("$EMAILIDFORMOCKIDENTITY$")) { + inputJson = replaceKeywordWithValue(inputJson, "$EMAILIDFORMOCKIDENTITY$", emailStr); + writeAutoGeneratedId(testCaseName, "EMAIL", emailStr); + } + if (inputJson.contains("$PASSWORDFORMOCKIDENTITY$")) { + inputJson = replaceKeywordWithValue(inputJson, "$PASSWORDFORMOCKIDENTITY$", passWordStr); + writeAutoGeneratedId(testCaseName, "PASSWORD", passWordStr); + } + if (inputJson.contains("$PHONEFORMOCKIDENTITY$")) { + inputJson = replaceKeywordWithValue(inputJson, "$PHONEFORMOCKIDENTITY$", phoneStr); + writeAutoGeneratedId(testCaseName, "PHONE", phoneStr); + } + + GlobalMethods.reportRequest(null, inputJson, url); + + response = RestClient.post(url, inputJson); + + GlobalMethods.reportResponse(response.getHeaders().asList().toString(), url, response); + } else { + isWaitRequired = true; + testCaseDTO.setInputTemplate(AdminTestUtil.modifySchemaGenerateHbs(testCaseDTO.isRegenerateHbs())); + String uin = JsonPrecondtion.getValueFromJson( + RestClient.getRequestWithCookie(ApplnURI + "/v1/idgenerator/uin", MediaType.APPLICATION_JSON, + MediaType.APPLICATION_JSON, COOKIENAME, + new KernelAuthentication().getTokenByRole(testCaseDTO.getRole())).asString(), + "response.uin"); + + testCaseName = isTestCaseValidForExecution(testCaseDTO); + + DateFormat dateFormatter = new SimpleDateFormat("yyyyMMddHHmmss"); + Calendar cal = Calendar.getInstance(); + String timestampValue = dateFormatter.format(cal.getTime()); + String genRid = "27847" + generateRandomNumberString(10) + timestampValue; + + String jsonInput = testCaseDTO.getInput(); + + String inputJson = getJsonFromTemplate(jsonInput, testCaseDTO.getInputTemplate(), false); + + inputJson = inputJson.replace("$UIN$", uin); + inputJson = inputJson.replace("$RID$", genRid); + String phoneNumber = ""; + String email = testCaseName + "@mosip.net"; + if (inputJson.contains("$PHONENUMBERFORIDENTITY$")) { + if (!phoneSchemaRegex.isEmpty()) + try { + phoneNumber = genStringAsperRegex(phoneSchemaRegex); + } catch (Exception e) { + logger.error(e.getMessage()); + } + inputJson = replaceKeywordWithValue(inputJson, "$PHONENUMBERFORIDENTITY$", phoneNumber); + inputJson = replaceKeywordWithValue(inputJson, "$EMAILVALUE$", email); + } + + response = postWithBodyAndCookie(ApplnURI + testCaseDTO.getEndPoint(), inputJson, COOKIENAME, + testCaseDTO.getRole(), testCaseDTO.getTestCaseName()); + + if (testCaseDTO.getTestCaseName().contains("_Pos")) { + writeAutoGeneratedId(testCaseDTO.getTestCaseName(), "UIN", uin); + writeAutoGeneratedId(testCaseDTO.getTestCaseName(), "RID", genRid); + writeAutoGeneratedId(testCaseDTO.getTestCaseName(), "EMAIL", + testCaseDTO.getTestCaseName() + "@mosip.net"); + writeAutoGeneratedId(testCaseDTO.getTestCaseName(), "PHONE", phoneNumber); + } + if (!phoneNumber.isEmpty()) + writeAutoGeneratedId(testCaseDTO.getTestCaseName(), "PHONE", phoneNumber); + } + + Map> ouputValid = OutputValidationUtil.doJsonOutputValidation( + response.asString(), getJsonFromTemplate(testCaseDTO.getOutput(), testCaseDTO.getOutputTemplate()), + testCaseDTO, response.getStatusCode()); + Reporter.log(ReportUtil.getOutputValidationReport(ouputValid)); + + if (!OutputValidationUtil.publishOutputResult(ouputValid)) + throw new AdminTestException("Failed at output validation"); + + } + + /** + * The method ser current test name to result + * + * @param result + */ + @AfterMethod(alwaysRun = true) + public void setResultTestName(ITestResult result) { + try { + Field method = TestResult.class.getDeclaredField("m_method"); + method.setAccessible(true); + method.set(result, result.getMethod().clone()); + BaseTestMethod baseTestMethod = (BaseTestMethod) result.getMethod(); + Field f = baseTestMethod.getClass().getSuperclass().getDeclaredField("m_methodName"); + f.setAccessible(true); + f.set(baseTestMethod, testCaseName); + } catch (Exception e) { + Reporter.log("Exception : " + e.getMessage()); + } + } + + @AfterClass(alwaysRun = true) + public void waittime() { + + try { + if (isWaitRequired == true) { + logger.info("waiting for " + properties.getProperty("Delaytime") + + " mili secs after UIN Generation In IDREPO"); + Thread.sleep(Long.parseLong(properties.getProperty("Delaytime"))); + } + + } catch (Exception e) { + logger.error("Exception : " + e.getMessage()); + Thread.currentThread().interrupt(); + } + + } +} diff --git a/api-test/src/main/java/io/mosip/testrig/apirig/injicertify/testscripts/DeleteWithParam.java b/api-test/src/main/java/io/mosip/testrig/apirig/injicertify/testscripts/DeleteWithParam.java new file mode 100644 index 00000000..e3c44cc2 --- /dev/null +++ b/api-test/src/main/java/io/mosip/testrig/apirig/injicertify/testscripts/DeleteWithParam.java @@ -0,0 +1,166 @@ +package io.mosip.testrig.apirig.injicertify.testscripts; + +import java.lang.reflect.Field; +import java.util.ArrayList; +import java.util.List; +import java.util.Map; + +import org.apache.log4j.Level; +import org.apache.log4j.Logger; +import org.json.JSONObject; +import org.testng.ITest; +import org.testng.ITestContext; +import org.testng.ITestResult; +import org.testng.Reporter; +import org.testng.SkipException; +import org.testng.annotations.AfterMethod; +import org.testng.annotations.BeforeClass; +import org.testng.annotations.DataProvider; +import org.testng.annotations.Test; +import org.testng.internal.BaseTestMethod; +import org.testng.internal.TestResult; + +import io.mosip.testrig.apirig.dto.OutputValidationDto; +import io.mosip.testrig.apirig.dto.TestCaseDTO; +import io.mosip.testrig.apirig.injicertify.utils.InjiCertifyConfigManager; +import io.mosip.testrig.apirig.injicertify.utils.InjiCertifyUtil; +import io.mosip.testrig.apirig.testrunner.HealthChecker; +import io.mosip.testrig.apirig.utils.AdminTestException; +import io.mosip.testrig.apirig.utils.AdminTestUtil; +import io.mosip.testrig.apirig.utils.AuthenticationTestException; +import io.mosip.testrig.apirig.utils.GlobalConstants; +import io.mosip.testrig.apirig.utils.OutputValidationUtil; +import io.mosip.testrig.apirig.utils.ReportUtil; +import io.restassured.response.Response; + +public class DeleteWithParam extends AdminTestUtil implements ITest { + private static final Logger logger = Logger.getLogger(DeleteWithParam.class); + protected String testCaseName = ""; + public Response response = null; + + @BeforeClass + public static void setLogLevel() { + if (InjiCertifyConfigManager.IsDebugEnabled()) + logger.setLevel(Level.ALL); + else + logger.setLevel(Level.ERROR); + } + + /** + * get current testcaseName + */ + @Override + public String getTestName() { + return testCaseName; + } + + /** + * Data provider class provides test case list + * + * @return object of data provider + */ + @DataProvider(name = "testcaselist") + public Object[] getTestCaseList(ITestContext context) { + String ymlFile = context.getCurrentXmlTest().getLocalParameters().get("ymlFile"); + logger.info("Started executing yml: " + ymlFile); + return getYmlTestData(ymlFile); + } + + /** + * Test method for OTP Generation execution + * + * @param objTestParameters + * @param testScenario + * @param testcaseName + * @throws AuthenticationTestException + * @throws AdminTestException + */ + @Test(dataProvider = "testcaselist") + public void test(TestCaseDTO testCaseDTO) throws AuthenticationTestException, AdminTestException { + testCaseName = testCaseDTO.getTestCaseName(); + testCaseName = InjiCertifyUtil.isTestCaseValidForExecution(testCaseDTO); + if (HealthChecker.signalTerminateExecution) { + throw new SkipException( + GlobalConstants.TARGET_ENV_HEALTH_CHECK_FAILED + HealthChecker.healthCheckFailureMapS); + } + String[] templateFields = testCaseDTO.getTemplateFields(); + + if (testCaseDTO.getTemplateFields() != null && templateFields.length > 0) { + ArrayList inputtestCases = AdminTestUtil.getInputTestCase(testCaseDTO); + ArrayList outputtestcase = AdminTestUtil.getOutputTestCase(testCaseDTO); + + for (int i = 0; i < languageList.size(); i++) { + response = deleteWithPathParamAndCookie(ApplnURI + testCaseDTO.getEndPoint(), + getJsonFromTemplate(inputtestCases.get(i).toString(), testCaseDTO.getInputTemplate()), + COOKIENAME, testCaseDTO.getRole(), testCaseDTO.getTestCaseName()); + + Map> ouputValid = OutputValidationUtil.doJsonOutputValidation( + response.asString(), + getJsonFromTemplate(outputtestcase.get(i).toString(), testCaseDTO.getOutputTemplate()), + testCaseDTO, response.getStatusCode()); + Reporter.log(ReportUtil.getOutputValidationReport(ouputValid)); + + if (!OutputValidationUtil.publishOutputResult(ouputValid)) + throw new AdminTestException("Failed at output validation"); + } + } + + else { + + if (testCaseName.contains("ESignet_")) { + if (InjiCertifyConfigManager.isInServiceNotDeployedList(GlobalConstants.ESIGNET)) { + throw new SkipException("esignet is not deployed hence skipping the testcase"); + } + + String tempUrl = ApplnURI; + + if (testCaseDTO.getEndPoint().startsWith("$SUNBIRDBASEURL$") && testCaseName.contains("SunBirdR")) { + + if (InjiCertifyConfigManager.isInServiceNotDeployedList("sunbirdrc")) + throw new SkipException(GlobalConstants.SERVICE_NOT_DEPLOYED_MESSAGE); + + if (InjiCertifyConfigManager.getSunBirdBaseURL() != null && !InjiCertifyConfigManager.getSunBirdBaseURL().isBlank()) + tempUrl = InjiCertifyConfigManager.getSunBirdBaseURL(); + //Once sunbird registry is pointing to specific env, remove the above line and uncomment below line + //tempUrl = ApplnURI.replace(GlobalConstants.API_INTERNAL, MimotoConfigManager.getSunBirdBaseURL()); + testCaseDTO.setEndPoint(testCaseDTO.getEndPoint().replace("$SUNBIRDBASEURL$", "")); + } + + response = deleteWithPathParamAndCookie(tempUrl + testCaseDTO.getEndPoint(), + getJsonFromTemplate(testCaseDTO.getInput(), testCaseDTO.getInputTemplate()), COOKIENAME, + testCaseDTO.getRole(), testCaseDTO.getTestCaseName()); + + } else { + response = deleteWithPathParamAndCookie(ApplnURI + testCaseDTO.getEndPoint(), + getJsonFromTemplate(testCaseDTO.getInput(), testCaseDTO.getInputTemplate()), COOKIENAME, + testCaseDTO.getRole(), testCaseDTO.getTestCaseName()); + } + Map> ouputValid = OutputValidationUtil.doJsonOutputValidation( + response.asString(), getJsonFromTemplate(testCaseDTO.getOutput(), testCaseDTO.getOutputTemplate()), + testCaseDTO, response.getStatusCode()); + Reporter.log(ReportUtil.getOutputValidationReport(ouputValid)); + if (!OutputValidationUtil.publishOutputResult(ouputValid)) + throw new AdminTestException("Failed at output validation"); + } + } + + /** + * The method ser current test name to result + * + * @param result + */ + @AfterMethod(alwaysRun = true) + public void setResultTestName(ITestResult result) { + try { + Field method = TestResult.class.getDeclaredField("m_method"); + method.setAccessible(true); + method.set(result, result.getMethod().clone()); + BaseTestMethod baseTestMethod = (BaseTestMethod) result.getMethod(); + Field f = baseTestMethod.getClass().getSuperclass().getDeclaredField("m_methodName"); + f.setAccessible(true); + f.set(baseTestMethod, testCaseName); + } catch (Exception e) { + Reporter.log("Exception : " + e.getMessage()); + } + } +} \ No newline at end of file diff --git a/api-test/src/main/java/io/mosip/testrig/apirig/injicertify/testscripts/GetWithParam.java b/api-test/src/main/java/io/mosip/testrig/apirig/injicertify/testscripts/GetWithParam.java new file mode 100644 index 00000000..3ed9327a --- /dev/null +++ b/api-test/src/main/java/io/mosip/testrig/apirig/injicertify/testscripts/GetWithParam.java @@ -0,0 +1,203 @@ +package io.mosip.testrig.apirig.injicertify.testscripts; + +import java.lang.reflect.Field; +import java.util.ArrayList; +import java.util.HashMap; +import java.util.List; +import java.util.Map; + +import org.apache.log4j.Level; +import org.apache.log4j.Logger; +import org.json.JSONObject; +import org.testng.ITest; +import org.testng.ITestContext; +import org.testng.ITestResult; +import org.testng.Reporter; +import org.testng.SkipException; +import org.testng.annotations.AfterMethod; +import org.testng.annotations.BeforeClass; +import org.testng.annotations.DataProvider; +import org.testng.annotations.Test; +import org.testng.internal.BaseTestMethod; +import org.testng.internal.TestResult; + +import io.mosip.testrig.apirig.dto.OutputValidationDto; +import io.mosip.testrig.apirig.dto.TestCaseDTO; +import io.mosip.testrig.apirig.injicertify.utils.InjiCertifyConfigManager; +import io.mosip.testrig.apirig.injicertify.utils.InjiCertifyUtil; +import io.mosip.testrig.apirig.testrunner.BaseTestCase; +import io.mosip.testrig.apirig.testrunner.HealthChecker; +import io.mosip.testrig.apirig.utils.AdminTestException; +import io.mosip.testrig.apirig.utils.AdminTestUtil; +import io.mosip.testrig.apirig.utils.AuthenticationTestException; +import io.mosip.testrig.apirig.utils.GlobalConstants; +import io.mosip.testrig.apirig.utils.OutputValidationUtil; +import io.mosip.testrig.apirig.utils.ReportUtil; +import io.restassured.response.Response; + +public class GetWithParam extends AdminTestUtil implements ITest { + private static final Logger logger = Logger.getLogger(GetWithParam.class); + protected String testCaseName = ""; + public Response response = null; + public boolean sendEsignetToken = false; + public boolean auditLogCheck = false; + + @BeforeClass + public static void setLogLevel() { + if (InjiCertifyConfigManager.IsDebugEnabled()) + logger.setLevel(Level.ALL); + else + logger.setLevel(Level.ERROR); + } + + /** + * get current testcaseName + */ + @Override + public String getTestName() { + return testCaseName; + } + + /** + * Data provider class provides test case list + * + * @return object of data provider + */ + @DataProvider(name = "testcaselist") + public Object[] getTestCaseList(ITestContext context) { + String ymlFile = context.getCurrentXmlTest().getLocalParameters().get("ymlFile"); + sendEsignetToken = context.getCurrentXmlTest().getLocalParameters().containsKey("sendEsignetToken"); + logger.info("Started executing yml: " + ymlFile); + return getYmlTestData(ymlFile); + } + + /** + * Test method for OTP Generation execution + * + * @param objTestParameters + * @param testScenario + * @param testcaseName + * @throws AuthenticationTestException + * @throws AdminTestException + */ + @Test(dataProvider = "testcaselist") + public void test(TestCaseDTO testCaseDTO) throws AuthenticationTestException, AdminTestException { + testCaseName = testCaseDTO.getTestCaseName(); + testCaseName = InjiCertifyUtil.isTestCaseValidForExecution(testCaseDTO); + if (HealthChecker.signalTerminateExecution) { + throw new SkipException( + GlobalConstants.TARGET_ENV_HEALTH_CHECK_FAILED + HealthChecker.healthCheckFailureMapS); + } + + if (testCaseDTO.getTestCaseName().contains("VID") || testCaseDTO.getTestCaseName().contains("Vid")) { + if (!BaseTestCase.getSupportedIdTypesValueFromActuator().contains("VID") + && !BaseTestCase.getSupportedIdTypesValueFromActuator().contains("vid")) { + throw new SkipException(GlobalConstants.VID_FEATURE_NOT_SUPPORTED); + } + } + auditLogCheck = testCaseDTO.isAuditLogCheck(); + String[] templateFields = testCaseDTO.getTemplateFields(); + + if (testCaseDTO.getInputTemplate().contains(GlobalConstants.$PRIMARYLANG$)) + testCaseDTO.setInputTemplate(testCaseDTO.getInputTemplate().replace(GlobalConstants.$PRIMARYLANG$, + BaseTestCase.languageList.get(0))); + if (testCaseDTO.getOutputTemplate().contains(GlobalConstants.$PRIMARYLANG$)) + testCaseDTO.setOutputTemplate(testCaseDTO.getOutputTemplate().replace(GlobalConstants.$PRIMARYLANG$, + BaseTestCase.languageList.get(0))); + if (testCaseDTO.getInput().contains(GlobalConstants.$PRIMARYLANG$)) + testCaseDTO.setInput( + testCaseDTO.getInput().replace(GlobalConstants.$PRIMARYLANG$, BaseTestCase.languageList.get(0))); + if (testCaseDTO.getOutput().contains(GlobalConstants.$PRIMARYLANG$)) + testCaseDTO.setOutput( + testCaseDTO.getOutput().replace(GlobalConstants.$PRIMARYLANG$, BaseTestCase.languageList.get(0))); + + if (testCaseDTO.getTemplateFields() != null && templateFields.length > 0) { + ArrayList inputtestCases = AdminTestUtil.getInputTestCase(testCaseDTO); + ArrayList outputtestcase = AdminTestUtil.getOutputTestCase(testCaseDTO); + for (int i = 0; i < languageList.size(); i++) { + response = getWithPathParamAndCookie(ApplnURI + testCaseDTO.getEndPoint(), + getJsonFromTemplate(inputtestCases.get(i).toString(), testCaseDTO.getInputTemplate()), + COOKIENAME, testCaseDTO.getRole(), testCaseDTO.getTestCaseName()); + + Map> ouputValid = OutputValidationUtil.doJsonOutputValidation( + response.asString(), + getJsonFromTemplate(outputtestcase.get(i).toString(), testCaseDTO.getOutputTemplate()), + testCaseDTO, response.getStatusCode()); + Reporter.log(ReportUtil.getOutputValidationReport(ouputValid)); + + if (!OutputValidationUtil.publishOutputResult(ouputValid)) + throw new AdminTestException("Failed at output validation"); + } + } + + else { + + if (testCaseName.contains("ESignet_")) { + if (InjiCertifyConfigManager.isInServiceNotDeployedList(GlobalConstants.ESIGNET)) { + throw new SkipException("esignet is not deployed hence skipping the testcase"); + } + + String tempUrl = ApplnURI; + + if (testCaseDTO.getEndPoint().startsWith("$SUNBIRDBASEURL$") && testCaseName.contains("SunBirdR")) { + + if (InjiCertifyConfigManager.isInServiceNotDeployedList("sunbirdrc")) + throw new SkipException(GlobalConstants.SERVICE_NOT_DEPLOYED_MESSAGE); + + if (InjiCertifyConfigManager.getSunBirdBaseURL() != null && !InjiCertifyConfigManager.getSunBirdBaseURL().isBlank()) + tempUrl = InjiCertifyConfigManager.getSunBirdBaseURL(); + //Once sunbird registry is pointing to specific env, remove the above line and uncomment below line + //tempUrl = ApplnURI.replace(GlobalConstants.API_INTERNAL, MimotoConfigManager.getSunBirdBaseURL()); + testCaseDTO.setEndPoint(testCaseDTO.getEndPoint().replace("$SUNBIRDBASEURL$", "")); + } + + response = getWithPathParamAndCookie(tempUrl + testCaseDTO.getEndPoint(), + getJsonFromTemplate(testCaseDTO.getInput(), testCaseDTO.getInputTemplate()), auditLogCheck, + COOKIENAME, testCaseDTO.getRole(), testCaseDTO.getTestCaseName(), sendEsignetToken); + + } else { + response = getWithPathParamAndCookie(ApplnURI + testCaseDTO.getEndPoint(), + getJsonFromTemplate(testCaseDTO.getInput(), testCaseDTO.getInputTemplate()), auditLogCheck, + COOKIENAME, testCaseDTO.getRole(), testCaseDTO.getTestCaseName(), sendEsignetToken); + } + + Map> ouputValid = null; + if (testCaseName.contains("_StatusCode")) { + + OutputValidationDto customResponse = customStatusCodeResponse(String.valueOf(response.getStatusCode()), + testCaseDTO.getOutput()); + + ouputValid = new HashMap<>(); + ouputValid.put(GlobalConstants.EXPECTED_VS_ACTUAL, List.of(customResponse)); + } else { + ouputValid = OutputValidationUtil.doJsonOutputValidation(response.asString(), + getJsonFromTemplate(testCaseDTO.getOutput(), testCaseDTO.getOutputTemplate()), testCaseDTO, + response.getStatusCode()); + } + + Reporter.log(ReportUtil.getOutputValidationReport(ouputValid)); + if (!OutputValidationUtil.publishOutputResult(ouputValid)) + throw new AdminTestException("Failed at output validation"); + } + } + + /** + * The method ser current test name to result + * + * @param result + */ + @AfterMethod(alwaysRun = true) + public void setResultTestName(ITestResult result) { + try { + Field method = TestResult.class.getDeclaredField("m_method"); + method.setAccessible(true); + method.set(result, result.getMethod().clone()); + BaseTestMethod baseTestMethod = (BaseTestMethod) result.getMethod(); + Field f = baseTestMethod.getClass().getSuperclass().getDeclaredField("m_methodName"); + f.setAccessible(true); + f.set(baseTestMethod, testCaseName); + } catch (Exception e) { + Reporter.log("Exception : " + e.getMessage()); + } + } +} diff --git a/apitest/src/main/java/io/mosip/testrig/apirig/injicertify/testscripts/PostWithAutogenIdWithOtpGenerate.java b/api-test/src/main/java/io/mosip/testrig/apirig/injicertify/testscripts/PostWithAutogenIdWithOtpGenerate.java similarity index 100% rename from apitest/src/main/java/io/mosip/testrig/apirig/injicertify/testscripts/PostWithAutogenIdWithOtpGenerate.java rename to api-test/src/main/java/io/mosip/testrig/apirig/injicertify/testscripts/PostWithAutogenIdWithOtpGenerate.java diff --git a/apitest/src/main/java/io/mosip/testrig/apirig/injicertify/testscripts/PostWithBodyAndQueryParamsForAutoGenId.java b/api-test/src/main/java/io/mosip/testrig/apirig/injicertify/testscripts/PostWithBodyAndQueryParamsForAutoGenId.java similarity index 100% rename from apitest/src/main/java/io/mosip/testrig/apirig/injicertify/testscripts/PostWithBodyAndQueryParamsForAutoGenId.java rename to api-test/src/main/java/io/mosip/testrig/apirig/injicertify/testscripts/PostWithBodyAndQueryParamsForAutoGenId.java diff --git a/apitest/src/main/java/io/mosip/testrig/apirig/injicertify/testscripts/PostWithOnlyPathParam.java b/api-test/src/main/java/io/mosip/testrig/apirig/injicertify/testscripts/PostWithOnlyPathParam.java similarity index 100% rename from apitest/src/main/java/io/mosip/testrig/apirig/injicertify/testscripts/PostWithOnlyPathParam.java rename to api-test/src/main/java/io/mosip/testrig/apirig/injicertify/testscripts/PostWithOnlyPathParam.java diff --git a/apitest/src/main/java/io/mosip/testrig/apirig/injicertify/testscripts/PutWithPathParamsAndBody.java b/api-test/src/main/java/io/mosip/testrig/apirig/injicertify/testscripts/PutWithPathParamsAndBody.java similarity index 100% rename from apitest/src/main/java/io/mosip/testrig/apirig/injicertify/testscripts/PutWithPathParamsAndBody.java rename to api-test/src/main/java/io/mosip/testrig/apirig/injicertify/testscripts/PutWithPathParamsAndBody.java diff --git a/apitest/src/main/java/io/mosip/testrig/apirig/injicertify/testscripts/SimplePost.java b/api-test/src/main/java/io/mosip/testrig/apirig/injicertify/testscripts/SimplePost.java similarity index 100% rename from apitest/src/main/java/io/mosip/testrig/apirig/injicertify/testscripts/SimplePost.java rename to api-test/src/main/java/io/mosip/testrig/apirig/injicertify/testscripts/SimplePost.java diff --git a/apitest/src/main/java/io/mosip/testrig/apirig/injicertify/testscripts/SimplePostForAutoGenId.java b/api-test/src/main/java/io/mosip/testrig/apirig/injicertify/testscripts/SimplePostForAutoGenId.java similarity index 100% rename from apitest/src/main/java/io/mosip/testrig/apirig/injicertify/testscripts/SimplePostForAutoGenId.java rename to api-test/src/main/java/io/mosip/testrig/apirig/injicertify/testscripts/SimplePostForAutoGenId.java diff --git a/apitest/src/main/java/io/mosip/testrig/apirig/injicertify/testscripts/SimplePostForAutoGenIdForUrlEncoded.java b/api-test/src/main/java/io/mosip/testrig/apirig/injicertify/testscripts/SimplePostForAutoGenIdForUrlEncoded.java similarity index 100% rename from apitest/src/main/java/io/mosip/testrig/apirig/injicertify/testscripts/SimplePostForAutoGenIdForUrlEncoded.java rename to api-test/src/main/java/io/mosip/testrig/apirig/injicertify/testscripts/SimplePostForAutoGenIdForUrlEncoded.java diff --git a/apitest/src/main/java/io/mosip/testrig/apirig/injicertify/utils/InjiCertifyConfigManager.java b/api-test/src/main/java/io/mosip/testrig/apirig/injicertify/utils/InjiCertifyConfigManager.java similarity index 87% rename from apitest/src/main/java/io/mosip/testrig/apirig/injicertify/utils/InjiCertifyConfigManager.java rename to api-test/src/main/java/io/mosip/testrig/apirig/injicertify/utils/InjiCertifyConfigManager.java index 95600864..c51634b7 100644 --- a/apitest/src/main/java/io/mosip/testrig/apirig/injicertify/utils/InjiCertifyConfigManager.java +++ b/api-test/src/main/java/io/mosip/testrig/apirig/injicertify/utils/InjiCertifyConfigManager.java @@ -20,7 +20,8 @@ public static void init() { Properties props = getproperties(path); // Convert Properties to Map and add to moduleSpecificPropertiesMap for (String key : props.stringPropertyNames()) { - moduleSpecificPropertiesMap.put(key, props.getProperty(key)); + String value = System.getenv(key) == null ? props.getProperty(key) : System.getenv(key); + moduleSpecificPropertiesMap.put(key, value); } } catch (Exception e) { LOGGER.error(e.getMessage()); diff --git a/apitest/src/main/java/io/mosip/testrig/apirig/injicertify/utils/InjiCertifyUtil.java b/api-test/src/main/java/io/mosip/testrig/apirig/injicertify/utils/InjiCertifyUtil.java similarity index 89% rename from apitest/src/main/java/io/mosip/testrig/apirig/injicertify/utils/InjiCertifyUtil.java rename to api-test/src/main/java/io/mosip/testrig/apirig/injicertify/utils/InjiCertifyUtil.java index c588235c..289ef31f 100644 --- a/apitest/src/main/java/io/mosip/testrig/apirig/injicertify/utils/InjiCertifyUtil.java +++ b/api-test/src/main/java/io/mosip/testrig/apirig/injicertify/utils/InjiCertifyUtil.java @@ -17,6 +17,7 @@ public class InjiCertifyUtil extends AdminTestUtil { private static final Logger logger = Logger.getLogger(InjiCertifyUtil.class); + public static String currentUseCase = ""; public static String smtpOtpHandler(String inputJson, TestCaseDTO testCaseDTO) { JSONObject request = new JSONObject(inputJson); @@ -211,6 +212,9 @@ public static String getTempURL(TestCaseDTO testCaseDTO, String endPoint) { } else if (testCaseDTO.getEndPoint().startsWith("$INJICERTIFYMOCKIDABASEURL$") && testCaseName.contains("_GetCredentialForMockIDA")) { return ApplnURI.replace("api-internal", "injicertify-mock"); + } else if (testCaseDTO.getEndPoint().startsWith("$SUNBIRDBASEURL$") + && testCaseName.contains("Policy_")) { + return InjiCertifyConfigManager.getSunBirdBaseURL(); } @@ -232,13 +236,24 @@ public static String getKeyWordFromEndPoint(String endPoint) { return "$INJICERTIFYMOSIPIDBASEURL$"; if (endPoint.startsWith("$INJICERTIFYMOCKIDABASEURL$")) return "$INJICERTIFYMOCKIDABASEURL$"; + if (endPoint.startsWith("$SUNBIRDBASEURL$")) + return "$SUNBIRDBASEURL$"; return ""; } + public static String inputstringKeyWordHandeler(String jsonString, String testCaseName) { + if (jsonString.contains(GlobalConstants.TIMESTAMP)) + jsonString = replaceKeywordValue(jsonString, GlobalConstants.TIMESTAMP, generateCurrentUTCTimeStamp()); + + + return jsonString; + + } + public static String isTestCaseValidForExecution(TestCaseDTO testCaseDTO) { String testCaseName = testCaseDTO.getTestCaseName(); - + if (MosipTestRunner.skipAll == true) { throw new SkipException(GlobalConstants.PRE_REQUISITE_FAILED_MESSAGE); } @@ -246,6 +261,17 @@ public static String isTestCaseValidForExecution(TestCaseDTO testCaseDTO) { if (SkipTestCaseHandler.isTestCaseInSkippedList(testCaseName)) { throw new SkipException(GlobalConstants.KNOWN_ISSUES); } + + if (currentUseCase.toLowerCase().equals("mock") && testCaseName.toLowerCase().contains("mock") == false) { + throw new SkipException(GlobalConstants.FEATURE_NOT_SUPPORTED_MESSAGE); + } + if (currentUseCase.toLowerCase().equals("sunbird") && testCaseName.toLowerCase().contains("sunbird") == false) { + throw new SkipException(GlobalConstants.FEATURE_NOT_SUPPORTED_MESSAGE); + } + if (currentUseCase.toLowerCase().equals("mosipid") && testCaseName.toLowerCase().contains("mosipid") == false) { + throw new SkipException(GlobalConstants.FEATURE_NOT_SUPPORTED_MESSAGE); + } + return testCaseName; } diff --git a/apitest/src/main/resources/config/AuthPolicy.json b/api-test/src/main/resources/config/AuthPolicy.json similarity index 100% rename from apitest/src/main/resources/config/AuthPolicy.json rename to api-test/src/main/resources/config/AuthPolicy.json diff --git a/apitest/src/main/resources/config/AuthPolicy2.json b/api-test/src/main/resources/config/AuthPolicy2.json similarity index 100% rename from apitest/src/main/resources/config/AuthPolicy2.json rename to api-test/src/main/resources/config/AuthPolicy2.json diff --git a/apitest/src/main/resources/config/AuthPolicy3.json b/api-test/src/main/resources/config/AuthPolicy3.json similarity index 100% rename from apitest/src/main/resources/config/AuthPolicy3.json rename to api-test/src/main/resources/config/AuthPolicy3.json diff --git a/apitest/src/main/resources/config/AuthPolicy4.json b/api-test/src/main/resources/config/AuthPolicy4.json similarity index 100% rename from apitest/src/main/resources/config/AuthPolicy4.json rename to api-test/src/main/resources/config/AuthPolicy4.json diff --git a/apitest/src/main/resources/config/AuthPolicy5.json b/api-test/src/main/resources/config/AuthPolicy5.json similarity index 100% rename from apitest/src/main/resources/config/AuthPolicy5.json rename to api-test/src/main/resources/config/AuthPolicy5.json diff --git a/apitest/src/main/resources/config/AuthPolicy6.json b/api-test/src/main/resources/config/AuthPolicy6.json similarity index 100% rename from apitest/src/main/resources/config/AuthPolicy6.json rename to api-test/src/main/resources/config/AuthPolicy6.json diff --git a/apitest/src/main/resources/config/Authorization/OtpGeneration/request.json b/api-test/src/main/resources/config/Authorization/OtpGeneration/request.json similarity index 100% rename from apitest/src/main/resources/config/Authorization/OtpGeneration/request.json rename to api-test/src/main/resources/config/Authorization/OtpGeneration/request.json diff --git a/apitest/src/main/resources/config/Authorization/OtpValidation/request.json b/api-test/src/main/resources/config/Authorization/OtpValidation/request.json similarity index 100% rename from apitest/src/main/resources/config/Authorization/OtpValidation/request.json rename to api-test/src/main/resources/config/Authorization/OtpValidation/request.json diff --git a/apitest/src/main/resources/config/Authorization/errorUIN.json b/api-test/src/main/resources/config/Authorization/errorUIN.json similarity index 100% rename from apitest/src/main/resources/config/Authorization/errorUIN.json rename to api-test/src/main/resources/config/Authorization/errorUIN.json 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/keycloakTokenGeneration.json b/api-test/src/main/resources/config/Authorization/keycloakTokenGeneration.json similarity index 100% rename from apitest/src/main/resources/config/Authorization/keycloakTokenGeneration.json rename to api-test/src/main/resources/config/Authorization/keycloakTokenGeneration.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/Authorization/requestIdentity.json b/api-test/src/main/resources/config/Authorization/requestIdentity.json similarity index 100% rename from apitest/src/main/resources/config/Authorization/requestIdentity.json rename to api-test/src/main/resources/config/Authorization/requestIdentity.json diff --git a/apitest/src/main/resources/config/Authorization/zoneMappingRequest.json b/api-test/src/main/resources/config/Authorization/zoneMappingRequest.json similarity index 100% rename from apitest/src/main/resources/config/Authorization/zoneMappingRequest.json rename to api-test/src/main/resources/config/Authorization/zoneMappingRequest.json diff --git a/apitest/src/main/resources/config/IDRepo.properties b/api-test/src/main/resources/config/IDRepo.properties similarity index 100% rename from apitest/src/main/resources/config/IDRepo.properties rename to api-test/src/main/resources/config/IDRepo.properties diff --git a/apitest/src/main/resources/config/IDRepo2.properties b/api-test/src/main/resources/config/IDRepo2.properties similarity index 100% rename from apitest/src/main/resources/config/IDRepo2.properties rename to api-test/src/main/resources/config/IDRepo2.properties diff --git a/apitest/src/main/resources/config/IDjson.properties b/api-test/src/main/resources/config/IDjson.properties similarity index 100% rename from apitest/src/main/resources/config/IDjson.properties rename to api-test/src/main/resources/config/IDjson.properties diff --git a/apitest/src/main/resources/config/UmcValidationApis.properties b/api-test/src/main/resources/config/UmcValidationApis.properties similarity index 100% rename from apitest/src/main/resources/config/UmcValidationApis.properties rename to api-test/src/main/resources/config/UmcValidationApis.properties diff --git a/apitest/src/main/resources/config/adminQueries.properties b/api-test/src/main/resources/config/adminQueries.properties similarity index 100% rename from apitest/src/main/resources/config/adminQueries.properties rename to api-test/src/main/resources/config/adminQueries.properties diff --git a/apitest/src/main/resources/config/adminTokenGeneration.properties b/api-test/src/main/resources/config/adminTokenGeneration.properties similarity index 100% rename from apitest/src/main/resources/config/adminTokenGeneration.properties rename to api-test/src/main/resources/config/adminTokenGeneration.properties diff --git a/apitest/src/main/resources/config/application.properties b/api-test/src/main/resources/config/application.properties similarity index 98% rename from apitest/src/main/resources/config/application.properties rename to api-test/src/main/resources/config/application.properties index 0714a0e5..aa554683 100644 --- a/apitest/src/main/resources/config/application.properties +++ b/api-test/src/main/resources/config/application.properties @@ -100,7 +100,7 @@ passwordToReset=12341234_AaB XSRFTOKEN=7d01b2a8-b89d-41ad-9361-d7f6294021d1 codeChallenge=E9Melhoa2OwvFrEMTJguCHaoeK1t8URWbuGJSstw-cM codeVerifier=dBjftJeZ4CVP-mB92K27uhbUJU1p1r_wW1gFWFOEjXk -policyNumberForSunBirdRC=948108765 +policyNumberForSunBirdRC=325698741 challengeValueForSunBirdRC=eyJmdWxsTmFtZSI6IlNhbmNoaSBTaW5naCIsImRvYiI6IjE5OTgtMDEtMjQifQ== -fullNameForSunBirdRC=Baldev -dobForSunBirdRC=1988-12-21 \ No newline at end of file +fullNameForSunBirdRC=johncena +dobForSunBirdRC=1982-12-12 \ No newline at end of file diff --git a/apitest/src/main/resources/config/bioValue.properties b/api-test/src/main/resources/config/bioValue.properties similarity index 100% rename from apitest/src/main/resources/config/bioValue.properties rename to api-test/src/main/resources/config/bioValue.properties diff --git a/apitest/src/main/resources/config/bioValueEncryptionTemplate.json b/api-test/src/main/resources/config/bioValueEncryptionTemplate.json similarity index 100% rename from apitest/src/main/resources/config/bioValueEncryptionTemplate.json rename to api-test/src/main/resources/config/bioValueEncryptionTemplate.json diff --git a/apitest/src/main/resources/config/bulkUpload.json b/api-test/src/main/resources/config/bulkUpload.json similarity index 100% rename from apitest/src/main/resources/config/bulkUpload.json rename to api-test/src/main/resources/config/bulkUpload.json diff --git a/apitest/src/main/resources/config/clientPrivateKey.txt b/api-test/src/main/resources/config/clientPrivateKey.txt similarity index 100% rename from apitest/src/main/resources/config/clientPrivateKey.txt rename to api-test/src/main/resources/config/clientPrivateKey.txt diff --git a/apitest/src/main/resources/config/errorUIN.json b/api-test/src/main/resources/config/errorUIN.json similarity index 100% rename from apitest/src/main/resources/config/errorUIN.json rename to api-test/src/main/resources/config/errorUIN.json diff --git a/apitest/src/main/resources/config/errorUINIdp.json b/api-test/src/main/resources/config/errorUINIdp.json similarity index 100% rename from apitest/src/main/resources/config/errorUINIdp.json rename to api-test/src/main/resources/config/errorUINIdp.json diff --git a/apitest/src/main/resources/config/errorUINKyc.json b/api-test/src/main/resources/config/errorUINKyc.json similarity index 100% rename from apitest/src/main/resources/config/errorUINKyc.json rename to api-test/src/main/resources/config/errorUINKyc.json diff --git a/apitest/src/main/resources/config/esignetPayload.json b/api-test/src/main/resources/config/esignetPayload.json similarity index 100% rename from apitest/src/main/resources/config/esignetPayload.json rename to api-test/src/main/resources/config/esignetPayload.json diff --git a/apitest/src/main/resources/config/folderPaths.properties b/api-test/src/main/resources/config/folderPaths.properties similarity index 100% rename from apitest/src/main/resources/config/folderPaths.properties rename to api-test/src/main/resources/config/folderPaths.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/apitest/src/main/resources/config/idRepoToken.properties b/api-test/src/main/resources/config/idRepoToken.properties similarity index 100% rename from apitest/src/main/resources/config/idRepoToken.properties rename to api-test/src/main/resources/config/idRepoToken.properties diff --git a/apitest/src/main/resources/config/idaCertDataDeleteQueries.txt b/api-test/src/main/resources/config/idaCertDataDeleteQueries.txt similarity index 100% rename from apitest/src/main/resources/config/idaCertDataDeleteQueries.txt rename to api-test/src/main/resources/config/idaCertDataDeleteQueries.txt diff --git a/apitest/src/main/resources/config/injiCertify.properties b/api-test/src/main/resources/config/injiCertify.properties similarity index 83% rename from apitest/src/main/resources/config/injiCertify.properties rename to api-test/src/main/resources/config/injiCertify.properties index 31c9196d..66423543 100644 --- a/apitest/src/main/resources/config/injiCertify.properties +++ b/api-test/src/main/resources/config/injiCertify.properties @@ -12,4 +12,7 @@ esignetWellKnownEndPoint=/v1/esignet/oidc/.well-known/openid-configuration signupSettingsEndPoint=/v1/signup/settings actuatorMimotoEndpoint=/residentmobileapp/actuator/env esignetActuatorPropertySection=esignet-default.properties -injiCertifyWellKnownEndPoint=/v1/certify/issuance/.well-known/openid-credential-issuer \ No newline at end of file +injiCertifyWellKnownEndPoint=/v1/certify/issuance/.well-known/openid-credential-issuer +sunBirdBaseURL=https://registry.dev1.mosip.net +# allowed useCaseToExecute values are sunbird,mosipid,mock. +useCaseToExecute=sunbird,mosipid,mock \ No newline at end of file diff --git a/apitest/src/main/resources/config/keyManagerCertDataDeleteQueries.txt b/api-test/src/main/resources/config/keyManagerCertDataDeleteQueries.txt similarity index 100% rename from apitest/src/main/resources/config/keyManagerCertDataDeleteQueries.txt rename to api-test/src/main/resources/config/keyManagerCertDataDeleteQueries.txt diff --git a/apitest/src/main/resources/config/keyManagerDataDeleteQueries.txt b/api-test/src/main/resources/config/keyManagerDataDeleteQueries.txt similarity index 100% rename from apitest/src/main/resources/config/keyManagerDataDeleteQueries.txt rename to api-test/src/main/resources/config/keyManagerDataDeleteQueries.txt diff --git a/apitest/src/main/resources/config/lang-isocode-transid.csv b/api-test/src/main/resources/config/lang-isocode-transid.csv similarity index 100% rename from apitest/src/main/resources/config/lang-isocode-transid.csv rename to api-test/src/main/resources/config/lang-isocode-transid.csv diff --git a/apitest/src/main/resources/config/mapping.properties b/api-test/src/main/resources/config/mapping.properties similarity index 100% rename from apitest/src/main/resources/config/mapping.properties rename to api-test/src/main/resources/config/mapping.properties diff --git a/apitest/src/main/resources/config/masterDataCertDataDeleteQueries.txt b/api-test/src/main/resources/config/masterDataCertDataDeleteQueries.txt similarity index 100% rename from apitest/src/main/resources/config/masterDataCertDataDeleteQueries.txt rename to api-test/src/main/resources/config/masterDataCertDataDeleteQueries.txt diff --git a/apitest/src/main/resources/config/masterDataDeleteQueries.txt b/api-test/src/main/resources/config/masterDataDeleteQueries.txt similarity index 100% rename from apitest/src/main/resources/config/masterDataDeleteQueries.txt rename to api-test/src/main/resources/config/masterDataDeleteQueries.txt diff --git a/apitest/src/main/resources/config/packetProperties.properties b/api-test/src/main/resources/config/packetProperties.properties similarity index 100% rename from apitest/src/main/resources/config/packetProperties.properties rename to api-test/src/main/resources/config/packetProperties.properties diff --git a/apitest/src/main/resources/config/packetValidator.properties b/api-test/src/main/resources/config/packetValidator.properties similarity index 100% rename from apitest/src/main/resources/config/packetValidator.properties rename to api-test/src/main/resources/config/packetValidator.properties diff --git a/apitest/src/main/resources/config/partnerDemoService.properties b/api-test/src/main/resources/config/partnerDemoService.properties similarity index 100% rename from apitest/src/main/resources/config/partnerDemoService.properties rename to api-test/src/main/resources/config/partnerDemoService.properties diff --git a/apitest/src/main/resources/config/partnerQueries.properties b/api-test/src/main/resources/config/partnerQueries.properties similarity index 100% rename from apitest/src/main/resources/config/partnerQueries.properties rename to api-test/src/main/resources/config/partnerQueries.properties diff --git a/apitest/src/main/resources/config/pmsDataDeleteQueries.txt b/api-test/src/main/resources/config/pmsDataDeleteQueries.txt similarity index 100% rename from apitest/src/main/resources/config/pmsDataDeleteQueries.txt rename to api-test/src/main/resources/config/pmsDataDeleteQueries.txt diff --git a/apitest/src/main/resources/config/policyGroup.json b/api-test/src/main/resources/config/policyGroup.json similarity index 100% rename from apitest/src/main/resources/config/policyGroup.json rename to api-test/src/main/resources/config/policyGroup.json 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/config/registrationProcessorAPI.properties b/api-test/src/main/resources/config/registrationProcessorAPI.properties similarity index 100% rename from apitest/src/main/resources/config/registrationProcessorAPI.properties rename to api-test/src/main/resources/config/registrationProcessorAPI.properties diff --git a/apitest/src/main/resources/config/residentServicesQueries.properties b/api-test/src/main/resources/config/residentServicesQueries.properties similarity index 100% rename from apitest/src/main/resources/config/residentServicesQueries.properties rename to api-test/src/main/resources/config/residentServicesQueries.properties diff --git a/apitest/src/main/resources/config/sign.json b/api-test/src/main/resources/config/sign.json similarity index 100% rename from apitest/src/main/resources/config/sign.json rename to api-test/src/main/resources/config/sign.json diff --git a/apitest/src/main/resources/config/test.properties b/api-test/src/main/resources/config/test.properties similarity index 100% rename from apitest/src/main/resources/config/test.properties rename to api-test/src/main/resources/config/test.properties diff --git a/apitest/src/main/resources/config/tokenGeneration.properties b/api-test/src/main/resources/config/tokenGeneration.properties similarity index 100% rename from apitest/src/main/resources/config/tokenGeneration.properties rename to api-test/src/main/resources/config/tokenGeneration.properties diff --git a/apitest/src/main/resources/config/updatePacketProperties.properties b/api-test/src/main/resources/config/updatePacketProperties.properties similarity index 100% rename from apitest/src/main/resources/config/updatePacketProperties.properties rename to api-test/src/main/resources/config/updatePacketProperties.properties diff --git a/apitest/src/main/resources/config/valueMapping.properties b/api-test/src/main/resources/config/valueMapping.properties similarity index 100% rename from apitest/src/main/resources/config/valueMapping.properties rename to api-test/src/main/resources/config/valueMapping.properties 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/injicertify/AddIdentity/AddIdentity.yml b/api-test/src/main/resources/injicertify/AddIdentity/AddIdentity.yml similarity index 82% rename from apitest/src/main/resources/injicertify/AddIdentity/AddIdentity.yml rename to api-test/src/main/resources/injicertify/AddIdentity/AddIdentity.yml index 9aef5359..2e4745e8 100644 --- a/apitest/src/main/resources/injicertify/AddIdentity/AddIdentity.yml +++ b/api-test/src/main/resources/injicertify/AddIdentity/AddIdentity.yml @@ -1,5 +1,5 @@ AddIdentity: - InjiCertify_AddIdentity_Valid_Params_VCI_uin_smoke_Pos: + InjiCertify_AddIdentity_Valid_Params_VCI_MOSIPID_uin_smoke_Pos: endPoint: /idrepository/v1/identity/ role: idrepo restMethod: post @@ -13,7 +13,7 @@ AddIdentity: "UIN": "$UIN$", "dateOfBirth": "1992/04/15", "postalCode": "14022", - "email": "InjiCertify_AddIdentity_Valid_Params_VCI_uin_smoke_Pos@mosip.net", + "email": "InjiCertify_AddIdentity_Valid_Params_VCI_MOSIPID_uin_smoke_Pos@mosip.net", "phone": "9876543210", "referenceIdentityNumber": "6789545678878", "version": "v1", diff --git a/apitest/src/main/resources/injicertify/AddIdentity/addIdentityResult.hbs b/api-test/src/main/resources/injicertify/AddIdentity/addIdentityResult.hbs similarity index 100% rename from apitest/src/main/resources/injicertify/AddIdentity/addIdentityResult.hbs rename to api-test/src/main/resources/injicertify/AddIdentity/addIdentityResult.hbs diff --git a/api-test/src/main/resources/injicertify/AddIdentityMock/AddIdentity.hbs b/api-test/src/main/resources/injicertify/AddIdentityMock/AddIdentity.hbs new file mode 100644 index 00000000..cc39a3b0 --- /dev/null +++ b/api-test/src/main/resources/injicertify/AddIdentityMock/AddIdentity.hbs @@ -0,0 +1,101 @@ +{ + "requestTime": "{{requesttime}}", + "request": { + "individualId": "{{individualId}}", + "pin": "{{pin}}", + "email": "{{email}}", + "phone": "{{phone}}", + "fullName": [ + { + "language": "fra", + "value": "Siddharth K Mansour" + }, + { + "language": "ara", + "value": "تتگلدكنسَزقهِقِفل دسييسيكدكنوڤو" + }, + { + "language": "eng", + "value": "Siddharth K Mansour" + } + ], + "gender": [ + { + "language": "eng", + "value": "Male" + }, + { + "language": "fra", + "value": "Mâle" + }, + { + "language": "ara", + "value": "ذكر" + } + ], + "dateOfBirth": "1987/11/25", + "streetAddress": [ + { + "language": "fra", + "value": "yuān⥍" + }, + { + "language": "ara", + "value": "$لُنگᆑ" + }, + { + "language": "eng", + "value": "Slung" + } + ], + "locality": [ + { + "language": "fra", + "value": "yuān 2" + }, + { + "language": "ara", + "value": "يَُانꉛ⥍" + }, + { + "language": "eng", + "value": "yuan wee" + } + ], + "region": [ + { + "language": "fra", + "value": "yuān 3" + }, + { + "language": "ara", + "value": "$لُنگᆑ" + }, + { + "language": "eng", + "value": "yuan wee 3" + } + ], + "postalCode": "45009", + "country": [ + { + "language": "fra", + "value": "CMâttye" + }, + { + "language": "ara", + "value": "دسييسيكدك" + }, + { + "language": "eng", + "value": "Cmattey" + } + ], + "encodedPhoto": "data:image/jpeg;base64,/9j/4AAQSkZJRgABAQAAAQABAAD/2wBDAAIBAQEBAQIBAQECAgICAgQDAgICAgUEBAMEBgUGBgYFBgYGBwkIBgcJBwYGCAsICQoKCgoKBggLDAsKDAkKCgr/2wBDAQICAgICAgUDAwUKBwYHCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgr/wAARCACBAH0DASIAAhEBAxEB/8QAHwAAAQUBAQEBAQEAAAAAAAAAAAECAwQFBgcICQoL/8QAtRAAAgEDAwIEAwUFBAQAAAF9AQIDAAQRBRIhMUEGE1FhByJxFDKBkaEII0KxwRVS0fAkM2JyggkKFhcYGRolJicoKSo0NTY3ODk6Q0RFRkdISUpTVFVWV1hZWmNkZWZnaGlqc3R1dnd4eXqDhIWGh4iJipKTlJWWl5iZmqKjpKWmp6ipqrKztLW2t7i5usLDxMXGx8jJytLT1NXW19jZ2uHi4+Tl5ufo6erx8vP09fb3+Pn6/8QAHwEAAwEBAQEBAQEBAQAAAAAAAAECAwQFBgcICQoL/8QAtREAAgECBAQDBAcFBAQAAQJ3AAECAxEEBSExBhJBUQdhcRMiMoEIFEKRobHBCSMzUvAVYnLRChYkNOEl8RcYGRomJygpKjU2Nzg5OkNERUZHSElKU1RVVldYWVpjZGVmZ2hpanN0dXZ3eHl6goOEhYaHiImKkpOUlZaXmJmaoqOkpaanqKmqsrO0tba3uLm6wsPExcbHyMnK0tPU1dbX2Nna4uPk5ebn6Onq8vP09fb3+Pn6/9oADAMBAAIRAxEAPwD8afAXw+8B6trH9lat4djuUkulDSGV0YDPPKsK9Mvfg98AvB3xIs9G1P4bpqOmXJ4WTWbyHau4DA8uYep712nxf/Zw/wCFRfFCVNAsV+yTzkwLjHljIAAA7V55451q4v8AxHALtXU20WYwwwecMK4cPivaaHbXw3sq3sz6csf2Kf2Ftaso9UtvgBbqkq7kRfEup4I/8Ca19I/Yh/YNRB9q/ZrtnIPzE+K9WBI7j/j64z7Vm/A7xBear8OdJuZ2J/0Uc59zXeQ3ZZtwbvWybT3OJRTR8Kf8FG/hj8Evhb8btJ8MfA/4eReGNMuPCUV3c2EGp3V2GuDd3abt9zJI+fLji4zj2r54e3TGVNfRH/BTqUQftD6RIzcP4QhOfc3V0P6CvnhGbBXNb7oerGJERnJpJNxY4qbJI5PeoGkkMu1T3pqyFa71G7GZgDDvLMAF9TXvPwk+DHgU+CxqHjixSe5vdssMZHMCYIZcggj1rxnRYp31OAQwpJIsqsEc4Bwa9xPiuz0XRZ5dULJc3ELMqRjcsfBGAfSvPx1SqopQep62X0qd+dnN2nwn8GeKvibJ4S8L6XHHaRykPNNPIwVRjuWPYmv0Y/Yn/wCCDnwc+K9vZ+NPizDqA0i6QSQWazyxPeqf44h5kREYIIOMn3rwP/gkB+zRbfGv4qy/ELxRA1zpNjc7pLOdP3U7bQw3Ht0xxX7y/BnQ7a0sIZcCQuoMajlUHopHUV8vnGZYylWVOnUPt8pyfBuh9YnTPmux/wCDdL/gl9LppnPwJuzIMYb/AIS3WB+gvMV45+0P/wAG437NC6Hd6l8EPCU2nXK5+z20mp3M65IOP9fM/Nfq7pfmR23kvxVLxTbN9hlwOMUqmIzFUeb2hVHLcteI0gfyxftZfsC+PP2X/Fj+H/F3g84Qtul2McYOOcDivEprLwxpz+RceHrZm9Wz/jX9LX7WP7MPw8+P+gXGi+K9DtzIyHZcsuWB59Tivwb/AG8P2VpvgH8c77wdp+nNLZiWT7JIiZygIHbjvXTlOd1KkvZ1dTjzTIcPSfPTPtb9u3wymj6imo2zqkkc6gOrD7m/5ua+OPjXZ6Xf6wutaRMjB1IfYQRkmvsH9urWbuG7m0HWdPCq0mElbOCucHnpXxJNpiN4tn8PWl3ILdZgYo9vBHY4/OujKWuVX2PFzumvban1J+zN4Z1O8+FGk4ty2bVegJ7mvVNN+GPii9lCWekSnPrGR/SvRP8Agl98H7P4gLo/hjUIMxpZEkFc8jmv1D+Hv7GXwx0mNbi90SKWRSPvRf8A169+lhpVHd6HydSr7LRI/mF/4K1eE9S8NftF6Fp2q25hlPgq3cxnqP8ATLwZx74/T2r5kkLYLIT7V+oX/B2v4T0vwZ/wUU8D6L4fskgg/wCFGaW6xoMAf8TnWh/QV+X9qVbhzxXRfl+Q07CQi5l2wxjLMwVR6k11Vv8ACDxdDZjUr6zjiR4i6ySSYGB7nv7Vl+EoYH8Swm9H+jod5bHQg5FdRrfjjXPFV2mj6xr03kGVY4LYsCsQJ7fTNYzqvc6YRUpWE+DXw8m8QeIJr/UpWEEEL528jftyBU/xI1iawgW0C5dTsCZ/hJ5r17wt4MtfC3gCbRvD9tcfaHAkuL+dNrSFQfucYZSOp5rwjx1dTXPiLzbiQuqSfOT9a8ajXeKxT7I96rhfquEV+p+nP/BGrxf4t8BfBqCz8HeB4tSuLu9ubu8utQn8i1jiAVYozLnAPDYGOCa/QvwB+3/o/g7WLfR/ij8JNT0yaYgfb9Ju4ryzU5xzICvfofrXxF+xV+zJ8R/iR+wloLfBDxkNE1S7sFuWkK8ThpHlK5HIbOAD2Ir3j4BfskftVaN40v4tf+N2t6r4dh0+JLTSdeeN/tMh3earkx9MHG7IPpXzNf2dXG1O59zhVVoYOlzH6IeFPinoHiXSU1uxvGaGVdyFlwcc9fSvMPjZ+3v4B8A6v/wg2mfD7xDr+pB9jjSrXKKc459eo54FN+Gvh9vBvw98Q6TOyzSWGUs5Mgkjyye3fNeMfHf9mr4x61pOo3/wv8XXVlcT6U8tnqVvLGss11hcK4bAC8tyOflHrXPTxFWvL2Z01cNCF53Ol8dftFXV74bl1zXvg7rWmwOMtKLu1kKDn/lispkB+tfnj+374MPjr4gaTrcEBbfZSliR3L17b8EP2dv+ChOieJrSH4hfEA61ootn/tOW9ulWQt22qO2M+v1qr+0vo3h/SfF1vpeoSlBBE6xAL23fWudSpYTFO7NYUvrVMo/8FDvhrYeK/hNJqsOmrJfQXcJRiOdu4k18LaJ8C/Evi/x1pEnhmzR7q5iAuTI+0YD8DP8AwI/nX6UftX2N5cfCnUUglaOZRwV6gYavPv8Agnz+yNceP/CKeJ/FGpXBuruDzNPDRqQ8ZGCcn/awPxr28FifZULo+fxWAWPxmp9S/wDBJv8AZr8YeA7yTXPE9pBGLdTHCY5gxwU/Tmv0W0yIrDg8V87/ALDXgyPwd4OuvC8cwdrG4SJ8Y+U7Se1fRsEnluI84zX3GW1atbCc8z89znCUcLmHJT6H85n/AAeESGL/AIKXeAgDyfgNpg/8rWt1+UsS7ecnrX6q/wDB4U5f/gpn4Gz2+BOmAf8Ag51uvyo3sqnmqSZy043aRPHqNzaviI/rV/w7cW914ls7nVhmNblDJxngMDWXbw3F3L5duhZj0ArqPBfw61bUIbvXNSYxQWj7XVzgkkZ4B6isqsVynVS5vbnvniX4v3N3oF34e8C2YsbOM7Wuo8q0wwecHg9ccV4pPYaddeIrK11S4IiusG6cj7rbsZ/Kt3wfq2seJrB9H0aF5Y7chIhg9MZrUl/Z98X6hbnXtTCww7grRvIA3Psea8CPscNUd9D6DEe1xVKy6H7Gf8EMPHumar+zrodrBdE2mnvJYw+3lOwPHbsfxr9IfGHin4faZ4fafiS5MZHyJlsnPYGvxa/4I1eIvFPh7wVrXgDwo6/8SfxIh8vzMfLJDvwfqY5M/Uetfd2rfFqz8G31r4W+Kd/f/wBo6xaSGzSzhMkkqcq2Mc5+gr43Ht0sbUhD1P0jBUIYrAUud2se/wDhqTTpvAupasCymSdSQ64YfKeorf8AhV4w8Jat4ej0nVoVZ7dRGrOvf86+YtC1VrPTR4b0L4w6vomkR4FxpWraJK9zIR02S4B6cc9zXSad8c/gn8MNDk0O41HXZrq6cKjX2iXUs0smCFMbDcP061lClUbudNXDxqKpTZ738Wb3RNB0AG0hiTMJBljOcZz71+bP7TtheeNviLNJo+mm9S0Z43kZTwSQe1fUnxF134qS+Hzpk3Nq6bre5ll2yyRjOSy44NfCn7Q3jTxzZ+Nm0r4d/HaPwpNb7v7Tt50ObonBjm47Ebh+FTDBSzGroNYqjlmGVz6k+P8AZW19plzpTn5JQVxjrnI/rXp/7PXg1vhh8N/CGo6fcssOn6HbRzRJjcoZ0mPA57Y/GvHfi1ryXWolVfcIpwzL6kHOK+gNWuLHwb8P5rOfUBaSQ2abLnIGI/L4GTxnbgY9q9Olf2Vzw4Vv9otsdx+xX8XYpPip4k8CT2xJnkhulcqed0bfyAH5mvq4xv5+4+vFfJH/AATb8EP421vWvi/e2qxxtOY7Z+7RbW2dfbn8a+wNqSAsDX6VgoKlgaaZ+SZhi1i8zqVD+b7/AIPCWx/wUw8CEH/mhGmZ/wDB1rdflVGwZCGr9U/+DwoAf8FMPAgH/RCNMz9f7a1qvyrgAKnNN2bJprY1fDBvbTVIruzhVwrDcHbAxnnJr23xi7aj4TtJbTS4oSloTdpbktvbJ5P4V43odzBBp0wlbgxsu31BB4q3pXxP8UwWzxnWZlR1KtEG4IIxXJicPKqz0MNXhTi7lj4e/ETU/BHjmPU/D7t5Ly7XgYlRg4Gfwr6WvviZ4d1fw35mu6oZbqUhoERhIw69cdOfavkOKS4n1fdaDLscgV2P2LWtBsU1Zt0NzPgxsp52ng1y5hgKVZx8jpwOMdN+5sfUX7CH7XVh+zh+0XeWnijUzDoniVkh1KRWz9nuQwWOUDuQGPWv2W8W3Wo/F/4daN4q8H6vsv7RVeyuIZBlXy2CDz69a/m3v9Nu5orjVZLozmVsz+aQPmI/nX7If8EwfjP4u8Bfs0eB9R16e5v9JbTYku/OUlrZi7AKFA+7jJJPSvm8+wlOlRWJ7H2PCuY1K1d0p9D74+Gn7SPx/wBB0t7Dx34Rnv78L5cVzYaelwFJBGDKVBGTjvVK20jxR4m8aJ8T/jQM3GnSl9KsE8s/ZcjrNglhIDnHsa6vwX+0D8IjoC3FtqdmwaPcrPKo3Lg5x83NeQfGz9pPU/Gt5ceBvgLorXtzJkSzzrshtj/dzk54OcYrw54+9K6R9Z7al7Zqnh9TB/bJ/af0vwppMj6XI811FYv9mgt1LkK2cFgvKgnHNfjZb/tq+NfAXxM8Y/EDXfAWka/eeJtYEey/vXAs4LQGOJEK9VIcnn0r9UPif8C7zwb4Q1jxP4j15dU1y6s2865uIkhZUQMVgjVT/qxgflX4ffHjw9r3hfxzNZfZPLyzHAJ9a9LhetSdSaW58txRSxio00ftp8VLr+y2udV24WO9SRj/AHkByR+OK8+8Tftc/FD44araeHvEFqtpZsRHNa2crOJQW6kEehxxXX/GC9k1XS7iytDuYoXx7AHNYn7DHwL1L4k/FO1vjYeZHDKDuxnHINenkuEpVqup4XEGPrYVq3U/WP8AYq8Dx/Dz4DabpCAK81ujTBf7w3CvW7b5YzWF4A0FPDnhWy0hF2+TCFxj3Nb+0gYr7VnxMkoxv1Z/N9/weEoW/wCCmXgUHv8AAnTMf+DrW6/K2OMJGa/VX/g8Kf8A42YeAiD934D6WD9f7a1uvyrM4SPLnqeMVlZ8xpBvlQ5bpfLMBPU1C0WH2rmpdKtJL3UVihtJJXZwqxhCSxJ4AAr2/wCGX7Av7SnxfuYrvw38Obu0tJSMXF/G0EYz0BLCsMRisPg1z1Klj0MFlmaY+ryYak53PHvC729vrEU0rHOcV6v4z0XXfENxo2haNZvPcvYwNAkYJLmVm+Xj0+X8TX0LpH/BHPXfBHh278efGLx3FpzWds8gt7V0ljLhSQMjJ6jrXuX/AATw/ZYFukHxc8RQCdoIfJ0zzgBmGRclvbkV8vmfEmApU/bUZXP0HI+BM1r1VRxlP2Z4v8Hf+Cbes+HfAreNfjTYGSa6KS2ehmPcGYg7fMHDLzj6A1+g37Cfw6XQvhZp/wAPtYgWJo7PZKi8/MAf8a7fSfhRe+L/ADr7T7RJ47KQRIrN7A4rrvgr8PNW03x8Y7jSfJU7twUHAbAxXx1TNMVmVG9TY+wqZXl2SYz2dO1zo/DX7Ofw6khW31vwVaXTxEBZpkO79DXf+F/hf4d8Mf8AIC0yO2iHSOJcAV22k+E7nIFzDg1sf2DbQhodmSAcDHeuNUmndnDUrJqyPm39pLwnd+I7N9MSLcjNtx7E/wD16/NP9sj9izwnq/xDgbQ7PfNHC4vx5YG2Td0/Kv1v+Mup+HvCelTajdSpJqHIt7EkfM5zgnByBnHPavjzx+nh7Q9YJ8QFJLy5Z5bi5flpnLZLHnqSa0wuK+q1Wunke/hMkpZrSXtXYm+DmhR/E3Q7vxlrdsbO11GVfsDTKVENu/yknd90ZPevu39in9jm0+CUcOs28kMsdzDvhniYEMCMA5HrX51/8FDNVbwR+xt4i03RblbeJ7S2trSBHA+9dR4QD6Bj9AT2r27/AIN9f+CnM3xU8MWv7GHxx8XW83iDw/b+b4R1K+cRG/08gRiKY4wWjYMVx2AzxX6bw9S/dVKiPxLi5SdanA/UVYnA3EdKc74OeakeREVAHBVxkYOajlaEttQ5zX0EXdnx8ZSqbn83v/B4Kxl/4KXeCAP+iF6X/wCnnWq/Mj4XfDTxR8WvHFj4J8J2xuL2+m2Qx54GBksTzgADrX6c/wDB4CAn/BTLwMEzz8CNM3fX+2daryD/AIIj/Ae38QeN9W+MerWuU06IWmnyEZBkdSXGe3ykfpXl5tjVl+EnXPqeHMs/tXMqeHXU+sf2Sf8AgmB8Ifgx4YtdZ8SeHLfVNbSIST6lcwAvFIAeEIOCDwc19EeG30iPRJXgiMc9s6rcBlx2ycevFeiaVpq/8I7DEybSI/nX35ry/wCJGga7HqbDSb10jll2uqkfdJwf0r8RxOOxuNxDq1Gf1BlmV4XL6CpUOh5x8eNFuvjWf+Fa+HXAtLo5vpi2P3YOGHPBypNek+C/COmeEbO08K6Fp8dvplhYmKBYugCjCDHt0qbwz4K07wpbSPDaQyyTD/XSNh+mOla8Mf2XR2SPrj+hrllUl7K1z0eV+1527npX7LPnpaXLSaYz2z6jIzTKhJ3+XHkflt/M17r4W0Lw82tT6hKxSRpcp5iY7e9edfst61Y2PwpZLRJnm/tVjcbIiQCY4vSvR7xLvVmNxa6Y554d0IxX1GBVOnh031PynO3WrY+ozukhssiRrmMgtgYcHrXDfHHx6fCFt9j8O28b3+0/fcrzn1FW40m0LQ5NT1TCLChYMD/EASK8P8SeL9R8ba7NrV3ICBJhDuzwajHV40oK24siyqtiJ3bOD8V6L4o8Va7L448W6q4uzu2QbwyRg9QD+FfKP7VmpaxN41t4rK+tlMcTiQSXIXnd29a+w/GF8biGSyLZDdq8yufCmgWd7NLc+Gba4kmfc8kmc5/A148ddWz9MwuFpU6ap9j5f/4LOfECw0rQfDHwm0rUALm+vG1S8iiYExpFuijjPoMyynnnivjHTdb1DwZDpPi/wjrd3peq2VzHPa3NjP5TxyBuGz3HqO9T/Gf4teK/jb8Tr74ieOZmuL29kzEjybhbpnOxT6ZJPPrWFrSedDDB2Uc/XNfuWAw/1SgqZ/J+a46OOxnOz90/+CK3/BXBP2ntMh/Zq/aS8U2cfj2wgY6NrFxNsXV4M4LzHHEnHABPXmv0Shilwtx50ZQruyJAcD3r+R3SfFfiXwnf23iDwxq93pd7ZOGt9Q0+ZkmjIOeCpyORX2T+y7/wXw/bz+Bd1Bpvizxfa+PdAaMxzW3iiBXudh4x533ycZ5J+teh7RR2PBcLJmJ/weBQTD/gpn4FLIQH+Bel9fQ61rQ/xruf+CSfw/8A+EA/ZW8NNcRbJdbv7i/uDjrvwIf/ACHEPzxXy1/wWt/bksv+Cmf7ZHgP4qaF8PrnQryy8AWGg6hp9zfGZZJY9U1CX91x93/SccdTX6I/s7+CrL4ffDrQfBMo2R6XpccCgDvGuB/LNfBccYm2ChS7s/WPDDAyeOni/wCQ9++3wQaZES/JTMn1rifEOoR3OvpHE+YyDuP41FN4kuNUMlhBcEbWwxB6GqDRwWN1snumd89WFflibtsf0BTpJyuupo69DAI0mtmyUYAfTPNPmeJrMRseZBlfpWfLeh5hb7s7mwPrWvHYSzm306O1VrnzFjhDHqSen51iqcvrKQ6/7iDe+h9N/svafongz4UQNNaN5mpCOd2WMkkgEV6HL4r0uH5Bf3CoT/qfK/pXJaB8PPEum+F9GsbPWp7drWz2NCuAo+YmrV1puraVK1/rMccvl9bgyZINfZ0XVp0D8dxkYYjG1Glucr+0r8WtNsfD8PhjRJJvNuSvmI8ZXjdg/pXkUT2+l6SdrYY4I4o8c+KX8e+OZ9WZy1tG7CBj/dPNZupTtcX6WSHMYBHWvnMXWlVq2P0DKMu+r4KCW5GRLqMn2lxmsrWrOT7Wdi8c10EqDTLYpGcAVkzXqTvvZ+frWDex78Yvksj8PmJlvhcZz71eaM3DZ61V02Dzx0rZt7PyecV/Qq7H8XtLm0KN5bmCwbt6VlWcJkXzlGWre1v/AI82U+tU/D9mZYQ4Bq4yigV2WfgN8Mx8Uf23/BNjNbebHpmmJqF0uM48mSZl/wDInl/nX6xziXTrRZZD82K/PD/gnxbpD+3dLv6f8K4mL/X7bHiv0B+LustpXgK41W0c+fEuVx9DX5ZxrVlUzCnSP6G8LsPRo5HVxD3MvwX43uZvE+q2L7yyXfy4BxjbXf28djqMP26UbpgeFI614j+zR4hufF1tNrl4x86ZgZsn1XmvY7eQWs4a1OYx3r4ydP2VZ3P0nCz9tRLqWi3jiSGECWKdcqO3Oa7/AOGmkT+IPipodq8e9f7SgeZSeNolXOfwrh9GvUGpu8R/1zbm+tesfs0SQ3Pxtt7S4b5fsspH1AFbYenzYynY8/MKjp5dU5j6ueymuJBIbyQD+5jivJf2pviIfB/hk+H9JuP9Mu2UGPOMoTgn8jXr2vX0Gm2stzPKYkQH94vr2B9q+LfGni3Vvir8RbzxPqczG1jmZLJWPCR8bQPwAr3swrqlRPz3hjL5YzMva1P4cGVtMSKx0pICcSFeR71HElz54uM4x3Jq5JbwG7DyHmq3ifXtM0XTXkK+YwOAmM5P4V8rZuzP1aDS0RH4qvr27it9NsXXzpsFnD9OcVv+F/B2nWdiYdat47iUY+djn+Vcj4Nj1C7tZ9f1SzjCSzf6IrPzGuBkY7cmtGXxrPaOY1l/WuqlaT1FGM5n4heH/wCH61ut978aKK/oGXxn8Wx3M7W/9Q9P8J/8ew/CiisX8RrT2keo/sF/8nzX3/ZOJf8A0vhr7t+MP/JPrr/rif5GiivzHjD/AJGdM/oLw0/5JeZ57+xv/wAgW7+o/wDQDXt9h/yDjRRXxuJ/jH6JhSx4b/5CCV67+zX/AMl6tf8Ar0m/pRRXThv96gcOcf7lUPqX4wf8k/1T/rm3/oBr430H/kEj/fFFFdOabM+U4V/3ep6suXf/AB8VynjX/j9i/wCvhaKK8dbfd+aPvKeyOln/AOQWn+7/AI1x2t/8fh/GiiuiH8Rndh/jf9dD/9k=", + "individualBiometrics": { + "format": "cbeff", + "version": 1, + "value": "individualBiometrics_bio_CBEFF" + } + } +} \ No newline at end of file diff --git a/api-test/src/main/resources/injicertify/AddIdentityMock/AddIdentity.yml b/api-test/src/main/resources/injicertify/AddIdentityMock/AddIdentity.yml new file mode 100644 index 00000000..6642fcb9 --- /dev/null +++ b/api-test/src/main/resources/injicertify/AddIdentityMock/AddIdentity.yml @@ -0,0 +1,19 @@ +AddIdentity: + InjiCertify_AddIdentity_For_Mock_Valid_smoke_Pos: + endPoint: /v1/mock-identity-system/identity + description: Add identity for mock scenario + role: idrepo + restMethod: post + inputTemplate: injicertify/AddIdentityMock/AddIdentity + outputTemplate: injicertify/AddIdentityMock/addIdentityResult + input: '{ + "requesttime": "$TIMESTAMP$", + "individualId": "$RANDOMINDIVIDUALIDFORMOCKIDENTITY$", + "pin": "545411", + "email": "$EMAILIDFORMOCKIDENTITY$", + "password": "$PASSWORDFORMOCKIDENTITY$", + "phone": "$PHONEFORMOCKIDENTITY$" +}' + output: '{ + "status":"mock identity data created successfully" +}' \ No newline at end of file diff --git a/api-test/src/main/resources/injicertify/AddIdentityMock/addIdentityResult.hbs b/api-test/src/main/resources/injicertify/AddIdentityMock/addIdentityResult.hbs new file mode 100644 index 00000000..ca45b742 --- /dev/null +++ b/api-test/src/main/resources/injicertify/AddIdentityMock/addIdentityResult.hbs @@ -0,0 +1,5 @@ +{ + "response": { + "status": "{{status}}" + } +} \ No newline at end of file diff --git a/apitest/src/main/resources/injicertify/OidcClient/OIDCClient.hbs b/api-test/src/main/resources/injicertify/OidcClient/OIDCClient.hbs similarity index 100% rename from apitest/src/main/resources/injicertify/OidcClient/OIDCClient.hbs rename to api-test/src/main/resources/injicertify/OidcClient/OIDCClient.hbs diff --git a/apitest/src/main/resources/injicertify/OidcClient/OIDCClient.yml b/api-test/src/main/resources/injicertify/OidcClient/OIDCClient.yml similarity index 71% rename from apitest/src/main/resources/injicertify/OidcClient/OIDCClient.yml rename to api-test/src/main/resources/injicertify/OidcClient/OIDCClient.yml index 2079ecb0..8b7e48fd 100644 --- a/apitest/src/main/resources/injicertify/OidcClient/OIDCClient.yml +++ b/api-test/src/main/resources/injicertify/OidcClient/OIDCClient.yml @@ -1,5 +1,5 @@ CreateOIDCClient: - Injicertify_CreateOIDCClient_all_Valid_Smoke_sid: + Injicertify_CreateOIDCClient_MOSIPID_all_Valid_Smoke_sid: endPoint: /v1/partnermanager/oidc/client role: partner restMethod: post @@ -7,9 +7,9 @@ CreateOIDCClient: outputTemplate: injicertify/OidcClient/OIDCClientResult input: '{ "name": "$RANDOMID$", - "policyId": "$ID:DefinePolicy_All_Valid_Smoke_sid_id$", + "policyId": "$ID:DefinePolicy_MOSIPID_All_Valid_Smoke_sid_id$", "publicKey": "$OIDCJWKKEY$", - "authPartnerId": "$ID:PartnerSelfRegistration_All_Valid_Smoke_sid_partnerId$", + "authPartnerId": "$ID:PartnerSelfRegistration_MOSIPID_All_Valid_Smoke_sid_partnerId$", "logoUri": "https://health-services.com/logo.png", "redirectUris": "$IDPREDIRECTURI$", "grantTypes": "authorization_code", diff --git a/apitest/src/main/resources/injicertify/OidcClient/OIDCClientResult.hbs b/api-test/src/main/resources/injicertify/OidcClient/OIDCClientResult.hbs similarity index 100% rename from apitest/src/main/resources/injicertify/OidcClient/OIDCClientResult.hbs rename to api-test/src/main/resources/injicertify/OidcClient/OIDCClientResult.hbs diff --git a/apitest/src/main/resources/injicertify/PmsIntegration/ApproveAPIKey/ApproveAPIKey.yml b/api-test/src/main/resources/injicertify/PmsIntegration/ApproveAPIKey/ApproveAPIKey.yml similarity index 71% rename from apitest/src/main/resources/injicertify/PmsIntegration/ApproveAPIKey/ApproveAPIKey.yml rename to api-test/src/main/resources/injicertify/PmsIntegration/ApproveAPIKey/ApproveAPIKey.yml index 8287c0cb..68969c67 100644 --- a/apitest/src/main/resources/injicertify/PmsIntegration/ApproveAPIKey/ApproveAPIKey.yml +++ b/api-test/src/main/resources/injicertify/PmsIntegration/ApproveAPIKey/ApproveAPIKey.yml @@ -1,5 +1,5 @@ ApproveAPIKey: - InjiCertify_ApproveRejectPartnerAPIKeyReq_All_Valid_Smoke: + InjiCertify_ApproveRejectPartnerAPIKeyReq_MOSIPID_All_Valid_Smoke: endPoint: /v1/partnermanager/partners/policy/{mappingkey} role: partner restMethod: put @@ -7,7 +7,7 @@ ApproveAPIKey: outputTemplate: injicertify/PmsIntegration/ApproveAPIKey/approveAPIKeyResult input: '{ "status": "Approved", - "mappingkey": "$ID:SubmitPartnerApiKeyRequest_Rejection_All_Valid_Smoke_sid_mappingkey$", + "mappingkey": "$ID:SubmitPartnerApiKeyRequest_Rejection_MOSIPID_All_Valid_Smoke_sid_mappingkey$", "requesttime": "$TIMESTAMP$" }' output: '{ diff --git a/apitest/src/main/resources/injicertify/PmsIntegration/ApproveAPIKey/approveAPIKey.hbs b/api-test/src/main/resources/injicertify/PmsIntegration/ApproveAPIKey/approveAPIKey.hbs similarity index 100% rename from apitest/src/main/resources/injicertify/PmsIntegration/ApproveAPIKey/approveAPIKey.hbs rename to api-test/src/main/resources/injicertify/PmsIntegration/ApproveAPIKey/approveAPIKey.hbs diff --git a/apitest/src/main/resources/injicertify/PmsIntegration/ApproveAPIKey/approveAPIKeyResult.hbs b/api-test/src/main/resources/injicertify/PmsIntegration/ApproveAPIKey/approveAPIKeyResult.hbs similarity index 100% rename from apitest/src/main/resources/injicertify/PmsIntegration/ApproveAPIKey/approveAPIKeyResult.hbs rename to api-test/src/main/resources/injicertify/PmsIntegration/ApproveAPIKey/approveAPIKeyResult.hbs diff --git a/apitest/src/main/resources/injicertify/PmsIntegration/CreatePartner/CreatePartner.yml b/api-test/src/main/resources/injicertify/PmsIntegration/CreatePartner/CreatePartner.yml similarity index 80% rename from apitest/src/main/resources/injicertify/PmsIntegration/CreatePartner/CreatePartner.yml rename to api-test/src/main/resources/injicertify/PmsIntegration/CreatePartner/CreatePartner.yml index 5f172dc9..711c6b40 100644 --- a/apitest/src/main/resources/injicertify/PmsIntegration/CreatePartner/CreatePartner.yml +++ b/api-test/src/main/resources/injicertify/PmsIntegration/CreatePartner/CreatePartner.yml @@ -1,5 +1,5 @@ createPartnerSelfRegistration: - InjiCertify_PartnerSelfRegistration_All_Valid_Smoke_sid: + InjiCertify_PartnerSelfRegistration_MOSIPID_All_Valid_Smoke_sid: endPoint: /v1/partnermanager/partners role: partner restMethod: post @@ -12,7 +12,7 @@ createPartnerSelfRegistration: "organizationName": "$PARTNERID$", "partnerId": "$PARTNERID$", "partnerType": "Auth_Partner", - "policyGroup": "$ID:DefinePolicyGroup_All_Valid_Smoke_sid_name$", + "policyGroup": "$ID:DefinePolicyGroup_MOSIPID_All_Valid_Smoke_sid_name$", "requesttime": "$TIMESTAMP$" }' output: ' { diff --git a/apitest/src/main/resources/injicertify/PmsIntegration/CreatePartner/createPartner.hbs b/api-test/src/main/resources/injicertify/PmsIntegration/CreatePartner/createPartner.hbs similarity index 100% rename from apitest/src/main/resources/injicertify/PmsIntegration/CreatePartner/createPartner.hbs rename to api-test/src/main/resources/injicertify/PmsIntegration/CreatePartner/createPartner.hbs diff --git a/apitest/src/main/resources/injicertify/PmsIntegration/CreatePartner/createPartnerResult.hbs b/api-test/src/main/resources/injicertify/PmsIntegration/CreatePartner/createPartnerResult.hbs similarity index 100% rename from apitest/src/main/resources/injicertify/PmsIntegration/CreatePartner/createPartnerResult.hbs rename to api-test/src/main/resources/injicertify/PmsIntegration/CreatePartner/createPartnerResult.hbs diff --git a/apitest/src/main/resources/injicertify/PmsIntegration/DefinePolicy/DefinePolicy.yml b/api-test/src/main/resources/injicertify/PmsIntegration/DefinePolicy/DefinePolicy.yml similarity index 79% rename from apitest/src/main/resources/injicertify/PmsIntegration/DefinePolicy/DefinePolicy.yml rename to api-test/src/main/resources/injicertify/PmsIntegration/DefinePolicy/DefinePolicy.yml index 3bd9ffc2..68d00ab1 100644 --- a/apitest/src/main/resources/injicertify/PmsIntegration/DefinePolicy/DefinePolicy.yml +++ b/api-test/src/main/resources/injicertify/PmsIntegration/DefinePolicy/DefinePolicy.yml @@ -1,5 +1,5 @@ definePolicy: - InjiCertify_DefinePolicy_All_Valid_Smoke_sid: + InjiCertify_DefinePolicy_MOSIPID_All_Valid_Smoke_sid: endPoint: /v1/policymanager/policies role: partner restMethod: post @@ -8,7 +8,7 @@ definePolicy: input: '{ "desc": "$POLICYDESC$", "name": "$POLICYNAME$", - "policyGroupName": "$ID:DefinePolicyGroup_All_Valid_Smoke_sid_name$", + "policyGroupName": "$ID:DefinePolicyGroup_MOSIPID_All_Valid_Smoke_sid_name$", "policyType": "Auth", "version": "1.0", "requesttime": "$TIMESTAMP$" diff --git a/apitest/src/main/resources/injicertify/PmsIntegration/DefinePolicy/definePolicy.hbs b/api-test/src/main/resources/injicertify/PmsIntegration/DefinePolicy/definePolicy.hbs similarity index 100% rename from apitest/src/main/resources/injicertify/PmsIntegration/DefinePolicy/definePolicy.hbs rename to api-test/src/main/resources/injicertify/PmsIntegration/DefinePolicy/definePolicy.hbs diff --git a/apitest/src/main/resources/injicertify/PmsIntegration/DefinePolicy/definePolicyResult.hbs b/api-test/src/main/resources/injicertify/PmsIntegration/DefinePolicy/definePolicyResult.hbs similarity index 100% rename from apitest/src/main/resources/injicertify/PmsIntegration/DefinePolicy/definePolicyResult.hbs rename to api-test/src/main/resources/injicertify/PmsIntegration/DefinePolicy/definePolicyResult.hbs diff --git a/apitest/src/main/resources/injicertify/PmsIntegration/DefinePolicyGroup/DefinePolicyGroup.yml b/api-test/src/main/resources/injicertify/PmsIntegration/DefinePolicyGroup/DefinePolicyGroup.yml similarity index 89% rename from apitest/src/main/resources/injicertify/PmsIntegration/DefinePolicyGroup/DefinePolicyGroup.yml rename to api-test/src/main/resources/injicertify/PmsIntegration/DefinePolicyGroup/DefinePolicyGroup.yml index 65b2c8f8..7a5f8e96 100644 --- a/apitest/src/main/resources/injicertify/PmsIntegration/DefinePolicyGroup/DefinePolicyGroup.yml +++ b/api-test/src/main/resources/injicertify/PmsIntegration/DefinePolicyGroup/DefinePolicyGroup.yml @@ -1,5 +1,5 @@ definePolicyGroup: - InjiCertify_DefinePolicyGroup_All_Valid_Smoke_sid: + InjiCertify_DefinePolicyGroup_MOSIPID_All_Valid_Smoke_sid: endPoint: /v1/policymanager/policies/group/new role: partner restMethod: post diff --git a/apitest/src/main/resources/injicertify/PmsIntegration/DefinePolicyGroup/definePolicyGroup.hbs b/api-test/src/main/resources/injicertify/PmsIntegration/DefinePolicyGroup/definePolicyGroup.hbs similarity index 100% rename from apitest/src/main/resources/injicertify/PmsIntegration/DefinePolicyGroup/definePolicyGroup.hbs rename to api-test/src/main/resources/injicertify/PmsIntegration/DefinePolicyGroup/definePolicyGroup.hbs diff --git a/apitest/src/main/resources/injicertify/PmsIntegration/DefinePolicyGroup/definePolicyGroupResult.hbs b/api-test/src/main/resources/injicertify/PmsIntegration/DefinePolicyGroup/definePolicyGroupResult.hbs similarity index 100% rename from apitest/src/main/resources/injicertify/PmsIntegration/DefinePolicyGroup/definePolicyGroupResult.hbs rename to api-test/src/main/resources/injicertify/PmsIntegration/DefinePolicyGroup/definePolicyGroupResult.hbs diff --git a/apitest/src/main/resources/injicertify/PmsIntegration/PublishPolicy/PublishPolicy.yml b/api-test/src/main/resources/injicertify/PmsIntegration/PublishPolicy/PublishPolicy.yml similarity index 80% rename from apitest/src/main/resources/injicertify/PmsIntegration/PublishPolicy/PublishPolicy.yml rename to api-test/src/main/resources/injicertify/PmsIntegration/PublishPolicy/PublishPolicy.yml index 0f2587fc..aac0b803 100644 --- a/apitest/src/main/resources/injicertify/PmsIntegration/PublishPolicy/PublishPolicy.yml +++ b/api-test/src/main/resources/injicertify/PmsIntegration/PublishPolicy/PublishPolicy.yml @@ -1,13 +1,13 @@ createPublishPolicy: - InjiCertify_PublishPolicy_All_Valid_Smoke: + InjiCertify_PublishPolicy_MOSIPID_All_Valid_Smoke: endPoint: /v1/policymanager/policies/{policyId}/group/{policygroupId}/publish role: partner restMethod: post inputTemplate: injicertify/PmsIntegration/PublishPolicy/publishPolicy outputTemplate: injicertify/PmsIntegration/PublishPolicy/publishPolicyResult input: '{ - "policygroupId": "$ID:DefinePolicyGroup_All_Valid_Smoke_sid_id$", - "policyId": "$ID:DefinePolicy_All_Valid_Smoke_sid_id$", + "policygroupId": "$ID:DefinePolicyGroup_MOSIPID_All_Valid_Smoke_sid_id$", + "policyId": "$ID:DefinePolicy_MOSIPID_All_Valid_Smoke_sid_id$", "requesttime": "$TIMESTAMP$" }' output: '{ diff --git a/apitest/src/main/resources/injicertify/PmsIntegration/PublishPolicy/publishPolicy.hbs b/api-test/src/main/resources/injicertify/PmsIntegration/PublishPolicy/publishPolicy.hbs similarity index 100% rename from apitest/src/main/resources/injicertify/PmsIntegration/PublishPolicy/publishPolicy.hbs rename to api-test/src/main/resources/injicertify/PmsIntegration/PublishPolicy/publishPolicy.hbs diff --git a/apitest/src/main/resources/injicertify/PmsIntegration/PublishPolicy/publishPolicyResult.hbs b/api-test/src/main/resources/injicertify/PmsIntegration/PublishPolicy/publishPolicyResult.hbs similarity index 100% rename from apitest/src/main/resources/injicertify/PmsIntegration/PublishPolicy/publishPolicyResult.hbs rename to api-test/src/main/resources/injicertify/PmsIntegration/PublishPolicy/publishPolicyResult.hbs diff --git a/apitest/src/main/resources/injicertify/PmsIntegration/RequestAPIKey/RequestAPIKey.yml b/api-test/src/main/resources/injicertify/PmsIntegration/RequestAPIKey/RequestAPIKey.yml similarity index 71% rename from apitest/src/main/resources/injicertify/PmsIntegration/RequestAPIKey/RequestAPIKey.yml rename to api-test/src/main/resources/injicertify/PmsIntegration/RequestAPIKey/RequestAPIKey.yml index c8952a93..53be97c6 100644 --- a/apitest/src/main/resources/injicertify/PmsIntegration/RequestAPIKey/RequestAPIKey.yml +++ b/api-test/src/main/resources/injicertify/PmsIntegration/RequestAPIKey/RequestAPIKey.yml @@ -1,12 +1,12 @@ RequestAPIKeyForAuthPartner: - InjiCertify_SubmitPartnerApiKeyRequest_Rejection_All_Valid_Smoke_sid: - endPoint: /v1/partnermanager/partners/$ID:PartnerSelfRegistration_All_Valid_Smoke_sid_partnerId$/policy/map + InjiCertify_SubmitPartnerApiKeyRequest_Rejection_MOSIPID_All_Valid_Smoke_sid: + endPoint: /v1/partnermanager/partners/$ID:PartnerSelfRegistration_MOSIPID_All_Valid_Smoke_sid_partnerId$/policy/map role: partner restMethod: post inputTemplate: injicertify/PmsIntegration/RequestAPIKey/requestApiKey outputTemplate: injicertify/PmsIntegration/RequestAPIKey/requestAPIKeyResult input: '{ - "policyName": "$ID:DefinePolicy_All_Valid_Smoke_sid_name$", + "policyName": "$ID:DefinePolicy_MOSIPID_All_Valid_Smoke_sid_name$", "useCaseDescription": "Need to submit the payment", "requesttime": "$TIMESTAMP$" }' diff --git a/apitest/src/main/resources/injicertify/PmsIntegration/RequestAPIKey/requestAPIKeyResult.hbs b/api-test/src/main/resources/injicertify/PmsIntegration/RequestAPIKey/requestAPIKeyResult.hbs similarity index 100% rename from apitest/src/main/resources/injicertify/PmsIntegration/RequestAPIKey/requestAPIKeyResult.hbs rename to api-test/src/main/resources/injicertify/PmsIntegration/RequestAPIKey/requestAPIKeyResult.hbs diff --git a/apitest/src/main/resources/injicertify/PmsIntegration/RequestAPIKey/requestApiKey.hbs b/api-test/src/main/resources/injicertify/PmsIntegration/RequestAPIKey/requestApiKey.hbs similarity index 100% rename from apitest/src/main/resources/injicertify/PmsIntegration/RequestAPIKey/requestApiKey.hbs rename to api-test/src/main/resources/injicertify/PmsIntegration/RequestAPIKey/requestApiKey.hbs diff --git a/apitest/src/main/resources/injicertify/PmsIntegration/UploadCert/UploadCert.yml b/api-test/src/main/resources/injicertify/PmsIntegration/UploadCert/UploadCert.yml similarity index 75% rename from apitest/src/main/resources/injicertify/PmsIntegration/UploadCert/UploadCert.yml rename to api-test/src/main/resources/injicertify/PmsIntegration/UploadCert/UploadCert.yml index 89daae49..c30d0d70 100644 --- a/apitest/src/main/resources/injicertify/PmsIntegration/UploadCert/UploadCert.yml +++ b/api-test/src/main/resources/injicertify/PmsIntegration/UploadCert/UploadCert.yml @@ -1,5 +1,5 @@ uploadPartnerCert: - Injicertify_UploadPartnerCert_All_Valid_Smoke: + Injicertify_UploadPartnerCert_MOSIPID_All_Valid_Smoke: endPoint: /v1/partnermanager/partners/certificate/upload role: partner checkErrorsOnlyInResponse: true @@ -8,7 +8,7 @@ uploadPartnerCert: outputTemplate: injicertify/PmsIntegration/UploadCert/uploadCertResult input: '{ "certificateData": "$PARTNERCERT$", - "partnerId": "$ID:PartnerSelfRegistration_All_Valid_Smoke_sid_partnerId$", + "partnerId": "$ID:PartnerSelfRegistration_MOSIPID_All_Valid_Smoke_sid_partnerId$", "requesttime": "$TIMESTAMP$" }' output: ' { diff --git a/apitest/src/main/resources/injicertify/PmsIntegration/UploadCert/uploadCert.hbs b/api-test/src/main/resources/injicertify/PmsIntegration/UploadCert/uploadCert.hbs similarity index 100% rename from apitest/src/main/resources/injicertify/PmsIntegration/UploadCert/uploadCert.hbs rename to api-test/src/main/resources/injicertify/PmsIntegration/UploadCert/uploadCert.hbs diff --git a/apitest/src/main/resources/injicertify/PmsIntegration/UploadCert/uploadCert2.hbs b/api-test/src/main/resources/injicertify/PmsIntegration/UploadCert/uploadCert2.hbs similarity index 100% rename from apitest/src/main/resources/injicertify/PmsIntegration/UploadCert/uploadCert2.hbs rename to api-test/src/main/resources/injicertify/PmsIntegration/UploadCert/uploadCert2.hbs diff --git a/apitest/src/main/resources/injicertify/PmsIntegration/UploadCert/uploadCert3.hbs b/api-test/src/main/resources/injicertify/PmsIntegration/UploadCert/uploadCert3.hbs similarity index 100% rename from apitest/src/main/resources/injicertify/PmsIntegration/UploadCert/uploadCert3.hbs rename to api-test/src/main/resources/injicertify/PmsIntegration/UploadCert/uploadCert3.hbs diff --git a/apitest/src/main/resources/injicertify/PmsIntegration/UploadCert/uploadCertResult.hbs b/api-test/src/main/resources/injicertify/PmsIntegration/UploadCert/uploadCertResult.hbs similarity index 100% rename from apitest/src/main/resources/injicertify/PmsIntegration/UploadCert/uploadCertResult.hbs rename to api-test/src/main/resources/injicertify/PmsIntegration/UploadCert/uploadCertResult.hbs diff --git a/apitest/src/main/resources/injicertify/PmsIntegration/UploadCertificate/UploadCertificate.yml b/api-test/src/main/resources/injicertify/PmsIntegration/UploadCertificate/UploadCertificate.yml similarity index 74% rename from apitest/src/main/resources/injicertify/PmsIntegration/UploadCertificate/UploadCertificate.yml rename to api-test/src/main/resources/injicertify/PmsIntegration/UploadCertificate/UploadCertificate.yml index f49c1b35..e850752d 100644 --- a/apitest/src/main/resources/injicertify/PmsIntegration/UploadCertificate/UploadCertificate.yml +++ b/api-test/src/main/resources/injicertify/PmsIntegration/UploadCertificate/UploadCertificate.yml @@ -1,26 +1,26 @@ uploadCACert: - Injicertify_UploadCACertificate_All_Valid_Smoke: + Injicertify_UploadCACertificate_MOSIPID_All_Valid_Smoke: endPoint: /v1/partnermanager/partners/certificate/ca/upload role: partner restMethod: post inputTemplate: injicertify/PmsIntegration/UploadCertificate/uploadCertificate outputTemplate: injicertify/PmsIntegration/UploadCertificate/uploadCertificateResult input: '{ - "partnerId": "$ID:PartnerSelfRegistration_All_Valid_Smoke_sid_partnerId$", + "partnerId": "$ID:PartnerSelfRegistration_MOSIPID_All_Valid_Smoke_sid_partnerId$", "certificateData": "$CACERT$", "requesttime": "$TIMESTAMP$" }' output: ' { "status": "Upload Success." }' - Injicertify_UploadCInterCertificate_All_Valid_Smoke: + Injicertify_UploadCInterCertificate_MOSIPID_All_Valid_Smoke: endPoint: /v1/partnermanager/partners/certificate/ca/upload role: partner restMethod: post inputTemplate: injicertify/PmsIntegration/UploadCertificate/uploadCertificate outputTemplate: injicertify/PmsIntegration/UploadCertificate/uploadCertificateResult input: '{ - "partnerId": "$ID:PartnerSelfRegistration_All_Valid_Smoke_sid_partnerId$", + "partnerId": "$ID:PartnerSelfRegistration_MOSIPID_All_Valid_Smoke_sid_partnerId$", "certificateData": "$INTERCERT$", "requesttime": "$TIMESTAMP$" }' diff --git a/apitest/src/main/resources/injicertify/PmsIntegration/UploadCertificate/uploadCertificate.hbs b/api-test/src/main/resources/injicertify/PmsIntegration/UploadCertificate/uploadCertificate.hbs similarity index 100% rename from apitest/src/main/resources/injicertify/PmsIntegration/UploadCertificate/uploadCertificate.hbs rename to api-test/src/main/resources/injicertify/PmsIntegration/UploadCertificate/uploadCertificate.hbs diff --git a/apitest/src/main/resources/injicertify/PmsIntegration/UploadCertificate/uploadCertificateResult.hbs b/api-test/src/main/resources/injicertify/PmsIntegration/UploadCertificate/uploadCertificateResult.hbs similarity index 100% rename from apitest/src/main/resources/injicertify/PmsIntegration/UploadCertificate/uploadCertificateResult.hbs rename to api-test/src/main/resources/injicertify/PmsIntegration/UploadCertificate/uploadCertificateResult.hbs diff --git a/apitest/src/main/resources/injicertify/SendOtp/SendOtp.hbs b/api-test/src/main/resources/injicertify/SendOtp/SendOtp.hbs similarity index 100% rename from apitest/src/main/resources/injicertify/SendOtp/SendOtp.hbs rename to api-test/src/main/resources/injicertify/SendOtp/SendOtp.hbs diff --git a/apitest/src/main/resources/injicertify/SendOtp/SendOtp.yml b/api-test/src/main/resources/injicertify/SendOtp/SendOtp.yml similarity index 100% rename from apitest/src/main/resources/injicertify/SendOtp/SendOtp.yml rename to api-test/src/main/resources/injicertify/SendOtp/SendOtp.yml diff --git a/apitest/src/main/resources/injicertify/SendOtp/SendOtpEmptyOtpChannel.hbs b/api-test/src/main/resources/injicertify/SendOtp/SendOtpEmptyOtpChannel.hbs similarity index 100% rename from apitest/src/main/resources/injicertify/SendOtp/SendOtpEmptyOtpChannel.hbs rename to api-test/src/main/resources/injicertify/SendOtp/SendOtpEmptyOtpChannel.hbs diff --git a/apitest/src/main/resources/injicertify/SendOtp/SendOtpResult.hbs b/api-test/src/main/resources/injicertify/SendOtp/SendOtpResult.hbs similarity index 100% rename from apitest/src/main/resources/injicertify/SendOtp/SendOtpResult.hbs rename to api-test/src/main/resources/injicertify/SendOtp/SendOtpResult.hbs diff --git a/apitest/src/main/resources/injicertify/SunBirdC/AuthenticateUserSunBirdC/AuthenticateUserSunBirdC.hbs b/api-test/src/main/resources/injicertify/SunBirdC/AuthenticateUserSunBirdC/AuthenticateUserSunBirdC.hbs similarity index 100% rename from apitest/src/main/resources/injicertify/SunBirdC/AuthenticateUserSunBirdC/AuthenticateUserSunBirdC.hbs rename to api-test/src/main/resources/injicertify/SunBirdC/AuthenticateUserSunBirdC/AuthenticateUserSunBirdC.hbs diff --git a/apitest/src/main/resources/injicertify/SunBirdC/AuthenticateUserSunBirdC/AuthenticateUserSunBirdC.yml b/api-test/src/main/resources/injicertify/SunBirdC/AuthenticateUserSunBirdC/AuthenticateUserSunBirdC.yml similarity index 100% rename from apitest/src/main/resources/injicertify/SunBirdC/AuthenticateUserSunBirdC/AuthenticateUserSunBirdC.yml rename to api-test/src/main/resources/injicertify/SunBirdC/AuthenticateUserSunBirdC/AuthenticateUserSunBirdC.yml diff --git a/apitest/src/main/resources/injicertify/SunBirdC/AuthenticateUserSunBirdC/AuthenticateUserSunBirdCResult.hbs b/api-test/src/main/resources/injicertify/SunBirdC/AuthenticateUserSunBirdC/AuthenticateUserSunBirdCResult.hbs similarity index 100% rename from apitest/src/main/resources/injicertify/SunBirdC/AuthenticateUserSunBirdC/AuthenticateUserSunBirdCResult.hbs rename to api-test/src/main/resources/injicertify/SunBirdC/AuthenticateUserSunBirdC/AuthenticateUserSunBirdCResult.hbs diff --git a/apitest/src/main/resources/injicertify/SunBirdC/AuthorizationCodeSunBirdC/AuthorizationCodeSunBirdC.hbs b/api-test/src/main/resources/injicertify/SunBirdC/AuthorizationCodeSunBirdC/AuthorizationCodeSunBirdC.hbs similarity index 100% rename from apitest/src/main/resources/injicertify/SunBirdC/AuthorizationCodeSunBirdC/AuthorizationCodeSunBirdC.hbs rename to api-test/src/main/resources/injicertify/SunBirdC/AuthorizationCodeSunBirdC/AuthorizationCodeSunBirdC.hbs diff --git a/apitest/src/main/resources/injicertify/SunBirdC/AuthorizationCodeSunBirdC/AuthorizationCodeSunBirdC.yml b/api-test/src/main/resources/injicertify/SunBirdC/AuthorizationCodeSunBirdC/AuthorizationCodeSunBirdC.yml similarity index 100% rename from apitest/src/main/resources/injicertify/SunBirdC/AuthorizationCodeSunBirdC/AuthorizationCodeSunBirdC.yml rename to api-test/src/main/resources/injicertify/SunBirdC/AuthorizationCodeSunBirdC/AuthorizationCodeSunBirdC.yml diff --git a/apitest/src/main/resources/injicertify/SunBirdC/AuthorizationCodeSunBirdC/AuthorizationCodeSunBirdCResult.hbs b/api-test/src/main/resources/injicertify/SunBirdC/AuthorizationCodeSunBirdC/AuthorizationCodeSunBirdCResult.hbs similarity index 100% rename from apitest/src/main/resources/injicertify/SunBirdC/AuthorizationCodeSunBirdC/AuthorizationCodeSunBirdCResult.hbs rename to api-test/src/main/resources/injicertify/SunBirdC/AuthorizationCodeSunBirdC/AuthorizationCodeSunBirdCResult.hbs diff --git a/apitest/src/main/resources/injicertify/SunBirdC/CreateOIDCClientV2SunBirdC/CreateOIDCClientV2SunBirdC.hbs b/api-test/src/main/resources/injicertify/SunBirdC/CreateOIDCClientV2SunBirdC/CreateOIDCClientV2SunBirdC.hbs similarity index 100% rename from apitest/src/main/resources/injicertify/SunBirdC/CreateOIDCClientV2SunBirdC/CreateOIDCClientV2SunBirdC.hbs rename to api-test/src/main/resources/injicertify/SunBirdC/CreateOIDCClientV2SunBirdC/CreateOIDCClientV2SunBirdC.hbs diff --git a/apitest/src/main/resources/injicertify/SunBirdC/CreateOIDCClientV2SunBirdC/CreateOIDCClientV2SunBirdC.yml b/api-test/src/main/resources/injicertify/SunBirdC/CreateOIDCClientV2SunBirdC/CreateOIDCClientV2SunBirdC.yml similarity index 100% rename from apitest/src/main/resources/injicertify/SunBirdC/CreateOIDCClientV2SunBirdC/CreateOIDCClientV2SunBirdC.yml rename to api-test/src/main/resources/injicertify/SunBirdC/CreateOIDCClientV2SunBirdC/CreateOIDCClientV2SunBirdC.yml diff --git a/apitest/src/main/resources/injicertify/SunBirdC/CreateOIDCClientV2SunBirdC/CreateOIDCClientV2SunBirdCResult.hbs b/api-test/src/main/resources/injicertify/SunBirdC/CreateOIDCClientV2SunBirdC/CreateOIDCClientV2SunBirdCResult.hbs similarity index 100% rename from apitest/src/main/resources/injicertify/SunBirdC/CreateOIDCClientV2SunBirdC/CreateOIDCClientV2SunBirdCResult.hbs rename to api-test/src/main/resources/injicertify/SunBirdC/CreateOIDCClientV2SunBirdC/CreateOIDCClientV2SunBirdCResult.hbs diff --git a/apitest/src/main/resources/injicertify/SunBirdC/GenerateTokenSunBirdC/GenerateTokenSunBirdC.hbs b/api-test/src/main/resources/injicertify/SunBirdC/GenerateTokenSunBirdC/GenerateTokenSunBirdC.hbs similarity index 100% rename from apitest/src/main/resources/injicertify/SunBirdC/GenerateTokenSunBirdC/GenerateTokenSunBirdC.hbs rename to api-test/src/main/resources/injicertify/SunBirdC/GenerateTokenSunBirdC/GenerateTokenSunBirdC.hbs diff --git a/apitest/src/main/resources/injicertify/SunBirdC/GenerateTokenSunBirdC/GenerateTokenSunBirdC.yml b/api-test/src/main/resources/injicertify/SunBirdC/GenerateTokenSunBirdC/GenerateTokenSunBirdC.yml similarity index 100% rename from apitest/src/main/resources/injicertify/SunBirdC/GenerateTokenSunBirdC/GenerateTokenSunBirdC.yml rename to api-test/src/main/resources/injicertify/SunBirdC/GenerateTokenSunBirdC/GenerateTokenSunBirdC.yml diff --git a/apitest/src/main/resources/injicertify/SunBirdC/GenerateTokenSunBirdC/GenerateTokenSunBirdCResult.hbs b/api-test/src/main/resources/injicertify/SunBirdC/GenerateTokenSunBirdC/GenerateTokenSunBirdCResult.hbs similarity index 100% rename from apitest/src/main/resources/injicertify/SunBirdC/GenerateTokenSunBirdC/GenerateTokenSunBirdCResult.hbs rename to api-test/src/main/resources/injicertify/SunBirdC/GenerateTokenSunBirdC/GenerateTokenSunBirdCResult.hbs diff --git a/apitest/src/main/resources/injicertify/SunBirdC/GetCredentialSunBirdC/GetCredentialSunBirdC.hbs b/api-test/src/main/resources/injicertify/SunBirdC/GetCredentialSunBirdC/GetCredentialSunBirdC.hbs similarity index 100% rename from apitest/src/main/resources/injicertify/SunBirdC/GetCredentialSunBirdC/GetCredentialSunBirdC.hbs rename to api-test/src/main/resources/injicertify/SunBirdC/GetCredentialSunBirdC/GetCredentialSunBirdC.hbs diff --git a/apitest/src/main/resources/injicertify/SunBirdC/GetCredentialSunBirdC/GetCredentialSunBirdC.yml b/api-test/src/main/resources/injicertify/SunBirdC/GetCredentialSunBirdC/GetCredentialSunBirdC.yml similarity index 100% rename from apitest/src/main/resources/injicertify/SunBirdC/GetCredentialSunBirdC/GetCredentialSunBirdC.yml rename to api-test/src/main/resources/injicertify/SunBirdC/GetCredentialSunBirdC/GetCredentialSunBirdC.yml diff --git a/apitest/src/main/resources/injicertify/SunBirdC/GetCredentialSunBirdC/GetCredentialSunBirdCResult.hbs b/api-test/src/main/resources/injicertify/SunBirdC/GetCredentialSunBirdC/GetCredentialSunBirdCResult.hbs similarity index 100% rename from apitest/src/main/resources/injicertify/SunBirdC/GetCredentialSunBirdC/GetCredentialSunBirdCResult.hbs rename to api-test/src/main/resources/injicertify/SunBirdC/GetCredentialSunBirdC/GetCredentialSunBirdCResult.hbs diff --git a/apitest/src/main/resources/injicertify/SunBirdC/OAuthDetailsRequestSunBirdC/OAuthDetailsRequestSunBirdC.hbs b/api-test/src/main/resources/injicertify/SunBirdC/OAuthDetailsRequestSunBirdC/OAuthDetailsRequestSunBirdC.hbs similarity index 100% rename from apitest/src/main/resources/injicertify/SunBirdC/OAuthDetailsRequestSunBirdC/OAuthDetailsRequestSunBirdC.hbs rename to api-test/src/main/resources/injicertify/SunBirdC/OAuthDetailsRequestSunBirdC/OAuthDetailsRequestSunBirdC.hbs diff --git a/apitest/src/main/resources/injicertify/SunBirdC/OAuthDetailsRequestSunBirdC/OAuthDetailsRequestSunBirdC.yml b/api-test/src/main/resources/injicertify/SunBirdC/OAuthDetailsRequestSunBirdC/OAuthDetailsRequestSunBirdC.yml similarity index 100% rename from apitest/src/main/resources/injicertify/SunBirdC/OAuthDetailsRequestSunBirdC/OAuthDetailsRequestSunBirdC.yml rename to api-test/src/main/resources/injicertify/SunBirdC/OAuthDetailsRequestSunBirdC/OAuthDetailsRequestSunBirdC.yml diff --git a/apitest/src/main/resources/injicertify/SunBirdC/OAuthDetailsRequestSunBirdC/OAuthDetailsRequestSunBirdCResult.hbs b/api-test/src/main/resources/injicertify/SunBirdC/OAuthDetailsRequestSunBirdC/OAuthDetailsRequestSunBirdCResult.hbs similarity index 100% rename from apitest/src/main/resources/injicertify/SunBirdC/OAuthDetailsRequestSunBirdC/OAuthDetailsRequestSunBirdCResult.hbs rename to api-test/src/main/resources/injicertify/SunBirdC/OAuthDetailsRequestSunBirdC/OAuthDetailsRequestSunBirdCResult.hbs diff --git a/apitest/src/main/resources/injicertify/SunBirdCForVd11/AuthenticateUserSunBirdCForVd11/AuthenticateUserSunBirdCForVd11.hbs b/api-test/src/main/resources/injicertify/SunBirdCForVd11/AuthenticateUserSunBirdCForVd11/AuthenticateUserSunBirdCForVd11.hbs similarity index 100% rename from apitest/src/main/resources/injicertify/SunBirdCForVd11/AuthenticateUserSunBirdCForVd11/AuthenticateUserSunBirdCForVd11.hbs rename to api-test/src/main/resources/injicertify/SunBirdCForVd11/AuthenticateUserSunBirdCForVd11/AuthenticateUserSunBirdCForVd11.hbs diff --git a/apitest/src/main/resources/injicertify/SunBirdCForVd11/AuthenticateUserSunBirdCForVd11/AuthenticateUserSunBirdCForVd11.yml b/api-test/src/main/resources/injicertify/SunBirdCForVd11/AuthenticateUserSunBirdCForVd11/AuthenticateUserSunBirdCForVd11.yml similarity index 100% rename from apitest/src/main/resources/injicertify/SunBirdCForVd11/AuthenticateUserSunBirdCForVd11/AuthenticateUserSunBirdCForVd11.yml rename to api-test/src/main/resources/injicertify/SunBirdCForVd11/AuthenticateUserSunBirdCForVd11/AuthenticateUserSunBirdCForVd11.yml diff --git a/apitest/src/main/resources/injicertify/SunBirdCForVd11/AuthenticateUserSunBirdCForVd11/AuthenticateUserSunBirdCForVd11Result.hbs b/api-test/src/main/resources/injicertify/SunBirdCForVd11/AuthenticateUserSunBirdCForVd11/AuthenticateUserSunBirdCForVd11Result.hbs similarity index 100% rename from apitest/src/main/resources/injicertify/SunBirdCForVd11/AuthenticateUserSunBirdCForVd11/AuthenticateUserSunBirdCForVd11Result.hbs rename to api-test/src/main/resources/injicertify/SunBirdCForVd11/AuthenticateUserSunBirdCForVd11/AuthenticateUserSunBirdCForVd11Result.hbs diff --git a/apitest/src/main/resources/injicertify/SunBirdCForVd11/AuthorizationCodeSunBirdCForVd11/AuthorizationCodeSunBirdCForVd11.hbs b/api-test/src/main/resources/injicertify/SunBirdCForVd11/AuthorizationCodeSunBirdCForVd11/AuthorizationCodeSunBirdCForVd11.hbs similarity index 100% rename from apitest/src/main/resources/injicertify/SunBirdCForVd11/AuthorizationCodeSunBirdCForVd11/AuthorizationCodeSunBirdCForVd11.hbs rename to api-test/src/main/resources/injicertify/SunBirdCForVd11/AuthorizationCodeSunBirdCForVd11/AuthorizationCodeSunBirdCForVd11.hbs diff --git a/apitest/src/main/resources/injicertify/SunBirdCForVd11/AuthorizationCodeSunBirdCForVd11/AuthorizationCodeSunBirdCForVd11.yml b/api-test/src/main/resources/injicertify/SunBirdCForVd11/AuthorizationCodeSunBirdCForVd11/AuthorizationCodeSunBirdCForVd11.yml similarity index 100% rename from apitest/src/main/resources/injicertify/SunBirdCForVd11/AuthorizationCodeSunBirdCForVd11/AuthorizationCodeSunBirdCForVd11.yml rename to api-test/src/main/resources/injicertify/SunBirdCForVd11/AuthorizationCodeSunBirdCForVd11/AuthorizationCodeSunBirdCForVd11.yml diff --git a/apitest/src/main/resources/injicertify/SunBirdCForVd11/AuthorizationCodeSunBirdCForVd11/AuthorizationCodeSunBirdCForVd11Result.hbs b/api-test/src/main/resources/injicertify/SunBirdCForVd11/AuthorizationCodeSunBirdCForVd11/AuthorizationCodeSunBirdCForVd11Result.hbs similarity index 100% rename from apitest/src/main/resources/injicertify/SunBirdCForVd11/AuthorizationCodeSunBirdCForVd11/AuthorizationCodeSunBirdCForVd11Result.hbs rename to api-test/src/main/resources/injicertify/SunBirdCForVd11/AuthorizationCodeSunBirdCForVd11/AuthorizationCodeSunBirdCForVd11Result.hbs diff --git a/apitest/src/main/resources/injicertify/SunBirdCForVd11/GenerateTokenSunBirdCForVd11/GenerateTokenSunBirdCForVd11.hbs b/api-test/src/main/resources/injicertify/SunBirdCForVd11/GenerateTokenSunBirdCForVd11/GenerateTokenSunBirdCForVd11.hbs similarity index 100% rename from apitest/src/main/resources/injicertify/SunBirdCForVd11/GenerateTokenSunBirdCForVd11/GenerateTokenSunBirdCForVd11.hbs rename to api-test/src/main/resources/injicertify/SunBirdCForVd11/GenerateTokenSunBirdCForVd11/GenerateTokenSunBirdCForVd11.hbs diff --git a/apitest/src/main/resources/injicertify/SunBirdCForVd11/GenerateTokenSunBirdCForVd11/GenerateTokenSunBirdCForVd11.yml b/api-test/src/main/resources/injicertify/SunBirdCForVd11/GenerateTokenSunBirdCForVd11/GenerateTokenSunBirdCForVd11.yml similarity index 100% rename from apitest/src/main/resources/injicertify/SunBirdCForVd11/GenerateTokenSunBirdCForVd11/GenerateTokenSunBirdCForVd11.yml rename to api-test/src/main/resources/injicertify/SunBirdCForVd11/GenerateTokenSunBirdCForVd11/GenerateTokenSunBirdCForVd11.yml diff --git a/apitest/src/main/resources/injicertify/SunBirdCForVd11/GenerateTokenSunBirdCForVd11/GenerateTokenSunBirdCForVd11Result.hbs b/api-test/src/main/resources/injicertify/SunBirdCForVd11/GenerateTokenSunBirdCForVd11/GenerateTokenSunBirdCForVd11Result.hbs similarity index 100% rename from apitest/src/main/resources/injicertify/SunBirdCForVd11/GenerateTokenSunBirdCForVd11/GenerateTokenSunBirdCForVd11Result.hbs rename to api-test/src/main/resources/injicertify/SunBirdCForVd11/GenerateTokenSunBirdCForVd11/GenerateTokenSunBirdCForVd11Result.hbs diff --git a/apitest/src/main/resources/injicertify/SunBirdCForVd11/GetCredentialSunBirdCForVd11/GetCredentialSunBirdCForVd11.hbs b/api-test/src/main/resources/injicertify/SunBirdCForVd11/GetCredentialSunBirdCForVd11/GetCredentialSunBirdCForVd11.hbs similarity index 100% rename from apitest/src/main/resources/injicertify/SunBirdCForVd11/GetCredentialSunBirdCForVd11/GetCredentialSunBirdCForVd11.hbs rename to api-test/src/main/resources/injicertify/SunBirdCForVd11/GetCredentialSunBirdCForVd11/GetCredentialSunBirdCForVd11.hbs diff --git a/apitest/src/main/resources/injicertify/SunBirdCForVd11/GetCredentialSunBirdCForVd11/GetCredentialSunBirdCForVd11.yml b/api-test/src/main/resources/injicertify/SunBirdCForVd11/GetCredentialSunBirdCForVd11/GetCredentialSunBirdCForVd11.yml similarity index 100% rename from apitest/src/main/resources/injicertify/SunBirdCForVd11/GetCredentialSunBirdCForVd11/GetCredentialSunBirdCForVd11.yml rename to api-test/src/main/resources/injicertify/SunBirdCForVd11/GetCredentialSunBirdCForVd11/GetCredentialSunBirdCForVd11.yml diff --git a/apitest/src/main/resources/injicertify/SunBirdCForVd11/GetCredentialSunBirdCForVd11/GetCredentialSunBirdCForVd11Result.hbs b/api-test/src/main/resources/injicertify/SunBirdCForVd11/GetCredentialSunBirdCForVd11/GetCredentialSunBirdCForVd11Result.hbs similarity index 100% rename from apitest/src/main/resources/injicertify/SunBirdCForVd11/GetCredentialSunBirdCForVd11/GetCredentialSunBirdCForVd11Result.hbs rename to api-test/src/main/resources/injicertify/SunBirdCForVd11/GetCredentialSunBirdCForVd11/GetCredentialSunBirdCForVd11Result.hbs diff --git a/apitest/src/main/resources/injicertify/SunBirdCForVd11/OAuthDetailsRequestSunBirdCForVd11/OAuthDetailsRequestSunBirdCForVd11.hbs b/api-test/src/main/resources/injicertify/SunBirdCForVd11/OAuthDetailsRequestSunBirdCForVd11/OAuthDetailsRequestSunBirdCForVd11.hbs similarity index 100% rename from apitest/src/main/resources/injicertify/SunBirdCForVd11/OAuthDetailsRequestSunBirdCForVd11/OAuthDetailsRequestSunBirdCForVd11.hbs rename to api-test/src/main/resources/injicertify/SunBirdCForVd11/OAuthDetailsRequestSunBirdCForVd11/OAuthDetailsRequestSunBirdCForVd11.hbs diff --git a/apitest/src/main/resources/injicertify/SunBirdCForVd11/OAuthDetailsRequestSunBirdCForVd11/OAuthDetailsRequestSunBirdCForVd11.yml b/api-test/src/main/resources/injicertify/SunBirdCForVd11/OAuthDetailsRequestSunBirdCForVd11/OAuthDetailsRequestSunBirdCForVd11.yml similarity index 100% rename from apitest/src/main/resources/injicertify/SunBirdCForVd11/OAuthDetailsRequestSunBirdCForVd11/OAuthDetailsRequestSunBirdCForVd11.yml rename to api-test/src/main/resources/injicertify/SunBirdCForVd11/OAuthDetailsRequestSunBirdCForVd11/OAuthDetailsRequestSunBirdCForVd11.yml diff --git a/apitest/src/main/resources/injicertify/SunBirdCForVd11/OAuthDetailsRequestSunBirdCForVd11/OAuthDetailsRequestSunBirdCForVd11Result.hbs b/api-test/src/main/resources/injicertify/SunBirdCForVd11/OAuthDetailsRequestSunBirdCForVd11/OAuthDetailsRequestSunBirdCForVd11Result.hbs similarity index 100% rename from apitest/src/main/resources/injicertify/SunBirdCForVd11/OAuthDetailsRequestSunBirdCForVd11/OAuthDetailsRequestSunBirdCForVd11Result.hbs rename to api-test/src/main/resources/injicertify/SunBirdCForVd11/OAuthDetailsRequestSunBirdCForVd11/OAuthDetailsRequestSunBirdCForVd11Result.hbs diff --git a/apitest/src/main/resources/injicertify/SunBirdCForVd12/AuthenticateUserSunBirdCForVd12/AuthenticateUserSunBirdCForVd12.hbs b/api-test/src/main/resources/injicertify/SunBirdCForVd12/AuthenticateUserSunBirdCForVd12/AuthenticateUserSunBirdCForVd12.hbs similarity index 100% rename from apitest/src/main/resources/injicertify/SunBirdCForVd12/AuthenticateUserSunBirdCForVd12/AuthenticateUserSunBirdCForVd12.hbs rename to api-test/src/main/resources/injicertify/SunBirdCForVd12/AuthenticateUserSunBirdCForVd12/AuthenticateUserSunBirdCForVd12.hbs diff --git a/apitest/src/main/resources/injicertify/SunBirdCForVd12/AuthenticateUserSunBirdCForVd12/AuthenticateUserSunBirdCForVd12.yml b/api-test/src/main/resources/injicertify/SunBirdCForVd12/AuthenticateUserSunBirdCForVd12/AuthenticateUserSunBirdCForVd12.yml similarity index 100% rename from apitest/src/main/resources/injicertify/SunBirdCForVd12/AuthenticateUserSunBirdCForVd12/AuthenticateUserSunBirdCForVd12.yml rename to api-test/src/main/resources/injicertify/SunBirdCForVd12/AuthenticateUserSunBirdCForVd12/AuthenticateUserSunBirdCForVd12.yml diff --git a/apitest/src/main/resources/injicertify/SunBirdCForVd12/AuthenticateUserSunBirdCForVd12/AuthenticateUserSunBirdCForVd12Result.hbs b/api-test/src/main/resources/injicertify/SunBirdCForVd12/AuthenticateUserSunBirdCForVd12/AuthenticateUserSunBirdCForVd12Result.hbs similarity index 100% rename from apitest/src/main/resources/injicertify/SunBirdCForVd12/AuthenticateUserSunBirdCForVd12/AuthenticateUserSunBirdCForVd12Result.hbs rename to api-test/src/main/resources/injicertify/SunBirdCForVd12/AuthenticateUserSunBirdCForVd12/AuthenticateUserSunBirdCForVd12Result.hbs diff --git a/apitest/src/main/resources/injicertify/SunBirdCForVd12/AuthorizationCodeSunBirdCForVd12/AuthorizationCodeSunBirdCForVd12.hbs b/api-test/src/main/resources/injicertify/SunBirdCForVd12/AuthorizationCodeSunBirdCForVd12/AuthorizationCodeSunBirdCForVd12.hbs similarity index 100% rename from apitest/src/main/resources/injicertify/SunBirdCForVd12/AuthorizationCodeSunBirdCForVd12/AuthorizationCodeSunBirdCForVd12.hbs rename to api-test/src/main/resources/injicertify/SunBirdCForVd12/AuthorizationCodeSunBirdCForVd12/AuthorizationCodeSunBirdCForVd12.hbs diff --git a/apitest/src/main/resources/injicertify/SunBirdCForVd12/AuthorizationCodeSunBirdCForVd12/AuthorizationCodeSunBirdCForVd12.yml b/api-test/src/main/resources/injicertify/SunBirdCForVd12/AuthorizationCodeSunBirdCForVd12/AuthorizationCodeSunBirdCForVd12.yml similarity index 100% rename from apitest/src/main/resources/injicertify/SunBirdCForVd12/AuthorizationCodeSunBirdCForVd12/AuthorizationCodeSunBirdCForVd12.yml rename to api-test/src/main/resources/injicertify/SunBirdCForVd12/AuthorizationCodeSunBirdCForVd12/AuthorizationCodeSunBirdCForVd12.yml diff --git a/apitest/src/main/resources/injicertify/SunBirdCForVd12/AuthorizationCodeSunBirdCForVd12/AuthorizationCodeSunBirdCForVd12Result.hbs b/api-test/src/main/resources/injicertify/SunBirdCForVd12/AuthorizationCodeSunBirdCForVd12/AuthorizationCodeSunBirdCForVd12Result.hbs similarity index 100% rename from apitest/src/main/resources/injicertify/SunBirdCForVd12/AuthorizationCodeSunBirdCForVd12/AuthorizationCodeSunBirdCForVd12Result.hbs rename to api-test/src/main/resources/injicertify/SunBirdCForVd12/AuthorizationCodeSunBirdCForVd12/AuthorizationCodeSunBirdCForVd12Result.hbs diff --git a/apitest/src/main/resources/injicertify/SunBirdCForVd12/GenerateTokenSunBirdCForVd12/GenerateTokenSunBirdCForVd12.hbs b/api-test/src/main/resources/injicertify/SunBirdCForVd12/GenerateTokenSunBirdCForVd12/GenerateTokenSunBirdCForVd12.hbs similarity index 100% rename from apitest/src/main/resources/injicertify/SunBirdCForVd12/GenerateTokenSunBirdCForVd12/GenerateTokenSunBirdCForVd12.hbs rename to api-test/src/main/resources/injicertify/SunBirdCForVd12/GenerateTokenSunBirdCForVd12/GenerateTokenSunBirdCForVd12.hbs diff --git a/apitest/src/main/resources/injicertify/SunBirdCForVd12/GenerateTokenSunBirdCForVd12/GenerateTokenSunBirdCForVd12.yml b/api-test/src/main/resources/injicertify/SunBirdCForVd12/GenerateTokenSunBirdCForVd12/GenerateTokenSunBirdCForVd12.yml similarity index 100% rename from apitest/src/main/resources/injicertify/SunBirdCForVd12/GenerateTokenSunBirdCForVd12/GenerateTokenSunBirdCForVd12.yml rename to api-test/src/main/resources/injicertify/SunBirdCForVd12/GenerateTokenSunBirdCForVd12/GenerateTokenSunBirdCForVd12.yml diff --git a/apitest/src/main/resources/injicertify/SunBirdCForVd12/GenerateTokenSunBirdCForVd12/GenerateTokenSunBirdCForVd12Result.hbs b/api-test/src/main/resources/injicertify/SunBirdCForVd12/GenerateTokenSunBirdCForVd12/GenerateTokenSunBirdCForVd12Result.hbs similarity index 100% rename from apitest/src/main/resources/injicertify/SunBirdCForVd12/GenerateTokenSunBirdCForVd12/GenerateTokenSunBirdCForVd12Result.hbs rename to api-test/src/main/resources/injicertify/SunBirdCForVd12/GenerateTokenSunBirdCForVd12/GenerateTokenSunBirdCForVd12Result.hbs diff --git a/apitest/src/main/resources/injicertify/SunBirdCForVd12/GetCredentialSunBirdCForVd12/GetCredentialSunBirdCForVd12.hbs b/api-test/src/main/resources/injicertify/SunBirdCForVd12/GetCredentialSunBirdCForVd12/GetCredentialSunBirdCForVd12.hbs similarity index 100% rename from apitest/src/main/resources/injicertify/SunBirdCForVd12/GetCredentialSunBirdCForVd12/GetCredentialSunBirdCForVd12.hbs rename to api-test/src/main/resources/injicertify/SunBirdCForVd12/GetCredentialSunBirdCForVd12/GetCredentialSunBirdCForVd12.hbs diff --git a/apitest/src/main/resources/injicertify/SunBirdCForVd12/GetCredentialSunBirdCForVd12/GetCredentialSunBirdCForVd12.yml b/api-test/src/main/resources/injicertify/SunBirdCForVd12/GetCredentialSunBirdCForVd12/GetCredentialSunBirdCForVd12.yml similarity index 100% rename from apitest/src/main/resources/injicertify/SunBirdCForVd12/GetCredentialSunBirdCForVd12/GetCredentialSunBirdCForVd12.yml rename to api-test/src/main/resources/injicertify/SunBirdCForVd12/GetCredentialSunBirdCForVd12/GetCredentialSunBirdCForVd12.yml diff --git a/apitest/src/main/resources/injicertify/SunBirdCForVd12/GetCredentialSunBirdCForVd12/GetCredentialSunBirdCForVd12Result.hbs b/api-test/src/main/resources/injicertify/SunBirdCForVd12/GetCredentialSunBirdCForVd12/GetCredentialSunBirdCForVd12Result.hbs similarity index 100% rename from apitest/src/main/resources/injicertify/SunBirdCForVd12/GetCredentialSunBirdCForVd12/GetCredentialSunBirdCForVd12Result.hbs rename to api-test/src/main/resources/injicertify/SunBirdCForVd12/GetCredentialSunBirdCForVd12/GetCredentialSunBirdCForVd12Result.hbs diff --git a/apitest/src/main/resources/injicertify/SunBirdCForVd12/OAuthDetailsRequestSunBirdCForVd12/OAuthDetailsRequestSunBirdCForVd12.hbs b/api-test/src/main/resources/injicertify/SunBirdCForVd12/OAuthDetailsRequestSunBirdCForVd12/OAuthDetailsRequestSunBirdCForVd12.hbs similarity index 100% rename from apitest/src/main/resources/injicertify/SunBirdCForVd12/OAuthDetailsRequestSunBirdCForVd12/OAuthDetailsRequestSunBirdCForVd12.hbs rename to api-test/src/main/resources/injicertify/SunBirdCForVd12/OAuthDetailsRequestSunBirdCForVd12/OAuthDetailsRequestSunBirdCForVd12.hbs diff --git a/apitest/src/main/resources/injicertify/SunBirdCForVd12/OAuthDetailsRequestSunBirdCForVd12/OAuthDetailsRequestSunBirdCForVd12.yml b/api-test/src/main/resources/injicertify/SunBirdCForVd12/OAuthDetailsRequestSunBirdCForVd12/OAuthDetailsRequestSunBirdCForVd12.yml similarity index 100% rename from apitest/src/main/resources/injicertify/SunBirdCForVd12/OAuthDetailsRequestSunBirdCForVd12/OAuthDetailsRequestSunBirdCForVd12.yml rename to api-test/src/main/resources/injicertify/SunBirdCForVd12/OAuthDetailsRequestSunBirdCForVd12/OAuthDetailsRequestSunBirdCForVd12.yml diff --git a/apitest/src/main/resources/injicertify/SunBirdCForVd12/OAuthDetailsRequestSunBirdCForVd12/OAuthDetailsRequestSunBirdCForVd12Result.hbs b/api-test/src/main/resources/injicertify/SunBirdCForVd12/OAuthDetailsRequestSunBirdCForVd12/OAuthDetailsRequestSunBirdCForVd12Result.hbs similarity index 100% rename from apitest/src/main/resources/injicertify/SunBirdCForVd12/OAuthDetailsRequestSunBirdCForVd12/OAuthDetailsRequestSunBirdCForVd12Result.hbs rename to api-test/src/main/resources/injicertify/SunBirdCForVd12/OAuthDetailsRequestSunBirdCForVd12/OAuthDetailsRequestSunBirdCForVd12Result.hbs diff --git a/apitest/src/main/resources/injicertify/SunBirdCNegative/AuthenticateUserSunBirdCNeg/AuthenticateUserSunBirdCNeg.hbs b/api-test/src/main/resources/injicertify/SunBirdCNegative/AuthenticateUserSunBirdCNeg/AuthenticateUserSunBirdCNeg.hbs similarity index 100% rename from apitest/src/main/resources/injicertify/SunBirdCNegative/AuthenticateUserSunBirdCNeg/AuthenticateUserSunBirdCNeg.hbs rename to api-test/src/main/resources/injicertify/SunBirdCNegative/AuthenticateUserSunBirdCNeg/AuthenticateUserSunBirdCNeg.hbs diff --git a/apitest/src/main/resources/injicertify/SunBirdCNegative/AuthenticateUserSunBirdCNeg/AuthenticateUserSunBirdCNeg.yml b/api-test/src/main/resources/injicertify/SunBirdCNegative/AuthenticateUserSunBirdCNeg/AuthenticateUserSunBirdCNeg.yml similarity index 92% rename from apitest/src/main/resources/injicertify/SunBirdCNegative/AuthenticateUserSunBirdCNeg/AuthenticateUserSunBirdCNeg.yml rename to api-test/src/main/resources/injicertify/SunBirdCNegative/AuthenticateUserSunBirdCNeg/AuthenticateUserSunBirdCNeg.yml index d1c2d476..1d285cd4 100644 --- a/apitest/src/main/resources/injicertify/SunBirdCNegative/AuthenticateUserSunBirdCNeg/AuthenticateUserSunBirdCNeg.yml +++ b/api-test/src/main/resources/injicertify/SunBirdCNegative/AuthenticateUserSunBirdCNeg/AuthenticateUserSunBirdCNeg.yml @@ -10,9 +10,9 @@ AuthenticateUserSunBirdCNeg: inputTemplate: injicertify/SunBirdCNegative/AuthenticateUserSunBirdCNeg/AuthenticateUserSunBirdCNeg outputTemplate: injicertify/SunBirdCNegative/AuthenticateUserSunBirdCNeg/AuthenticateUserSunBirdCResultNeg input: '{ - "encodedHash": "$ID:ESignet_OAuthDetailsRequest_SunBirdC_all_Valid_Smoke_sid_encodedResp$", + "encodedHash": "$ID:ESignet_OAuthDetailsRequest_SunBirdC_all_Valid_Smoke_sid_Neg_encodedResp$", "requestTime": "$TIMESTAMP$", - "transactionId": "$ID:ESignet_OAuthDetailsRequest_SunBirdC_all_Valid_Smoke_sid_transactionId$", + "transactionId": "$ID:ESignet_OAuthDetailsRequest_SunBirdC_all_Valid_Smoke_sid_Neg_transactionId$", "individualId": "$POLICYNUMBERFORSUNBIRDRC$", "authFactorType" : "KBA", "challenge" : "$CHALLENGEVALUEFORSUNBIRDC$", diff --git a/apitest/src/main/resources/injicertify/SunBirdCNegative/AuthenticateUserSunBirdCNeg/AuthenticateUserSunBirdCResultNeg.hbs b/api-test/src/main/resources/injicertify/SunBirdCNegative/AuthenticateUserSunBirdCNeg/AuthenticateUserSunBirdCResultNeg.hbs similarity index 100% rename from apitest/src/main/resources/injicertify/SunBirdCNegative/AuthenticateUserSunBirdCNeg/AuthenticateUserSunBirdCResultNeg.hbs rename to api-test/src/main/resources/injicertify/SunBirdCNegative/AuthenticateUserSunBirdCNeg/AuthenticateUserSunBirdCResultNeg.hbs diff --git a/apitest/src/main/resources/injicertify/SunBirdCNegative/AuthorizationCodeSunBirdCNeg/AuthorizationCodeSunBirdCNeg.hbs b/api-test/src/main/resources/injicertify/SunBirdCNegative/AuthorizationCodeSunBirdCNeg/AuthorizationCodeSunBirdCNeg.hbs similarity index 100% rename from apitest/src/main/resources/injicertify/SunBirdCNegative/AuthorizationCodeSunBirdCNeg/AuthorizationCodeSunBirdCNeg.hbs rename to api-test/src/main/resources/injicertify/SunBirdCNegative/AuthorizationCodeSunBirdCNeg/AuthorizationCodeSunBirdCNeg.hbs diff --git a/apitest/src/main/resources/injicertify/SunBirdCNegative/AuthorizationCodeSunBirdCNeg/AuthorizationCodeSunBirdCNeg.yml b/api-test/src/main/resources/injicertify/SunBirdCNegative/AuthorizationCodeSunBirdCNeg/AuthorizationCodeSunBirdCNeg.yml similarity index 91% rename from apitest/src/main/resources/injicertify/SunBirdCNegative/AuthorizationCodeSunBirdCNeg/AuthorizationCodeSunBirdCNeg.yml rename to api-test/src/main/resources/injicertify/SunBirdCNegative/AuthorizationCodeSunBirdCNeg/AuthorizationCodeSunBirdCNeg.yml index 094dade4..3233ba62 100644 --- a/apitest/src/main/resources/injicertify/SunBirdCNegative/AuthorizationCodeSunBirdCNeg/AuthorizationCodeSunBirdCNeg.yml +++ b/api-test/src/main/resources/injicertify/SunBirdCNegative/AuthorizationCodeSunBirdCNeg/AuthorizationCodeSunBirdCNeg.yml @@ -10,9 +10,9 @@ AuthorizationCodeSunBirdCNeg: inputTemplate: injicertify/SunBirdCNegative/AuthorizationCodeSunBirdCNeg/AuthorizationCodeSunBirdCNeg outputTemplate: injicertify/SunBirdCNegative/AuthorizationCodeSunBirdCNeg/AuthorizationCodeSunBirdCResultNeg input: '{ - "encodedHash": "$ID:ESignet_OAuthDetailsRequest_SunBirdC_all_Valid_Smoke_sid_encodedResp$", + "encodedHash": "$ID:ESignet_OAuthDetailsRequest_SunBirdC_all_Valid_Smoke_sid_Neg_encodedResp$", "requestTime": "$TIMESTAMP$", - "transactionId": "$ID:ESignet_OAuthDetailsRequest_SunBirdC_all_Valid_Smoke_sid_transactionId$", + "transactionId": "$ID:ESignet_OAuthDetailsRequest_SunBirdC_all_Valid_Smoke_sid_Neg_transactionId$", "permittedAuthorizeScopes": [{scope: "sunbird_rc_insurance_vc_ldp"}] }' output: '{ diff --git a/apitest/src/main/resources/injicertify/SunBirdCNegative/AuthorizationCodeSunBirdCNeg/AuthorizationCodeSunBirdCResultNeg.hbs b/api-test/src/main/resources/injicertify/SunBirdCNegative/AuthorizationCodeSunBirdCNeg/AuthorizationCodeSunBirdCResultNeg.hbs similarity index 100% rename from apitest/src/main/resources/injicertify/SunBirdCNegative/AuthorizationCodeSunBirdCNeg/AuthorizationCodeSunBirdCResultNeg.hbs rename to api-test/src/main/resources/injicertify/SunBirdCNegative/AuthorizationCodeSunBirdCNeg/AuthorizationCodeSunBirdCResultNeg.hbs diff --git a/apitest/src/main/resources/injicertify/SunBirdCNegative/GenerateTokenSunBirdCNeg/GenerateTokenSunBirdCNeg.hbs b/api-test/src/main/resources/injicertify/SunBirdCNegative/GenerateTokenSunBirdCNeg/GenerateTokenSunBirdCNeg.hbs similarity index 100% rename from apitest/src/main/resources/injicertify/SunBirdCNegative/GenerateTokenSunBirdCNeg/GenerateTokenSunBirdCNeg.hbs rename to api-test/src/main/resources/injicertify/SunBirdCNegative/GenerateTokenSunBirdCNeg/GenerateTokenSunBirdCNeg.hbs diff --git a/apitest/src/main/resources/injicertify/SunBirdCNegative/GenerateTokenSunBirdCNeg/GenerateTokenSunBirdCNeg.yml b/api-test/src/main/resources/injicertify/SunBirdCNegative/GenerateTokenSunBirdCNeg/GenerateTokenSunBirdCNeg.yml similarity index 98% rename from apitest/src/main/resources/injicertify/SunBirdCNegative/GenerateTokenSunBirdCNeg/GenerateTokenSunBirdCNeg.yml rename to api-test/src/main/resources/injicertify/SunBirdCNegative/GenerateTokenSunBirdCNeg/GenerateTokenSunBirdCNeg.yml index bdee6961..31b35cea 100644 --- a/apitest/src/main/resources/injicertify/SunBirdCNegative/GenerateTokenSunBirdCNeg/GenerateTokenSunBirdCNeg.yml +++ b/api-test/src/main/resources/injicertify/SunBirdCNegative/GenerateTokenSunBirdCNeg/GenerateTokenSunBirdCNeg.yml @@ -10,7 +10,7 @@ GenerateTokenSunBirdCNeg: outputTemplate: injicertify/SunBirdCNegative/GenerateTokenSunBirdCNeg/GenerateTokenSunBirdCResultNeg input: '{ "grant_type": "authorization_code", - "code": "$ID:ESignet_AuthorizationCode_SunBirdC_All_Valid_Smoke_sid_code$", + "code": "$ID:ESignet_AuthorizationCode_SunBirdC_All_Valid_Smoke_sid_Neg_code$", "client_id": "$ID:ESignet_CreateOIDCClientV2SunBirdC_all_Valid_Smoke_sid_clientId$", "client_assertion_type": "urn:ietf:params:oauth:client-assertion-type:jwt-bearer", "client_assertion": "$CLIENT_ASSERTION_USER4_JWK$", diff --git a/apitest/src/main/resources/injicertify/SunBirdCNegative/GenerateTokenSunBirdCNeg/GenerateTokenSunBirdCResultNeg.hbs b/api-test/src/main/resources/injicertify/SunBirdCNegative/GenerateTokenSunBirdCNeg/GenerateTokenSunBirdCResultNeg.hbs similarity index 100% rename from apitest/src/main/resources/injicertify/SunBirdCNegative/GenerateTokenSunBirdCNeg/GenerateTokenSunBirdCResultNeg.hbs rename to api-test/src/main/resources/injicertify/SunBirdCNegative/GenerateTokenSunBirdCNeg/GenerateTokenSunBirdCResultNeg.hbs diff --git a/apitest/src/main/resources/injicertify/SunBirdCNegative/GetCredentialSunBirdCNeg/GetCredentialSunBirdCNeg.hbs b/api-test/src/main/resources/injicertify/SunBirdCNegative/GetCredentialSunBirdCNeg/GetCredentialSunBirdCNeg.hbs similarity index 100% rename from apitest/src/main/resources/injicertify/SunBirdCNegative/GetCredentialSunBirdCNeg/GetCredentialSunBirdCNeg.hbs rename to api-test/src/main/resources/injicertify/SunBirdCNegative/GetCredentialSunBirdCNeg/GetCredentialSunBirdCNeg.hbs diff --git a/apitest/src/main/resources/injicertify/SunBirdCNegative/GetCredentialSunBirdCNeg/GetCredentialSunBirdCNeg.yml b/api-test/src/main/resources/injicertify/SunBirdCNegative/GetCredentialSunBirdCNeg/GetCredentialSunBirdCNeg.yml similarity index 96% rename from apitest/src/main/resources/injicertify/SunBirdCNegative/GetCredentialSunBirdCNeg/GetCredentialSunBirdCNeg.yml rename to api-test/src/main/resources/injicertify/SunBirdCNegative/GetCredentialSunBirdCNeg/GetCredentialSunBirdCNeg.yml index f302b5d8..ebf89f9c 100644 --- a/apitest/src/main/resources/injicertify/SunBirdCNegative/GetCredentialSunBirdCNeg/GetCredentialSunBirdCNeg.yml +++ b/api-test/src/main/resources/injicertify/SunBirdCNegative/GetCredentialSunBirdCNeg/GetCredentialSunBirdCNeg.yml @@ -11,7 +11,7 @@ GetCredentialSunBirdCNeg: outputTemplate: injicertify/error2 input: '{ "client_id": "$ID:ESignet_CreateOIDCClientV2SunBirdC_all_Valid_Smoke_sid_clientId$", - "idpAccessToken": "$ID:ESignet_GenerateTokenSunBirdC_Valid_Smoke_sid_access_token$", + "idpAccessToken": "$ID:ESignet_GenerateTokenSunBirdC_Valid_Smoke_sid_Neg_access_token$", "format": "abcdef", "type": [{types: "VerifiableCredential"}, {types: "InsuranceCredential"}], "@context": [{context: "$VCICONTEXTURL$"}], @@ -33,7 +33,7 @@ GetCredentialSunBirdCNeg: outputTemplate: injicertify/error2 input: '{ "client_id": "$ID:ESignet_CreateOIDCClientV2SunBirdC_all_Valid_Smoke_sid_clientId$", - "idpAccessToken": "$ID:ESignet_GenerateTokenSunBirdC_Valid_Smoke_sid_access_token$", + "idpAccessToken": "$ID:ESignet_GenerateTokenSunBirdC_Valid_Smoke_sid_Neg_access_token$", "type": [{types: "VerifiableCredential"}, {types: "InsuranceCredential"}], "@context": [{context: "$VCICONTEXTURL$"}], "proof_type": "jwt", @@ -54,7 +54,7 @@ GetCredentialSunBirdCNeg: outputTemplate: injicertify/error2 input: '{ "client_id": "$ID:ESignet_CreateOIDCClientV2SunBirdC_all_Valid_Smoke_sid_clientId$", - "idpAccessToken": "$ID:ESignet_GenerateTokenSunBirdC_Valid_Smoke_sid_access_token$", + "idpAccessToken": "$ID:ESignet_GenerateTokenSunBirdC_Valid_Smoke_sid_Neg_access_token$", "format": "jwt_vc_json", "type": [{types: "VerifiableCredential"}, {types: "InsuranceCredential"}], "@context": [{context: "$VCICONTEXTURL$"}], @@ -76,7 +76,7 @@ GetCredentialSunBirdCNeg: outputTemplate: injicertify/error2 input: '{ "client_id": "$ID:ESignet_CreateOIDCClientV2SunBirdC_all_Valid_Smoke_sid_clientId$", - "idpAccessToken": "$ID:ESignet_GenerateTokenSunBirdC_Valid_Smoke_sid_access_token$", + "idpAccessToken": "$ID:ESignet_GenerateTokenSunBirdC_Valid_Smoke_sid_Neg_access_token$", "format": "ldp_vc, jwt_vc_json-ld", "type": [{types: "VerifiableCredential"}, {types: "InsuranceCredential"}], "@context": [{context: "$VCICONTEXTURL$"}], @@ -98,7 +98,7 @@ GetCredentialSunBirdCNeg: outputTemplate: injicertify/error2 input: '{ "client_id": "$ID:ESignet_CreateOIDCClientV2SunBirdC_all_Valid_Smoke_sid_clientId$", - "idpAccessToken": "$ID:ESignet_GenerateTokenSunBirdC_Valid_Smoke_sid_access_token$", + "idpAccessToken": "$ID:ESignet_GenerateTokenSunBirdC_Valid_Smoke_sid_Neg_access_token$", "format": "ldp_vc", "type": [{types: "VerifiableCredential"}], "@context": [{context: "$VCICONTEXTURL$"}], @@ -120,7 +120,7 @@ GetCredentialSunBirdCNeg: outputTemplate: injicertify/error2 input: '{ "client_id": "$ID:ESignet_CreateOIDCClientV2SunBirdC_all_Valid_Smoke_sid_clientId$", - "idpAccessToken": "$ID:ESignet_GenerateTokenSunBirdC_Valid_Smoke_sid_access_token$", + "idpAccessToken": "$ID:ESignet_GenerateTokenSunBirdC_Valid_Smoke_sid_Neg_access_token$", "format": "ldp_vc", "type": [{types: "InsuranceCredential"}], "@context": [{context: "$VCICONTEXTURL$"}], @@ -142,7 +142,7 @@ GetCredentialSunBirdCNeg: outputTemplate: injicertify/error2 input: '{ "client_id": "$ID:ESignet_CreateOIDCClientV2SunBirdC_all_Valid_Smoke_sid_clientId$", - "idpAccessToken": "$ID:ESignet_GenerateTokenSunBirdC_Valid_Smoke_sid_access_token$", + "idpAccessToken": "$ID:ESignet_GenerateTokenSunBirdC_Valid_Smoke_sid_Neg_access_token$", "format": "ldp_vc", "type": [{types: "abcdefghij"}], "@context": [{context: "$VCICONTEXTURL$"}], @@ -164,7 +164,7 @@ GetCredentialSunBirdCNeg: outputTemplate: injicertify/error2 input: '{ "client_id": "$ID:ESignet_CreateOIDCClientV2SunBirdC_all_Valid_Smoke_sid_clientId$", - "idpAccessToken": "$ID:ESignet_GenerateTokenSunBirdC_Valid_Smoke_sid_access_token$", + "idpAccessToken": "$ID:ESignet_GenerateTokenSunBirdC_Valid_Smoke_sid_Neg_access_token$", "format": "ldp_vc", "type": [{types: "VerifiableCredential"}, {types: "InsuranceCredential"}], "@context": [{context: "$VCICONTEXTURL$"}] @@ -184,7 +184,7 @@ GetCredentialSunBirdCNeg: outputTemplate: injicertify/error2 input: '{ "client_id": "$ID:ESignet_CreateOIDCClientV2SunBirdC_all_Valid_Smoke_sid_clientId$", - "idpAccessToken": "$ID:ESignet_GenerateTokenSunBirdC_Valid_Smoke_sid_access_token$", + "idpAccessToken": "$ID:ESignet_GenerateTokenSunBirdC_Valid_Smoke_sid_Neg_access_token$", "format": "ldp_vc", "type": [{types: "VerifiableCredential"}, {types: "InsuranceCredential"}], "@context": [{context: "$VCICONTEXTURL$"}], @@ -205,7 +205,7 @@ GetCredentialSunBirdCNeg: outputTemplate: injicertify/error2 input: '{ "client_id": "$ID:ESignet_CreateOIDCClientV2SunBirdC_all_Valid_Smoke_sid_clientId$", - "idpAccessToken": "$ID:ESignet_GenerateTokenSunBirdC_Valid_Smoke_sid_access_token$", + "idpAccessToken": "$ID:ESignet_GenerateTokenSunBirdC_Valid_Smoke_sid_Neg_access_token$", "format": "ldp_vc", "type": [{types: "VerifiableCredential"}, {types: "InsuranceCredential"}], "@context": [{context: "$VCICONTEXTURL$"}], @@ -227,7 +227,7 @@ GetCredentialSunBirdCNeg: outputTemplate: injicertify/error2 input: '{ "client_id": "$ID:ESignet_CreateOIDCClientV2SunBirdC_all_Valid_Smoke_sid_clientId$", - "idpAccessToken": "$ID:ESignet_GenerateTokenSunBirdC_Valid_Smoke_sid_access_token$", + "idpAccessToken": "$ID:ESignet_GenerateTokenSunBirdC_Valid_Smoke_sid_Neg_access_token$", "format": "ldp_vc", "type": [{types: "VerifiableCredential"}, {types: "InsuranceCredential"}], "@context": [{context: "$VCICONTEXTURL$"}], @@ -249,7 +249,7 @@ GetCredentialSunBirdCNeg: outputTemplate: injicertify/error2 input: '{ "client_id": "$ID:ESignet_CreateOIDCClientV2SunBirdC_all_Valid_Smoke_sid_clientId$", - "idpAccessToken": "$ID:ESignet_GenerateTokenSunBirdC_Valid_Smoke_sid_access_token$", + "idpAccessToken": "$ID:ESignet_GenerateTokenSunBirdC_Valid_Smoke_sid_Neg_access_token$", "format": "ldp_vc", "type": [{types: "VerifiableCredential"}, {types: "InsuranceCredential"}], "@context": [{context: "$VCICONTEXTURL$"}], @@ -271,7 +271,7 @@ GetCredentialSunBirdCNeg: outputTemplate: injicertify/error2 input: '{ "client_id": "$ID:ESignet_CreateOIDCClientV2SunBirdC_all_Valid_Smoke_sid_clientId$", - "idpAccessToken": "$ID:ESignet_GenerateTokenSunBirdC_Valid_Smoke_sid_access_token$", + "idpAccessToken": "$ID:ESignet_GenerateTokenSunBirdC_Valid_Smoke_sid_Neg_access_token$", "format": "", "type": [{types: "VerifiableCredential"}, {types: "InsuranceCredential"}], "@context": [{context: "$VCICONTEXTURL$"}], @@ -293,7 +293,7 @@ GetCredentialSunBirdCNeg: outputTemplate: injicertify/error2 input: '{ "client_id": "$ID:ESignet_CreateOIDCClientV2SunBirdC_all_Valid_Smoke_sid_clientId$", - "idpAccessToken": "$ID:ESignet_GenerateTokenSunBirdC_Valid_Smoke_sid_access_token$", + "idpAccessToken": "$ID:ESignet_GenerateTokenSunBirdC_Valid_Smoke_sid_Neg_access_token$", "format": "ldp_vc", "type": [{types: "VerifiableCredential"}, {types: "InsuranceCredential"}], "@context": [{context: "$VCICONTEXTURL$"}], @@ -314,7 +314,7 @@ GetCredentialSunBirdCNeg: outputTemplate: injicertify/error2 input: '{ "client_id": "$ID:ESignet_CreateOIDCClientV2SunBirdC_all_Valid_Smoke_sid_clientId$", - "idpAccessToken": "$ID:ESignet_GenerateTokenSunBirdC_Valid_Smoke_sid_access_token$", + "idpAccessToken": "$ID:ESignet_GenerateTokenSunBirdC_Valid_Smoke_sid_Neg_access_token$", "format": "ldp_vc", "type": [{types: "VerifiableCredential"}, {types: "InsuranceCredential"}], "@context": [{context: "$VCICONTEXTURL$"}], @@ -336,7 +336,7 @@ GetCredentialSunBirdCNeg: outputTemplate: injicertify/error2 input: '{ "client_id": "$ID:ESignet_CreateOIDCClientV2SunBirdC_all_Valid_Smoke_sid_clientId$", - "idpAccessToken": "$ID:ESignet_GenerateTokenSunBirdC_Valid_Smoke_sid_access_token$", + "idpAccessToken": "$ID:ESignet_GenerateTokenSunBirdC_Valid_Smoke_sid_Neg_access_token$", "format": "ldp_vc", "type": [{types: "VerifiableCredential"}, {types: "InsuranceCredential"}], "@context": [{context: "$VCICONTEXTURL$"}], @@ -358,7 +358,7 @@ GetCredentialSunBirdCNeg: outputTemplate: injicertify/error2 input: '{ "client_id": "$ID:ESignet_CreateOIDCClientV2SunBirdC_all_Valid_Smoke_sid_clientId$", - "idpAccessToken": "$ID:ESignet_GenerateTokenSunBirdC_Valid_Smoke_sid_access_token$", + "idpAccessToken": "$ID:ESignet_GenerateTokenSunBirdC_Valid_Smoke_sid_Neg_access_token$", "format": "ldp_vc", "type": [{types: "VerifiableCredential"}, {types: "InsuranceCredential"}], "@context": [{context: "$VCICONTEXTURL$"}], @@ -380,7 +380,7 @@ GetCredentialSunBirdCNeg: outputTemplate: injicertify/error2 input: '{ "client_id": "$ID:ESignet_CreateOIDCClientV2SunBirdC_all_Valid_Smoke_sid_clientId$", - "idpAccessToken": "$ID:ESignet_GenerateTokenSunBirdC_Valid_Smoke_sid_access_token$", + "idpAccessToken": "$ID:ESignet_GenerateTokenSunBirdC_Valid_Smoke_sid_Neg_access_token$", "format": "ldp_vc", "type": [{types: "VerifiableCredential"}, {types: "InsuranceCredential"}], "@context": [{context: "$VCICONTEXTURL$"}], @@ -402,7 +402,7 @@ GetCredentialSunBirdCNeg: outputTemplate: injicertify/error2 input: '{ "client_id": "$ID:ESignet_CreateOIDCClientV2SunBirdC_all_Valid_Smoke_sid_clientId$", - "idpAccessToken": "$ID:ESignet_GenerateTokenSunBirdC_Valid_Smoke_sid_access_token$", + "idpAccessToken": "$ID:ESignet_GenerateTokenSunBirdC_Valid_Smoke_sid_Neg_access_token$", "format": "ldp_vc", "type": [{types: "VerifiableCredential"}, {types: "InsuranceCredential"}], "@context": [{context: "$VCICONTEXTURL$"}], @@ -424,7 +424,7 @@ GetCredentialSunBirdCNeg: outputTemplate: injicertify/error2 input: '{ "client_id": "$ID:ESignet_CreateOIDCClientV2SunBirdC_all_Valid_Smoke_sid_clientId$", - "idpAccessToken": "$ID:ESignet_GenerateTokenSunBirdC_Valid_Smoke_sid_access_token$", + "idpAccessToken": "$ID:ESignet_GenerateTokenSunBirdC_Valid_Smoke_sid_Neg_access_token$", "format": "ldp_vc", "type": [{types: "VerifiableCredential"}, {types: "InsuranceCredential"}], "@context": [{context: "$VCICONTEXTURL$"}], @@ -446,7 +446,7 @@ GetCredentialSunBirdCNeg: outputTemplate: injicertify/error2 input: '{ "client_id": "$ID:ESignet_CreateOIDCClientV2SunBirdC_all_Valid_Smoke_sid_clientId$", - "idpAccessToken": "$ID:ESignet_GenerateTokenSunBirdC_Valid_Smoke_sid_access_token$", + "idpAccessToken": "$ID:ESignet_GenerateTokenSunBirdC_Valid_Smoke_sid_Neg_access_token$", "format": "ldp_vc", "type": [{types: "VerifiableCredential"}, {types: "InsuranceCredential"}], "@context": [{context: "$VCICONTEXTURL$"}], @@ -468,7 +468,7 @@ GetCredentialSunBirdCNeg: outputTemplate: injicertify/error2 input: '{ "client_id": "$ID:ESignet_CreateOIDCClientV2SunBirdC_all_Valid_Smoke_sid_clientId$", - "idpAccessToken": "$ID:ESignet_GenerateTokenSunBirdC_Valid_Smoke_sid_access_token$", + "idpAccessToken": "$ID:ESignet_GenerateTokenSunBirdC_Valid_Smoke_sid_Neg_access_token$", "format": "ldp_vc", "type": [{types: "VerifiableCredential"}, {types: "InsuranceCredential"}], "@context": [{context: "$VCICONTEXTURL$"}], @@ -490,7 +490,7 @@ GetCredentialSunBirdCNeg: outputTemplate: injicertify/error2 input: '{ "client_id": "$ID:ESignet_CreateOIDCClientV2SunBirdC_all_Valid_Smoke_sid_clientId$", - "idpAccessToken": "$ID:ESignet_GenerateTokenSunBirdC_Valid_Smoke_sid_access_token$", + "idpAccessToken": "$ID:ESignet_GenerateTokenSunBirdC_Valid_Smoke_sid_Neg_access_token$", "format": "ldp_vc", "type": [{types: "VerifiableCredential"}, {types: "InsuranceCredential"}], "@context": [{context: "$VCICONTEXTURL$"}], @@ -512,7 +512,7 @@ GetCredentialSunBirdCNeg: outputTemplate: injicertify/error2 input: '{ "client_id": "$ID:ESignet_CreateOIDCClientV2SunBirdC_all_Valid_Smoke_sid_clientId$", - "idpAccessToken": "$ID:ESignet_GenerateTokenSunBirdC_Valid_Smoke_sid_access_token$", + "idpAccessToken": "$ID:ESignet_GenerateTokenSunBirdC_Valid_Smoke_sid_Neg_access_token$", "format": "ldp_vc", "type": [{types: "VerifiableCredential"}, {types: "InsuranceCredential"}], "@context": [{context: "$VCICONTEXTURL$"}], @@ -534,7 +534,7 @@ GetCredentialSunBirdCNeg: outputTemplate: injicertify/error2 input: '{ "client_id": "$ID:ESignet_CreateOIDCClientV2SunBirdC_all_Valid_Smoke_sid_clientId$", - "idpAccessToken": "$ID:ESignet_GenerateTokenSunBirdC_Valid_Smoke_sid_access_token$", + "idpAccessToken": "$ID:ESignet_GenerateTokenSunBirdC_Valid_Smoke_sid_Neg_access_token$", "format": "ldp_vc", "type": [{types: "VerifiableCredential"}, {types: "InsuranceCredential"}], "@context": [{context: "$VCICONTEXTURL$"}], @@ -556,7 +556,7 @@ GetCredentialSunBirdCNeg: outputTemplate: injicertify/error2 input: '{ "client_id": "$ID:ESignet_CreateOIDCClientV2SunBirdC_all_Valid_Smoke_sid_clientId$", - "idpAccessToken": "$ID:ESignet_GenerateTokenSunBirdC_Valid_Smoke_sid_access_token$", + "idpAccessToken": "$ID:ESignet_GenerateTokenSunBirdC_Valid_Smoke_sid_Neg_access_token$", "format": "ldp_vc", "type": [{types: "VerifiableCredential"}, {types: "InsuranceCredential"}], "@context": [{context: "$VCICONTEXTURL$"}], @@ -578,7 +578,7 @@ GetCredentialSunBirdCNeg: outputTemplate: injicertify/error2 input: '{ "client_id": "$ID:ESignet_CreateOIDCClientV2SunBirdC_all_Valid_Smoke_sid_clientId$", - "idpAccessToken": "$ID:ESignet_GenerateTokenSunBirdC_Valid_Smoke_sid_access_token$", + "idpAccessToken": "$ID:ESignet_GenerateTokenSunBirdC_Valid_Smoke_sid_Neg_access_token$", "format": "ldp_vc", "type": [{types: "VerifiableCredential"}, {types: "InsuranceCredential"}], "@context": [{context: "$VCICONTEXTURL$"}], @@ -600,7 +600,7 @@ GetCredentialSunBirdCNeg: outputTemplate: injicertify/error2 input: '{ "client_id": "$ID:ESignet_CreateOIDCClientV2SunBirdC_all_Valid_Smoke_sid_clientId$", - "idpAccessToken": "$ID:ESignet_GenerateTokenSunBirdC_Valid_Smoke_sid_access_token$", + "idpAccessToken": "$ID:ESignet_GenerateTokenSunBirdC_Valid_Smoke_sid_Neg_access_token$", "format": "ldp_vc", "type": [{types: "VerifiableCredential"}, {types: "InsuranceCredential"}], "@context": [{context: "$VCICONTEXTURL$"}], @@ -622,7 +622,7 @@ GetCredentialSunBirdCNeg: outputTemplate: injicertify/error2 input: '{ "client_id": "$ID:ESignet_CreateOIDCClientV2SunBirdC_all_Valid_Smoke_sid_clientId$", - "idpAccessToken": "$ID:ESignet_GenerateTokenSunBirdC_Valid_Smoke_sid_access_token$", + "idpAccessToken": "$ID:ESignet_GenerateTokenSunBirdC_Valid_Smoke_sid_Neg_access_token$", "format": "ldp_vc", "type": [{types: "VerifiableCredential"}, {types: "InsuranceCredential"}], "@context": [{context: "$VCICONTEXTURL$"}], @@ -644,7 +644,7 @@ GetCredentialSunBirdCNeg: outputTemplate: injicertify/error2 input: '{ "client_id": "$ID:ESignet_CreateOIDCClientV2SunBirdC_all_Valid_Smoke_sid_clientId$", - "idpAccessToken": "$ID:ESignet_GenerateTokenSunBirdC_Valid_Smoke_sid_access_token$", + "idpAccessToken": "$ID:ESignet_GenerateTokenSunBirdC_Valid_Smoke_sid_Neg_access_token$", "format": "ldp_vc", "type": [{types: "VerifiableCredential"}, {types: "InsuranceCredential"}], "@context": [{context: "$VCICONTEXTURL$"}], @@ -666,7 +666,7 @@ GetCredentialSunBirdCNeg: outputTemplate: injicertify/error2 input: '{ "client_id": "$ID:ESignet_CreateOIDCClientV2SunBirdC_all_Valid_Smoke_sid_clientId$", - "idpAccessToken": "$ID:ESignet_GenerateTokenSunBirdC_Valid_Smoke_sid_access_token$", + "idpAccessToken": "$ID:ESignet_GenerateTokenSunBirdC_Valid_Smoke_sid_Neg_access_token$", "format": "ldp_vc", "type": [{types: "VerifiableCredential"}, {types: "InsuranceCredential"}], "@context": [{context: "$VCICONTEXTURL$"}], @@ -688,7 +688,7 @@ GetCredentialSunBirdCNeg: outputTemplate: injicertify/error2 input: '{ "client_id": "$ID:ESignet_CreateOIDCClientV2SunBirdC_all_Valid_Smoke_sid_clientId$", - "idpAccessToken": "$ID:ESignet_GenerateTokenSunBirdC_Valid_Smoke_sid_access_token$", + "idpAccessToken": "$ID:ESignet_GenerateTokenSunBirdC_Valid_Smoke_sid_Neg_access_token$", "format": "ldp_vc", "type": [{types: "VerifiableCredential"}, {types: "InsuranceCredential"}], "@context": [{context: "$VCICONTEXTURL$"}], @@ -710,7 +710,7 @@ GetCredentialSunBirdCNeg: outputTemplate: injicertify/error2 input: '{ "client_id": "$ID:ESignet_CreateOIDCClientV2SunBirdC_all_Valid_Smoke_sid_clientId$", - "idpAccessToken": "$ID:ESignet_GenerateTokenSunBirdC_Valid_Smoke_sid_access_token$", + "idpAccessToken": "$ID:ESignet_GenerateTokenSunBirdC_Valid_Smoke_sid_Neg_access_token$", "format": "ldp_vc", "type": [{types: "VerifiableCredential"}, {types: "InsuranceCredential"},{types: "abcdef"}], "@context": [{context: "$VCICONTEXTURL$"}], @@ -732,7 +732,7 @@ GetCredentialSunBirdCNeg: outputTemplate: injicertify/error2 input: '{ "client_id": "$ID:ESignet_CreateOIDCClientV2SunBirdC_all_Valid_Smoke_sid_clientId$", - "idpAccessToken": "$ID:ESignet_GenerateTokenSunBirdC_Valid_Smoke_sid_access_token$", + "idpAccessToken": "$ID:ESignet_GenerateTokenSunBirdC_Valid_Smoke_sid_Neg_access_token$", "format": "ldp_vc", "type": [{types: "VerifiableCredential"}, {types: "InsuranceCredential"}], "@context": "", @@ -754,7 +754,7 @@ GetCredentialSunBirdCNeg: outputTemplate: injicertify/error2 input: '{ "client_id": "$ID:ESignet_CreateOIDCClientV2SunBirdC_all_Valid_Smoke_sid_clientId$", - "idpAccessToken": "$ID:ESignet_GenerateTokenSunBirdC_Valid_Smoke_sid_access_token$", + "idpAccessToken": "$ID:ESignet_GenerateTokenSunBirdC_Valid_Smoke_sid_Neg_access_token$", "format": "ldp_vc", "type": [{types: "VerifiableCredential"}, {types: "InsuranceCredential"}], "proof_type": "jwt", @@ -775,7 +775,7 @@ GetCredentialSunBirdCNeg: outputTemplate: injicertify/error2 input: '{ "client_id": "$ID:ESignet_CreateOIDCClientV2SunBirdC_all_Valid_Smoke_sid_clientId$", - "idpAccessToken": "$ID:ESignet_GenerateTokenSunBirdC_Valid_Smoke_sid_access_token$", + "idpAccessToken": "$ID:ESignet_GenerateTokenSunBirdC_Valid_Smoke_sid_Neg_access_token$", "format": "ldp_vc", "type": [{types: "VerifiableCredential"}, {types: "InsuranceCredential"}], "@context": [], @@ -796,7 +796,7 @@ GetCredentialSunBirdCNeg: outputTemplate: injicertify/error2 input: '{ "client_id": "$ID:ESignet_CreateOIDCClientV2SunBirdC_all_Valid_Smoke_sid_clientId$", - "idpAccessToken": "$ID:ESignet_GenerateTokenSunBirdC_Valid_Smoke_sid_access_token$", + "idpAccessToken": "$ID:ESignet_GenerateTokenSunBirdC_Valid_Smoke_sid_Neg_access_token$", "format": "ldp_vc", "type": [{types: "VerifiableCredential"}, {types: "InsuranceCredential"}], "@context": ["abcdefghgf"], diff --git a/apitest/src/main/resources/injicertify/SunBirdCNegative/GetCredentialSunBirdCNeg/GetCredentialSunBirdCResultNeg.hbs b/api-test/src/main/resources/injicertify/SunBirdCNegative/GetCredentialSunBirdCNeg/GetCredentialSunBirdCResultNeg.hbs similarity index 100% rename from apitest/src/main/resources/injicertify/SunBirdCNegative/GetCredentialSunBirdCNeg/GetCredentialSunBirdCResultNeg.hbs rename to api-test/src/main/resources/injicertify/SunBirdCNegative/GetCredentialSunBirdCNeg/GetCredentialSunBirdCResultNeg.hbs diff --git a/apitest/src/main/resources/injicertify/SunBirdCNegative/OAuthDetailsRequestSunBirdCNeg/OAuthDetailsRequestSunBirdCNeg.hbs b/api-test/src/main/resources/injicertify/SunBirdCNegative/OAuthDetailsRequestSunBirdCNeg/OAuthDetailsRequestSunBirdCNeg.hbs similarity index 100% rename from apitest/src/main/resources/injicertify/SunBirdCNegative/OAuthDetailsRequestSunBirdCNeg/OAuthDetailsRequestSunBirdCNeg.hbs rename to api-test/src/main/resources/injicertify/SunBirdCNegative/OAuthDetailsRequestSunBirdCNeg/OAuthDetailsRequestSunBirdCNeg.hbs diff --git a/apitest/src/main/resources/injicertify/SunBirdCNegative/OAuthDetailsRequestSunBirdCNeg/OAuthDetailsRequestSunBirdCNeg.yml b/api-test/src/main/resources/injicertify/SunBirdCNegative/OAuthDetailsRequestSunBirdCNeg/OAuthDetailsRequestSunBirdCNeg.yml similarity index 100% rename from apitest/src/main/resources/injicertify/SunBirdCNegative/OAuthDetailsRequestSunBirdCNeg/OAuthDetailsRequestSunBirdCNeg.yml rename to api-test/src/main/resources/injicertify/SunBirdCNegative/OAuthDetailsRequestSunBirdCNeg/OAuthDetailsRequestSunBirdCNeg.yml diff --git a/apitest/src/main/resources/injicertify/SunBirdCNegative/OAuthDetailsRequestSunBirdCNeg/OAuthDetailsRequestSunBirdCResultNeg.hbs b/api-test/src/main/resources/injicertify/SunBirdCNegative/OAuthDetailsRequestSunBirdCNeg/OAuthDetailsRequestSunBirdCResultNeg.hbs similarity index 100% rename from apitest/src/main/resources/injicertify/SunBirdCNegative/OAuthDetailsRequestSunBirdCNeg/OAuthDetailsRequestSunBirdCResultNeg.hbs rename to api-test/src/main/resources/injicertify/SunBirdCNegative/OAuthDetailsRequestSunBirdCNeg/OAuthDetailsRequestSunBirdCResultNeg.hbs diff --git a/api-test/src/main/resources/injicertify/SunBirdR/CreatePolicySunBirdR/CreatePolicySunBirdR.hbs b/api-test/src/main/resources/injicertify/SunBirdR/CreatePolicySunBirdR/CreatePolicySunBirdR.hbs new file mode 100644 index 00000000..fedc127d --- /dev/null +++ b/api-test/src/main/resources/injicertify/SunBirdR/CreatePolicySunBirdR/CreatePolicySunBirdR.hbs @@ -0,0 +1,16 @@ +{ + "policyNumber": "{{policyNumber}}", + "policyName": "{{policyName}}", + "policyExpiresOn": "{{policyExpiresOn}}", + "policyIssuedOn": "{{policyIssuedOn}}", + "fullName": "{{fullName}}", + "dob": "{{dob}}", + "benefits": [ + {{#each benefits}} + "{{benefits}}"{{#unless @last}},{{/unless}} + {{/each}} + ], + "gender": "{{gender}}", + "mobile": "{{mobile}}", + "email": "{{email}}" +} \ No newline at end of file diff --git a/api-test/src/main/resources/injicertify/SunBirdR/CreatePolicySunBirdR/CreatePolicySunBirdR.yml b/api-test/src/main/resources/injicertify/SunBirdR/CreatePolicySunBirdR/CreatePolicySunBirdR.yml new file mode 100644 index 00000000..14d03d01 --- /dev/null +++ b/api-test/src/main/resources/injicertify/SunBirdR/CreatePolicySunBirdR/CreatePolicySunBirdR.yml @@ -0,0 +1,25 @@ +CreatePolicySunBirdR: + InjiCertify_ESignet_SunBirdR_CreatePolicy_NOAUTH_Valid_Smoke_Sid: + endPoint: $SUNBIRDBASEURL$/api/v1/Insurance + description: Creating new sunbird policy with valid parameters + role: resident + restMethod: post + checkErrorsOnlyInResponse: true + validityCheckRequired: true + inputTemplate: injicertify/SunBirdR/CreatePolicySunBirdR/CreatePolicySunBirdR + outputTemplate: injicertify/SunBirdR/CreatePolicySunBirdR/CreatePolicySunBirdRResult + input: '{ + "policyNumber": "$POLICYNUMBERFORSUNBIRDRC$", + "policyName": "Start Insurance Gold Premium", + "policyExpiresOn": "2033-04-20T20:48:17.684Z", + "policyIssuedOn": "$TIMESTAMP$", + "fullName" : "$FULLNAMEFORSUNBIRDRC$", + "dob" : "$DOBFORSUNBIRDRC$", + "benefits": [{"benefits": "Critical Surgery"}, {"benefits": "Full body checkup"}], + "gender": "Male", + "mobile": "0123456789", + "email": "abhishek@gmail.com" + }' + output: '{ + "status": "SUCCESSFUL" +}' \ No newline at end of file diff --git a/api-test/src/main/resources/injicertify/SunBirdR/CreatePolicySunBirdR/CreatePolicySunBirdRResult.hbs b/api-test/src/main/resources/injicertify/SunBirdR/CreatePolicySunBirdR/CreatePolicySunBirdRResult.hbs new file mode 100644 index 00000000..8efaf79f --- /dev/null +++ b/api-test/src/main/resources/injicertify/SunBirdR/CreatePolicySunBirdR/CreatePolicySunBirdRResult.hbs @@ -0,0 +1,5 @@ +{ + "params": { + "status": "{{status}}" + } +} \ No newline at end of file diff --git a/api-test/src/main/resources/injicertify/SunBirdR/DeletePolicySunBirdR/DeletePolicySunBirdR.hbs b/api-test/src/main/resources/injicertify/SunBirdR/DeletePolicySunBirdR/DeletePolicySunBirdR.hbs new file mode 100644 index 00000000..4f7673ad --- /dev/null +++ b/api-test/src/main/resources/injicertify/SunBirdR/DeletePolicySunBirdR/DeletePolicySunBirdR.hbs @@ -0,0 +1,3 @@ +{ + "insuranceid": "{{insuranceid}}" +} \ No newline at end of file diff --git a/api-test/src/main/resources/injicertify/SunBirdR/DeletePolicySunBirdR/DeletePolicySunBirdR.yml b/api-test/src/main/resources/injicertify/SunBirdR/DeletePolicySunBirdR/DeletePolicySunBirdR.yml new file mode 100644 index 00000000..f1a463e0 --- /dev/null +++ b/api-test/src/main/resources/injicertify/SunBirdR/DeletePolicySunBirdR/DeletePolicySunBirdR.yml @@ -0,0 +1,16 @@ +DeletePolicySunBirdR: + InjiCertify_ESignet_SunBirdR_DeletePolicy_NOAUTH_Valid_Smoke: + endPoint: $SUNBIRDBASEURL$/api/v1/Insurance/{insuranceid} + description: Deleting Sunbird policy with valid parameters + role: resident + restMethod: delete + checkErrorsOnlyInResponse: true + validityCheckRequired: true + inputTemplate: injicertify/SunBirdR/DeletePolicySunBirdR/DeletePolicySunBirdR + outputTemplate: injicertify/SunBirdR/DeletePolicySunBirdR/DeletePolicySunBirdRResult + input: '{ + "insuranceid": "$ID:ESignet_SunBirdR_CreatePolicy_NOAUTH_Valid_Smoke_Sid_osid$" + }' + output: '{ + "status": "SUCCESSFUL" +}' \ No newline at end of file diff --git a/api-test/src/main/resources/injicertify/SunBirdR/DeletePolicySunBirdR/DeletePolicySunBirdRResult.hbs b/api-test/src/main/resources/injicertify/SunBirdR/DeletePolicySunBirdR/DeletePolicySunBirdRResult.hbs new file mode 100644 index 00000000..8efaf79f --- /dev/null +++ b/api-test/src/main/resources/injicertify/SunBirdR/DeletePolicySunBirdR/DeletePolicySunBirdRResult.hbs @@ -0,0 +1,5 @@ +{ + "params": { + "status": "{{status}}" + } +} \ No newline at end of file diff --git a/api-test/src/main/resources/injicertify/SunBirdR/GetPolicySunBirdR/GetPolicySunBirdR.hbs b/api-test/src/main/resources/injicertify/SunBirdR/GetPolicySunBirdR/GetPolicySunBirdR.hbs new file mode 100644 index 00000000..4f7673ad --- /dev/null +++ b/api-test/src/main/resources/injicertify/SunBirdR/GetPolicySunBirdR/GetPolicySunBirdR.hbs @@ -0,0 +1,3 @@ +{ + "insuranceid": "{{insuranceid}}" +} \ No newline at end of file diff --git a/api-test/src/main/resources/injicertify/SunBirdR/GetPolicySunBirdR/GetPolicySunBirdR.yml b/api-test/src/main/resources/injicertify/SunBirdR/GetPolicySunBirdR/GetPolicySunBirdR.yml new file mode 100644 index 00000000..b51fd650 --- /dev/null +++ b/api-test/src/main/resources/injicertify/SunBirdR/GetPolicySunBirdR/GetPolicySunBirdR.yml @@ -0,0 +1,16 @@ +GetPolicySunBirdR: + InjiCertify_ESignet_SunBirdR_GetPolicy_NOAUTH_Valid_Smoke: + endPoint: $SUNBIRDBASEURL$/api/v1/Insurance/{insuranceid} + description: Getting sunbird policy with valid parameters + role: resident + restMethod: get + checkErrorsOnlyInResponse: true + validityCheckRequired: true + inputTemplate: injicertify/SunBirdR/GetPolicySunBirdR/GetPolicySunBirdR + outputTemplate: injicertify/SunBirdR/GetPolicySunBirdR/GetPolicySunBirdRResult + input: '{ + "insuranceid": "$ID:ESignet_SunBirdR_CreatePolicy_NOAUTH_Valid_Smoke_Sid_osid$" + }' + output: '{ + "policyNumber": "325698741" +}' \ No newline at end of file diff --git a/api-test/src/main/resources/injicertify/SunBirdR/GetPolicySunBirdR/GetPolicySunBirdRResult.hbs b/api-test/src/main/resources/injicertify/SunBirdR/GetPolicySunBirdR/GetPolicySunBirdRResult.hbs new file mode 100644 index 00000000..d1a64cf3 --- /dev/null +++ b/api-test/src/main/resources/injicertify/SunBirdR/GetPolicySunBirdR/GetPolicySunBirdRResult.hbs @@ -0,0 +1,3 @@ +{ + "policyNumber": {{policyNumber}} +} \ No newline at end of file diff --git a/api-test/src/main/resources/injicertify/SunBirdR/SearchPolicySunBirdR/SearchPolicySunBirdR.hbs b/api-test/src/main/resources/injicertify/SunBirdR/SearchPolicySunBirdR/SearchPolicySunBirdR.hbs new file mode 100644 index 00000000..38866c7a --- /dev/null +++ b/api-test/src/main/resources/injicertify/SunBirdR/SearchPolicySunBirdR/SearchPolicySunBirdR.hbs @@ -0,0 +1,21 @@ +{ + "offset": {{offset}}, + "limit": {{limit}}, + "filters": { + {{#if fullName}} + "fullName": { + "eq": "{{fullName}}" + }, + {{/if}} + {{#if dob}} + "dob": { + "eq": "{{dob}}" + }, + {{/if}} + {{#if policyNumber}} + "policyNumber": { + "eq": "{{policyNumber}}" + } + {{/if}} + } +} diff --git a/api-test/src/main/resources/injicertify/SunBirdR/SearchPolicySunBirdR/SearchPolicySunBirdR.yml b/api-test/src/main/resources/injicertify/SunBirdR/SearchPolicySunBirdR/SearchPolicySunBirdR.yml new file mode 100644 index 00000000..6db3fbf4 --- /dev/null +++ b/api-test/src/main/resources/injicertify/SunBirdR/SearchPolicySunBirdR/SearchPolicySunBirdR.yml @@ -0,0 +1,19 @@ +SearchPolicySunBirdR: + InjiCertify_ESignet_SunBirdR_SearchPolicy_NOAUTH_Valid_Smoke: + endPoint: $SUNBIRDBASEURL$/api/v1/Insurance/search + description: Searching sunbird policy with valid parameters + role: resident + restMethod: post + checkErrorsOnlyInResponse: true + validityCheckRequired: true + inputTemplate: injicertify/SunBirdR/SearchPolicySunBirdR/SearchPolicySunBirdR + outputTemplate: injicertify/SunBirdR/SearchPolicySunBirdR/SearchPolicySunBirdRResult + input: '{ + "offset": "0", + "limit": "5", + "fullName": "$FULLNAMEFORSUNBIRDRC$", + "dob": "$DOBFORSUNBIRDRC$", + "policyNumber": "$POLICYNUMBERFORSUNBIRDRC$" + }' + output: '{ +}' \ No newline at end of file diff --git a/apitest/src/main/resources/injicertify/VCIMockIDA/AuthenticateUserForMockIDA/AuthenticateUserForMockIDAResult.hbs b/api-test/src/main/resources/injicertify/SunBirdR/SearchPolicySunBirdR/SearchPolicySunBirdRResult.hbs similarity index 100% rename from apitest/src/main/resources/injicertify/VCIMockIDA/AuthenticateUserForMockIDA/AuthenticateUserForMockIDAResult.hbs rename to api-test/src/main/resources/injicertify/SunBirdR/SearchPolicySunBirdR/SearchPolicySunBirdRResult.hbs diff --git a/apitest/src/main/resources/injicertify/VCIMockIDA/AuthenticateUserForMockIDA/AuthenticateUserForMockIDA.hbs b/api-test/src/main/resources/injicertify/VCIMockIDA/AuthenticateUserForMockIDA/AuthenticateUserForMockIDA.hbs similarity index 100% rename from apitest/src/main/resources/injicertify/VCIMockIDA/AuthenticateUserForMockIDA/AuthenticateUserForMockIDA.hbs rename to api-test/src/main/resources/injicertify/VCIMockIDA/AuthenticateUserForMockIDA/AuthenticateUserForMockIDA.hbs diff --git a/apitest/src/main/resources/injicertify/VCIMockIDA/AuthenticateUserForMockIDA/AuthenticateUserForMockIDA.yml b/api-test/src/main/resources/injicertify/VCIMockIDA/AuthenticateUserForMockIDA/AuthenticateUserForMockIDA.yml similarity index 91% rename from apitest/src/main/resources/injicertify/VCIMockIDA/AuthenticateUserForMockIDA/AuthenticateUserForMockIDA.yml rename to api-test/src/main/resources/injicertify/VCIMockIDA/AuthenticateUserForMockIDA/AuthenticateUserForMockIDA.yml index 0f37848d..740f4b3c 100644 --- a/apitest/src/main/resources/injicertify/VCIMockIDA/AuthenticateUserForMockIDA/AuthenticateUserForMockIDA.yml +++ b/api-test/src/main/resources/injicertify/VCIMockIDA/AuthenticateUserForMockIDA/AuthenticateUserForMockIDA.yml @@ -11,7 +11,7 @@ AuthenticateUserVCIForMockIDA: "encodedHash": "$ID:ESignet_OAuthDetailsRequest_ForMockIDA_uin_all_Valid_Smoke_sid_encodedResp$", "requestTime": "$TIMESTAMP$", "transactionId": "$ID:ESignet_OAuthDetailsRequest_ForMockIDA_uin_all_Valid_Smoke_sid_transactionId$", - "individualId": "6553455", + "individualId": "$ID:AddIdentity_For_Mock_Valid_smoke_Pos_UIN$", "authFactorType" : "OTP", "challenge" : "111111", "format": "alpha-numeric", @@ -19,7 +19,7 @@ AuthenticateUserVCIForMockIDA: "encodedHash": "$ID:ESignet_OAuthDetailsRequest_ForMockIDA_uin_all_Valid_Smoke_sid_encodedResp$", "requestTime": "$TIMESTAMP$", "transactionId": "$ID:ESignet_OAuthDetailsRequest_ForMockIDA_uin_all_Valid_Smoke_sid_transactionId$", - "individualId": "6553455", + "individualId": "$ID:AddIdentity_For_Mock_Valid_smoke_Pos_UIN$", "otpChannels": [{channel: "email"},{channel: "phone"}], "sendOtpReqTemplate": "injicertify/SendOtp/SendOtp", "sendOtpEndPoint": "$ESIGNETMOCKIDABASEURL$/v1/esignet/authorization/send-otp" diff --git a/apitest/src/main/resources/injicertify/VCIMockIDAForVd11/AuthenticateUserForMockIDA/AuthenticateUserForMockIDAResult.hbs b/api-test/src/main/resources/injicertify/VCIMockIDA/AuthenticateUserForMockIDA/AuthenticateUserForMockIDAResult.hbs similarity index 100% rename from apitest/src/main/resources/injicertify/VCIMockIDAForVd11/AuthenticateUserForMockIDA/AuthenticateUserForMockIDAResult.hbs rename to api-test/src/main/resources/injicertify/VCIMockIDA/AuthenticateUserForMockIDA/AuthenticateUserForMockIDAResult.hbs diff --git a/apitest/src/main/resources/injicertify/VCIMockIDA/AuthorizationCodeForMockIDA/AuthorizationCodeForMockIDA.hbs b/api-test/src/main/resources/injicertify/VCIMockIDA/AuthorizationCodeForMockIDA/AuthorizationCodeForMockIDA.hbs similarity index 100% rename from apitest/src/main/resources/injicertify/VCIMockIDA/AuthorizationCodeForMockIDA/AuthorizationCodeForMockIDA.hbs rename to api-test/src/main/resources/injicertify/VCIMockIDA/AuthorizationCodeForMockIDA/AuthorizationCodeForMockIDA.hbs diff --git a/apitest/src/main/resources/injicertify/VCIMockIDA/AuthorizationCodeForMockIDA/AuthorizationCodeForMockIDA.yml b/api-test/src/main/resources/injicertify/VCIMockIDA/AuthorizationCodeForMockIDA/AuthorizationCodeForMockIDA.yml similarity index 100% rename from apitest/src/main/resources/injicertify/VCIMockIDA/AuthorizationCodeForMockIDA/AuthorizationCodeForMockIDA.yml rename to api-test/src/main/resources/injicertify/VCIMockIDA/AuthorizationCodeForMockIDA/AuthorizationCodeForMockIDA.yml diff --git a/apitest/src/main/resources/injicertify/VCIMockIDA/AuthorizationCodeForMockIDA/AuthorizationCodeForMockIDAResult.hbs b/api-test/src/main/resources/injicertify/VCIMockIDA/AuthorizationCodeForMockIDA/AuthorizationCodeForMockIDAResult.hbs similarity index 100% rename from apitest/src/main/resources/injicertify/VCIMockIDA/AuthorizationCodeForMockIDA/AuthorizationCodeForMockIDAResult.hbs rename to api-test/src/main/resources/injicertify/VCIMockIDA/AuthorizationCodeForMockIDA/AuthorizationCodeForMockIDAResult.hbs diff --git a/apitest/src/main/resources/injicertify/VCIMockIDA/CreateOIDCClientV2ForMockIDA/CreateOIDCClientV2ForMockIDA.hbs b/api-test/src/main/resources/injicertify/VCIMockIDA/CreateOIDCClientV2ForMockIDA/CreateOIDCClientV2ForMockIDA.hbs similarity index 100% rename from apitest/src/main/resources/injicertify/VCIMockIDA/CreateOIDCClientV2ForMockIDA/CreateOIDCClientV2ForMockIDA.hbs rename to api-test/src/main/resources/injicertify/VCIMockIDA/CreateOIDCClientV2ForMockIDA/CreateOIDCClientV2ForMockIDA.hbs diff --git a/apitest/src/main/resources/injicertify/VCIMockIDA/CreateOIDCClientV2ForMockIDA/CreateOIDCClientV2ForMockIDA.yml b/api-test/src/main/resources/injicertify/VCIMockIDA/CreateOIDCClientV2ForMockIDA/CreateOIDCClientV2ForMockIDA.yml similarity index 100% rename from apitest/src/main/resources/injicertify/VCIMockIDA/CreateOIDCClientV2ForMockIDA/CreateOIDCClientV2ForMockIDA.yml rename to api-test/src/main/resources/injicertify/VCIMockIDA/CreateOIDCClientV2ForMockIDA/CreateOIDCClientV2ForMockIDA.yml diff --git a/apitest/src/main/resources/injicertify/VCIMockIDA/CreateOIDCClientV2ForMockIDA/CreateOIDCClientV2ForMockIDAResult.hbs b/api-test/src/main/resources/injicertify/VCIMockIDA/CreateOIDCClientV2ForMockIDA/CreateOIDCClientV2ForMockIDAResult.hbs similarity index 100% rename from apitest/src/main/resources/injicertify/VCIMockIDA/CreateOIDCClientV2ForMockIDA/CreateOIDCClientV2ForMockIDAResult.hbs rename to api-test/src/main/resources/injicertify/VCIMockIDA/CreateOIDCClientV2ForMockIDA/CreateOIDCClientV2ForMockIDAResult.hbs diff --git a/apitest/src/main/resources/injicertify/VCIMockIDA/GenerateTokenForMockIDA/GenerateTokenForMockIDA.hbs b/api-test/src/main/resources/injicertify/VCIMockIDA/GenerateTokenForMockIDA/GenerateTokenForMockIDA.hbs similarity index 100% rename from apitest/src/main/resources/injicertify/VCIMockIDA/GenerateTokenForMockIDA/GenerateTokenForMockIDA.hbs rename to api-test/src/main/resources/injicertify/VCIMockIDA/GenerateTokenForMockIDA/GenerateTokenForMockIDA.hbs diff --git a/apitest/src/main/resources/injicertify/VCIMockIDA/GenerateTokenForMockIDA/GenerateTokenForMockIDA.yml b/api-test/src/main/resources/injicertify/VCIMockIDA/GenerateTokenForMockIDA/GenerateTokenForMockIDA.yml similarity index 100% rename from apitest/src/main/resources/injicertify/VCIMockIDA/GenerateTokenForMockIDA/GenerateTokenForMockIDA.yml rename to api-test/src/main/resources/injicertify/VCIMockIDA/GenerateTokenForMockIDA/GenerateTokenForMockIDA.yml diff --git a/apitest/src/main/resources/injicertify/VCIMockIDA/GenerateTokenForMockIDA/GenerateTokenForMockIDAResult.hbs b/api-test/src/main/resources/injicertify/VCIMockIDA/GenerateTokenForMockIDA/GenerateTokenForMockIDAResult.hbs similarity index 100% rename from apitest/src/main/resources/injicertify/VCIMockIDA/GenerateTokenForMockIDA/GenerateTokenForMockIDAResult.hbs rename to api-test/src/main/resources/injicertify/VCIMockIDA/GenerateTokenForMockIDA/GenerateTokenForMockIDAResult.hbs diff --git a/apitest/src/main/resources/injicertify/VCIMockIDA/GetCredentialForMockIDA/GetCredentialForMockIDA.hbs b/api-test/src/main/resources/injicertify/VCIMockIDA/GetCredentialForMockIDA/GetCredentialForMockIDA.hbs similarity index 100% rename from apitest/src/main/resources/injicertify/VCIMockIDA/GetCredentialForMockIDA/GetCredentialForMockIDA.hbs rename to api-test/src/main/resources/injicertify/VCIMockIDA/GetCredentialForMockIDA/GetCredentialForMockIDA.hbs diff --git a/apitest/src/main/resources/injicertify/VCIMockIDA/GetCredentialForMockIDA/GetCredentialForMockIDA.yml b/api-test/src/main/resources/injicertify/VCIMockIDA/GetCredentialForMockIDA/GetCredentialForMockIDA.yml similarity index 100% rename from apitest/src/main/resources/injicertify/VCIMockIDA/GetCredentialForMockIDA/GetCredentialForMockIDA.yml rename to api-test/src/main/resources/injicertify/VCIMockIDA/GetCredentialForMockIDA/GetCredentialForMockIDA.yml diff --git a/apitest/src/main/resources/injicertify/VCIMockIDA/GetCredentialForMockIDA/GetCredentialForMockIDAResult.hbs b/api-test/src/main/resources/injicertify/VCIMockIDA/GetCredentialForMockIDA/GetCredentialForMockIDAResult.hbs similarity index 100% rename from apitest/src/main/resources/injicertify/VCIMockIDA/GetCredentialForMockIDA/GetCredentialForMockIDAResult.hbs rename to api-test/src/main/resources/injicertify/VCIMockIDA/GetCredentialForMockIDA/GetCredentialForMockIDAResult.hbs diff --git a/apitest/src/main/resources/injicertify/VCIMockIDA/OAuthDetailsRequestForMockIDA/OAuthDetailsRequestForMockIDA.hbs b/api-test/src/main/resources/injicertify/VCIMockIDA/OAuthDetailsRequestForMockIDA/OAuthDetailsRequestForMockIDA.hbs similarity index 100% rename from apitest/src/main/resources/injicertify/VCIMockIDA/OAuthDetailsRequestForMockIDA/OAuthDetailsRequestForMockIDA.hbs rename to api-test/src/main/resources/injicertify/VCIMockIDA/OAuthDetailsRequestForMockIDA/OAuthDetailsRequestForMockIDA.hbs diff --git a/apitest/src/main/resources/injicertify/VCIMockIDA/OAuthDetailsRequestForMockIDA/OAuthDetailsRequestForMockIDA.yml b/api-test/src/main/resources/injicertify/VCIMockIDA/OAuthDetailsRequestForMockIDA/OAuthDetailsRequestForMockIDA.yml similarity index 100% rename from apitest/src/main/resources/injicertify/VCIMockIDA/OAuthDetailsRequestForMockIDA/OAuthDetailsRequestForMockIDA.yml rename to api-test/src/main/resources/injicertify/VCIMockIDA/OAuthDetailsRequestForMockIDA/OAuthDetailsRequestForMockIDA.yml diff --git a/apitest/src/main/resources/injicertify/VCIMockIDA/OAuthDetailsRequestForMockIDA/OAuthDetailsRequestForMockIDAResult.hbs b/api-test/src/main/resources/injicertify/VCIMockIDA/OAuthDetailsRequestForMockIDA/OAuthDetailsRequestForMockIDAResult.hbs similarity index 100% rename from apitest/src/main/resources/injicertify/VCIMockIDA/OAuthDetailsRequestForMockIDA/OAuthDetailsRequestForMockIDAResult.hbs rename to api-test/src/main/resources/injicertify/VCIMockIDA/OAuthDetailsRequestForMockIDA/OAuthDetailsRequestForMockIDAResult.hbs diff --git a/apitest/src/main/resources/injicertify/VCIMockIDAForVd11/AuthenticateUserForMockIDA/AuthenticateUserForMockIDA.hbs b/api-test/src/main/resources/injicertify/VCIMockIDAForVd11/AuthenticateUserForMockIDA/AuthenticateUserForMockIDA.hbs similarity index 100% rename from apitest/src/main/resources/injicertify/VCIMockIDAForVd11/AuthenticateUserForMockIDA/AuthenticateUserForMockIDA.hbs rename to api-test/src/main/resources/injicertify/VCIMockIDAForVd11/AuthenticateUserForMockIDA/AuthenticateUserForMockIDA.hbs diff --git a/apitest/src/main/resources/injicertify/VCIMockIDAForVd11/AuthenticateUserForMockIDA/AuthenticateUserForMockIDA.yml b/api-test/src/main/resources/injicertify/VCIMockIDAForVd11/AuthenticateUserForMockIDA/AuthenticateUserForMockIDA.yml similarity index 91% rename from apitest/src/main/resources/injicertify/VCIMockIDAForVd11/AuthenticateUserForMockIDA/AuthenticateUserForMockIDA.yml rename to api-test/src/main/resources/injicertify/VCIMockIDAForVd11/AuthenticateUserForMockIDA/AuthenticateUserForMockIDA.yml index 30ad550d..4e677146 100644 --- a/apitest/src/main/resources/injicertify/VCIMockIDAForVd11/AuthenticateUserForMockIDA/AuthenticateUserForMockIDA.yml +++ b/api-test/src/main/resources/injicertify/VCIMockIDAForVd11/AuthenticateUserForMockIDA/AuthenticateUserForMockIDA.yml @@ -11,7 +11,7 @@ AuthenticateUserVCIForMockIDA: "encodedHash": "$ID:ESignet_OAuthDetailsRequest_ForMockIDA_Vd11_uin_all_Valid_Smoke_sid_encodedResp$", "requestTime": "$TIMESTAMP$", "transactionId": "$ID:ESignet_OAuthDetailsRequest_ForMockIDA_Vd11_uin_all_Valid_Smoke_sid_transactionId$", - "individualId": "6553455", + "individualId": "$ID:AddIdentity_For_Mock_Valid_smoke_Pos_UIN$", "authFactorType" : "OTP", "challenge" : "111111", "format": "alpha-numeric", @@ -19,7 +19,7 @@ AuthenticateUserVCIForMockIDA: "encodedHash": "$ID:ESignet_OAuthDetailsRequest_ForMockIDA_Vd11_uin_all_Valid_Smoke_sid_encodedResp$", "requestTime": "$TIMESTAMP$", "transactionId": "$ID:ESignet_OAuthDetailsRequest_ForMockIDA_Vd11_uin_all_Valid_Smoke_sid_transactionId$", - "individualId": "6553455", + "individualId": "$ID:AddIdentity_For_Mock_Valid_smoke_Pos_UIN$", "otpChannels": [{channel: "email"},{channel: "phone"}], "sendOtpReqTemplate": "injicertify/SendOtp/SendOtp", "sendOtpEndPoint": "$ESIGNETMOCKIDABASEURL$/v1/esignet/authorization/send-otp" diff --git a/apitest/src/main/resources/injicertify/VCIMockIDAForVd12/AuthenticateUserForMockIDA/AuthenticateUserForMockIDAResult.hbs b/api-test/src/main/resources/injicertify/VCIMockIDAForVd11/AuthenticateUserForMockIDA/AuthenticateUserForMockIDAResult.hbs similarity index 100% rename from apitest/src/main/resources/injicertify/VCIMockIDAForVd12/AuthenticateUserForMockIDA/AuthenticateUserForMockIDAResult.hbs rename to api-test/src/main/resources/injicertify/VCIMockIDAForVd11/AuthenticateUserForMockIDA/AuthenticateUserForMockIDAResult.hbs diff --git a/apitest/src/main/resources/injicertify/VCIMockIDAForVd11/AuthorizationCodeForMockIDA/AuthorizationCodeForMockIDA.hbs b/api-test/src/main/resources/injicertify/VCIMockIDAForVd11/AuthorizationCodeForMockIDA/AuthorizationCodeForMockIDA.hbs similarity index 100% rename from apitest/src/main/resources/injicertify/VCIMockIDAForVd11/AuthorizationCodeForMockIDA/AuthorizationCodeForMockIDA.hbs rename to api-test/src/main/resources/injicertify/VCIMockIDAForVd11/AuthorizationCodeForMockIDA/AuthorizationCodeForMockIDA.hbs diff --git a/apitest/src/main/resources/injicertify/VCIMockIDAForVd11/AuthorizationCodeForMockIDA/AuthorizationCodeForMockIDA.yml b/api-test/src/main/resources/injicertify/VCIMockIDAForVd11/AuthorizationCodeForMockIDA/AuthorizationCodeForMockIDA.yml similarity index 100% rename from apitest/src/main/resources/injicertify/VCIMockIDAForVd11/AuthorizationCodeForMockIDA/AuthorizationCodeForMockIDA.yml rename to api-test/src/main/resources/injicertify/VCIMockIDAForVd11/AuthorizationCodeForMockIDA/AuthorizationCodeForMockIDA.yml diff --git a/apitest/src/main/resources/injicertify/VCIMockIDAForVd11/AuthorizationCodeForMockIDA/AuthorizationCodeForMockIDAResult.hbs b/api-test/src/main/resources/injicertify/VCIMockIDAForVd11/AuthorizationCodeForMockIDA/AuthorizationCodeForMockIDAResult.hbs similarity index 100% rename from apitest/src/main/resources/injicertify/VCIMockIDAForVd11/AuthorizationCodeForMockIDA/AuthorizationCodeForMockIDAResult.hbs rename to api-test/src/main/resources/injicertify/VCIMockIDAForVd11/AuthorizationCodeForMockIDA/AuthorizationCodeForMockIDAResult.hbs diff --git a/apitest/src/main/resources/injicertify/VCIMockIDAForVd11/GenerateTokenForMockIDA/GenerateTokenForMockIDA.hbs b/api-test/src/main/resources/injicertify/VCIMockIDAForVd11/GenerateTokenForMockIDA/GenerateTokenForMockIDA.hbs similarity index 100% rename from apitest/src/main/resources/injicertify/VCIMockIDAForVd11/GenerateTokenForMockIDA/GenerateTokenForMockIDA.hbs rename to api-test/src/main/resources/injicertify/VCIMockIDAForVd11/GenerateTokenForMockIDA/GenerateTokenForMockIDA.hbs diff --git a/apitest/src/main/resources/injicertify/VCIMockIDAForVd11/GenerateTokenForMockIDA/GenerateTokenForMockIDA.yml b/api-test/src/main/resources/injicertify/VCIMockIDAForVd11/GenerateTokenForMockIDA/GenerateTokenForMockIDA.yml similarity index 100% rename from apitest/src/main/resources/injicertify/VCIMockIDAForVd11/GenerateTokenForMockIDA/GenerateTokenForMockIDA.yml rename to api-test/src/main/resources/injicertify/VCIMockIDAForVd11/GenerateTokenForMockIDA/GenerateTokenForMockIDA.yml diff --git a/apitest/src/main/resources/injicertify/VCIMockIDAForVd11/GenerateTokenForMockIDA/GenerateTokenForMockIDAResult.hbs b/api-test/src/main/resources/injicertify/VCIMockIDAForVd11/GenerateTokenForMockIDA/GenerateTokenForMockIDAResult.hbs similarity index 100% rename from apitest/src/main/resources/injicertify/VCIMockIDAForVd11/GenerateTokenForMockIDA/GenerateTokenForMockIDAResult.hbs rename to api-test/src/main/resources/injicertify/VCIMockIDAForVd11/GenerateTokenForMockIDA/GenerateTokenForMockIDAResult.hbs diff --git a/apitest/src/main/resources/injicertify/VCIMockIDAForVd11/GetCredentialForMockIDA/GetCredentialForMockIDA.hbs b/api-test/src/main/resources/injicertify/VCIMockIDAForVd11/GetCredentialForMockIDA/GetCredentialForMockIDA.hbs similarity index 100% rename from apitest/src/main/resources/injicertify/VCIMockIDAForVd11/GetCredentialForMockIDA/GetCredentialForMockIDA.hbs rename to api-test/src/main/resources/injicertify/VCIMockIDAForVd11/GetCredentialForMockIDA/GetCredentialForMockIDA.hbs diff --git a/apitest/src/main/resources/injicertify/VCIMockIDAForVd11/GetCredentialForMockIDA/GetCredentialForMockIDA.yml b/api-test/src/main/resources/injicertify/VCIMockIDAForVd11/GetCredentialForMockIDA/GetCredentialForMockIDA.yml similarity index 100% rename from apitest/src/main/resources/injicertify/VCIMockIDAForVd11/GetCredentialForMockIDA/GetCredentialForMockIDA.yml rename to api-test/src/main/resources/injicertify/VCIMockIDAForVd11/GetCredentialForMockIDA/GetCredentialForMockIDA.yml diff --git a/apitest/src/main/resources/injicertify/VCIMockIDAForVd11/GetCredentialForMockIDA/GetCredentialForMockIDAResult.hbs b/api-test/src/main/resources/injicertify/VCIMockIDAForVd11/GetCredentialForMockIDA/GetCredentialForMockIDAResult.hbs similarity index 100% rename from apitest/src/main/resources/injicertify/VCIMockIDAForVd11/GetCredentialForMockIDA/GetCredentialForMockIDAResult.hbs rename to api-test/src/main/resources/injicertify/VCIMockIDAForVd11/GetCredentialForMockIDA/GetCredentialForMockIDAResult.hbs diff --git a/apitest/src/main/resources/injicertify/VCIMockIDAForVd11/OAuthDetailsRequestForMockIDA/OAuthDetailsRequestForMockIDA.hbs b/api-test/src/main/resources/injicertify/VCIMockIDAForVd11/OAuthDetailsRequestForMockIDA/OAuthDetailsRequestForMockIDA.hbs similarity index 100% rename from apitest/src/main/resources/injicertify/VCIMockIDAForVd11/OAuthDetailsRequestForMockIDA/OAuthDetailsRequestForMockIDA.hbs rename to api-test/src/main/resources/injicertify/VCIMockIDAForVd11/OAuthDetailsRequestForMockIDA/OAuthDetailsRequestForMockIDA.hbs diff --git a/apitest/src/main/resources/injicertify/VCIMockIDAForVd11/OAuthDetailsRequestForMockIDA/OAuthDetailsRequestForMockIDA.yml b/api-test/src/main/resources/injicertify/VCIMockIDAForVd11/OAuthDetailsRequestForMockIDA/OAuthDetailsRequestForMockIDA.yml similarity index 100% rename from apitest/src/main/resources/injicertify/VCIMockIDAForVd11/OAuthDetailsRequestForMockIDA/OAuthDetailsRequestForMockIDA.yml rename to api-test/src/main/resources/injicertify/VCIMockIDAForVd11/OAuthDetailsRequestForMockIDA/OAuthDetailsRequestForMockIDA.yml diff --git a/apitest/src/main/resources/injicertify/VCIMockIDAForVd11/OAuthDetailsRequestForMockIDA/OAuthDetailsRequestForMockIDAResult.hbs b/api-test/src/main/resources/injicertify/VCIMockIDAForVd11/OAuthDetailsRequestForMockIDA/OAuthDetailsRequestForMockIDAResult.hbs similarity index 100% rename from apitest/src/main/resources/injicertify/VCIMockIDAForVd11/OAuthDetailsRequestForMockIDA/OAuthDetailsRequestForMockIDAResult.hbs rename to api-test/src/main/resources/injicertify/VCIMockIDAForVd11/OAuthDetailsRequestForMockIDA/OAuthDetailsRequestForMockIDAResult.hbs diff --git a/apitest/src/main/resources/injicertify/VCIMockIDAForVd12/AuthenticateUserForMockIDA/AuthenticateUserForMockIDA.hbs b/api-test/src/main/resources/injicertify/VCIMockIDAForVd12/AuthenticateUserForMockIDA/AuthenticateUserForMockIDA.hbs similarity index 100% rename from apitest/src/main/resources/injicertify/VCIMockIDAForVd12/AuthenticateUserForMockIDA/AuthenticateUserForMockIDA.hbs rename to api-test/src/main/resources/injicertify/VCIMockIDAForVd12/AuthenticateUserForMockIDA/AuthenticateUserForMockIDA.hbs diff --git a/apitest/src/main/resources/injicertify/VCIMockIDAForVd12/AuthenticateUserForMockIDA/AuthenticateUserForMockIDA.yml b/api-test/src/main/resources/injicertify/VCIMockIDAForVd12/AuthenticateUserForMockIDA/AuthenticateUserForMockIDA.yml similarity index 91% rename from apitest/src/main/resources/injicertify/VCIMockIDAForVd12/AuthenticateUserForMockIDA/AuthenticateUserForMockIDA.yml rename to api-test/src/main/resources/injicertify/VCIMockIDAForVd12/AuthenticateUserForMockIDA/AuthenticateUserForMockIDA.yml index d91fc985..c65ea254 100644 --- a/apitest/src/main/resources/injicertify/VCIMockIDAForVd12/AuthenticateUserForMockIDA/AuthenticateUserForMockIDA.yml +++ b/api-test/src/main/resources/injicertify/VCIMockIDAForVd12/AuthenticateUserForMockIDA/AuthenticateUserForMockIDA.yml @@ -11,7 +11,7 @@ AuthenticateUserVCIForMockIDA: "encodedHash": "$ID:ESignet_OAuthDetailsRequest_ForMockIDA_Vd12_uin_all_Valid_Smoke_sid_encodedResp$", "requestTime": "$TIMESTAMP$", "transactionId": "$ID:ESignet_OAuthDetailsRequest_ForMockIDA_Vd12_uin_all_Valid_Smoke_sid_transactionId$", - "individualId": "6553455", + "individualId": "$ID:AddIdentity_For_Mock_Valid_smoke_Pos_UIN$", "authFactorType" : "OTP", "challenge" : "111111", "format": "alpha-numeric", @@ -19,7 +19,7 @@ AuthenticateUserVCIForMockIDA: "encodedHash": "$ID:ESignet_OAuthDetailsRequest_ForMockIDA_Vd12_uin_all_Valid_Smoke_sid_encodedResp$", "requestTime": "$TIMESTAMP$", "transactionId": "$ID:ESignet_OAuthDetailsRequest_ForMockIDA_Vd12_uin_all_Valid_Smoke_sid_transactionId$", - "individualId": "6553455", + "individualId": "$ID:AddIdentity_For_Mock_Valid_smoke_Pos_UIN$", "otpChannels": [{channel: "email"},{channel: "phone"}], "sendOtpReqTemplate": "injicertify/SendOtp/SendOtp", "sendOtpEndPoint": "$ESIGNETMOCKIDABASEURL$/v1/esignet/authorization/send-otp" diff --git a/apitest/src/main/resources/injicertify/VCIMockIDAForVd12/AuthorizationCodeForMockIDA/AuthorizationCodeForMockIDAResult.hbs b/api-test/src/main/resources/injicertify/VCIMockIDAForVd12/AuthenticateUserForMockIDA/AuthenticateUserForMockIDAResult.hbs similarity index 100% rename from apitest/src/main/resources/injicertify/VCIMockIDAForVd12/AuthorizationCodeForMockIDA/AuthorizationCodeForMockIDAResult.hbs rename to api-test/src/main/resources/injicertify/VCIMockIDAForVd12/AuthenticateUserForMockIDA/AuthenticateUserForMockIDAResult.hbs diff --git a/apitest/src/main/resources/injicertify/VCIMockIDAForVd12/AuthorizationCodeForMockIDA/AuthorizationCodeForMockIDA.hbs b/api-test/src/main/resources/injicertify/VCIMockIDAForVd12/AuthorizationCodeForMockIDA/AuthorizationCodeForMockIDA.hbs similarity index 100% rename from apitest/src/main/resources/injicertify/VCIMockIDAForVd12/AuthorizationCodeForMockIDA/AuthorizationCodeForMockIDA.hbs rename to api-test/src/main/resources/injicertify/VCIMockIDAForVd12/AuthorizationCodeForMockIDA/AuthorizationCodeForMockIDA.hbs diff --git a/apitest/src/main/resources/injicertify/VCIMockIDAForVd12/AuthorizationCodeForMockIDA/AuthorizationCodeForMockIDA.yml b/api-test/src/main/resources/injicertify/VCIMockIDAForVd12/AuthorizationCodeForMockIDA/AuthorizationCodeForMockIDA.yml similarity index 100% rename from apitest/src/main/resources/injicertify/VCIMockIDAForVd12/AuthorizationCodeForMockIDA/AuthorizationCodeForMockIDA.yml rename to api-test/src/main/resources/injicertify/VCIMockIDAForVd12/AuthorizationCodeForMockIDA/AuthorizationCodeForMockIDA.yml diff --git a/apitest/src/main/resources/injicertify/VCIMockIDAForVd12/GetCredentialForMockIDA/GetCredentialForMockIDAResult.hbs b/api-test/src/main/resources/injicertify/VCIMockIDAForVd12/AuthorizationCodeForMockIDA/AuthorizationCodeForMockIDAResult.hbs similarity index 100% rename from apitest/src/main/resources/injicertify/VCIMockIDAForVd12/GetCredentialForMockIDA/GetCredentialForMockIDAResult.hbs rename to api-test/src/main/resources/injicertify/VCIMockIDAForVd12/AuthorizationCodeForMockIDA/AuthorizationCodeForMockIDAResult.hbs diff --git a/apitest/src/main/resources/injicertify/VCIMockIDAForVd12/GenerateTokenForMockIDA/GenerateTokenForMockIDA.hbs b/api-test/src/main/resources/injicertify/VCIMockIDAForVd12/GenerateTokenForMockIDA/GenerateTokenForMockIDA.hbs similarity index 100% rename from apitest/src/main/resources/injicertify/VCIMockIDAForVd12/GenerateTokenForMockIDA/GenerateTokenForMockIDA.hbs rename to api-test/src/main/resources/injicertify/VCIMockIDAForVd12/GenerateTokenForMockIDA/GenerateTokenForMockIDA.hbs diff --git a/apitest/src/main/resources/injicertify/VCIMockIDAForVd12/GenerateTokenForMockIDA/GenerateTokenForMockIDA.yml b/api-test/src/main/resources/injicertify/VCIMockIDAForVd12/GenerateTokenForMockIDA/GenerateTokenForMockIDA.yml similarity index 100% rename from apitest/src/main/resources/injicertify/VCIMockIDAForVd12/GenerateTokenForMockIDA/GenerateTokenForMockIDA.yml rename to api-test/src/main/resources/injicertify/VCIMockIDAForVd12/GenerateTokenForMockIDA/GenerateTokenForMockIDA.yml diff --git a/apitest/src/main/resources/injicertify/VCIMockIDAForVd12/GenerateTokenForMockIDA/GenerateTokenForMockIDAResult.hbs b/api-test/src/main/resources/injicertify/VCIMockIDAForVd12/GenerateTokenForMockIDA/GenerateTokenForMockIDAResult.hbs similarity index 100% rename from apitest/src/main/resources/injicertify/VCIMockIDAForVd12/GenerateTokenForMockIDA/GenerateTokenForMockIDAResult.hbs rename to api-test/src/main/resources/injicertify/VCIMockIDAForVd12/GenerateTokenForMockIDA/GenerateTokenForMockIDAResult.hbs diff --git a/apitest/src/main/resources/injicertify/VCIMockIDAForVd12/GetCredentialForMockIDA/GetCredentialForMockIDA.hbs b/api-test/src/main/resources/injicertify/VCIMockIDAForVd12/GetCredentialForMockIDA/GetCredentialForMockIDA.hbs similarity index 100% rename from apitest/src/main/resources/injicertify/VCIMockIDAForVd12/GetCredentialForMockIDA/GetCredentialForMockIDA.hbs rename to api-test/src/main/resources/injicertify/VCIMockIDAForVd12/GetCredentialForMockIDA/GetCredentialForMockIDA.hbs diff --git a/apitest/src/main/resources/injicertify/VCIMockIDAForVd12/GetCredentialForMockIDA/GetCredentialForMockIDA.yml b/api-test/src/main/resources/injicertify/VCIMockIDAForVd12/GetCredentialForMockIDA/GetCredentialForMockIDA.yml similarity index 100% rename from apitest/src/main/resources/injicertify/VCIMockIDAForVd12/GetCredentialForMockIDA/GetCredentialForMockIDA.yml rename to api-test/src/main/resources/injicertify/VCIMockIDAForVd12/GetCredentialForMockIDA/GetCredentialForMockIDA.yml diff --git a/apitest/src/main/resources/injicertify/VCIMockIDAForVd12/OAuthDetailsRequestForMockIDA/OAuthDetailsRequestForMockIDAResult.hbs b/api-test/src/main/resources/injicertify/VCIMockIDAForVd12/GetCredentialForMockIDA/GetCredentialForMockIDAResult.hbs similarity index 100% rename from apitest/src/main/resources/injicertify/VCIMockIDAForVd12/OAuthDetailsRequestForMockIDA/OAuthDetailsRequestForMockIDAResult.hbs rename to api-test/src/main/resources/injicertify/VCIMockIDAForVd12/GetCredentialForMockIDA/GetCredentialForMockIDAResult.hbs diff --git a/apitest/src/main/resources/injicertify/VCIMockIDAForVd12/OAuthDetailsRequestForMockIDA/OAuthDetailsRequestForMockIDA.hbs b/api-test/src/main/resources/injicertify/VCIMockIDAForVd12/OAuthDetailsRequestForMockIDA/OAuthDetailsRequestForMockIDA.hbs similarity index 100% rename from apitest/src/main/resources/injicertify/VCIMockIDAForVd12/OAuthDetailsRequestForMockIDA/OAuthDetailsRequestForMockIDA.hbs rename to api-test/src/main/resources/injicertify/VCIMockIDAForVd12/OAuthDetailsRequestForMockIDA/OAuthDetailsRequestForMockIDA.hbs diff --git a/apitest/src/main/resources/injicertify/VCIMockIDAForVd12/OAuthDetailsRequestForMockIDA/OAuthDetailsRequestForMockIDA.yml b/api-test/src/main/resources/injicertify/VCIMockIDAForVd12/OAuthDetailsRequestForMockIDA/OAuthDetailsRequestForMockIDA.yml similarity index 100% rename from apitest/src/main/resources/injicertify/VCIMockIDAForVd12/OAuthDetailsRequestForMockIDA/OAuthDetailsRequestForMockIDA.yml rename to api-test/src/main/resources/injicertify/VCIMockIDAForVd12/OAuthDetailsRequestForMockIDA/OAuthDetailsRequestForMockIDA.yml diff --git a/apitest/src/main/resources/injicertify/VCIMockIDANegTC/AuthenticateUserForMockIDANegTC/AuthenticateUserForMockIDANegTCResult.hbs b/api-test/src/main/resources/injicertify/VCIMockIDAForVd12/OAuthDetailsRequestForMockIDA/OAuthDetailsRequestForMockIDAResult.hbs similarity index 100% rename from apitest/src/main/resources/injicertify/VCIMockIDANegTC/AuthenticateUserForMockIDANegTC/AuthenticateUserForMockIDANegTCResult.hbs rename to api-test/src/main/resources/injicertify/VCIMockIDAForVd12/OAuthDetailsRequestForMockIDA/OAuthDetailsRequestForMockIDAResult.hbs diff --git a/apitest/src/main/resources/injicertify/VCIMockIDANegTC/AuthenticateUserForMockIDANegTC/AuthenticateUserForMockIDANegTC.hbs b/api-test/src/main/resources/injicertify/VCIMockIDANegTC/AuthenticateUserForMockIDANegTC/AuthenticateUserForMockIDANegTC.hbs similarity index 100% rename from apitest/src/main/resources/injicertify/VCIMockIDANegTC/AuthenticateUserForMockIDANegTC/AuthenticateUserForMockIDANegTC.hbs rename to api-test/src/main/resources/injicertify/VCIMockIDANegTC/AuthenticateUserForMockIDANegTC/AuthenticateUserForMockIDANegTC.hbs diff --git a/apitest/src/main/resources/injicertify/VCIMockIDANegTC/AuthenticateUserForMockIDANegTC/AuthenticateUserForMockIDANegTC.yml b/api-test/src/main/resources/injicertify/VCIMockIDANegTC/AuthenticateUserForMockIDANegTC/AuthenticateUserForMockIDANegTC.yml similarity index 91% rename from apitest/src/main/resources/injicertify/VCIMockIDANegTC/AuthenticateUserForMockIDANegTC/AuthenticateUserForMockIDANegTC.yml rename to api-test/src/main/resources/injicertify/VCIMockIDANegTC/AuthenticateUserForMockIDANegTC/AuthenticateUserForMockIDANegTC.yml index 3431404c..5699d7c8 100644 --- a/apitest/src/main/resources/injicertify/VCIMockIDANegTC/AuthenticateUserForMockIDANegTC/AuthenticateUserForMockIDANegTC.yml +++ b/api-test/src/main/resources/injicertify/VCIMockIDANegTC/AuthenticateUserForMockIDANegTC/AuthenticateUserForMockIDANegTC.yml @@ -11,7 +11,7 @@ AuthenticateUserForMockIDANegTC: "encodedHash": "$ID:ESignet_OAuthDetailsRequest_ForMockIDA_uin_all_Valid_Smoke_sid_For_Neg_Flow_encodedResp$", "requestTime": "$TIMESTAMP$", "transactionId": "$ID:ESignet_OAuthDetailsRequest_ForMockIDA_uin_all_Valid_Smoke_sid_For_Neg_Flow_transactionId$", - "individualId": "6553455", + "individualId": "$ID:AddIdentity_For_Mock_Valid_smoke_Pos_UIN$", "authFactorType" : "OTP", "challenge" : "111111", "format": "alpha-numeric", @@ -19,7 +19,7 @@ AuthenticateUserForMockIDANegTC: "encodedHash": "$ID:ESignet_OAuthDetailsRequest_ForMockIDA_uin_all_Valid_Smoke_sid_For_Neg_Flow_encodedResp$", "requestTime": "$TIMESTAMP$", "transactionId": "$ID:ESignet_OAuthDetailsRequest_ForMockIDA_uin_all_Valid_Smoke_sid_For_Neg_Flow_transactionId$", - "individualId": "6553455", + "individualId": "$ID:AddIdentity_For_Mock_Valid_smoke_Pos_UIN$", "otpChannels": [{channel: "email"},{channel: "phone"}], "sendOtpReqTemplate": "injicertify/SendOtp/SendOtp", "sendOtpEndPoint": "$ESIGNETMOCKIDABASEURL$/v1/esignet/authorization/send-otp" diff --git a/apitest/src/main/resources/injicertify/VCIMockIDANegTC/AuthorizationCodeForMockIDANegTC/AuthorizationCodeForMockIDANegTCResult.hbs b/api-test/src/main/resources/injicertify/VCIMockIDANegTC/AuthenticateUserForMockIDANegTC/AuthenticateUserForMockIDANegTCResult.hbs similarity index 100% rename from apitest/src/main/resources/injicertify/VCIMockIDANegTC/AuthorizationCodeForMockIDANegTC/AuthorizationCodeForMockIDANegTCResult.hbs rename to api-test/src/main/resources/injicertify/VCIMockIDANegTC/AuthenticateUserForMockIDANegTC/AuthenticateUserForMockIDANegTCResult.hbs diff --git a/apitest/src/main/resources/injicertify/VCIMockIDANegTC/AuthorizationCodeForMockIDANegTC/AuthorizationCodeForMockIDANegTC.hbs b/api-test/src/main/resources/injicertify/VCIMockIDANegTC/AuthorizationCodeForMockIDANegTC/AuthorizationCodeForMockIDANegTC.hbs similarity index 100% rename from apitest/src/main/resources/injicertify/VCIMockIDANegTC/AuthorizationCodeForMockIDANegTC/AuthorizationCodeForMockIDANegTC.hbs rename to api-test/src/main/resources/injicertify/VCIMockIDANegTC/AuthorizationCodeForMockIDANegTC/AuthorizationCodeForMockIDANegTC.hbs diff --git a/apitest/src/main/resources/injicertify/VCIMockIDANegTC/AuthorizationCodeForMockIDANegTC/AuthorizationCodeForMockIDANegTC.yml b/api-test/src/main/resources/injicertify/VCIMockIDANegTC/AuthorizationCodeForMockIDANegTC/AuthorizationCodeForMockIDANegTC.yml similarity index 100% rename from apitest/src/main/resources/injicertify/VCIMockIDANegTC/AuthorizationCodeForMockIDANegTC/AuthorizationCodeForMockIDANegTC.yml rename to api-test/src/main/resources/injicertify/VCIMockIDANegTC/AuthorizationCodeForMockIDANegTC/AuthorizationCodeForMockIDANegTC.yml diff --git a/apitest/src/main/resources/injicertify/VCIMockIDANegTC/GetCredentialForMockIDANegTC/GetCredentialForMockIDANegTCResult.hbs b/api-test/src/main/resources/injicertify/VCIMockIDANegTC/AuthorizationCodeForMockIDANegTC/AuthorizationCodeForMockIDANegTCResult.hbs similarity index 100% rename from apitest/src/main/resources/injicertify/VCIMockIDANegTC/GetCredentialForMockIDANegTC/GetCredentialForMockIDANegTCResult.hbs rename to api-test/src/main/resources/injicertify/VCIMockIDANegTC/AuthorizationCodeForMockIDANegTC/AuthorizationCodeForMockIDANegTCResult.hbs diff --git a/apitest/src/main/resources/injicertify/VCIMockIDANegTC/GenerateTokenForMockIDANegTC/GenerateTokenForMockIDANegTC.hbs b/api-test/src/main/resources/injicertify/VCIMockIDANegTC/GenerateTokenForMockIDANegTC/GenerateTokenForMockIDANegTC.hbs similarity index 100% rename from apitest/src/main/resources/injicertify/VCIMockIDANegTC/GenerateTokenForMockIDANegTC/GenerateTokenForMockIDANegTC.hbs rename to api-test/src/main/resources/injicertify/VCIMockIDANegTC/GenerateTokenForMockIDANegTC/GenerateTokenForMockIDANegTC.hbs diff --git a/apitest/src/main/resources/injicertify/VCIMockIDANegTC/GenerateTokenForMockIDANegTC/GenerateTokenForMockIDANegTC.yml b/api-test/src/main/resources/injicertify/VCIMockIDANegTC/GenerateTokenForMockIDANegTC/GenerateTokenForMockIDANegTC.yml similarity index 100% rename from apitest/src/main/resources/injicertify/VCIMockIDANegTC/GenerateTokenForMockIDANegTC/GenerateTokenForMockIDANegTC.yml rename to api-test/src/main/resources/injicertify/VCIMockIDANegTC/GenerateTokenForMockIDANegTC/GenerateTokenForMockIDANegTC.yml diff --git a/apitest/src/main/resources/injicertify/VCIMockIDANegTC/GenerateTokenForMockIDANegTC/GenerateTokenForMockIDANegTCResult.hbs b/api-test/src/main/resources/injicertify/VCIMockIDANegTC/GenerateTokenForMockIDANegTC/GenerateTokenForMockIDANegTCResult.hbs similarity index 100% rename from apitest/src/main/resources/injicertify/VCIMockIDANegTC/GenerateTokenForMockIDANegTC/GenerateTokenForMockIDANegTCResult.hbs rename to api-test/src/main/resources/injicertify/VCIMockIDANegTC/GenerateTokenForMockIDANegTC/GenerateTokenForMockIDANegTCResult.hbs diff --git a/apitest/src/main/resources/injicertify/VCIMockIDANegTC/GetCredentialForMockIDANegTC/GetCredentialForMockIDANegTC.hbs b/api-test/src/main/resources/injicertify/VCIMockIDANegTC/GetCredentialForMockIDANegTC/GetCredentialForMockIDANegTC.hbs similarity index 100% rename from apitest/src/main/resources/injicertify/VCIMockIDANegTC/GetCredentialForMockIDANegTC/GetCredentialForMockIDANegTC.hbs rename to api-test/src/main/resources/injicertify/VCIMockIDANegTC/GetCredentialForMockIDANegTC/GetCredentialForMockIDANegTC.hbs diff --git a/apitest/src/main/resources/injicertify/VCIMockIDANegTC/GetCredentialForMockIDANegTC/GetCredentialForMockIDANegTC.yml b/api-test/src/main/resources/injicertify/VCIMockIDANegTC/GetCredentialForMockIDANegTC/GetCredentialForMockIDANegTC.yml similarity index 100% rename from apitest/src/main/resources/injicertify/VCIMockIDANegTC/GetCredentialForMockIDANegTC/GetCredentialForMockIDANegTC.yml rename to api-test/src/main/resources/injicertify/VCIMockIDANegTC/GetCredentialForMockIDANegTC/GetCredentialForMockIDANegTC.yml diff --git a/apitest/src/main/resources/injicertify/VCIMockIDANegTC/GetCredentialForMockIDANegTC/GetCredentialForMockIDANegTC2.hbs b/api-test/src/main/resources/injicertify/VCIMockIDANegTC/GetCredentialForMockIDANegTC/GetCredentialForMockIDANegTC2.hbs similarity index 100% rename from apitest/src/main/resources/injicertify/VCIMockIDANegTC/GetCredentialForMockIDANegTC/GetCredentialForMockIDANegTC2.hbs rename to api-test/src/main/resources/injicertify/VCIMockIDANegTC/GetCredentialForMockIDANegTC/GetCredentialForMockIDANegTC2.hbs diff --git a/apitest/src/main/resources/injicertify/VCIMockIDANegTC/OAuthDetailsRequestForMockIDANegTC/OAuthDetailsRequestForMockIDANegTCResult.hbs b/api-test/src/main/resources/injicertify/VCIMockIDANegTC/GetCredentialForMockIDANegTC/GetCredentialForMockIDANegTCResult.hbs similarity index 100% rename from apitest/src/main/resources/injicertify/VCIMockIDANegTC/OAuthDetailsRequestForMockIDANegTC/OAuthDetailsRequestForMockIDANegTCResult.hbs rename to api-test/src/main/resources/injicertify/VCIMockIDANegTC/GetCredentialForMockIDANegTC/GetCredentialForMockIDANegTCResult.hbs diff --git a/apitest/src/main/resources/injicertify/VCIMockIDANegTC/OAuthDetailsRequestForMockIDANegTC/OAuthDetailsRequestForMockIDANegTC.hbs b/api-test/src/main/resources/injicertify/VCIMockIDANegTC/OAuthDetailsRequestForMockIDANegTC/OAuthDetailsRequestForMockIDANegTC.hbs similarity index 100% rename from apitest/src/main/resources/injicertify/VCIMockIDANegTC/OAuthDetailsRequestForMockIDANegTC/OAuthDetailsRequestForMockIDANegTC.hbs rename to api-test/src/main/resources/injicertify/VCIMockIDANegTC/OAuthDetailsRequestForMockIDANegTC/OAuthDetailsRequestForMockIDANegTC.hbs diff --git a/apitest/src/main/resources/injicertify/VCIMockIDANegTC/OAuthDetailsRequestForMockIDANegTC/OAuthDetailsRequestForMockIDANegTC.yml b/api-test/src/main/resources/injicertify/VCIMockIDANegTC/OAuthDetailsRequestForMockIDANegTC/OAuthDetailsRequestForMockIDANegTC.yml similarity index 100% rename from apitest/src/main/resources/injicertify/VCIMockIDANegTC/OAuthDetailsRequestForMockIDANegTC/OAuthDetailsRequestForMockIDANegTC.yml rename to api-test/src/main/resources/injicertify/VCIMockIDANegTC/OAuthDetailsRequestForMockIDANegTC/OAuthDetailsRequestForMockIDANegTC.yml diff --git a/apitest/src/main/resources/injicertify/VCIMosipID/AuthenticateUserVCI/AuthenticateUserVCIResult.hbs b/api-test/src/main/resources/injicertify/VCIMockIDANegTC/OAuthDetailsRequestForMockIDANegTC/OAuthDetailsRequestForMockIDANegTCResult.hbs similarity index 100% rename from apitest/src/main/resources/injicertify/VCIMosipID/AuthenticateUserVCI/AuthenticateUserVCIResult.hbs rename to api-test/src/main/resources/injicertify/VCIMockIDANegTC/OAuthDetailsRequestForMockIDANegTC/OAuthDetailsRequestForMockIDANegTCResult.hbs diff --git a/apitest/src/main/resources/injicertify/VCIMosipID/AuthenticateUserVCI/AuthenticateUserVCI.hbs b/api-test/src/main/resources/injicertify/VCIMosipID/AuthenticateUserVCI/AuthenticateUserVCI.hbs similarity index 100% rename from apitest/src/main/resources/injicertify/VCIMosipID/AuthenticateUserVCI/AuthenticateUserVCI.hbs rename to api-test/src/main/resources/injicertify/VCIMosipID/AuthenticateUserVCI/AuthenticateUserVCI.hbs diff --git a/apitest/src/main/resources/injicertify/VCIMosipID/AuthenticateUserVCI/AuthenticateUserVCI.yml b/api-test/src/main/resources/injicertify/VCIMosipID/AuthenticateUserVCI/AuthenticateUserVCI.yml similarity index 55% rename from apitest/src/main/resources/injicertify/VCIMosipID/AuthenticateUserVCI/AuthenticateUserVCI.yml rename to api-test/src/main/resources/injicertify/VCIMosipID/AuthenticateUserVCI/AuthenticateUserVCI.yml index 2e96efac..d61c57a4 100644 --- a/apitest/src/main/resources/injicertify/VCIMosipID/AuthenticateUserVCI/AuthenticateUserVCI.yml +++ b/api-test/src/main/resources/injicertify/VCIMosipID/AuthenticateUserVCI/AuthenticateUserVCI.yml @@ -1,5 +1,5 @@ AuthenticateUserVCI: - InjiCertify_ESignet_AuthenticateUserVCI_uin_Otp_Valid_Smoke: + InjiCertify_ESignet_AuthenticateUserVCI_MOSIPID_uin_Otp_Valid_Smoke: endPoint: $ESIGNETMOSIPIDBASEURL$/v1/esignet/authorization/authenticate role: resident restMethod: post @@ -8,17 +8,17 @@ AuthenticateUserVCI: inputTemplate: injicertify/VCIMosipID/AuthenticateUserVCI/AuthenticateUserVCI outputTemplate: injicertify/VCIMosipID/AuthenticateUserVCI/AuthenticateUserVCIResult input: '{ - "encodedHash": "$ID:ESignet_OAuthDetailsRequest_VCI_uin_all_Valid_Smoke_sid_encodedResp$", + "encodedHash": "$ID:ESignet_OAuthDetailsRequest_VCI_MOSIPID_uin_all_Valid_Smoke_sid_encodedResp$", "requestTime": "$TIMESTAMP$", - "transactionId": "$ID:ESignet_OAuthDetailsRequest_VCI_uin_all_Valid_Smoke_sid_transactionId$", - "individualId": "$ID:AddIdentity_Valid_Params_VCI_uin_smoke_Pos_UIN$", + "transactionId": "$ID:ESignet_OAuthDetailsRequest_VCI_MOSIPID_uin_all_Valid_Smoke_sid_transactionId$", + "individualId": "$ID:AddIdentity_Valid_Params_VCI_MOSIPID_uin_smoke_Pos_UIN$", "authFactorType" : "OTP", - "challenge" : "$ID:AddIdentity_Valid_Params_VCI_uin_smoke_Pos_EMAIL$", + "challenge" : "$ID:AddIdentity_Valid_Params_VCI_MOSIPID_uin_smoke_Pos_EMAIL$", "sendOtp":{ - "encodedHash": "$ID:ESignet_OAuthDetailsRequest_VCI_uin_all_Valid_Smoke_sid_encodedResp$", + "encodedHash": "$ID:ESignet_OAuthDetailsRequest_VCI_MOSIPID_uin_all_Valid_Smoke_sid_encodedResp$", "requestTime": "$TIMESTAMP$", - "transactionId": "$ID:ESignet_OAuthDetailsRequest_VCI_uin_all_Valid_Smoke_sid_transactionId$", - "individualId": "$ID:AddIdentity_Valid_Params_VCI_uin_smoke_Pos_UIN$", + "transactionId": "$ID:ESignet_OAuthDetailsRequest_VCI_MOSIPID_uin_all_Valid_Smoke_sid_transactionId$", + "individualId": "$ID:AddIdentity_Valid_Params_VCI_MOSIPID_uin_smoke_Pos_UIN$", "otpChannels": [{channel: "email"},{channel: "phone"}], "sendOtpReqTemplate": "injicertify/SendOtp/SendOtp", "sendOtpEndPoint": "$ESIGNETMOSIPIDBASEURL$/v1/esignet/authorization/send-otp" diff --git a/apitest/src/main/resources/injicertify/VCIMosipIDForVD11/AuthenticateUserVCI/AuthenticateUserVCIResult.hbs b/api-test/src/main/resources/injicertify/VCIMosipID/AuthenticateUserVCI/AuthenticateUserVCIResult.hbs similarity index 100% rename from apitest/src/main/resources/injicertify/VCIMosipIDForVD11/AuthenticateUserVCI/AuthenticateUserVCIResult.hbs rename to api-test/src/main/resources/injicertify/VCIMosipID/AuthenticateUserVCI/AuthenticateUserVCIResult.hbs diff --git a/apitest/src/main/resources/injicertify/VCIMosipID/AuthorizationCodeVCI/AuthorizationCodeVCI.hbs b/api-test/src/main/resources/injicertify/VCIMosipID/AuthorizationCodeVCI/AuthorizationCodeVCI.hbs similarity index 100% rename from apitest/src/main/resources/injicertify/VCIMosipID/AuthorizationCodeVCI/AuthorizationCodeVCI.hbs rename to api-test/src/main/resources/injicertify/VCIMosipID/AuthorizationCodeVCI/AuthorizationCodeVCI.hbs diff --git a/apitest/src/main/resources/injicertify/VCIMosipID/AuthorizationCodeVCI/AuthorizationCodeVCI.yml b/api-test/src/main/resources/injicertify/VCIMosipID/AuthorizationCodeVCI/AuthorizationCodeVCI.yml similarity index 61% rename from apitest/src/main/resources/injicertify/VCIMosipID/AuthorizationCodeVCI/AuthorizationCodeVCI.yml rename to api-test/src/main/resources/injicertify/VCIMosipID/AuthorizationCodeVCI/AuthorizationCodeVCI.yml index 5798c39b..6c129ec5 100644 --- a/apitest/src/main/resources/injicertify/VCIMosipID/AuthorizationCodeVCI/AuthorizationCodeVCI.yml +++ b/api-test/src/main/resources/injicertify/VCIMosipID/AuthorizationCodeVCI/AuthorizationCodeVCI.yml @@ -1,5 +1,5 @@ AuthorizationCodeVCI: - InjiCertify_ESignet_AuthorizationCode_VCI_uin_All_Valid_Smoke_sid: + InjiCertify_ESignet_AuthorizationCode_VCI_MOSIPID_uin_All_Valid_Smoke_sid: endPoint: $ESIGNETMOSIPIDBASEURL$/v1/esignet/authorization/auth-code role: resident restMethod: post @@ -8,9 +8,9 @@ AuthorizationCodeVCI: inputTemplate: injicertify/VCIMosipID/AuthorizationCodeVCI/AuthorizationCodeVCI outputTemplate: injicertify/VCIMosipID/AuthorizationCodeVCI/AuthorizationCodeVCIResult input: '{ - "encodedHash": "$ID:ESignet_OAuthDetailsRequest_VCI_uin_all_Valid_Smoke_sid_encodedResp$", + "encodedHash": "$ID:ESignet_OAuthDetailsRequest_VCI_MOSIPID_uin_all_Valid_Smoke_sid_encodedResp$", "requestTime": "$TIMESTAMP$", - "transactionId": "$ID:ESignet_OAuthDetailsRequest_VCI_uin_all_Valid_Smoke_sid_transactionId$" + "transactionId": "$ID:ESignet_OAuthDetailsRequest_VCI_MOSIPID_uin_all_Valid_Smoke_sid_transactionId$" }' output: '{ }' \ No newline at end of file diff --git a/apitest/src/main/resources/injicertify/VCIMosipID/AuthorizationCodeVCI/AuthorizationCodeVCIResult.hbs b/api-test/src/main/resources/injicertify/VCIMosipID/AuthorizationCodeVCI/AuthorizationCodeVCIResult.hbs similarity index 100% rename from apitest/src/main/resources/injicertify/VCIMosipID/AuthorizationCodeVCI/AuthorizationCodeVCIResult.hbs rename to api-test/src/main/resources/injicertify/VCIMosipID/AuthorizationCodeVCI/AuthorizationCodeVCIResult.hbs diff --git a/apitest/src/main/resources/injicertify/VCIMosipID/GenerateTokenVCI/GenerateTokenVCI.hbs b/api-test/src/main/resources/injicertify/VCIMosipID/GenerateTokenVCI/GenerateTokenVCI.hbs similarity index 100% rename from apitest/src/main/resources/injicertify/VCIMosipID/GenerateTokenVCI/GenerateTokenVCI.hbs rename to api-test/src/main/resources/injicertify/VCIMosipID/GenerateTokenVCI/GenerateTokenVCI.hbs diff --git a/apitest/src/main/resources/injicertify/VCIMosipID/GenerateTokenVCI/GenerateTokenVCI.yml b/api-test/src/main/resources/injicertify/VCIMosipID/GenerateTokenVCI/GenerateTokenVCI.yml similarity index 81% rename from apitest/src/main/resources/injicertify/VCIMosipID/GenerateTokenVCI/GenerateTokenVCI.yml rename to api-test/src/main/resources/injicertify/VCIMosipID/GenerateTokenVCI/GenerateTokenVCI.yml index e9498de0..713cdd51 100644 --- a/apitest/src/main/resources/injicertify/VCIMosipID/GenerateTokenVCI/GenerateTokenVCI.yml +++ b/api-test/src/main/resources/injicertify/VCIMosipID/GenerateTokenVCI/GenerateTokenVCI.yml @@ -8,8 +8,8 @@ GenerateTokenVCI: outputTemplate: injicertify/VCIMosipID/GenerateTokenVCI/GenerateTokenVCIResult input: '{ "grant_type": "authorization_code", - "code": "$ID:ESignet_AuthorizationCode_VCI_uin_All_Valid_Smoke_sid_code$", - "client_id": "$ID:CreateOIDCClient_all_Valid_Smoke_sid_clientId$", + "code": "$ID:ESignet_AuthorizationCode_VCI_MOSIPID_uin_All_Valid_Smoke_sid_code$", + "client_id": "$ID:CreateOIDCClient_MOSIPID_all_Valid_Smoke_sid_clientId$", "client_assertion_type": "urn:ietf:params:oauth:client-assertion-type:jwt-bearer", "client_assertion": "$CLIENT_ASSERTION_JWT$", "redirect_uri": "$IDPREDIRECTURI$", diff --git a/apitest/src/main/resources/injicertify/VCIMosipID/GenerateTokenVCI/GenerateTokenVCIResult.hbs b/api-test/src/main/resources/injicertify/VCIMosipID/GenerateTokenVCI/GenerateTokenVCIResult.hbs similarity index 100% rename from apitest/src/main/resources/injicertify/VCIMosipID/GenerateTokenVCI/GenerateTokenVCIResult.hbs rename to api-test/src/main/resources/injicertify/VCIMosipID/GenerateTokenVCI/GenerateTokenVCIResult.hbs diff --git a/apitest/src/main/resources/injicertify/VCIMosipID/GetCredentialMosipID/GetCredentialMosipID.hbs b/api-test/src/main/resources/injicertify/VCIMosipID/GetCredentialMosipID/GetCredentialMosipID.hbs similarity index 100% rename from apitest/src/main/resources/injicertify/VCIMosipID/GetCredentialMosipID/GetCredentialMosipID.hbs rename to api-test/src/main/resources/injicertify/VCIMosipID/GetCredentialMosipID/GetCredentialMosipID.hbs diff --git a/apitest/src/main/resources/injicertify/VCIMosipID/GetCredentialMosipID/GetCredentialMosipID.yml b/api-test/src/main/resources/injicertify/VCIMosipID/GetCredentialMosipID/GetCredentialMosipID.yml similarity index 90% rename from apitest/src/main/resources/injicertify/VCIMosipID/GetCredentialMosipID/GetCredentialMosipID.yml rename to api-test/src/main/resources/injicertify/VCIMosipID/GetCredentialMosipID/GetCredentialMosipID.yml index a1f988d1..1c950e10 100644 --- a/apitest/src/main/resources/injicertify/VCIMosipID/GetCredentialMosipID/GetCredentialMosipID.yml +++ b/api-test/src/main/resources/injicertify/VCIMosipID/GetCredentialMosipID/GetCredentialMosipID.yml @@ -8,7 +8,7 @@ GetCredentialMosipID: inputTemplate: injicertify/VCIMosipID/GetCredentialMosipID/GetCredentialMosipID outputTemplate: injicertify/VCIMosipID/GetCredentialMosipID/GetCredentialMosipIDResult input: '{ - "client_id": "$ID:CreateOIDCClient_all_Valid_Smoke_sid_clientId$", + "client_id": "$ID:CreateOIDCClient_MOSIPID_all_Valid_Smoke_sid_clientId$", "idpAccessToken": "$ID:ESignet_GenerateTokenVCIMOSIPID_uin_Valid_Smoke_sid_access_token$", "format": "ldp_vc", "type": [{types: "VerifiableCredential"}, {types: "MOSIPVerifiableCredential"}], diff --git a/apitest/src/main/resources/injicertify/VCIMosipID/GetCredentialMosipID/GetCredentialMosipIDResult.hbs b/api-test/src/main/resources/injicertify/VCIMosipID/GetCredentialMosipID/GetCredentialMosipIDResult.hbs similarity index 100% rename from apitest/src/main/resources/injicertify/VCIMosipID/GetCredentialMosipID/GetCredentialMosipIDResult.hbs rename to api-test/src/main/resources/injicertify/VCIMosipID/GetCredentialMosipID/GetCredentialMosipIDResult.hbs diff --git a/apitest/src/main/resources/injicertify/VCIMosipID/OAuthDetailsRequestVCI/OAuthDetailsRequestVCI.hbs b/api-test/src/main/resources/injicertify/VCIMosipID/OAuthDetailsRequestVCI/OAuthDetailsRequestVCI.hbs similarity index 100% rename from apitest/src/main/resources/injicertify/VCIMosipID/OAuthDetailsRequestVCI/OAuthDetailsRequestVCI.hbs rename to api-test/src/main/resources/injicertify/VCIMosipID/OAuthDetailsRequestVCI/OAuthDetailsRequestVCI.hbs diff --git a/apitest/src/main/resources/injicertify/VCIMosipID/OAuthDetailsRequestVCI/OAuthDetailsRequestVCI.yml b/api-test/src/main/resources/injicertify/VCIMosipID/OAuthDetailsRequestVCI/OAuthDetailsRequestVCI.yml similarity index 84% rename from apitest/src/main/resources/injicertify/VCIMosipID/OAuthDetailsRequestVCI/OAuthDetailsRequestVCI.yml rename to api-test/src/main/resources/injicertify/VCIMosipID/OAuthDetailsRequestVCI/OAuthDetailsRequestVCI.yml index f3a45760..f13423dd 100644 --- a/apitest/src/main/resources/injicertify/VCIMosipID/OAuthDetailsRequestVCI/OAuthDetailsRequestVCI.yml +++ b/api-test/src/main/resources/injicertify/VCIMosipID/OAuthDetailsRequestVCI/OAuthDetailsRequestVCI.yml @@ -1,5 +1,5 @@ OAuthDetailsRequestVCI: - InjiCertify_ESignet_OAuthDetailsRequest_VCI_uin_all_Valid_Smoke_sid: + InjiCertify_ESignet_OAuthDetailsRequest_VCI_MOSIPID_uin_all_Valid_Smoke_sid: endPoint: $ESIGNETMOSIPIDBASEURL$/v1/esignet/authorization/v2/oauth-details role: resident restMethod: post @@ -8,7 +8,7 @@ OAuthDetailsRequestVCI: outputTemplate: injicertify/VCIMosipID/OAuthDetailsRequestVCI/OAuthDetailsRequestVCIResult input: '{ "requestTime": "$TIMESTAMP$", - "clientId": "$ID:CreateOIDCClient_all_Valid_Smoke_sid_clientId$", + "clientId": "$ID:CreateOIDCClient_MOSIPID_all_Valid_Smoke_sid_clientId$", "scope": "mosip_identity_vc_ldp", "responseType": "code", "redirectUri": "$IDPREDIRECTURI$", diff --git a/apitest/src/main/resources/injicertify/VCIMosipID/OAuthDetailsRequestVCI/OAuthDetailsRequestVCIResult.hbs b/api-test/src/main/resources/injicertify/VCIMosipID/OAuthDetailsRequestVCI/OAuthDetailsRequestVCIResult.hbs similarity index 100% rename from apitest/src/main/resources/injicertify/VCIMosipID/OAuthDetailsRequestVCI/OAuthDetailsRequestVCIResult.hbs rename to api-test/src/main/resources/injicertify/VCIMosipID/OAuthDetailsRequestVCI/OAuthDetailsRequestVCIResult.hbs diff --git a/apitest/src/main/resources/injicertify/VCIMosipIDForVD11/AuthenticateUserVCI/AuthenticateUserVCI.hbs b/api-test/src/main/resources/injicertify/VCIMosipIDForVD11/AuthenticateUserVCI/AuthenticateUserVCI.hbs similarity index 100% rename from apitest/src/main/resources/injicertify/VCIMosipIDForVD11/AuthenticateUserVCI/AuthenticateUserVCI.hbs rename to api-test/src/main/resources/injicertify/VCIMosipIDForVD11/AuthenticateUserVCI/AuthenticateUserVCI.hbs diff --git a/apitest/src/main/resources/injicertify/VCIMosipIDForVD11/AuthenticateUserVCI/AuthenticateUserVCI.yml b/api-test/src/main/resources/injicertify/VCIMosipIDForVD11/AuthenticateUserVCI/AuthenticateUserVCI.yml similarity index 69% rename from apitest/src/main/resources/injicertify/VCIMosipIDForVD11/AuthenticateUserVCI/AuthenticateUserVCI.yml rename to api-test/src/main/resources/injicertify/VCIMosipIDForVD11/AuthenticateUserVCI/AuthenticateUserVCI.yml index e787bf35..e1a760ea 100644 --- a/apitest/src/main/resources/injicertify/VCIMosipIDForVD11/AuthenticateUserVCI/AuthenticateUserVCI.yml +++ b/api-test/src/main/resources/injicertify/VCIMosipIDForVD11/AuthenticateUserVCI/AuthenticateUserVCI.yml @@ -1,5 +1,5 @@ AuthenticateUserVCI: - InjiCertify_ESignet_AuthenticateUserVCI_ForVD11_uin_Otp_Valid_Smoke: + InjiCertify_ESignet_AuthenticateUserVCI_ForVD11_MOSIPID_uin_Otp_Valid_Smoke: endPoint: $ESIGNETMOSIPIDBASEURL$/v1/esignet/authorization/authenticate role: resident restMethod: post @@ -8,17 +8,17 @@ AuthenticateUserVCI: inputTemplate: injicertify/VCIMosipIDForVD11/AuthenticateUserVCI/AuthenticateUserVCI outputTemplate: injicertify/VCIMosipIDForVD11/AuthenticateUserVCI/AuthenticateUserVCIResult input: '{ - "encodedHash": "$ID:ESignet_OAuthDetailsRequest_VCI_ForVD11_uin_all_Valid_Smoke_sid_encodedResp$", + "encodedHash": "$ID:ESignet_OAuthDetailsRequest_VCI_ForVD11_MOSIPID_uin_all_Valid_Smoke_sid_encodedResp$", "requestTime": "$TIMESTAMP$", - "transactionId": "$ID:ESignet_OAuthDetailsRequest_VCI_ForVD11_uin_all_Valid_Smoke_sid_transactionId$", - "individualId": "$ID:AddIdentity_Valid_Params_VCI_uin_smoke_Pos_UIN$", + "transactionId": "$ID:ESignet_OAuthDetailsRequest_VCI_ForVD11_MOSIPID_uin_all_Valid_Smoke_sid_transactionId$", + "individualId": "$ID:AddIdentity_Valid_Params_VCI_MOSIPID_uin_smoke_Pos_UIN$", "authFactorType" : "OTP", - "challenge" : "$ID:AddIdentity_Valid_Params_VCI_uin_smoke_Pos_EMAIL$", + "challenge" : "$ID:AddIdentity_Valid_Params_VCI_MOSIPID_uin_smoke_Pos_EMAIL$", "sendOtp":{ - "encodedHash": "$ID:ESignet_OAuthDetailsRequest_VCI_ForVD11_uin_all_Valid_Smoke_sid_encodedResp$", + "encodedHash": "$ID:ESignet_OAuthDetailsRequest_VCI_ForVD11_MOSIPID_uin_all_Valid_Smoke_sid_encodedResp$", "requestTime": "$TIMESTAMP$", - "transactionId": "$ID:ESignet_OAuthDetailsRequest_VCI_ForVD11_uin_all_Valid_Smoke_sid_transactionId$", - "individualId": "$ID:AddIdentity_Valid_Params_VCI_uin_smoke_Pos_UIN$", + "transactionId": "$ID:ESignet_OAuthDetailsRequest_VCI_ForVD11_MOSIPID_uin_all_Valid_Smoke_sid_transactionId$", + "individualId": "$ID:AddIdentity_Valid_Params_VCI_MOSIPID_uin_smoke_Pos_UIN$", "otpChannels": [{channel: "email"},{channel: "phone"}], "sendOtpReqTemplate": "injicertify/SendOtp/SendOtp", "sendOtpEndPoint": "$ESIGNETMOSIPIDBASEURL$/v1/esignet/authorization/send-otp" diff --git a/apitest/src/main/resources/injicertify/VCIMosipIDForVD12/AuthenticateUserVCI/AuthenticateUserVCIResult.hbs b/api-test/src/main/resources/injicertify/VCIMosipIDForVD11/AuthenticateUserVCI/AuthenticateUserVCIResult.hbs similarity index 100% rename from apitest/src/main/resources/injicertify/VCIMosipIDForVD12/AuthenticateUserVCI/AuthenticateUserVCIResult.hbs rename to api-test/src/main/resources/injicertify/VCIMosipIDForVD11/AuthenticateUserVCI/AuthenticateUserVCIResult.hbs diff --git a/apitest/src/main/resources/injicertify/VCIMosipIDForVD11/AuthorizationCodeVCI/AuthorizationCodeVCI.hbs b/api-test/src/main/resources/injicertify/VCIMosipIDForVD11/AuthorizationCodeVCI/AuthorizationCodeVCI.hbs similarity index 100% rename from apitest/src/main/resources/injicertify/VCIMosipIDForVD11/AuthorizationCodeVCI/AuthorizationCodeVCI.hbs rename to api-test/src/main/resources/injicertify/VCIMosipIDForVD11/AuthorizationCodeVCI/AuthorizationCodeVCI.hbs diff --git a/apitest/src/main/resources/injicertify/VCIMosipIDForVD11/AuthorizationCodeVCI/AuthorizationCodeVCI.yml b/api-test/src/main/resources/injicertify/VCIMosipIDForVD11/AuthorizationCodeVCI/AuthorizationCodeVCI.yml similarity index 76% rename from apitest/src/main/resources/injicertify/VCIMosipIDForVD11/AuthorizationCodeVCI/AuthorizationCodeVCI.yml rename to api-test/src/main/resources/injicertify/VCIMosipIDForVD11/AuthorizationCodeVCI/AuthorizationCodeVCI.yml index d2d1686a..a6dcc0e1 100644 --- a/apitest/src/main/resources/injicertify/VCIMosipIDForVD11/AuthorizationCodeVCI/AuthorizationCodeVCI.yml +++ b/api-test/src/main/resources/injicertify/VCIMosipIDForVD11/AuthorizationCodeVCI/AuthorizationCodeVCI.yml @@ -1,5 +1,5 @@ AuthorizationCodeVCI: - InjiCertify_ESignet_AuthorizationCode_VCI_ForVD11_uin_All_Valid_Smoke_sid: + InjiCertify_ESignet_AuthorizationCode_VCI_ForVD11_MOSIPID_uin_All_Valid_Smoke_sid: endPoint: $ESIGNETMOSIPIDBASEURL$/v1/esignet/authorization/auth-code role: resident restMethod: post @@ -8,9 +8,9 @@ AuthorizationCodeVCI: inputTemplate: injicertify/VCIMosipIDForVD11/AuthorizationCodeVCI/AuthorizationCodeVCI outputTemplate: injicertify/VCIMosipIDForVD11/AuthorizationCodeVCI/AuthorizationCodeVCIResult input: '{ - "encodedHash": "$ID:ESignet_OAuthDetailsRequest_VCI_ForVD11_uin_all_Valid_Smoke_sid_encodedResp$", + "encodedHash": "$ID:ESignet_OAuthDetailsRequest_VCI_ForVD11_MOSIPID_uin_all_Valid_Smoke_sid_encodedResp$", "requestTime": "$TIMESTAMP$", - "transactionId": "$ID:ESignet_OAuthDetailsRequest_VCI_ForVD11_uin_all_Valid_Smoke_sid_transactionId$" + "transactionId": "$ID:ESignet_OAuthDetailsRequest_VCI_ForVD11_MOSIPID_uin_all_Valid_Smoke_sid_transactionId$" }' output: '{ }' \ No newline at end of file diff --git a/apitest/src/main/resources/injicertify/VCIMosipIDForVD11/AuthorizationCodeVCI/AuthorizationCodeVCIResult.hbs b/api-test/src/main/resources/injicertify/VCIMosipIDForVD11/AuthorizationCodeVCI/AuthorizationCodeVCIResult.hbs similarity index 100% rename from apitest/src/main/resources/injicertify/VCIMosipIDForVD11/AuthorizationCodeVCI/AuthorizationCodeVCIResult.hbs rename to api-test/src/main/resources/injicertify/VCIMosipIDForVD11/AuthorizationCodeVCI/AuthorizationCodeVCIResult.hbs diff --git a/apitest/src/main/resources/injicertify/VCIMosipIDForVD11/GenerateTokenVCI/GenerateTokenVCI.hbs b/api-test/src/main/resources/injicertify/VCIMosipIDForVD11/GenerateTokenVCI/GenerateTokenVCI.hbs similarity index 100% rename from apitest/src/main/resources/injicertify/VCIMosipIDForVD11/GenerateTokenVCI/GenerateTokenVCI.hbs rename to api-test/src/main/resources/injicertify/VCIMosipIDForVD11/GenerateTokenVCI/GenerateTokenVCI.hbs diff --git a/apitest/src/main/resources/injicertify/VCIMosipIDForVD11/GenerateTokenVCI/GenerateTokenVCI.yml b/api-test/src/main/resources/injicertify/VCIMosipIDForVD11/GenerateTokenVCI/GenerateTokenVCI.yml similarity index 80% rename from apitest/src/main/resources/injicertify/VCIMosipIDForVD11/GenerateTokenVCI/GenerateTokenVCI.yml rename to api-test/src/main/resources/injicertify/VCIMosipIDForVD11/GenerateTokenVCI/GenerateTokenVCI.yml index 88696d21..3dbbe47c 100644 --- a/apitest/src/main/resources/injicertify/VCIMosipIDForVD11/GenerateTokenVCI/GenerateTokenVCI.yml +++ b/api-test/src/main/resources/injicertify/VCIMosipIDForVD11/GenerateTokenVCI/GenerateTokenVCI.yml @@ -8,8 +8,8 @@ GenerateTokenVCI: outputTemplate: injicertify/VCIMosipIDForVD11/GenerateTokenVCI/GenerateTokenVCIResult input: '{ "grant_type": "authorization_code", - "code": "$ID:ESignet_AuthorizationCode_VCI_ForVD11_uin_All_Valid_Smoke_sid_code$", - "client_id": "$ID:CreateOIDCClient_all_Valid_Smoke_sid_clientId$", + "code": "$ID:ESignet_AuthorizationCode_VCI_ForVD11_MOSIPID_uin_All_Valid_Smoke_sid_code$", + "client_id": "$ID:CreateOIDCClient_MOSIPID_all_Valid_Smoke_sid_clientId$", "client_assertion_type": "urn:ietf:params:oauth:client-assertion-type:jwt-bearer", "client_assertion": "$CLIENT_ASSERTION_JWT$", "redirect_uri": "$IDPREDIRECTURI$", diff --git a/apitest/src/main/resources/injicertify/VCIMosipIDForVD11/GenerateTokenVCI/GenerateTokenVCIResult.hbs b/api-test/src/main/resources/injicertify/VCIMosipIDForVD11/GenerateTokenVCI/GenerateTokenVCIResult.hbs similarity index 100% rename from apitest/src/main/resources/injicertify/VCIMosipIDForVD11/GenerateTokenVCI/GenerateTokenVCIResult.hbs rename to api-test/src/main/resources/injicertify/VCIMosipIDForVD11/GenerateTokenVCI/GenerateTokenVCIResult.hbs diff --git a/apitest/src/main/resources/injicertify/VCIMosipIDForVD11/GetCredentialMosipID/GetCredentialMosipID.hbs b/api-test/src/main/resources/injicertify/VCIMosipIDForVD11/GetCredentialMosipID/GetCredentialMosipID.hbs similarity index 100% rename from apitest/src/main/resources/injicertify/VCIMosipIDForVD11/GetCredentialMosipID/GetCredentialMosipID.hbs rename to api-test/src/main/resources/injicertify/VCIMosipIDForVD11/GetCredentialMosipID/GetCredentialMosipID.hbs diff --git a/apitest/src/main/resources/injicertify/VCIMosipIDForVD11/GetCredentialMosipID/GetCredentialMosipID.yml b/api-test/src/main/resources/injicertify/VCIMosipIDForVD11/GetCredentialMosipID/GetCredentialMosipID.yml similarity index 91% rename from apitest/src/main/resources/injicertify/VCIMosipIDForVD11/GetCredentialMosipID/GetCredentialMosipID.yml rename to api-test/src/main/resources/injicertify/VCIMosipIDForVD11/GetCredentialMosipID/GetCredentialMosipID.yml index 12bcbc2e..32c65819 100644 --- a/apitest/src/main/resources/injicertify/VCIMosipIDForVD11/GetCredentialMosipID/GetCredentialMosipID.yml +++ b/api-test/src/main/resources/injicertify/VCIMosipIDForVD11/GetCredentialMosipID/GetCredentialMosipID.yml @@ -8,7 +8,7 @@ GetCredentialMosipID: inputTemplate: injicertify/VCIMosipIDForVD11/GetCredentialMosipID/GetCredentialMosipID outputTemplate: injicertify/VCIMosipIDForVD11/GetCredentialMosipID/GetCredentialMosipIDResult input: '{ - "client_id": "$ID:CreateOIDCClient_all_Valid_Smoke_sid_clientId$", + "client_id": "$ID:CreateOIDCClient_MOSIPID_all_Valid_Smoke_sid_clientId$", "idpAccessToken": "$ID:ESignet_GenerateTokenVCIMOSIPID_ForVD11_uin_Valid_Smoke_sid_access_token$", "format": "ldp_vc", "type": [{types: "VerifiableCredential"}, {types: "MOSIPVerifiableCredential"}], diff --git a/apitest/src/main/resources/injicertify/VCIMosipIDForVD11/GetCredentialMosipID/GetCredentialMosipIDResult.hbs b/api-test/src/main/resources/injicertify/VCIMosipIDForVD11/GetCredentialMosipID/GetCredentialMosipIDResult.hbs similarity index 100% rename from apitest/src/main/resources/injicertify/VCIMosipIDForVD11/GetCredentialMosipID/GetCredentialMosipIDResult.hbs rename to api-test/src/main/resources/injicertify/VCIMosipIDForVD11/GetCredentialMosipID/GetCredentialMosipIDResult.hbs diff --git a/apitest/src/main/resources/injicertify/VCIMosipIDForVD11/OAuthDetailsRequestVCI/OAuthDetailsRequestVCI.hbs b/api-test/src/main/resources/injicertify/VCIMosipIDForVD11/OAuthDetailsRequestVCI/OAuthDetailsRequestVCI.hbs similarity index 100% rename from apitest/src/main/resources/injicertify/VCIMosipIDForVD11/OAuthDetailsRequestVCI/OAuthDetailsRequestVCI.hbs rename to api-test/src/main/resources/injicertify/VCIMosipIDForVD11/OAuthDetailsRequestVCI/OAuthDetailsRequestVCI.hbs diff --git a/apitest/src/main/resources/injicertify/VCIMosipIDForVD11/OAuthDetailsRequestVCI/OAuthDetailsRequestVCI.yml b/api-test/src/main/resources/injicertify/VCIMosipIDForVD11/OAuthDetailsRequestVCI/OAuthDetailsRequestVCI.yml similarity index 84% rename from apitest/src/main/resources/injicertify/VCIMosipIDForVD11/OAuthDetailsRequestVCI/OAuthDetailsRequestVCI.yml rename to api-test/src/main/resources/injicertify/VCIMosipIDForVD11/OAuthDetailsRequestVCI/OAuthDetailsRequestVCI.yml index 87c5f588..fbc0bae5 100644 --- a/apitest/src/main/resources/injicertify/VCIMosipIDForVD11/OAuthDetailsRequestVCI/OAuthDetailsRequestVCI.yml +++ b/api-test/src/main/resources/injicertify/VCIMosipIDForVD11/OAuthDetailsRequestVCI/OAuthDetailsRequestVCI.yml @@ -1,5 +1,5 @@ OAuthDetailsRequestVCI: - InjiCertify_ESignet_OAuthDetailsRequest_VCI_ForVD11_uin_all_Valid_Smoke_sid: + InjiCertify_ESignet_OAuthDetailsRequest_VCI_ForVD11_MOSIPID_uin_all_Valid_Smoke_sid: endPoint: $ESIGNETMOSIPIDBASEURL$/v1/esignet/authorization/v2/oauth-details role: resident restMethod: post @@ -8,7 +8,7 @@ OAuthDetailsRequestVCI: outputTemplate: injicertify/VCIMosipIDForVD11/OAuthDetailsRequestVCI/OAuthDetailsRequestVCIResult input: '{ "requestTime": "$TIMESTAMP$", - "clientId": "$ID:CreateOIDCClient_all_Valid_Smoke_sid_clientId$", + "clientId": "$ID:CreateOIDCClient_MOSIPID_all_Valid_Smoke_sid_clientId$", "scope": "mosip_identity_vc_ldp", "responseType": "code", "redirectUri": "$IDPREDIRECTURI$", diff --git a/apitest/src/main/resources/injicertify/VCIMosipIDForVD11/OAuthDetailsRequestVCI/OAuthDetailsRequestVCIResult.hbs b/api-test/src/main/resources/injicertify/VCIMosipIDForVD11/OAuthDetailsRequestVCI/OAuthDetailsRequestVCIResult.hbs similarity index 100% rename from apitest/src/main/resources/injicertify/VCIMosipIDForVD11/OAuthDetailsRequestVCI/OAuthDetailsRequestVCIResult.hbs rename to api-test/src/main/resources/injicertify/VCIMosipIDForVD11/OAuthDetailsRequestVCI/OAuthDetailsRequestVCIResult.hbs diff --git a/apitest/src/main/resources/injicertify/VCIMosipIDForVD12/AuthenticateUserVCI/AuthenticateUserVCI.hbs b/api-test/src/main/resources/injicertify/VCIMosipIDForVD12/AuthenticateUserVCI/AuthenticateUserVCI.hbs similarity index 100% rename from apitest/src/main/resources/injicertify/VCIMosipIDForVD12/AuthenticateUserVCI/AuthenticateUserVCI.hbs rename to api-test/src/main/resources/injicertify/VCIMosipIDForVD12/AuthenticateUserVCI/AuthenticateUserVCI.hbs diff --git a/apitest/src/main/resources/injicertify/VCIMosipIDForVD12/AuthenticateUserVCI/AuthenticateUserVCI.yml b/api-test/src/main/resources/injicertify/VCIMosipIDForVD12/AuthenticateUserVCI/AuthenticateUserVCI.yml similarity index 68% rename from apitest/src/main/resources/injicertify/VCIMosipIDForVD12/AuthenticateUserVCI/AuthenticateUserVCI.yml rename to api-test/src/main/resources/injicertify/VCIMosipIDForVD12/AuthenticateUserVCI/AuthenticateUserVCI.yml index f7c7c341..f20ab156 100644 --- a/apitest/src/main/resources/injicertify/VCIMosipIDForVD12/AuthenticateUserVCI/AuthenticateUserVCI.yml +++ b/api-test/src/main/resources/injicertify/VCIMosipIDForVD12/AuthenticateUserVCI/AuthenticateUserVCI.yml @@ -1,5 +1,5 @@ AuthenticateUserVCI: - InjiCertify_ESignet_AuthenticateUserVCI_ForVD12_uin_Otp_Valid_Smoke: + InjiCertify_ESignet_AuthenticateUserVCI_ForVD12_MOSIPID_uin_Otp_Valid_Smoke: endPoint: $ESIGNETMOSIPIDBASEURL$/v1/esignet/authorization/authenticate role: resident restMethod: post @@ -8,17 +8,17 @@ AuthenticateUserVCI: inputTemplate: injicertify/VCIMosipIDForVD12/AuthenticateUserVCI/AuthenticateUserVCI outputTemplate: injicertify/VCIMosipIDForVD12/AuthenticateUserVCI/AuthenticateUserVCIResult input: '{ - "encodedHash": "$ID:ESignet_OAuthDetailsRequest_VCI_ForVD12_uin_all_Valid_Smoke_sid_encodedResp$", + "encodedHash": "$ID:ESignet_OAuthDetailsRequest_VCI_ForVD12_MOSIPID_uin_all_Valid_Smoke_sid_encodedResp$", "requestTime": "$TIMESTAMP$", - "transactionId": "$ID:ESignet_OAuthDetailsRequest_VCI_ForVD12_uin_all_Valid_Smoke_sid_transactionId$", - "individualId": "$ID:AddIdentity_Valid_Params_VCI_uin_smoke_Pos_UIN$", + "transactionId": "$ID:ESignet_OAuthDetailsRequest_VCI_ForVD12_MOSIPID_uin_all_Valid_Smoke_sid_transactionId$", + "individualId": "$ID:AddIdentity_Valid_Params_VCI_MOSIPID_uin_smoke_Pos_UIN$", "authFactorType" : "OTP", - "challenge" : "$ID:AddIdentity_Valid_Params_VCI_uin_smoke_Pos_EMAIL$", + "challenge" : "$ID:AddIdentity_Valid_Params_VCI_MOSIPID_uin_smoke_Pos_EMAIL$", "sendOtp":{ - "encodedHash": "$ID:ESignet_OAuthDetailsRequest_VCI_ForVD12_uin_all_Valid_Smoke_sid_encodedResp$", + "encodedHash": "$ID:ESignet_OAuthDetailsRequest_VCI_ForVD12_MOSIPID_uin_all_Valid_Smoke_sid_encodedResp$", "requestTime": "$TIMESTAMP$", - "transactionId": "$ID:ESignet_OAuthDetailsRequest_VCI_ForVD12_uin_all_Valid_Smoke_sid_transactionId$", - "individualId": "$ID:AddIdentity_Valid_Params_VCI_uin_smoke_Pos_UIN$", + "transactionId": "$ID:ESignet_OAuthDetailsRequest_VCI_ForVD12_MOSIPID_uin_all_Valid_Smoke_sid_transactionId$", + "individualId": "$ID:AddIdentity_Valid_Params_VCI_MOSIPID_uin_smoke_Pos_UIN$", "otpChannels": [{channel: "email"},{channel: "phone"}], "sendOtpReqTemplate": "injicertify/SendOtp/SendOtp", "sendOtpEndPoint": "/v1/esignet/authorization/send-otp" diff --git a/apitest/src/main/resources/injicertify/VCIMosipIDForVD12/AuthorizationCodeVCI/AuthorizationCodeVCIResult.hbs b/api-test/src/main/resources/injicertify/VCIMosipIDForVD12/AuthenticateUserVCI/AuthenticateUserVCIResult.hbs similarity index 100% rename from apitest/src/main/resources/injicertify/VCIMosipIDForVD12/AuthorizationCodeVCI/AuthorizationCodeVCIResult.hbs rename to api-test/src/main/resources/injicertify/VCIMosipIDForVD12/AuthenticateUserVCI/AuthenticateUserVCIResult.hbs diff --git a/apitest/src/main/resources/injicertify/VCIMosipIDForVD12/AuthorizationCodeVCI/AuthorizationCodeVCI.hbs b/api-test/src/main/resources/injicertify/VCIMosipIDForVD12/AuthorizationCodeVCI/AuthorizationCodeVCI.hbs similarity index 100% rename from apitest/src/main/resources/injicertify/VCIMosipIDForVD12/AuthorizationCodeVCI/AuthorizationCodeVCI.hbs rename to api-test/src/main/resources/injicertify/VCIMosipIDForVD12/AuthorizationCodeVCI/AuthorizationCodeVCI.hbs diff --git a/apitest/src/main/resources/injicertify/VCIMosipIDForVD12/AuthorizationCodeVCI/AuthorizationCodeVCI.yml b/api-test/src/main/resources/injicertify/VCIMosipIDForVD12/AuthorizationCodeVCI/AuthorizationCodeVCI.yml similarity index 76% rename from apitest/src/main/resources/injicertify/VCIMosipIDForVD12/AuthorizationCodeVCI/AuthorizationCodeVCI.yml rename to api-test/src/main/resources/injicertify/VCIMosipIDForVD12/AuthorizationCodeVCI/AuthorizationCodeVCI.yml index 1f9b9d7e..5b02b246 100644 --- a/apitest/src/main/resources/injicertify/VCIMosipIDForVD12/AuthorizationCodeVCI/AuthorizationCodeVCI.yml +++ b/api-test/src/main/resources/injicertify/VCIMosipIDForVD12/AuthorizationCodeVCI/AuthorizationCodeVCI.yml @@ -1,5 +1,5 @@ AuthorizationCodeVCI: - InjiCertify_ESignet_AuthorizationCode_VCI_ForVD12_uin_All_Valid_Smoke_sid: + InjiCertify_ESignet_AuthorizationCode_VCI_ForVD12_MOSIPID_uin_All_Valid_Smoke_sid: endPoint: $ESIGNETMOSIPIDBASEURL$/v1/esignet/authorization/auth-code role: resident restMethod: post @@ -8,9 +8,9 @@ AuthorizationCodeVCI: inputTemplate: injicertify/VCIMosipIDForVD12/AuthorizationCodeVCI/AuthorizationCodeVCI outputTemplate: injicertify/VCIMosipIDForVD12/AuthorizationCodeVCI/AuthorizationCodeVCIResult input: '{ - "encodedHash": "$ID:ESignet_OAuthDetailsRequest_VCI_ForVD12_uin_all_Valid_Smoke_sid_encodedResp$", + "encodedHash": "$ID:ESignet_OAuthDetailsRequest_VCI_ForVD12_MOSIPID_uin_all_Valid_Smoke_sid_encodedResp$", "requestTime": "$TIMESTAMP$", - "transactionId": "$ID:ESignet_OAuthDetailsRequest_VCI_ForVD12_uin_all_Valid_Smoke_sid_transactionId$" + "transactionId": "$ID:ESignet_OAuthDetailsRequest_VCI_ForVD12_MOSIPID_uin_all_Valid_Smoke_sid_transactionId$" }' output: '{ }' \ No newline at end of file diff --git a/apitest/src/main/resources/injicertify/VCIMosipIDForVD12/GetCredentialMosipID/GetCredentialMosipIDResult.hbs b/api-test/src/main/resources/injicertify/VCIMosipIDForVD12/AuthorizationCodeVCI/AuthorizationCodeVCIResult.hbs similarity index 100% rename from apitest/src/main/resources/injicertify/VCIMosipIDForVD12/GetCredentialMosipID/GetCredentialMosipIDResult.hbs rename to api-test/src/main/resources/injicertify/VCIMosipIDForVD12/AuthorizationCodeVCI/AuthorizationCodeVCIResult.hbs diff --git a/apitest/src/main/resources/injicertify/VCIMosipIDForVD12/GenerateTokenVCI/GenerateTokenVCI.hbs b/api-test/src/main/resources/injicertify/VCIMosipIDForVD12/GenerateTokenVCI/GenerateTokenVCI.hbs similarity index 100% rename from apitest/src/main/resources/injicertify/VCIMosipIDForVD12/GenerateTokenVCI/GenerateTokenVCI.hbs rename to api-test/src/main/resources/injicertify/VCIMosipIDForVD12/GenerateTokenVCI/GenerateTokenVCI.hbs diff --git a/apitest/src/main/resources/injicertify/VCIMosipIDForVD12/GenerateTokenVCI/GenerateTokenVCI.yml b/api-test/src/main/resources/injicertify/VCIMosipIDForVD12/GenerateTokenVCI/GenerateTokenVCI.yml similarity index 80% rename from apitest/src/main/resources/injicertify/VCIMosipIDForVD12/GenerateTokenVCI/GenerateTokenVCI.yml rename to api-test/src/main/resources/injicertify/VCIMosipIDForVD12/GenerateTokenVCI/GenerateTokenVCI.yml index d039f864..cb3d9ae1 100644 --- a/apitest/src/main/resources/injicertify/VCIMosipIDForVD12/GenerateTokenVCI/GenerateTokenVCI.yml +++ b/api-test/src/main/resources/injicertify/VCIMosipIDForVD12/GenerateTokenVCI/GenerateTokenVCI.yml @@ -8,8 +8,8 @@ GenerateTokenVCI: outputTemplate: injicertify/VCIMosipIDForVD12/GenerateTokenVCI/GenerateTokenVCIResult input: '{ "grant_type": "authorization_code", - "code": "$ID:ESignet_AuthorizationCode_VCI_ForVD12_uin_All_Valid_Smoke_sid_code$", - "client_id": "$ID:CreateOIDCClient_all_Valid_Smoke_sid_clientId$", + "code": "$ID:ESignet_AuthorizationCode_VCI_ForVD12_MOSIPID_uin_All_Valid_Smoke_sid_code$", + "client_id": "$ID:CreateOIDCClient_MOSIPID_all_Valid_Smoke_sid_clientId$", "client_assertion_type": "urn:ietf:params:oauth:client-assertion-type:jwt-bearer", "client_assertion": "$CLIENT_ASSERTION_JWT$", "redirect_uri": "$IDPREDIRECTURI$", diff --git a/apitest/src/main/resources/injicertify/VCIMosipIDForVD12/GenerateTokenVCI/GenerateTokenVCIResult.hbs b/api-test/src/main/resources/injicertify/VCIMosipIDForVD12/GenerateTokenVCI/GenerateTokenVCIResult.hbs similarity index 100% rename from apitest/src/main/resources/injicertify/VCIMosipIDForVD12/GenerateTokenVCI/GenerateTokenVCIResult.hbs rename to api-test/src/main/resources/injicertify/VCIMosipIDForVD12/GenerateTokenVCI/GenerateTokenVCIResult.hbs diff --git a/apitest/src/main/resources/injicertify/VCIMosipIDForVD12/GetCredentialMosipID/GetCredentialMosipID.hbs b/api-test/src/main/resources/injicertify/VCIMosipIDForVD12/GetCredentialMosipID/GetCredentialMosipID.hbs similarity index 100% rename from apitest/src/main/resources/injicertify/VCIMosipIDForVD12/GetCredentialMosipID/GetCredentialMosipID.hbs rename to api-test/src/main/resources/injicertify/VCIMosipIDForVD12/GetCredentialMosipID/GetCredentialMosipID.hbs diff --git a/apitest/src/main/resources/injicertify/VCIMosipIDForVD12/GetCredentialMosipID/GetCredentialMosipID.yml b/api-test/src/main/resources/injicertify/VCIMosipIDForVD12/GetCredentialMosipID/GetCredentialMosipID.yml similarity index 91% rename from apitest/src/main/resources/injicertify/VCIMosipIDForVD12/GetCredentialMosipID/GetCredentialMosipID.yml rename to api-test/src/main/resources/injicertify/VCIMosipIDForVD12/GetCredentialMosipID/GetCredentialMosipID.yml index 306df9d4..d0c83d08 100644 --- a/apitest/src/main/resources/injicertify/VCIMosipIDForVD12/GetCredentialMosipID/GetCredentialMosipID.yml +++ b/api-test/src/main/resources/injicertify/VCIMosipIDForVD12/GetCredentialMosipID/GetCredentialMosipID.yml @@ -8,7 +8,7 @@ GetCredentialMosipID: inputTemplate: injicertify/VCIMosipIDForVD12/GetCredentialMosipID/GetCredentialMosipID outputTemplate: injicertify/VCIMosipIDForVD12/GetCredentialMosipID/GetCredentialMosipIDResult input: '{ - "client_id": "$ID:CreateOIDCClient_all_Valid_Smoke_sid_clientId$", + "client_id": "$ID:CreateOIDCClient_MOSIPID_all_Valid_Smoke_sid_clientId$", "idpAccessToken": "$ID:ESignet_GenerateTokenVCIMOSIPID_ForVD12_uin_Valid_Smoke_sid_access_token$", "format": "ldp_vc", "type": [{types: "VerifiableCredential"}, {types: "MOSIPVerifiableCredential"}], diff --git a/apitest/src/main/resources/injicertify/VCIMosipIDForVD12/OAuthDetailsRequestVCI/OAuthDetailsRequestVCIResult.hbs b/api-test/src/main/resources/injicertify/VCIMosipIDForVD12/GetCredentialMosipID/GetCredentialMosipIDResult.hbs similarity index 100% rename from apitest/src/main/resources/injicertify/VCIMosipIDForVD12/OAuthDetailsRequestVCI/OAuthDetailsRequestVCIResult.hbs rename to api-test/src/main/resources/injicertify/VCIMosipIDForVD12/GetCredentialMosipID/GetCredentialMosipIDResult.hbs diff --git a/apitest/src/main/resources/injicertify/VCIMosipIDForVD12/OAuthDetailsRequestVCI/OAuthDetailsRequestVCI.hbs b/api-test/src/main/resources/injicertify/VCIMosipIDForVD12/OAuthDetailsRequestVCI/OAuthDetailsRequestVCI.hbs similarity index 100% rename from apitest/src/main/resources/injicertify/VCIMosipIDForVD12/OAuthDetailsRequestVCI/OAuthDetailsRequestVCI.hbs rename to api-test/src/main/resources/injicertify/VCIMosipIDForVD12/OAuthDetailsRequestVCI/OAuthDetailsRequestVCI.hbs diff --git a/apitest/src/main/resources/injicertify/VCIMosipIDForVD12/OAuthDetailsRequestVCI/OAuthDetailsRequestVCI.yml b/api-test/src/main/resources/injicertify/VCIMosipIDForVD12/OAuthDetailsRequestVCI/OAuthDetailsRequestVCI.yml similarity index 84% rename from apitest/src/main/resources/injicertify/VCIMosipIDForVD12/OAuthDetailsRequestVCI/OAuthDetailsRequestVCI.yml rename to api-test/src/main/resources/injicertify/VCIMosipIDForVD12/OAuthDetailsRequestVCI/OAuthDetailsRequestVCI.yml index 3aab1a99..a16070ae 100644 --- a/apitest/src/main/resources/injicertify/VCIMosipIDForVD12/OAuthDetailsRequestVCI/OAuthDetailsRequestVCI.yml +++ b/api-test/src/main/resources/injicertify/VCIMosipIDForVD12/OAuthDetailsRequestVCI/OAuthDetailsRequestVCI.yml @@ -1,5 +1,5 @@ OAuthDetailsRequestVCI: - InjiCertify_ESignet_OAuthDetailsRequest_VCI_ForVD12_uin_all_Valid_Smoke_sid: + InjiCertify_ESignet_OAuthDetailsRequest_VCI_ForVD12_MOSIPID_uin_all_Valid_Smoke_sid: endPoint: $ESIGNETMOSIPIDBASEURL$/v1/esignet/authorization/v2/oauth-details role: resident restMethod: post @@ -8,7 +8,7 @@ OAuthDetailsRequestVCI: outputTemplate: injicertify/VCIMosipIDForVD12/OAuthDetailsRequestVCI/OAuthDetailsRequestVCIResult input: '{ "requestTime": "$TIMESTAMP$", - "clientId": "$ID:CreateOIDCClient_all_Valid_Smoke_sid_clientId$", + "clientId": "$ID:CreateOIDCClient_MOSIPID_all_Valid_Smoke_sid_clientId$", "scope": "mosip_identity_vc_ldp", "responseType": "code", "redirectUri": "$IDPREDIRECTURI$", diff --git a/api-test/src/main/resources/injicertify/VCIMosipIDForVD12/OAuthDetailsRequestVCI/OAuthDetailsRequestVCIResult.hbs b/api-test/src/main/resources/injicertify/VCIMosipIDForVD12/OAuthDetailsRequestVCI/OAuthDetailsRequestVCIResult.hbs new file mode 100644 index 00000000..9e26dfee --- /dev/null +++ b/api-test/src/main/resources/injicertify/VCIMosipIDForVD12/OAuthDetailsRequestVCI/OAuthDetailsRequestVCIResult.hbs @@ -0,0 +1 @@ +{} \ No newline at end of file diff --git a/apitest/src/main/resources/injicertify/autoGeneratedId.properties b/api-test/src/main/resources/injicertify/autoGeneratedId.properties similarity index 100% rename from apitest/src/main/resources/injicertify/autoGeneratedId.properties rename to api-test/src/main/resources/injicertify/autoGeneratedId.properties diff --git a/apitest/src/main/resources/injicertify/error.hbs b/api-test/src/main/resources/injicertify/error.hbs similarity index 100% rename from apitest/src/main/resources/injicertify/error.hbs rename to api-test/src/main/resources/injicertify/error.hbs diff --git a/apitest/src/main/resources/injicertify/error2.hbs b/api-test/src/main/resources/injicertify/error2.hbs similarity index 100% rename from apitest/src/main/resources/injicertify/error2.hbs rename to api-test/src/main/resources/injicertify/error2.hbs 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/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/apitest/src/main/resources/testCaseSkippedList.txt b/api-test/src/main/resources/testCaseSkippedList.txt similarity index 100% rename from apitest/src/main/resources/testCaseSkippedList.txt rename to api-test/src/main/resources/testCaseSkippedList.txt diff --git a/apitest/testNgXmlFiles/injicertifyPrerequisiteSuite.xml b/api-test/testNgXmlFiles/injicertifyPrerequisiteSuite.xml similarity index 60% rename from apitest/testNgXmlFiles/injicertifyPrerequisiteSuite.xml rename to api-test/testNgXmlFiles/injicertifyPrerequisiteSuite.xml index 72a6f53b..3b58c2b1 100644 --- a/apitest/testNgXmlFiles/injicertifyPrerequisiteSuite.xml +++ b/api-test/testNgXmlFiles/injicertifyPrerequisiteSuite.xml @@ -9,7 +9,17 @@ - + + + + + + + + diff --git a/api-test/testNgXmlFiles/injicertifySuite.xml b/api-test/testNgXmlFiles/injicertifySuite.xml new file mode 100644 index 00000000..88ba827b --- /dev/null +++ b/api-test/testNgXmlFiles/injicertifySuite.xml @@ -0,0 +1,670 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/apitest/src/main/java/io/mosip/testrig/apirig/injicertify/testscripts/AddIdentity.java b/apitest/src/main/java/io/mosip/testrig/apirig/injicertify/testscripts/AddIdentity.java deleted file mode 100644 index 9a202a64..00000000 --- a/apitest/src/main/java/io/mosip/testrig/apirig/injicertify/testscripts/AddIdentity.java +++ /dev/null @@ -1,182 +0,0 @@ -package io.mosip.testrig.apirig.injicertify.testscripts; - -import java.lang.reflect.Field; -import java.text.DateFormat; -import java.text.SimpleDateFormat; -import java.util.Calendar; -import java.util.List; -import java.util.Map; - -import javax.ws.rs.core.MediaType; - -import org.apache.log4j.Level; -import org.apache.log4j.Logger; -import org.testng.ITest; -import org.testng.ITestContext; -import org.testng.ITestResult; -import org.testng.Reporter; -import org.testng.SkipException; -import org.testng.annotations.AfterClass; -import org.testng.annotations.AfterMethod; -import org.testng.annotations.BeforeClass; -import org.testng.annotations.DataProvider; -import org.testng.annotations.Test; -import org.testng.internal.BaseTestMethod; -import org.testng.internal.TestResult; - -import io.mosip.testrig.apirig.dto.OutputValidationDto; -import io.mosip.testrig.apirig.dto.TestCaseDTO; -import io.mosip.testrig.apirig.injicertify.utils.InjiCertifyConfigManager; -import io.mosip.testrig.apirig.injicertify.utils.InjiCertifyUtil; -import io.mosip.testrig.apirig.testrunner.HealthChecker; -import io.mosip.testrig.apirig.testrunner.JsonPrecondtion; -import io.mosip.testrig.apirig.utils.AdminTestException; -import io.mosip.testrig.apirig.utils.AdminTestUtil; -import io.mosip.testrig.apirig.utils.AuthenticationTestException; -import io.mosip.testrig.apirig.utils.GlobalConstants; -import io.mosip.testrig.apirig.utils.KernelAuthentication; -import io.mosip.testrig.apirig.utils.OutputValidationUtil; -import io.mosip.testrig.apirig.utils.ReportUtil; -import io.mosip.testrig.apirig.utils.RestClient; -import io.restassured.response.Response; - -public class AddIdentity extends AdminTestUtil implements ITest { - private static final Logger logger = Logger.getLogger(AddIdentity.class); - protected String testCaseName = ""; - public Response response = null; - - /** - * get current testcaseName - */ - @Override - public String getTestName() { - return testCaseName; - - } - - @BeforeClass - public static void setLogLevel() { - if (InjiCertifyConfigManager.IsDebugEnabled()) - logger.setLevel(Level.ALL); - else - logger.setLevel(Level.ERROR); - } - - /** - * Data provider class provides test case list - * - * @return object of data provider - */ - @DataProvider(name = "testcaselist") - public Object[] getTestCaseList(ITestContext context) { - String ymlFile = context.getCurrentXmlTest().getLocalParameters().get("ymlFile"); - logger.info("Started executing yml: " + ymlFile); - return getYmlTestData(ymlFile); - } - - /** - * Test method for OTP Generation execution - * - * @param objTestParameters - * @param testScenario - * @param testcaseName - * @throws AuthenticationTestException - * @throws AdminTestException - */ - @Test(dataProvider = "testcaselist") - public void test(TestCaseDTO testCaseDTO) throws AuthenticationTestException, AdminTestException { - testCaseName = testCaseDTO.getTestCaseName(); - testCaseName = InjiCertifyUtil.isTestCaseValidForExecution(testCaseDTO); - if (HealthChecker.signalTerminateExecution) { - throw new SkipException( - GlobalConstants.TARGET_ENV_HEALTH_CHECK_FAILED + HealthChecker.healthCheckFailureMapS); - } - testCaseDTO.setInputTemplate(AdminTestUtil.modifySchemaGenerateHbs(testCaseDTO.isRegenerateHbs())); - String uin = JsonPrecondtion - .getValueFromJson( - RestClient.getRequestWithCookie(ApplnURI + "/v1/idgenerator/uin", MediaType.APPLICATION_JSON, - MediaType.APPLICATION_JSON, COOKIENAME, - new KernelAuthentication().getTokenByRole(testCaseDTO.getRole())).asString(), - "response.uin"); - - testCaseName = isTestCaseValidForExecution(testCaseDTO); - - DateFormat dateFormatter = new SimpleDateFormat("yyyyMMddHHmmss"); - Calendar cal = Calendar.getInstance(); - String timestampValue = dateFormatter.format(cal.getTime()); - String genRid = "27847" + generateRandomNumberString(10) + timestampValue; - - String jsonInput = testCaseDTO.getInput(); - - String inputJson = getJsonFromTemplate(jsonInput, testCaseDTO.getInputTemplate(), false); - - inputJson = inputJson.replace("$UIN$", uin); - inputJson = inputJson.replace("$RID$", genRid); - String phoneNumber = ""; - String email = testCaseName +"@mosip.net"; - if (inputJson.contains("$PHONENUMBERFORIDENTITY$")) { - if (!phoneSchemaRegex.isEmpty()) - try { - phoneNumber = genStringAsperRegex(phoneSchemaRegex); - } catch (Exception e) { - logger.error(e.getMessage()); - } - inputJson = replaceKeywordWithValue(inputJson, "$PHONENUMBERFORIDENTITY$", phoneNumber); - inputJson = replaceKeywordWithValue(inputJson, "$EMAILVALUE$", email); - } - - response = postWithBodyAndCookie(ApplnURI + testCaseDTO.getEndPoint(), inputJson, COOKIENAME, - testCaseDTO.getRole(), testCaseDTO.getTestCaseName()); - - Map> ouputValid = OutputValidationUtil.doJsonOutputValidation( - response.asString(), getJsonFromTemplate(testCaseDTO.getOutput(), testCaseDTO.getOutputTemplate()), - testCaseDTO, response.getStatusCode()); - Reporter.log(ReportUtil.getOutputValidationReport(ouputValid)); - - if (!OutputValidationUtil.publishOutputResult(ouputValid)) - throw new AdminTestException("Failed at output validation"); - if (testCaseDTO.getTestCaseName().contains("_Pos")) { - writeAutoGeneratedId(testCaseDTO.getTestCaseName(), "UIN", uin); - writeAutoGeneratedId(testCaseDTO.getTestCaseName(), "RID", genRid); - writeAutoGeneratedId(testCaseDTO.getTestCaseName(), "EMAIL", testCaseDTO.getTestCaseName() + "@mosip.net"); - writeAutoGeneratedId(testCaseDTO.getTestCaseName(), "PHONE", phoneNumber); - } - if (!phoneNumber.isEmpty()) - writeAutoGeneratedId(testCaseDTO.getTestCaseName(), "PHONE", phoneNumber); - } - - /** - * The method ser current test name to result - * - * @param result - */ - @AfterMethod(alwaysRun = true) - public void setResultTestName(ITestResult result) { - try { - Field method = TestResult.class.getDeclaredField("m_method"); - method.setAccessible(true); - method.set(result, result.getMethod().clone()); - BaseTestMethod baseTestMethod = (BaseTestMethod) result.getMethod(); - Field f = baseTestMethod.getClass().getSuperclass().getDeclaredField("m_methodName"); - f.setAccessible(true); - f.set(baseTestMethod, testCaseName); - } catch (Exception e) { - Reporter.log("Exception : " + e.getMessage()); - } - } - - @AfterClass(alwaysRun = true) - public void waittime() { - - try { - logger.info( - "waiting for " + properties.getProperty("Delaytime") + " mili secs after UIN Generation In IDREPO"); - Thread.sleep(Long.parseLong(properties.getProperty("Delaytime"))); - - } catch (Exception e) { - logger.error("Exception : " + e.getMessage()); - Thread.currentThread().interrupt(); - } - - } -} diff --git a/apitest/testNgXmlFiles/injicertifySuite.xml b/apitest/testNgXmlFiles/injicertifySuite.xml deleted file mode 100644 index 1375509f..00000000 --- a/apitest/testNgXmlFiles/injicertifySuite.xml +++ /dev/null @@ -1,504 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/certify-service/src/main/java/io/mosip/certify/services/templating/VelocityTemplatingEngineImpl.java b/certify-service/src/main/java/io/mosip/certify/services/templating/VelocityTemplatingEngineImpl.java index 6f18df19..73be64f1 100644 --- a/certify-service/src/main/java/io/mosip/certify/services/templating/VelocityTemplatingEngineImpl.java +++ b/certify-service/src/main/java/io/mosip/certify/services/templating/VelocityTemplatingEngineImpl.java @@ -103,6 +103,8 @@ public String format(JSONObject templateInput, Map defaultSettin } else if (value instanceof String){ // entities which need to be quoted finalTemplate.put(key, JSONObject.wrap(value)); + } else { + finalTemplate.put(key, value); } } // Date: https://velocity.apache.org/tools/3.1/apidocs/org/apache/velocity/tools/generic/DateTool.html diff --git a/docker-compose/docker-compose-injistack/README.md b/docker-compose/docker-compose-injistack/README.md index 73a700fe..e99ffa09 100644 --- a/docker-compose/docker-compose-injistack/README.md +++ b/docker-compose/docker-compose-injistack/README.md @@ -138,6 +138,12 @@ docker-compose ps docker logs [container_name] ``` +## Hosting a public key in the form of a DID + +1. Extract the certificate from the [Ceritfy Endpoint](http://localhost:8090/v1/certify/system-info/certificate?applicationId=CERTIFY_MOCK_ED25519&referenceId=ED25519_SIGN) +2. Use `openssl x509 -pubkey -noout -in filename.pem` to convert the certificate to a public key. +3. Convert the public key to a publicKeyMultibase as per the [spec](https://www.w3.org/community/reports/credentials/CG-FINAL-di-eddsa-2020-20220724/). + ## Stopping the Application To stop all services: ```bash @@ -156,4 +162,4 @@ docker-compose down -v ## Additional Resources -- [Inji Documentation](https://docs.inji.io/) \ No newline at end of file +- [Inji Documentation](https://docs.inji.io/) diff --git a/docker-compose/docker-compose-injistack/config/certify-mock-identity.properties b/docker-compose/docker-compose-injistack/config/certify-mock-identity.properties index 29b59424..39627ee0 100644 --- a/docker-compose/docker-compose-injistack/config/certify-mock-identity.properties +++ b/docker-compose/docker-compose-injistack/config/certify-mock-identity.properties @@ -19,6 +19,7 @@ mosip.certify.issuer.uri=did:web:vharsh.github.io:DID:harsh mosip.certify.issuer.pub.key=did:web:vharsh.github.io:DID:harsh#key-0 mosip.certify.issuer=CertifyIssuer +mosip.certify.issuer.id.field.prefix.url=https://mosip.io/credential/ mosip.certify.integration.data-provider-plugin=MockCSVDataProviderPlugin mosip.certify.issuer.vc-sign-algo=Ed25519Signature2020 ## CSV specific config