In the landscape of modern software development, the requirement for high-quality, realistic mock data is paramount for ensuring the reliability of global applications. The mock-jutsu library addresses this need by providing specialised tools like the ar_dni function. As a core component of the IntlIDs category, ar_dni is specifically designed to generate authentic-looking Argentinian Documento Nacional de Identidad (DNI) numbers. By utilising this function, developers can ensure their applications are prepared to handle regional identification formats without relying on sensitive, real-world information, thereby maintaining strict data privacy standards.
The ar_dni function generates a numeric string consisting of either seven or eight digits, perfectly mimicking the standard format used by the Argentinian National Registry of Persons. This mock data is essential for testing systems that require precise input validation, such as financial platforms, government portals, or e-commerce checkouts targeting the South American market. Because the function adheres to the expected length and numeric character set of an actual DNI, it allows for rigorous testing of database constraints, front-end masking logic, and backend validation algorithms that enforce specific character counts.
Integrating ar_dni into your existing workflow is remarkably straightforward, whether you are working in a local terminal or a complex CI/CD pipeline. For Python developers, a simple call to the jutsu.generate method provides immediate results, while the command-line interface offers a quick way to produce test data on the fly for shell scripts. Furthermore, the library includes native support for JMeter via a custom function, enabling performance testers to inject realistic Argentinian identifiers into high-volume load tests. This multi-platform versatility ensures that mock-jutsu remains a flexible choice for diverse engineering teams across different stages of the lifecycle.
Beyond simple generation, using ar_dni offers significant benefits in terms of security and compliance. By substituting real user data with synthetic test data, organisations can minimise the risk of accidental data exposure during the QA process. Whether you are validating a registration form, seeding a staging database, or performing stress tests on a backend API, the ar_dni function provides the reliability and realism necessary to build robust, production-ready software. This focus on regional accuracy and ease of use makes mock-jutsu an invaluable asset for any internationalised application development project.
mockjutsu generate ar_dnimockjutsu bulk ar_dni --count 10mockjutsu export ar_dni --count 10 --format jsonmockjutsu export ar_dni --count 10 --format csvmockjutsu export ar_dni --count 10 --format sql# --mask: regulation-compliant output (PCI DSS / GDPR / KVKK)mockjutsu generate ar_dni --maskmockjutsu bulk ar_dni --count 5 --maskfrom mockjutsu import jutsujutsu.generate('ar_dni')jutsu.bulk('ar_dni', count=10)jutsu.template(['ar_dni'], count=5)# mask=True: regulation-compliant outputjutsu.generate('ar_dni', mask=True)jutsu.bulk('ar_dni', count=5, mask=True)${__mockjutsu_intl_ids(ar_dni)}# JMeter Function: __mockjutsu_intl_ids# Parameter 1: ar_dni# Parameter 2: (not required for this function)# Add 'mask' keyword to get a regulation-compliant masked value${__mockjutsu_intl_ids(ar_dni,mask)}GET /generate/ar_dni# → {"type":"ar_dni","result":"...","status":"ok"}GET /bulk/ar_dni?count=10POST /template {"types":["ar_dni"],"count":1}# mask=true: regulation-compliant outputGET /generate/ar_dni?mask=trueGET /bulk/ar_dni?count=5&mask=true| Parameter | Values | Description |
|---|---|---|
| --mask | true | false | Return a regulation-compliant masked value (PCI DSS, GDPR, KVKK…) |