Skip to content

feat: [SRTP-1375] New mock policies compliant to EPC standard in SEND#237

Open
luigidemarco-ship-it wants to merge 5 commits intomainfrom
SRTP-1375-new-mock-for-send
Open

feat: [SRTP-1375] New mock policies compliant to EPC standard in SEND#237
luigidemarco-ship-it wants to merge 5 commits intomainfrom
SRTP-1375-new-mock-for-send

Conversation

@luigidemarco-ship-it
Copy link
Contributor

@luigidemarco-ship-it luigidemarco-ship-it commented Feb 12, 2026

SRTP-1375: New Mock for Send - Changes Summary

List of changes

This branch introduces improvements to the SRTP mock policy for EPC operations. The main changes include:

  • Enhanced Mock Policy: Updated src/srtp/api/test/mock_policy_epc.xml with improved policy logic and formatting (144 insertions, 42 deletions)
  • Policy Refinement: Rewrote existing policies for better clarity and maintainability
  • Structure Improvements: Better organized policy elements within inbound/backend/outbound/on-error sections

The changes focus on implementing a new mock endpoint for the send operation with refined conditional logic and error handling.

Motivation and context

This change is required to support testing of EPC (Electronic Payment Channel) mock operations with more accurate and flexible policy configurations. The improvements enable better simulation of real-world scenarios, improved error handling, and more precise response code management for the mock send API.

The mock policy now includes enhanced request/response handling that better reflects production behavior while maintaining the ability to test edge cases and error conditions.

Type of changes

  • Update configuration to existing resources
  • Add new resources
  • Remove existing resources

Env to apply

  • DEV
  • UAT
  • PROD

Does this introduce a change to production resources with possible user impact?

  • No
  • Yes, users may be impacted applying this change

This is a mock/test configuration change only, with no impact on production resources.

Does this introduce an unwanted change on infrastructure? Check terraform plan execution result

  • No
  • Yes

The changes are limited to test policy configuration and do not introduce any unwanted infrastructure modifications.

Other information

  • Branch: SRTP-1375-new-mock-for-send
  • Commits: 4 commits (including merge from main)
    • 35e7aac: SRTP-1375 New mock
    • 3eeb35b: policies written
    • 94d7a25: Improved policy
    • cd4a33a: Merge branch 'main' into SRTP-1375-new-mock-for-send
  • Files Modified: 1 file
    • src/srtp/api/test/mock_policy_epc.xml (144 insertions, 42 deletions)

If PR is partially applied, why? (reserved to maintainers)

N/A - Not applicable for this PR.

@luigidemarco-ship-it luigidemarco-ship-it requested a review from a team as a code owner February 12, 2026 13:59
@luigidemarco-ship-it luigidemarco-ship-it changed the title Srtp 1375 new mock for send feat: [SRTP-1375] New mock policies compliant to EPC standard in SEND Feb 12, 2026
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.

2 participants