Commit Graph

15 Commits

Author SHA1 Message Date
Alexander Couzens 79606cfcbc ns2: rename TC_sns_config_success -> TC_sns_bss_config_success
SGSN test cases will be introduced later. Prefix all bss testcases

Change-Id: I56b074649e64d8e8469ff133d4f298ebf07707ae
2021-08-12 02:11:26 +00:00
Alexander Couzens 5eeebaa974 ns2: add a dummy test case TC_idle() for manual test cases
The TC_idle() won't be call by the control as this TC is only intended for manual
human based testing.

Change-Id: Ie1b5936447755dcaebd65396b7bb5cc3f31c17b5
2021-08-12 02:11:26 +00:00
Alexander Couzens 31f815033d ns2: add test case to call force unconfigured after SNS Size received
The old ns dummy crashed when calling force unconfigured while sending
SNS SIZE.

Change-Id: I16d89391c0d665485cf453c260531023de6096fb
2021-08-12 02:11:26 +00:00
Alexander Couzens 1650b165ea ns: test if SNS fails when all signalling NSVCs failes
As 3GPP TS 48.016 § 7.4b.1.1 specifies this behaviour.
1. do success SNS configuration
2. change sig weight of the seconds inactive bind
3. add second bind to SNS
4. stop reacting to NS_ALIVE on first NSVC (only NSVC with sig weight)
5. expect SNS SIZE

Related: OS#5039
Change-Id: Id06e34e7235d94a06152a0015487a507d6492a97
2021-06-13 04:08:51 +02:00
Alexander Couzens e23387a188 NS_Tests: add test case TC_sns_bss_add_change_del
1. do SNS configuration
2. add a bind
3. receive the SNS_ADD
4. before answering the SNS_ADD, change the weight via vty and remove the bind

Related: OS#5036
Change-Id: Ibc565bba4c7e0a0b4dd28a48847dbdb998c8528d
2021-06-10 12:47:41 +00:00
Alexander Couzens 7a62502721 NS_Tests: reset the weights of all udp binds
Some test cases change the weight of the binds. Ensure all test cases
starts with the same configuration.

Related: OS#5036
Change-Id: Iae2ba130b2f7d29ec8b417f07d0bef87f74ce5a4
2021-06-07 01:11:17 +02:00
Alexander Couzens 6f17ecc877 NS_Tests: add testcases for incoming SNS_ADD/DEL procedures
Allow to test add and remove a bind via vty.

Related: OS#5036
Change-Id: I98c04c083521ab38b58e8df9f1aee89445ab536d
2021-06-07 01:11:05 +02:00
Alexander Couzens 60548b1096 ns: TC_sns_bss_change_weight_timeout rework TC to use g_handle_rx_alive
With g_handle_rx_alive the test case doesn't need to use alt{}
as f_ns_exp takes care of the NS_ALIVE.

Related: OS#5036
Change-Id: I45f4392b556912bf60859f354a5687a44e6beeb1
2021-04-19 00:52:33 +02:00
Alexander Couzens a93cc364a8 ns: TC_sns_bss_change_weight_timeout: fix expected SNS_SIZE PDU
Allow to work with IPv4 and IPv6 endpoints and only expected known required
fields (e.g. NSEI and rst_flag).

Related: OS#5036
Change-Id: I60f669d7c8838d460a14c6604c4375a8d47f5149
2021-04-19 00:52:25 +02:00
Alexander Couzens 6c723fb7b4 ns: SNS: add testcase to test change_weight retries
Change-Id: Ie8d976a81abe0bcff53bb74991d428dbf1fe314b
2021-03-20 16:41:42 +01:00
Alexander Couzens d5ac510648 ns: SNS: add bss change weight testcase
Do a normal SNS configuration. Afterwards the BSS will change
the weights of the endpoints

Change-Id: I691b9d26bf3eb8fa65aa02eba3efd0fd3869fc2a
2021-03-20 16:41:01 +01:00
Alexander Couzens cbee32a9a7 ns: SNS: add first SNS test case
Do a successful IP-SNS configuration.

Change-Id: I822e3a440db492c91caa3a79acbfd4661852d021
2021-03-02 10:07:29 +01:00
Alexander Couzens e48d355650 ns: SNS: ensure all current testcase are only executed with IPACCESS or RESET_BLOCK dialect
All current test cases are for those 2 dialect. In preparation
of SNS test cases ensure those testcase have the correct dependency.

Change-Id: Ifda066553eabb0ace4aca12e60797c4950fcc498
2021-03-02 10:07:26 +01:00
Alexander Couzens 87e44cfe55 ns: fix broken tests by adding weight
The NSConfiguration now requires signalling_weight and data_weight.
Otherwise the tests will fail to an unbound integer.

Change-Id: I4484d48d945d5e6e1711f9bedf3248a24ecc4e76
2021-02-03 15:43:07 +01:00
Alexander Couzens 20cd41ec89 Introduce NS test cases
Related: SYS#5208
Change-Id: Ic619a374b88879d3116f8f28afb14401c3e3192b
2021-01-25 14:14:47 +01:00