iccidTelecomLocale Aware

Mock Jutsu HOW-TO | EN

In the complex landscape of telecommunications development and network engineering, generating realistic test data is a vital prerequisite for ensuring system reliability and data integrity. The mock-jutsu library simplifies this process with its dedicated iccid function, specifically designed to produce valid Integrated Circuit Card Identifiers. An ICCID serves as a unique primary key for SIM cards globally, and having a reliable source of mock data that adheres to international standards is essential for developers building mobile applications, carrier billing systems, or enterprise IoT management platforms that require high-fidelity simulation.

Each iccid generated by mock-jutsu strictly follows the ITU-T E.118 recommendation, typically consisting of 19 or 20 digits. The structure includes the standard Major Industry Identifier, which is 89 for telecommunications, followed by a country code, an issuer identifier, and a unique individual account identification number. To ensure the highest level of authenticity for quality assurance, the function implements the Luhn algorithm to calculate the final check digit. This rigorous attention to detail ensures that the test data passes front-end validation logic and database integrity constraints without requiring access to a physical SIM card inventory or a live HLR/HSS database.

Integrating this functionality into a modern development workflow is seamless across various environments and programming paradigms. Python developers can instantly invoke the generator using the jutsu.generate('iccid') method, while DevOps engineers can utilize the CLI command mockjutsu generate iccid for quick prototyping or automated shell scripting. For performance engineers conducting load testing, the JMeter integration allows for dynamic data injection via the ${__mockjutsu(iccid,)} syntax. These versatile access points make mock-jutsu a flexible and indispensable tool for cross-functional teams working on diverse infrastructure and telecommunications projects.

Utilizing high-quality mock data for ICCID values provides significant advantages in terms of data privacy and operational efficiency. It allows engineering teams to simulate complex scenarios—such as bulk SIM provisioning, roaming activation, and subscription lifecycle management—without risking the exposure of sensitive production data or PII. By leveraging the power of mock-jutsu, developers can significantly accelerate their CI/CD pipelines, eliminate the overhead of manual data preparation, and focus on building robust telecommunications software that is ready for global deployment. This approach not only improves testing coverage but also ensures compliance with internal data protection regulations.

CLI Usage
mockjutsu generate iccid --locale TRmockjutsu generate iccid --locale DEmockjutsu bulk iccid --count 10 --locale TRmockjutsu export iccid --count 10 --format json --locale TRmockjutsu export iccid --count 10 --format csv --locale TRmockjutsu export iccid --count 10 --format sql --locale TR# --mask: regulation-compliant output (PCI DSS / GDPR / KVKK)mockjutsu generate iccid --locale TR --maskmockjutsu bulk iccid --count 5 --locale TR --mask
Python API
from mockjutsu import jutsujutsu.generate('iccid', locale='TR')jutsu.bulk('iccid', count=10, locale='TR')jutsu.template(['iccid'], count=5, locale='TR')# mask=True: regulation-compliant outputjutsu.generate('iccid', locale='TR', mask=True)jutsu.bulk('iccid', count=5, locale='TR', mask=True)
JMeter
${__mockjutsu_telecom(iccid,TR)}# JMeter Function: __mockjutsu_telecom# Parameter 1: iccid# Parameter 2: locale (TR/UK/US/DE/FR/RU)${__mockjutsu_telecom(iccid,DE)}# Add 'mask' keyword to get a regulation-compliant masked value${__mockjutsu_telecom(iccid,TR,mask)}
REST API
GET /generate/iccid?locale=TR# → {"type":"iccid","result":"...","status":"ok"}GET /bulk/iccid?count=10&locale=TRPOST /template {"types":["iccid"],"count":1,"locale":"TR"}# mask=true: regulation-compliant outputGET /generate/iccid?locale=TR&mask=trueGET /bulk/iccid?count=5&locale=TR&mask=true

Parameters

Parameter Values Description
--locale TR|UK|US|DE|FR|RU Region / locale for locale-aware output
--mask true | false Return a regulation-compliant masked value (PCI DSS, GDPR, KVKK…)

Other Languages