From bc0029db3663a87b8914e74c09c8f113535bba47 Mon Sep 17 00:00:00 2001 From: Ayush Date: Fri, 26 Dec 2025 17:26:18 +0530 Subject: [PATCH] test(sim-swap): add response assertions for check operation Signed-off-by: Ayush --- telco/camaraproject.org/sim-swap/sim-swap-v2.0.0.yaml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/telco/camaraproject.org/sim-swap/sim-swap-v2.0.0.yaml b/telco/camaraproject.org/sim-swap/sim-swap-v2.0.0.yaml index ec594ef..71e1d1c 100644 --- a/telco/camaraproject.org/sim-swap/sim-swap-v2.0.0.yaml +++ b/telco/camaraproject.org/sim-swap/sim-swap-v2.0.0.yaml @@ -93,6 +93,8 @@ paths: "dispatcherRules": "def json = new groovy.json.JsonSlurper().parseText(mockRequest.requestContent);\n if (json.phoneNumber == null && json.maxAge == 120) {return \"CHECK_3LEGS\"}\n if (\"+346661113334\".equals(json.phoneNumber) && json.maxAge == 120) {return \"CHECK_2LEGS\"}\n if (\"+15555555555\".equals(json.phoneNumber) && 240 == json.maxAge) {return \"Check_SIM_Swap_1\"}\n if (\"+19876543210\".equals(json.phoneNumber) && 500 == json.maxAge) {return \"Check_SIM_Swap_2\"}\n if (\"+11234567890\".equals(json.phoneNumber) && 100 == json.maxAge) {return \"Check_SIM_Swap_3\"}\n if (\"+1234567890\".equals(json.phoneNumber) && 100 == json.maxAge) {return \"CheckSimSwapExample1\"}\n if (\"+1987654321\".equals(json.phoneNumber) && 2400 == json.maxAge) {return \"CheckSimSwapExample2\"}\n if (\"+1123456789\".equals(json.phoneNumber) && 80 == json.maxAge) {return \"CheckSimSwapExample3\"}\n return \"Check_SIM_Swap_1\"", "fallback": "Check_SIM_Swap_1" } + assertions: + - rule: RESPONSE_SCHEMA security: - openId: - sim-swap:check