From 9f4c772d4808c45abd9839cb66abd5ff986e6233 Mon Sep 17 00:00:00 2001 From: Mohanachandran S <165888272+mohanachandran-s@users.noreply.github.com> Date: Tue, 4 Jun 2024 11:44:04 +0530 Subject: [PATCH] MOSIP-32363 - Merged from develop branch and updated the maven plugins for JAVA21 (#977) * MOSIP-32363 JAVA 21 upgrade Signed-off-by: Mohanachandran S * Updated the API commons artifact ID Signed-off-by: Mohanachandran S * Merged from the develop branch Signed-off-by: Mohanachandran S --------- Signed-off-by: Mohanachandran S --- apitest/Dockerfile | 2 +- apitest/entrypoint.sh | 2 +- apitest/pom.xml | 238 +++++++++++++++++- .../ReactivateVIDsForUIN.yml | 2 +- .../RetrieveAuthTypeStatus.yml | 8 +- .../UpdateVIDStatus/UpdateVidStatus.yml | 4 +- apitest/testNgXmlFiles/IdrepositoryApi.xml | 2 +- 7 files changed, 244 insertions(+), 14 deletions(-) diff --git a/apitest/Dockerfile b/apitest/Dockerfile index bc00e7589..287c09bd2 100644 --- a/apitest/Dockerfile +++ b/apitest/Dockerfile @@ -37,7 +37,7 @@ WORKDIR /home/${container_user} ENV work_dir=/home/${container_user} -ADD ./target/ $work_dir +ADD ./apitest/target/ $work_dir ADD entrypoint.sh $work_dir/entrypoint.sh diff --git a/apitest/entrypoint.sh b/apitest/entrypoint.sh index b56500353..7c15e41cc 100644 --- a/apitest/entrypoint.sh +++ b/apitest/entrypoint.sh @@ -1,4 +1,4 @@ #!/bin/bash ## Run automationtests -java -jar -Dmodules="$MODULES" -Denv.user="$ENV_USER" -Denv.endpoint="$ENV_ENDPOINT" -Denv.testLevel="$ENV_TESTLEVEL" automationtests.jar; +java -jar -Dmodules="$MODULES" -Denv.user="$ENV_USER" -Denv.endpoint="$ENV_ENDPOINT" -Denv.testLevel="$ENV_TESTLEVEL" apitest-idrepo-*-jar-with-dependencies.jar; \ No newline at end of file diff --git a/apitest/pom.xml b/apitest/pom.xml index 12f8fe75c..2d4dbea5e 100644 --- a/apitest/pom.xml +++ b/apitest/pom.xml @@ -24,15 +24,245 @@ HEAD + + + Mosip + mosip.emailnotifier@gmail.com + io.mosip + https://github.com/mosip/id-repository + + - + + UTF-8 + + + 21 + 21 + 3.8.0 + 3.0.2 + 3.1.0 + 3.2.0 + 1.5 + 3.2.4 + 3.0.0 + 2.2.1 + + 3.0.1 + apitest-idrepo-1.2.1-java21-SNAPSHOT-jar-with-dependencies + + io.mosip.testrig.apirig.automationtests.commons apitest-commons 1.2.1-java21-SNAPSHOT - - - + + + + + + + + + + org.apache.maven.plugins + maven-javadoc-plugin + + + attach-javadocs + + jar + + + + + none + + + + maven-compiler-plugin + ${maven.compiler.version} + + ${maven.compiler.source} + ${maven.compiler.target} + -Dfile.encoding=UTF-8 + + + + org.apache.maven.plugins + maven-javadoc-plugin + ${maven.javadoc.version} + + none + + + + pl.project13.maven + git-commit-id-plugin + ${git.commit.id.plugin.version} + + + populate-git-commit-information + + revision + + + true + MM/dd/yyyy HH:mm:ss Z + 8 + true + + ${project.build.outputDirectory}/git.properties + + + + + ${project.basedir}/.git + + + + org.apache.maven.plugins + maven-gpg-plugin + ${maven.gpg.plugin.version} + + + sign-artifacts + verify + + sign + + + + --pinentry-mode + loopback + + + + + + + org.apache.maven.plugins + maven-shade-plugin + ${maven.shade.plugin.version} + + + + shade + + + ${fileName} + + + + + + + io.mosip.testrig.apirig.testrunner.MosipTestRunner + + + + + + *:* + + META-INF/*.SF + META-INF/*.DSA + META-INF/*.RSA + + + + + + + + + org.apache.maven.plugins + maven-jar-plugin + ${maven.jar.plugin.version} + + + + true + true + + + ${project.name} + ${project.version} + ${user.name} + ${os.name} + ${maven.build.timestamp} + ${env.BUILD_NUMBER} + ${env.BUILD_ID} + ${env.BUILD_URL} + + + + + + org.apache.maven.plugins + maven-war-plugin + ${maven.war.plugin.version} + + + + true + true + + + ${project.name} + ${project.version} + ${user.name} + ${os.name} + ${maven.build.timestamp} + ${env.BUILD_NUMBER} + ${env.BUILD_ID} + ${env.BUILD_URL} + + + + + + org.apache.maven.plugins + maven-source-plugin + ${maven.source.plugin.version} + + + attach-sources + + jar-no-fork + + + + + + org.apache.maven.plugins + maven-antrun-plugin + ${maven.antrun.plugin.version} + + + make-jar-executable + package + + run + + + + + + + + + + + + + \ No newline at end of file diff --git a/apitest/src/main/resources/idRepository/ReactivateVIDsForUIN/ReactivateVIDsForUIN.yml b/apitest/src/main/resources/idRepository/ReactivateVIDsForUIN/ReactivateVIDsForUIN.yml index 719d64f73..a0fb1cee7 100644 --- a/apitest/src/main/resources/idRepository/ReactivateVIDsForUIN/ReactivateVIDsForUIN.yml +++ b/apitest/src/main/resources/idRepository/ReactivateVIDsForUIN/ReactivateVIDsForUIN.yml @@ -23,7 +23,7 @@ ReactivateVIDs: inputTemplate: idRepository/ReactivateVIDsForUIN/reactivateVIDsForUIN outputTemplate: idRepository/ReactivateVIDsForUIN/reactivateVIDsForUINResult input: '{ - "UIN": "$ID:AddIdentity_For_DeactivateScen_smoke_Pos_UIN$", + "UIN": "$ID:AddIdentity_ValidParam_smoke_Pos_UIN$", "requesttime": "$TIMESTAMP$", "id": "mosip.vid.reactivate", "version": "v1" diff --git a/apitest/src/main/resources/idRepository/RetrieveAuthTypeStatus/RetrieveAuthTypeStatus.yml b/apitest/src/main/resources/idRepository/RetrieveAuthTypeStatus/RetrieveAuthTypeStatus.yml index f4c75c712..6ab30185b 100644 --- a/apitest/src/main/resources/idRepository/RetrieveAuthTypeStatus/RetrieveAuthTypeStatus.yml +++ b/apitest/src/main/resources/idRepository/RetrieveAuthTypeStatus/RetrieveAuthTypeStatus.yml @@ -43,7 +43,7 @@ RetrieveAuthTypeStatus: output: '{ "errors": [ { - "errorCode": "IDR-IDC-004" + "errorCode": "IDR-IDC-002" } ] }' @@ -77,7 +77,7 @@ RetrieveAuthTypeStatus: output: '{ "errors": [ { - "errorCode": "IDR-IDC-004" + "errorCode": "IDR-IDC-002" } ] }' @@ -94,7 +94,7 @@ RetrieveAuthTypeStatus: output: '{ "errors": [ { - "errorCode": "IDR-IDC-004" + "errorCode": "IDR-IDC-002" } ] }' @@ -128,7 +128,7 @@ RetrieveAuthTypeStatus: output: '{ "errors": [ { - "errorCode": "IDR-IDC-004" + "errorCode": "IDR-IDC-002" } ] }' \ No newline at end of file diff --git a/apitest/src/main/resources/idRepository/UpdateVIDStatus/UpdateVidStatus.yml b/apitest/src/main/resources/idRepository/UpdateVIDStatus/UpdateVidStatus.yml index 9283a3406..d72540e1b 100644 --- a/apitest/src/main/resources/idRepository/UpdateVIDStatus/UpdateVidStatus.yml +++ b/apitest/src/main/resources/idRepository/UpdateVIDStatus/UpdateVidStatus.yml @@ -848,12 +848,12 @@ UpdateVidStatus: inputTemplate: idRepository/UpdateVIDStatus/updateVidStatus outputTemplate: idRepository/UpdateVIDStatus/UpdateVidStatusResult input: '{ - "vidStatus": "ACTIVATED", + "vidStatus": "ACTIVE", "id": "mosip.vid.update", "VID": "$ID:CreateVID_withValidParameters_For_VidType_Smoke_Temporary_sid_VID$", "version": "v1", "requesttime": "$TIMESTAMP$" }' output: '{ - "vidStatus": "ACTIVATED" + "vidStatus": "ACTIVE" }' \ No newline at end of file diff --git a/apitest/testNgXmlFiles/IdrepositoryApi.xml b/apitest/testNgXmlFiles/IdrepositoryApi.xml index e8a88fce7..c43bbc9d5 100644 --- a/apitest/testNgXmlFiles/IdrepositoryApi.xml +++ b/apitest/testNgXmlFiles/IdrepositoryApi.xml @@ -5,7 +5,7 @@ - +