Change in osmo-ttcn3-hacks[master]: GSUP_Emulation: allow moving HLR handling to another test component

2021-08-06 Thread laforge
laforge has submitted this change. ( 
https://gerrit.osmocom.org/c/osmo-ttcn3-hacks/+/25071 )

Change subject: GSUP_Emulation: allow moving HLR handling to another test 
component
..

GSUP_Emulation: allow moving HLR handling to another test component

Will be used by MSC_Tests.TC_call_re_establishment_auth in
I8110a6b432de734d53b111c7b69aabca12129691
where a call from one vc_conn gets re-established in another vc_conn.

Related: SYS#5130
Change-Id: I235492185cda68f9f8e845085e3f6efe76a13501
---
M library/GSUP_Emulation.ttcn
1 file changed, 14 insertions(+), 1 deletion(-)

Approvals:
  laforge: Looks good to me, approved
  pespin: Looks good to me, but someone else must approve
  osmith: Looks good to me, but someone else must approve
  Jenkins Builder: Verified



diff --git a/library/GSUP_Emulation.ttcn b/library/GSUP_Emulation.ttcn
index 51c158a..0905806 100644
--- a/library/GSUP_Emulation.ttcn
+++ b/library/GSUP_Emulation.ttcn
@@ -222,6 +222,12 @@
GSUP_PROC.reply(GSUPEM_register:{imsi, vc_hdlr}) to 
vc_hdlr;
}

+   [] GSUP_PROC.getcall(GSUPEM_change_connhdlr:{?,?}) -> 
param(imsi, vc_hdlr) {
+   f_imsi_table_del(imsi);
+   f_imsi_table_add(vc_hdlr, imsi);
+   GSUP_PROC.reply(GSUPEM_change_connhdlr:{imsi, vc_hdlr}) 
to vc_hdlr;
+   }
+
}
}
 }
@@ -240,9 +246,10 @@

 /* procedure based port to register for incoming calls */
 signature GSUPEM_register(in charstring imsi, in GSUP_ConnHdlr hdlr);
+signature GSUPEM_change_connhdlr(in charstring imsi, in GSUP_ConnHdlr hdlr);

 type port GSUPEM_PROC_PT procedure {
-   inout GSUPEM_register;
+   inout GSUPEM_register, GSUPEM_change_connhdlr;
 } with { extension "internal" };

 /* CreateCallback that can be used as create_cb and will use the expectation 
table */
@@ -302,4 +309,10 @@
}
 }

+function f_gsup_change_connhdlr(charstring imsi) runs on GSUP_ConnHdlr {
+   GSUP_PROC.call(GSUPEM_change_connhdlr:{imsi, self}) {
+   [] GSUP_PROC.getreply(GSUPEM_change_connhdlr:{?,?}) {};
+   }
+}
+
 }

--
To view, visit https://gerrit.osmocom.org/c/osmo-ttcn3-hacks/+/25071
To unsubscribe, or for help writing mail filters, visit 
https://gerrit.osmocom.org/settings

Gerrit-Project: osmo-ttcn3-hacks
Gerrit-Branch: master
Gerrit-Change-Id: I235492185cda68f9f8e845085e3f6efe76a13501
Gerrit-Change-Number: 25071
Gerrit-PatchSet: 4
Gerrit-Owner: neels 
Gerrit-Reviewer: Jenkins Builder
Gerrit-Reviewer: laforge 
Gerrit-Reviewer: osmith 
Gerrit-Reviewer: pespin 
Gerrit-MessageType: merged


Change in osmo-ttcn3-hacks[master]: GSUP_Emulation: allow moving HLR handling to another test component

2021-08-02 Thread laforge
laforge has posted comments on this change. ( 
https://gerrit.osmocom.org/c/osmo-ttcn3-hacks/+/25071 )

Change subject: GSUP_Emulation: allow moving HLR handling to another test 
component
..


Patch Set 3: Code-Review+2


--
To view, visit https://gerrit.osmocom.org/c/osmo-ttcn3-hacks/+/25071
To unsubscribe, or for help writing mail filters, visit 
https://gerrit.osmocom.org/settings

Gerrit-Project: osmo-ttcn3-hacks
Gerrit-Branch: master
Gerrit-Change-Id: I235492185cda68f9f8e845085e3f6efe76a13501
Gerrit-Change-Number: 25071
Gerrit-PatchSet: 3
Gerrit-Owner: neels 
Gerrit-Reviewer: Jenkins Builder
Gerrit-Reviewer: laforge 
Gerrit-Reviewer: osmith 
Gerrit-Reviewer: pespin 
Gerrit-Comment-Date: Mon, 02 Aug 2021 15:07:24 +
Gerrit-HasComments: No
Gerrit-Has-Labels: Yes
Gerrit-MessageType: comment


Change in osmo-ttcn3-hacks[master]: GSUP_Emulation: allow moving HLR handling to another test component

2021-07-29 Thread osmith
osmith has posted comments on this change. ( 
https://gerrit.osmocom.org/c/osmo-ttcn3-hacks/+/25071 )

Change subject: GSUP_Emulation: allow moving HLR handling to another test 
component
..


Patch Set 2: Code-Review+1


--
To view, visit https://gerrit.osmocom.org/c/osmo-ttcn3-hacks/+/25071
To unsubscribe, or for help writing mail filters, visit 
https://gerrit.osmocom.org/settings

Gerrit-Project: osmo-ttcn3-hacks
Gerrit-Branch: master
Gerrit-Change-Id: I235492185cda68f9f8e845085e3f6efe76a13501
Gerrit-Change-Number: 25071
Gerrit-PatchSet: 2
Gerrit-Owner: neels 
Gerrit-Reviewer: Jenkins Builder
Gerrit-Reviewer: osmith 
Gerrit-Reviewer: pespin 
Gerrit-Comment-Date: Thu, 29 Jul 2021 16:03:43 +
Gerrit-HasComments: No
Gerrit-Has-Labels: Yes
Gerrit-MessageType: comment


Change in osmo-ttcn3-hacks[master]: GSUP_Emulation: allow moving HLR handling to another test component

2021-07-28 Thread pespin
pespin has posted comments on this change. ( 
https://gerrit.osmocom.org/c/osmo-ttcn3-hacks/+/25071 )

Change subject: GSUP_Emulation: allow moving HLR handling to another test 
component
..


Patch Set 2: Code-Review+1


--
To view, visit https://gerrit.osmocom.org/c/osmo-ttcn3-hacks/+/25071
To unsubscribe, or for help writing mail filters, visit 
https://gerrit.osmocom.org/settings

Gerrit-Project: osmo-ttcn3-hacks
Gerrit-Branch: master
Gerrit-Change-Id: I235492185cda68f9f8e845085e3f6efe76a13501
Gerrit-Change-Number: 25071
Gerrit-PatchSet: 2
Gerrit-Owner: neels 
Gerrit-Reviewer: Jenkins Builder
Gerrit-Reviewer: pespin 
Gerrit-Comment-Date: Wed, 28 Jul 2021 16:25:36 +
Gerrit-HasComments: No
Gerrit-Has-Labels: Yes
Gerrit-MessageType: comment


Change in osmo-ttcn3-hacks[master]: GSUP_Emulation: allow moving HLR handling to another test component

2021-07-28 Thread neels
Hello Jenkins Builder, pespin,

I'd like you to reexamine a change. Please visit

https://gerrit.osmocom.org/c/osmo-ttcn3-hacks/+/25071

to look at the new patch set (#2).

Change subject: GSUP_Emulation: allow moving HLR handling to another test 
component
..

GSUP_Emulation: allow moving HLR handling to another test component

Will be used by MSC_Tests.TC_call_re_establishment_auth in
I8110a6b432de734d53b111c7b69aabca12129691
where a call from one vc_conn gets re-established in another vc_conn.

Related: SYS#5130
Change-Id: I235492185cda68f9f8e845085e3f6efe76a13501
---
M library/GSUP_Emulation.ttcn
1 file changed, 14 insertions(+), 1 deletion(-)


  git pull ssh://gerrit.osmocom.org:29418/osmo-ttcn3-hacks 
refs/changes/71/25071/2
--
To view, visit https://gerrit.osmocom.org/c/osmo-ttcn3-hacks/+/25071
To unsubscribe, or for help writing mail filters, visit 
https://gerrit.osmocom.org/settings

Gerrit-Project: osmo-ttcn3-hacks
Gerrit-Branch: master
Gerrit-Change-Id: I235492185cda68f9f8e845085e3f6efe76a13501
Gerrit-Change-Number: 25071
Gerrit-PatchSet: 2
Gerrit-Owner: neels 
Gerrit-Reviewer: Jenkins Builder
Gerrit-Reviewer: pespin 
Gerrit-MessageType: newpatchset


Change in osmo-ttcn3-hacks[master]: GSUP_Emulation: allow moving HLR handling to another test component

2021-07-28 Thread pespin
pespin has posted comments on this change. ( 
https://gerrit.osmocom.org/c/osmo-ttcn3-hacks/+/25071 )

Change subject: GSUP_Emulation: allow moving HLR handling to another test 
component
..


Patch Set 1: Code-Review+1


--
To view, visit https://gerrit.osmocom.org/c/osmo-ttcn3-hacks/+/25071
To unsubscribe, or for help writing mail filters, visit 
https://gerrit.osmocom.org/settings

Gerrit-Project: osmo-ttcn3-hacks
Gerrit-Branch: master
Gerrit-Change-Id: I235492185cda68f9f8e845085e3f6efe76a13501
Gerrit-Change-Number: 25071
Gerrit-PatchSet: 1
Gerrit-Owner: neels 
Gerrit-Reviewer: Jenkins Builder
Gerrit-Reviewer: pespin 
Gerrit-Comment-Date: Wed, 28 Jul 2021 12:09:24 +
Gerrit-HasComments: No
Gerrit-Has-Labels: Yes
Gerrit-MessageType: comment


Change in osmo-ttcn3-hacks[master]: GSUP_Emulation: allow moving HLR handling to another test component

2021-07-27 Thread neels
neels has uploaded this change for review. ( 
https://gerrit.osmocom.org/c/osmo-ttcn3-hacks/+/25071 )


Change subject: GSUP_Emulation: allow moving HLR handling to another test 
component
..

GSUP_Emulation: allow moving HLR handling to another test component

Will be used by MSC_Tests.TC_call_re_establishment_auth in
I8110a6b432de734d53b111c7b69aabca12129691
where a call from one vc_conn gets re-established in another vc_conn.

Related: SYS#5130
Change-Id: I235492185cda68f9f8e845085e3f6efe76a13501
---
M library/GSUP_Emulation.ttcn
1 file changed, 14 insertions(+), 1 deletion(-)



  git pull ssh://gerrit.osmocom.org:29418/osmo-ttcn3-hacks 
refs/changes/71/25071/1

diff --git a/library/GSUP_Emulation.ttcn b/library/GSUP_Emulation.ttcn
index 51c158a..8c60803 100644
--- a/library/GSUP_Emulation.ttcn
+++ b/library/GSUP_Emulation.ttcn
@@ -222,6 +222,12 @@
GSUP_PROC.reply(GSUPEM_register:{imsi, vc_hdlr}) to 
vc_hdlr;
}

+   [] GSUP_PROC.getcall(GSUPEM_imsi_steal:{?,?}) -> param(imsi, 
vc_hdlr) {
+   f_imsi_table_del(imsi);
+   f_imsi_table_add(vc_hdlr, imsi);
+   GSUP_PROC.reply(GSUPEM_imsi_steal:{imsi, vc_hdlr}) to 
vc_hdlr;
+   }
+
}
}
 }
@@ -240,9 +246,10 @@

 /* procedure based port to register for incoming calls */
 signature GSUPEM_register(in charstring imsi, in GSUP_ConnHdlr hdlr);
+signature GSUPEM_imsi_steal(in charstring imsi, in GSUP_ConnHdlr hdlr);

 type port GSUPEM_PROC_PT procedure {
-   inout GSUPEM_register;
+   inout GSUPEM_register, GSUPEM_imsi_steal;
 } with { extension "internal" };

 /* CreateCallback that can be used as create_cb and will use the expectation 
table */
@@ -302,4 +309,10 @@
}
 }

+function f_gsup_imsi_steal(charstring imsi) runs on GSUP_ConnHdlr {
+   GSUP_PROC.call(GSUPEM_imsi_steal:{imsi, self}) {
+   [] GSUP_PROC.getreply(GSUPEM_imsi_steal:{?,?}) {};
+   }
+}
+
 }

--
To view, visit https://gerrit.osmocom.org/c/osmo-ttcn3-hacks/+/25071
To unsubscribe, or for help writing mail filters, visit 
https://gerrit.osmocom.org/settings

Gerrit-Project: osmo-ttcn3-hacks
Gerrit-Branch: master
Gerrit-Change-Id: I235492185cda68f9f8e845085e3f6efe76a13501
Gerrit-Change-Number: 25071
Gerrit-PatchSet: 1
Gerrit-Owner: neels 
Gerrit-MessageType: newchange