When developing software for the Baltic market, generating authentic Estonian Personal Identification Codes, known as Isikukood, is a critical requirement for robust QA processes. The ee_ik function within the mock-jutsu library provides developers with a streamlined way to produce valid, syntactically correct test data for Estonian-centric applications. By automating the creation of these identifiers, mock-jutsu ensures that engineering teams can focus on core logic rather than manually constructing complex strings that must adhere to strict national standards.
The ee_ik generator follows the official Estonian standard, producing a precise 11-digit sequence that encodes specific demographic information. The first digit signifies the individual's gender and century of birth, followed by the birth date in a YYMMDD format and a three-digit serial number. Crucially, the function implements the MOD-11 checksum algorithm to calculate the final control digit. This level of technical precision is vital because it allows the mock data to pass through strict validation filters and checksum checks during integration testing, mimicking real-world data entry without compromising privacy or security.
Testing scenarios for the ee_ik function are diverse, ranging from simple form validation to complex data migration simulations. Developers can use this function to verify how their systems handle different age groups or gender-based logic by generating specific prefixes. Furthermore, using realistic test data like the Isikukood is essential for stress-testing database indexes and ensuring that primary key constraints or unique identifier logic functions correctly under heavy load. This prevents common "garbage in, garbage out" issues that occur when using random, unstructured strings for identification fields.
Integration is designed to be seamless across various environments, whether you are working in a terminal, a Python script, or a performance testing suite. For instance, you can invoke the function via the CLI with "mockjutsu generate ee_ik", or integrate it directly into Python workflows using "jutsu.generate('ee_ik')". For those conducting load tests, the JMeter syntax "${__mockjutsu(ee_ik,)}" enables dynamic data generation at scale. By incorporating ee_ik into your development lifecycle, you achieve greater compliance with data protection regulations like GDPR, as you replace sensitive real-world information with reliable, synthetic alternatives that maintain the integrity of your testing environment.
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…) |