How to Test a System Enhancement Project Without Production Data: A Practical Guide for the Public and Financial Sectors
· DataMint · 8 min read
Picture a meeting room in week two of a system enhancement project (the scene is fictional). The contractor's PM says, "We need production data to regression test the existing functions." The client's security officer answers, "Production data cannot be taken out. The contractor should prepare the test data." Neither is wrong, so the meeting is carried over to next week.
The realistic way to test a system enhancement project without production data is to keep production data from leaving, change only the personal data inside the production network, and move the result to the test DB. The shape and exception cases of production stay, and only the values that can identify a person change. Parts with no data in production, such as new functions, are filled with made-up data.
This post covers how an enhancement differs from a core system replacement, why export requests are blocked, the options you can choose from, a pitfall specific to enhancement projects, and maintenance testing after the project ends.
A system enhancement project works on a live system
A core system replacement project ("next-generation" project in Korea) builds a new schema and moves the data. An enhancement project is different. It adds screens to the system that is running now, adds columns to its tables, and changes its processing logic. So the test data situation is different too.
- Regression testing is large: more work goes into checking that the unchanged parts did not break than into the changed parts. The existing functions were built around the shape of the data accumulated in production.
- The schedule is short: many projects last only a few months, so development starts right at kickoff. There is no room to spend weeks on data preparation.
- The schema already exists: there is little to design from scratch, so you need a test DB with the production structure as is.
- Testing continues after the project ends: maintenance staff inherit the same test environment.
A project that builds a new schema needs its own stage-by-stage preparation. That is covered in test data for a core system replacement, stage by stage.
Why requests to export production data are blocked
The security officer has reasons for refusing the export. It is a matter of structure, not attitude.
Control ends once the data leaves
The production DB has access control, access logs and encryption. The moment data leaves as a dump file, those controls do not follow it. After it lands on a development server, there is no good way to check who copied it, or whether it was really deleted after the project ended.
The recipients are external staff
Most developers on an enhancement project are staff of the contractor and its partners, and they change midway. In Korea, entrusting work that handles personal data brings with it the processing entrustment relationship and safeguards of the Personal Information Protection Act (PIPA). A signed security pledge does not stop a copy left on a development PC. The specific application should be confirmed with your legal and security teams. More on external staff is in giving test data to outsourced developers.
Network separation and inspections
In the public and financial sectors, the production network and the development network are separated, and moving material between them goes through an import or export request. Personal data in test environments is also a regular question in inspections and audits. For financial companies, Korea's Electronic Financial Supervision Regulations say not to use customer information in testing. How this has been cited in actual examinations is summarized in five types seen in sanction cases.
Five options for enhancement project test data
There are five options. Few of them give you both security approval and realistic tests.
| Option | Security approval | Test realism | Cost of repeating |
|---|---|---|---|
| Export production data | Hard | High | Approval for every export and disposal |
| Test directly in production | Hard | High | Risk of changing real customer data |
| Homemade masking script | Moderate | Joins break easily | Fix every time a column changes |
| Synthetic data | Easy | No distribution or exception cases | Low |
| Transform inside the production network and move | Originals do not leave | Keeps the shape of production | Repeat on a schedule |
- Export production data: testing is easiest, but approval is hard for the reasons above, and even if granted, responsibility remains through disposal.
- Test directly in production: real customers' data may change, or notifications may go out. Hard to recommend for anything but read-only checks.
- A homemade masking script: fast at first. It has to be fixed every time tables are added or columns change, and if values change differently per table, joins break.
- Synthetic data: no approval needed. But it lacks the distribution and exception cases of production, so it falls short for regression testing. It fits new screens.
- Transform inside the production network and move: the originals never leave the production network, and only changed values reach the test DB. The quality of the transformation decides the quality of testing.
If you choose the last path, there are three standards for transformation quality. A resident registration number (RRN, Korea's national ID number) is changed into the shape of an RRN, and a card number is changed with a correct check digit, so that both pass on-screen validation. The same original becomes the same value in every table. Personal data inside long text such as consultation memos is changed too. The third is covered separately in how to find and change personal data inside memos.
The production schema changes during the project: how a new column leaks into the test DB
There is one pitfall specific to enhancement projects. Production tables change during the project. Say the first release added a passport number column to the customer table. If the script that refreshes the test DB reads with SELECT *, the new column passes to the test DB with no rule at all, because the masking script does not know that column.
Once a release adds a column to production, the next refresh is the problem. The safe behavior is not to pass the column on until someone has reviewed it.
This path is hard to block by relying on people's memory, because the developer who added the column and the person who refreshes the test DB are different people. The refresh tool itself has to notice "a column that did not exist when the job was created."
After the project ends: maintenance testing and the test DB left behind
When the enhancement project ends, the test environment passes to maintenance. Two things become unclear here. One is the refresh. The contractor took care of updating the test DB during the project, but now nobody has decided who does it and when. After a few months the test data drifts from production, and it comes back as maintenance tests that "work on the development DB but not in production."
The other is disposal. Copies received during the project, files downloaded to developer PCs and unused test schemas remain. To write the one line "disposal complete" in the project closing report, you first have to know what was where. How to set a retention period and delete automatically is covered in test data retention periods and automatic disposal.
Preparing enhancement project test data with DataMint Core
DataMint Core is installed on the client's internal network. It turns the data in production databases into test data with no personal data and moves it to development and test DBs. It installs on closed (air-gapped) networks with no internet access, and the AI model that finds names and addresses is included in the installation package. The transformation finishes inside the production network, and the customer keeps the transformation key.
| When | Core feature | What changes |
|---|---|---|
| Approval to export production data is not granted | Transforms inside the production network and loads straight into the test DB. The production DB is only read | No dump file leaves the production network |
| Regression testing needs data shaped like production | Format-preserving transformation. RRNs keep the date of birth and sex, card numbers get a recalculated check digit. The same original becomes the same value in every table | On-screen validation and joins behave as in production |
| A release added a column to production | New column blocking: until reviewed, moves everything except that column, and reports it in the job list and by notification | A new column with no rule does not pass to the test DB |
| The test DB has to be refreshed every week | Schedules: daily, weekly, biweekly or monthly, skipping backup and settlement batch hours as blackout windows | The refresh does not stop when the person in charge changes |
| Test data remains after the project ends | Automatic deletion when the per-DB retention period passes. Extensions go through request and approval, and the history is recorded | "Disposal complete" is shown with records |
As one transformation example, the RRN 900101-1234568 becomes something like 900101-1947305: the front part and the format stay, the back part changes, and the check digit is recalculated (these are made-up sample values for illustration). "Customer 홍길동 (010-1234-5678)" inside a consultation memo, also a made-up sample, is changed by the same rules as the columns.
The longer a system has been in operation, the less clear it is which columns hold personal data in the first place. A column is named ETC_1 but contains phone numbers, for example. Core's personal data detection reads a sample of the production DB, finds the columns that contain personal data, and recommends rules. It does not store the values it finds. If you produce this list first at kickoff, you can use the same list as the basis both when creating transformation jobs and when reaching agreement with the security officer.

Refreshes are set up as schedules. A round whose time passed because of server maintenance is not run late in a batch. It is recorded as "missed." If the same job is still running, that round is skipped. Scheduled runs do not go through approval for each round. Instead, there is a separate permission for registering schedules. For large tables, incremental loads are also available: you set a reference column such as the modified time, and only the rows changed since the last run are moved.

Changing contractor staff is handled with permissions. Each user and group is given the DBs they may use, and changes to jobs, rules and DB connection details, run requests and even logins are kept in the audit trail. When an account is locked at the end of the project, it is blocked from the very next request.
Enhancement project test data: frequently asked questions
Can it be used in public institution enhancement projects?
Core is installed on an internal network with no internet access and runs on Linux or Windows servers with Java 8 or later, either on a WAS such as JEUS or standalone. The management DB is PostgreSQL or Oracle. Import procedures differ by institution, so we check them together at kickoff.
How often should the test DB be refreshed in the maintenance phase?
There is no single right answer. Weekly is a common choice for systems whose production code values and products change often, and monthly for systems that change little. The standard is: shorter than the interval at which "defects caused by test data drifting from production" start to appear. What to decide when automating is covered in automating development DB refreshes.
How should test data preparation be written in a proposal?
Write it as separate items: how target columns are found, the transformation method, where transformation happens, the approval procedure, retention and disposal, and the validation method. Then it can be reused in the evaluation and the kickoff report. If the project includes migration validation, see also row count reconciliation and validation in a migration rehearsal.
Summary: do not export enhancement project test data, change it inside the production network
- An enhancement is a project on a live system, so regression testing needs data shaped like production.
- Exports are blocked because control ends, the recipients are external staff, and there are network separation and inspections.
- Change only the personal data inside the production network and move it, and fill new functions with made-up data.
- Plan from the start for new columns that appear during the project, and for refresh and disposal after it.
At the next kickoff meeting, put "how do we transform and move it inside the production network" on the agenda instead of "how do we get production data." The security officer and the contractor end up talking from the same side.
- #system enhancement project
- #system upgrade testing
- #maintenance testing
- #production data export
- #test data generation
- #development data de-identification
- #regression test data