Skip to content

feat(sandbox): implement partner sandbox environment (#348)#443

Open
marvelousufelix wants to merge 1 commit into
kellymusk:masterfrom
marvelousufelix:feature/sandbox-environment-348
Open

feat(sandbox): implement partner sandbox environment (#348)#443
marvelousufelix wants to merge 1 commit into
kellymusk:masterfrom
marvelousufelix:feature/sandbox-environment-348

Conversation

@marvelousufelix
Copy link
Copy Markdown

  • Add DB migration: sandbox_test_users, sandbox_test_bank_accounts, sandbox_mock_transactions, sandbox_chaos_scenarios, sandbox_certification_runs, sandbox_certification_results tables

  • Add sandbox models to developer_portal/models.rs: SandboxTestUser, SandboxTestBankAccount, SandboxMockTransaction, GenerateTestDataRequest/Response, SandboxChaosScenario, CreateChaosScenarioRequest, SandboxCertificationRun/Result, CertificationRunSummary

  • Implement DataFactoryService (data_factory.rs): generate_test_data, reset_environment, list_test_users, list_mock_transactions; generates realistic Nigerian test users with 19 real bank codes and Stellar testnet addresses

  • Implement ChaosInjectionService (chaos_service.rs): create_scenario, set_active, list_scenarios, delete_scenario, active_scenario_for_path; supports http_500, http_429, tx_rejected, latency_ms, network_timeout with path-prefix targeting and auto-expiry

  • Implement CertificationService (certification_service.rs): run_certification, latest_run, production_gate_met; 10 tests across 6 categories (deposit, withdrawal, balance, webhook, oauth, error_handling); score 0-100, production gate at 80
    closes Partner Sandbox & Integration Testing Environment #417

- Add DB migration: sandbox_test_users, sandbox_test_bank_accounts,
  sandbox_mock_transactions, sandbox_chaos_scenarios,
  sandbox_certification_runs, sandbox_certification_results tables

- Add sandbox models to developer_portal/models.rs:
  SandboxTestUser, SandboxTestBankAccount, SandboxMockTransaction,
  GenerateTestDataRequest/Response, SandboxChaosScenario,
  CreateChaosScenarioRequest, SandboxCertificationRun/Result,
  CertificationRunSummary

- Implement DataFactoryService (data_factory.rs):
  generate_test_data, reset_environment, list_test_users,
  list_mock_transactions; generates realistic Nigerian test users
  with 19 real bank codes and Stellar testnet addresses

- Implement ChaosInjectionService (chaos_service.rs):
  create_scenario, set_active, list_scenarios, delete_scenario,
  active_scenario_for_path; supports http_500, http_429,
  tx_rejected, latency_ms, network_timeout with path-prefix
  targeting and auto-expiry

- Implement CertificationService (certification_service.rs):
  run_certification, latest_run, production_gate_met; 10 tests
  across 6 categories (deposit, withdrawal, balance, webhook,
  oauth, error_handling); score 0-100, production gate at 80
@drips-wave
Copy link
Copy Markdown

drips-wave Bot commented May 27, 2026

@marvelousufelix Great news! 🎉 Based on an automated assessment of this PR, the linked Wave issue(s) no longer count against your application limits.

You can now already apply to more issues while waiting for a review of this PR. Keep up the great work! 🚀

Learn more about application limits

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Partner Sandbox & Integration Testing Environment

1 participant