From 237b8619d80f6ef0cb13090339be0cf2d0d2127a Mon Sep 17 00:00:00 2001 From: Victor Seva Date: Tue, 13 Apr 2021 13:47:57 +0200 Subject: [PATCH] TT#116100 scenarios/invite_concurrent_max * domain per scenario * dynamic IP/port and numbers Change-Id: I6f94432c9eb78f39e9e36ef402398f9dcac0dfd9 --- .../invite_concurrent_max/0007_test.yml.tt2 | 46 +++++++++---------- .../invite_concurrent_max/0009_test.yml.tt2 | 32 ++++++------- .../invite_concurrent_max/0019_test.yml.tt2 | 10 ++-- .../invite_concurrent_max/0021_test.yml.tt2 | 2 +- .../invite_concurrent_max/0024_test.yml.tt2 | 2 +- .../invite_concurrent_max/cdr_test.yml.tt2 | 12 ++--- scenarios/invite_concurrent_max/prefs.json | 5 -- .../invite_concurrent_max/prefs.json.tt2 | 5 ++ scenarios/invite_concurrent_max/scenario.yml | 15 +++--- 9 files changed, 65 insertions(+), 64 deletions(-) delete mode 100644 scenarios/invite_concurrent_max/prefs.json create mode 100644 scenarios/invite_concurrent_max/prefs.json.tt2 diff --git a/scenarios/invite_concurrent_max/0007_test.yml.tt2 b/scenarios/invite_concurrent_max/0007_test.yml.tt2 index 530b393c..97b5c7d2 100644 --- a/scenarios/invite_concurrent_max/0007_test.yml.tt2 +++ b/scenarios/invite_concurrent_max/0007_test.yml.tt2 @@ -17,12 +17,12 @@ flow: - start|ROUTE_FIND_CALLER: - start|ROUTE_AUTH: - start|ROUTE_AUTH_HELPER: - $x_hdr(From): spce.test + $x_hdr(From): invite-concurrent-max.scenarios.test $var(realm_user): testuser1002 - $var(realm_domain): spce.test + $var(realm_domain): invite-concurrent-max.scenarios.test - return|ROUTE_AUTH_HELPER: $avp(orig_acc_caller_user): ['testuser1002'] - $avp(orig_acc_caller_domain): ['spce.test'] + $avp(orig_acc_caller_domain): ['invite-concurrent-max.scenarios.test'] - start|ROUTE_ADD_CALLINFO_REPLY: - start|ROUTE_ADD_CALLINFO_CALLER_PRIMARY: - return|ROUTE_ADD_CALLINFO_CALLER_PRIMARY: @@ -67,10 +67,10 @@ flow: - return|ROUTE_SET_CALLEE_DIALOG: $avp(lua_dlg_profile): [ "totalaccount:[% customer_test.id %]", - "totaluser:[% spce_test.testuser1003.uuid %]", + "totaluser:[% invite_concurrent_max_scenarios_test.testuser1003.uuid %]", "total", "account:[% customer_test.id %]", - "user:[% spce_test.testuser1003.uuid %]" + "user:[% invite_concurrent_max_scenarios_test.testuser1003.uuid %]" ] - start|ROUTE_BLOCK_IN: - return|ROUTE_BLOCK_IN: @@ -108,10 +108,10 @@ flow: $avp(lua_dlg_profile): [ "local", "totalaccount:[% customer_test.id %]", - "totaluser:[% spce_test.testuser1003.uuid %]", + "totaluser:[% invite_concurrent_max_scenarios_test.testuser1003.uuid %]", "total", "account:[% customer_test.id %]", - "user:[% spce_test.testuser1003.uuid %]" + "user:[% invite_concurrent_max_scenarios_test.testuser1003.uuid %]" ] - start|ROUTE_SET_CALLER_DIALOG: - start|ROUTE_CNT_DLG_CHECK: @@ -119,19 +119,19 @@ flow: - return|ROUTE_SET_CALLER_DIALOG: $avp(lua_dlg_profile): [ 'accountout:[% customer_test.id %]', - 'userout:[% spce_test.testuser1002.uuid %]', + 'userout:[% invite_concurrent_max_scenarios_test.testuser1002.uuid %]', 'account:[% customer_test.id %]', - 'user:[% spce_test.testuser1002.uuid %]', + 'user:[% invite_concurrent_max_scenarios_test.testuser1002.uuid %]', 'totalaccountout:[% customer_test.id %]', - 'totaluserout:[% spce_test.testuser1002.uuid %]', + 'totaluserout:[% invite_concurrent_max_scenarios_test.testuser1002.uuid %]', 'totalaccount:[% customer_test.id %]', - 'totaluser:[% spce_test.testuser1002.uuid %]', + 'totaluser:[% invite_concurrent_max_scenarios_test.testuser1002.uuid %]', "local", "totalaccount:[% customer_test.id %]", - "totaluser:[% spce_test.testuser1003.uuid %]", + "totaluser:[% invite_concurrent_max_scenarios_test.testuser1003.uuid %]", "total", "account:[% customer_test.id %]", - "user:[% spce_test.testuser1003.uuid %]" + "user:[% invite_concurrent_max_scenarios_test.testuser1003.uuid %]" ] - start|ROUTE_ACC_CALLER: - start|ROUTE_SET_ACC_CALLER_CALL_COUNTERS: @@ -201,19 +201,19 @@ flow: - exit|ROUTE_EXIT: $avp(lua_dlg_profile): [ 'accountout:[% customer_test.id %]', - 'userout:[% spce_test.testuser1002.uuid %]', + 'userout:[% invite_concurrent_max_scenarios_test.testuser1002.uuid %]', 'account:[% customer_test.id %]', - 'user:[% spce_test.testuser1002.uuid %]', + 'user:[% invite_concurrent_max_scenarios_test.testuser1002.uuid %]', 'totalaccountout:[% customer_test.id %]', - 'totaluserout:[% spce_test.testuser1002.uuid %]', + 'totaluserout:[% invite_concurrent_max_scenarios_test.testuser1002.uuid %]', 'totalaccount:[% customer_test.id %]', - 'totaluser:[% spce_test.testuser1002.uuid %]', + 'totaluser:[% invite_concurrent_max_scenarios_test.testuser1002.uuid %]', "local", "totalaccount:[% customer_test.id %]", - "totaluser:[% spce_test.testuser1003.uuid %]", + "totaluser:[% invite_concurrent_max_scenarios_test.testuser1003.uuid %]", "total", "account:[% customer_test.id %]", - "user:[% spce_test.testuser1003.uuid %]" + "user:[% invite_concurrent_max_scenarios_test.testuser1003.uuid %]" ] sip_in: - '^INVITE' @@ -238,12 +238,12 @@ sip_out: - [ '^INVITE sip:testuser1003@', 'CSeq: 2 INVITE', - 'From: ;tag=[\w-]+' - - 'To: ' + - 'INVITE sip:testuser1003@[% scenarios.0.responders.0.ip %]:[% scenarios.0.responders.0.port %] SIP/2.0' + - 'From: ;tag=[\w-]+' + - 'To: ' - 'CSeq: \d+ INVITE' - 'P-LB-Uptime: \d+' - - 'P-Asserted-Identity: ' - - 'P-Caller-UUID: [% spce_test.testuser1002.uuid %]' - - 'P-NGCP-Caller-Info: ;ip=127.126.0.1;port=\d+;primary=4311002' - - 'P-NGCP-Callee-Info: ;ip=127.0.0.1;port=5060;primary=4311003' + - 'P-Asserted-Identity: ' + - 'P-Caller-UUID: [% invite_concurrent_max_scenarios_test.testuser1002.uuid %]' + - 'P-NGCP-Caller-Info: ;ip=[% scenarios.0.ip %];port=[% scenarios.0.port %];primary=[% invite_concurrent_max_scenarios_test.testuser1002.phone_number %]' + - 'P-NGCP-Callee-Info: ;ip=127.0.0.1;port=5060;primary=[% invite_concurrent_max_scenarios_test.testuser1003.phone_number %]' - 'P-D-Uri: sip:lb@127.0.0.1;lr;socket=sip:127.0.0.1:5060' - 'Content-Type: application/sdp' - 'Contact: ' @@ -29,22 +29,22 @@ sip_in: sip_out: - [ 'SIP/2.0 100 Trying', - 'From: ;tag=[\w-]+', - 'To: ', + 'From: ;tag=[\w-]+', + 'To: ', 'CSeq: \d+ INVITE', 'Server: Sipwise NGCP Proxy', 'Content-Length: 0', ] - [ - 'INVITE sip:testuser1003@127.1.0.1:\d+ SIP/2.0', - 'From: ;tag=[\w-]+', - 'To: ', + 'INVITE sip:testuser1003@[% scenarios.0.responders.0.ip %]:[% scenarios.0.responders.0.port %] SIP/2.0', + 'From: ;tag=[\w-]+', + 'To: ', 'CSeq: \d+ INVITE', 'P-LB-Uptime: \d+', - 'P-Asserted-Identity: ', - 'P-Caller-UUID: [% spce_test.testuser1002.uuid %]', - 'P-NGCP-Caller-Info: ;ip=127.126.0.1;port=\d+;primary=4311002', - 'P-NGCP-Callee-Info: ;ip=127.0.0.1;port=5060;primary=4311003', + 'P-Asserted-Identity: ', + 'P-Caller-UUID: [% invite_concurrent_max_scenarios_test.testuser1002.uuid %]', + 'P-NGCP-Caller-Info: ;ip=[% scenarios.0.ip %];port=[% scenarios.0.port %];primary=[% invite_concurrent_max_scenarios_test.testuser1002.phone_number %]', + 'P-NGCP-Callee-Info: ;ip=127.0.0.1;port=5060;primary=[% invite_concurrent_max_scenarios_test.testuser1003.phone_number %]', 'P-D-Uri: sip:lb@127.0.0.1;lr;socket=sip:127.0.0.1:5060', 'Content-Type: application/sdp', 'Contact: ', diff --git a/scenarios/invite_concurrent_max/0019_test.yml.tt2 b/scenarios/invite_concurrent_max/0019_test.yml.tt2 index 343c56ec..b0717ca1 100644 --- a/scenarios/invite_concurrent_max/0019_test.yml.tt2 +++ b/scenarios/invite_concurrent_max/0019_test.yml.tt2 @@ -17,12 +17,12 @@ flow: - start|ROUTE_FIND_CALLER: - start|ROUTE_AUTH: - start|ROUTE_AUTH_HELPER: - $x_hdr(From): spce.test + $x_hdr(From): invite-concurrent-max.scenarios.test $var(realm_user): testuser1004 - $var(realm_domain): spce.test + $var(realm_domain): invite-concurrent-max.scenarios.test - return|ROUTE_AUTH_HELPER: $avp(orig_acc_caller_user): ['testuser1004'] - $avp(orig_acc_caller_domain): ['spce.test'] + $avp(orig_acc_caller_domain): ['invite-concurrent-max.scenarios.test'] - start|ROUTE_ADD_CALLINFO_REPLY: - start|ROUTE_ADD_CALLINFO_CALLER_PRIMARY: - return|ROUTE_ADD_CALLINFO_CALLER_PRIMARY: @@ -65,10 +65,10 @@ flow: - start|ROUTE_CNT_CALLEE_REJECT: $avp(lua_dlg_profile): [ "totalaccount:[% customer_test.id %]", - "totaluser:[% spce_test.testuser1003.uuid %]", + "totaluser:[% invite_concurrent_max_scenarios_test.testuser1003.uuid %]", "total", "account:[% customer_test.id %]", - "user:[% spce_test.testuser1003.uuid %]" + "user:[% invite_concurrent_max_scenarios_test.testuser1003.uuid %]" ] - start|ROUTE_ACC_FAILURE: $xavp(callee_real_prefs[0]=>concurrent_max[*]): [1] diff --git a/scenarios/invite_concurrent_max/0021_test.yml.tt2 b/scenarios/invite_concurrent_max/0021_test.yml.tt2 index 54eac48e..49d05058 100644 --- a/scenarios/invite_concurrent_max/0021_test.yml.tt2 +++ b/scenarios/invite_concurrent_max/0021_test.yml.tt2 @@ -50,6 +50,6 @@ sip_out: 'CSeq: 3 BYE', 'Max-Forwards: 68', 'Content-Length: 0', - 'From: