innIdentity

Mock Jutsu HOW-TO | UK

The inn function within the mock-jutsu library is a specialised tool designed for developers and QA engineers who require realistic Russian Tax Identification Numbers for their software environments. Known locally as the Identifikatsionnyy nomer nalogoplatelshchika, the inn is a critical identifier used by the Federal Tax Service of Russia. By utilising mock-jutsu, teams can generate high-quality test data that mirrors real-world identifiers, ensuring that applications handling financial records or corporate identities are robust and reliable. Whether you are building a fintech platform or a regional CRM, having access to valid mock data is essential for maintaining the integrity of your testing suites.

Technically, the inn function adheres to the rigorous standards set by Russian regulatory authorities, producing both 10-digit sequences for legal entities and 12-digit sequences for individuals. The core strength of this mock-jutsu feature lies in its implementation of the official checksum validation algorithm. Each generated number undergoes a weighted sum calculation to ensure it passes standard validation logic. This level of precision is vital for developers because it prevents "garbage in, garbage out" scenarios where test data might be rejected by front-end masks or back-end validation scripts, thereby streamlining the entire development lifecycle.

Integrating this function into your workflow is remarkably straightforward, offering flexibility across different environments. For those working in a terminal, the CLI command "mockjutsu generate inn" provides instant results, while Python developers can easily incorporate "jutsu.generate('inn')" into their automated test scripts. Furthermore, performance testers can leverage the JMeter plugin using the "${__mockjutsu(inn,)}" syntax. This versatility ensures that regardless of the toolchain, teams can produce valid test data on demand. Using such realistic identifiers is particularly beneficial during the testing of KYC processes, tax reporting modules, and complex database migrations where data format accuracy is non-negotiable.

Ultimately, the inn function in mock-jutsu empowers development teams to simulate complex financial ecosystems without compromising on data privacy or security. By replacing sensitive real-world information with synthetically generated yet valid mock data, organisations can comply with data protection regulations while still performing comprehensive end-to-end testing. This balance of realism and safety makes mock-jutsu an indispensable asset for modern software engineering, ensuring that your applications are ready for the complexities of the Russian regulatory landscape and beyond.

CLI Usage
mockjutsu generate innmockjutsu bulk inn --count 10mockjutsu export inn --count 10 --format jsonmockjutsu export inn --count 10 --format csvmockjutsu export inn --count 10 --format sql# --mask: regulation-compliant output (PCI DSS / GDPR / KVKK)mockjutsu generate inn --maskmockjutsu bulk inn --count 5 --mask
Python API
from mockjutsu import jutsujutsu.generate('inn')jutsu.bulk('inn', count=10)jutsu.template(['inn'], count=5)# mask=True: regulation-compliant outputjutsu.generate('inn', mask=True)jutsu.bulk('inn', count=5, mask=True)
JMeter
${__mockjutsu_identity(inn)}# JMeter Function: __mockjutsu_identity# Parameter 1: inn# Parameter 2: (not required for this function)# Add 'mask' keyword to get a regulation-compliant masked value${__mockjutsu_identity(inn,mask)}
REST API
GET /generate/inn# → {"type":"inn","result":"...","status":"ok"}GET /bulk/inn?count=10POST /template {"types":["inn"],"count":1}# mask=true: regulation-compliant outputGET /generate/inn?mask=trueGET /bulk/inn?count=5&mask=true

Parameters

Parameter Values Description
--mask true | false Return a regulation-compliant masked value (PCI DSS, GDPR, KVKK…)

Other Languages