From 0ac1a52ad5b8314233258b687dd326a9f3f453d7 Mon Sep 17 00:00:00 2001 From: Victor Seva Date: Wed, 21 Apr 2021 12:36:31 +0200 Subject: [PATCH] TT#116100 scenarios/reminder * domain per scenario * dynamic IP/port and numbers Change-Id: I45d1e43081c1eaae3a4fc8744c2b248ff2965ec3 --- scenarios/reminder/0001_test.yml.tt2 | 6 +++--- scenarios/reminder/0003_test.yml.tt2 | 30 ++++++++++++++-------------- scenarios/reminder/0005_test.yml.tt2 | 4 ++-- scenarios/reminder/0007_test.yml.tt2 | 8 ++++---- scenarios/reminder/cdr_test.yml.tt2 | 6 +++--- scenarios/reminder/scenario.yml | 13 ++++++------ 6 files changed, 34 insertions(+), 33 deletions(-) diff --git a/scenarios/reminder/0001_test.yml.tt2 b/scenarios/reminder/0001_test.yml.tt2 index 3f10bed6..0662fe44 100644 --- a/scenarios/reminder/0001_test.yml.tt2 +++ b/scenarios/reminder/0001_test.yml.tt2 @@ -22,7 +22,7 @@ flow: - exit|ROUTE_EXIT: sip_in: - '^INVITE' - - 'Contact: sip:testuser1001@' + - 'Contact: sip:[% scenarios.0.username %]@' - 'To: ;tag=' - - 'To: ;tag=' + - 'From: ;tag=' + - 'To: ;tag=' - 'CSeq: \d+ BYE' - 'Content-Length:\s+0' - - 'P-NGCP-Src-Ip: 127.126.0.1' - - 'P-NGCP-Src-Port: \d+' + - 'P-NGCP-Src-Ip: [% scenarios.0.ip %]' + - 'P-NGCP-Src-Port: [% scenarios.0.port %]' - 'P-NGCP-Src-Proto: udp' - 'P-NGCP-Src-Af: 4' sip_out: diff --git a/scenarios/reminder/cdr_test.yml.tt2 b/scenarios/reminder/cdr_test.yml.tt2 index 221ba53a..9252faf2 100644 --- a/scenarios/reminder/cdr_test.yml.tt2 +++ b/scenarios/reminder/cdr_test.yml.tt2 @@ -1,7 +1,7 @@ cdr: - - source_user: 'testuser1001' - source_domain: 'spce.test' - source_cli: '4311001' + - source_user: '[% scenarios.0.username %]' + source_domain: 'reminder.scenarios.test' + source_cli: '[% reminder_scenarios_test.testuser1001.phone_number %]' destination_user: '\*55\*1420' destination_domain: 'vsc.local' destination_user_dialed: '\*55\*1420' diff --git a/scenarios/reminder/scenario.yml b/scenarios/reminder/scenario.yml index 45170160..d04ae701 100644 --- a/scenarios/reminder/scenario.yml +++ b/scenarios/reminder/scenario.yml @@ -1,6 +1,7 @@ +--- test_uuid: reminder domains: - 'spce.test': + reminder.scenarios.test: reseller_id: 1 customers: 'customer.test': @@ -13,7 +14,7 @@ customers: billing_profile_id: 1 reseller_id: 1 subscribers: - spce.test: + reminder.scenarios.test: testuser1003: customer: 'customer.test' password: testuser @@ -28,11 +29,11 @@ subscribers: sn: 1001 scenarios: - ip: 127.126.0.1 - domain: spce.test + domain: reminder.scenarios.test username: testuser1001 responders: - ip: 127.1.0.1 - domain: spce.test - register: no + domain: reminder.scenarios.test + register: 'no' username: testuser1003 - active: no + active: 'no'