githubEdit

v1.3.3

Release Name: Api Test Commons Releases

Release Version: 1.3.3

Release Date: 1st July, 2025

Overview

We are pleased to announce API Test Commons v1.3.3, a patch release that hardens the MOSIP Functional Test Framework through watchdog-based execution control, richer reporting, stronger database utilities, automated Slack notifications, and multiple security remediation's. These improvements build on v1.3.2 and earlier 1.3.x releases to deliver faster, safer, and more observable automated test runs across MOSIP modules.

Bug Fixes

Bug ID

Description

Added missing charset parameter in the Content-Type header for URL-encoded requests.

Dynamic prerequisite creation now uses the current timestamp, fixing failures in date-sensitive tests.

Corrected SMTP mapping logic to track and verify all e-mail notifications.

Removed unused variables / deprecated utilities to reduce clutter and suppress compiler warnings.

Major Highlights (New Developments & Enhancements)

Area

Key JIRA

Summary

Watchdog Utility

New watchdog class enforces a configurable (default 1.5 h) hard timeout to auto-terminate hung test runs; wired into MosipTestRunner.

Slack Notifications

Post-run push notifications to Slack with environment, rig name, statistics, and MinIO report URL.

Inji Web Login Support

Added helper utilities for Inji Web login flows; includes custom cookie handling.

Database Utilities

Extended DbManager with simplified CRUD helpers for faster DB interaction.

Caching Improvements

Translator#getLanguageID() now keeps an in-memory map to avoid repeated CSV loads.

Report Accuracy

Rounded sub-second durations for clearer timing; reports now state when suites are skipped due to CAPTCHA enablement.

Security Hardening

Log masking for secrets / passwords, complete secret cleanup, and validation of X-XSS-Protection headers.

Configuration Update

Added support for crvs.client.secret needed by CRVS scenarios.

Build & Publish

Migrated to central-publishing-maven-plugin for smoother Maven Central releases.

Repositories Released

Repository

Version

apitest-commons

Pre-requisites

Ensure the following before executing automated tests:

  • Java: 21

  • Maven: 3.9.6 or higher

  • Lombok: Installed and configured

For Windows

  • Git Bash 2.18.0 or higher

  • settings.xml needs to be present in the .m2 folder.

For Linux

  • settings.xml placed in both:

    • Maven conf folder

    • /usr/local/maven/conf

Repository & Build

Access Test Automation Code

  1. From Browser

  2. Clone or download the repository as a zip file from GitHubarrow-up-right.

  3. Unzip the contents.

  4. Continue with the steps below from a terminal (Linux) or command prompt (Windows).

  5. From Git Bash

  6. On your local system, open Git Bash at any location.

Build Test Automation Code

  1. Navigate to the apitest-commons directory: cd ../apitest-commons

  2. Build the project: mvn clean install -Dgpg.skip=true -Dmaven.gitcommitid.skip=true

Ensure all pre-requisites are met before running the updated tests. Refer to the updated README file for detailed setup and execution instructions.

For any issues or further assistance, please open an issue on GitHub.

Last updated

Was this helpful?