In the landscape of modern software development, generating localized and compliant test data is essential for building robust applications. The mock-jutsu library addresses this need by providing specialized functions like ee_ik, which generates realistic Estonian Personal Identification Codes, known locally as Isikukood. This function is a vital component of the IntlIDs category, ensuring that developers working on Baltic-region software can simulate user identities with high precision and technical accuracy without relying on sensitive real-world information.
The ee_ik function adheres strictly to the official Estonian standard, producing a structured 11-digit string that encodes critical demographic information. The first digit represents the individual's gender and the century of their birth, typically ranging from 1 to 6. Following this prefix, the next six digits represent the person's birth date in the YYMMDD format. The remaining digits include a three-digit sequence for birth order and a final checksum digit. Crucially, mock-jutsu implements the complex MOD-11 algorithm for this checksum, ensuring that every generated ee_ik value passes rigorous validation checks in any external system or database.
Utilizing mock data for Estonian IDs provides significant advantages for QA engineers and backend developers. Instead of risking the exposure of sensitive personal information (PII) during the testing phase, teams can rely on ee_ik to create valid but synthetic test data. This approach is particularly beneficial for testing form validations, database integrity constraints, and third-party API integrations that require a valid Isikukood. By using mock-jutsu, developers can automate the creation of edge cases, such as specific birth centuries or gender-specific logic, without the burden of manual data entry or privacy compliance concerns.
Flexibility is a core feature of the mock-jutsu ecosystem, and the ee_ik function is accessible across multiple environments to suit different workflows. Python developers can quickly integrate it into their scripts using the jutsu.generate('ee_ik') method, while DevOps engineers can utilize the command-line interface with mockjutsu generate ee_ik for rapid prototyping and shell scripting. For performance testing, the library offers seamless JMeter support via the ${__mockjutsu(ee_ik,)} syntax. This versatility ensures that regardless of the tech stack, generating high-quality Estonian test data remains a streamlined and efficient process for the entire engineering team.
mockjutsu generate ee_ikmockjutsu bulk ee_ik --count 10mockjutsu export ee_ik --count 10 --format jsonmockjutsu export ee_ik --count 10 --format csvmockjutsu export ee_ik --count 10 --format sql# --mask: regulation-compliant output (PCI DSS / GDPR / KVKK)mockjutsu generate ee_ik --maskmockjutsu bulk ee_ik --count 5 --maskfrom mockjutsu import jutsujutsu.generate('ee_ik')jutsu.bulk('ee_ik', count=10)jutsu.template(['ee_ik'], count=5)# mask=True: regulation-compliant outputjutsu.generate('ee_ik', mask=True)jutsu.bulk('ee_ik', count=5, mask=True)${__mockjutsu_intl_ids(ee_ik)}# JMeter Function: __mockjutsu_intl_ids# Parameter 1: ee_ik# Parameter 2: (not required for this function)# Add 'mask' keyword to get a regulation-compliant masked value${__mockjutsu_intl_ids(ee_ik,mask)}GET /generate/ee_ik# → {"type":"ee_ik","result":"...","status":"ok"}GET /bulk/ee_ik?count=10POST /template {"types":["ee_ik"],"count":1}# mask=true: regulation-compliant outputGET /generate/ee_ik?mask=trueGET /bulk/ee_ik?count=5&mask=true| Parameter | Values | Description |
|---|---|---|
| --mask | true | false | Return a regulation-compliant masked value (PCI DSS, GDPR, KVKK…) |