[DB-GOV-02] Preparation of the Test Record Matrix and Access Tokens (Data Seeding)
Database: Populating Data
NoteTask Brief
- Component:
gov_registry_db(PostgreSQL). - Task Type: Database / Test Data.
- Associated Business Scenarios: Tests twin.1, twin.2, twin.3
- Status: Ready for Implementation
Task Description
Populate tables with test data (seeding) to fulfill the validation requirements inside the soapHandler method and debug integration scenarios via Postman.
Step-by-Step Instructions (SQL)
- Generating the Master Access Token: Insert a record into the
service_access_tokenstable to authorize gateway clients:token_value:'gos_master_secure_token_2026'is_active:true
- Populating the Employee Matrix (Scenarios): Insert records into the
digital_employeestable to emulate the following server responses:- Scenario 1 (Success / twin.1): A record with
email = 'twin.1@example.com', fully populated personal data, andgov_status = 'ACTIVE'. - Scenario 2 (Blocked / twin.2): A record with
email = 'twin.2@example.com'andgov_status = 'BLOCKED'(to trigger theGOV_ACCOUNT_BLOCKEDhandler in the codebase). - Scenario 3 (Missing / twin.3): Ensure that a record with
email = 'twin.3@example.com'is completely absent from the seeding scripts so that the lookup returnssql.ErrNoRowsand throws aUSER_NOT_FOUNDerror.
- Scenario 1 (Success / twin.1): A record with