From 5ec88d5f8f6ebc8464e44acad9a107f13fd26c4c Mon Sep 17 00:00:00 2001 From: Mohanachandran S Date: Fri, 16 Oct 2026 17:46:47 +0530 Subject: [PATCH 1/2] MOSIP-45683 - Removed hardcoded version from JAR name and run instructions Co-Authored-By: Claude Opus 5.5 Signed-off-by: Mohanachandran S --- api-test/README.md | 9 +++++++-- api-test/pom.xml | 2 +- 2 files changed, 8 insertions(+), 3 deletions(-) diff --git a/api-test/README.md b/api-test/README.md index 599f6223..4ae18738 100644 --- a/api-test/README.md +++ b/api-test/README.md @@ -111,7 +111,12 @@ You can execute the test automation code using any of the following methods: 2. Run the automation test suite JAR file: ```sh - java -Dmodules=keymanager -Denv.user= -Denv.endpoint= -Denv.testLevel=smokeAndRegression -Xmx2G -jar apitest-keymanager-1.0.0-SNAPSHOT-jar-with-dependencies.jar + # Linux / macOS / Git Bash + java -Dmodules=keymanager -Denv.user= -Denv.endpoint= -Denv.testLevel=smokeAndRegression -Xmx2G -jar apitest-keymanager-*-jar-with-dependencies.jar + ``` + ```powershell + # Windows PowerShell (does not expand * for java, so resolve the file first) + java -Dmodules=keymanager -Denv.user= -Denv.endpoint= -Denv.testLevel=smokeAndRegression -Xmx2G -jar (Get-ChildItem apitest-keymanager-*-jar-with-dependencies.jar).Name ``` ### Using Maven @@ -191,7 +196,7 @@ This section describes the meaning of each column in the test report: - **env.user**: Replace `` with the appropriate environment name (e.g., `dev`, `qa`, etc.). - **env.endpoint**: The environment where the application under test is deployed. Replace `` with the correct base URL for the environment (e.g., `https://api-internal..mosip.net`). - **env.testLevel**: Set this to `smoke` to run only smoke test cases, or `smokeAndRegression` to run both smoke and regression tests. -- **jar**: Specify the name of the JAR file to execute. The version will change according to the development code version — for example, the current version is `apitest-keymanager-1.0.0-SNAPSHOT-jar-with-dependencies.jar`. +- **jar**: The JAR built in `target/`, named `apitest-keymanager--jar-with-dependencies.jar`, where `` is the `` in `pom.xml`. The `apitest-keymanager-*-jar-with-dependencies.jar` pattern above picks it up, so the command does not change when the version does. ### Running a subset of test cases diff --git a/api-test/pom.xml b/api-test/pom.xml index bcf3b70b..0a87ec93 100644 --- a/api-test/pom.xml +++ b/api-test/pom.xml @@ -76,7 +76,7 @@ 3.0.0 2.2.1 3.0.1 - apitest-keymanager-1.0.0-SNAPSHOT-jar-with-dependencies + ${project.artifactId}-${project.version}-jar-with-dependencies From 2454193f7b992a17a2bfaed77a0b563fef8e55db Mon Sep 17 00:00:00 2001 From: Mohanachandran S Date: Fri, 16 Oct 2026 17:58:33 +0530 Subject: [PATCH 2/2] MOSIP-45683 - Removed duplicate maven-javadoc-plugin declaration from api-test pom Co-Authored-By: Claude Opus 5.5 Signed-off-by: Mohanachandran S --- api-test/pom.xml | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/api-test/pom.xml b/api-test/pom.xml index 0a87ec93..3c060552 100644 --- a/api-test/pom.xml +++ b/api-test/pom.xml @@ -97,6 +97,7 @@ org.apache.maven.plugins maven-javadoc-plugin + ${maven.javadoc.version} attach-javadocs @@ -118,14 +119,6 @@ -Dfile.encoding=UTF-8 - - org.apache.maven.plugins - maven-javadoc-plugin - ${maven.javadoc.version} - - none - - pl.project13.maven git-commit-id-plugin