Commit 02b0bf78 authored by Simon Morlat's avatar Simon Morlat
Browse files

add new test for TLS failover

parent e3edcea8
master 1.4.x 1.5.x 1.6.x dev/parallel_tests dev_msrp dev_vla_removing feature/add_server_groupchat_tester feature/address-refactoring feature/allow_ipv6_dns_servers_to_be_disabled feature/bearer_auth feature/conference_dialout feature/crypto++ feature/hybrid_object feature/improve_logs feature/linphone-vcard-contacts-list-provisioning feature/maddr-for-http feature/more_iterates feature/more_logs feature/pre_refresh_listener feature/refactor-event feature/resolver-improvements feature/sdp-belr feature/swift_push_unit_tests feature/tmp_voip feature/to_string feature/uwp_nuget feature/video_image_resize feature/yocto-kirkstone fix/add_debug_logs fix/audio-unit-callkit-master fix/auth_event_memory_leak fix/auth_info_replacement fix/avoid-memory-leaks-timer-sources fix/belle_sip_channel fix/check-tests fix/commented_broken_tests fix/contact-handling fix/dns-ttl fix/fixes-from-5.4-march fix/http_provider_memory_leak fix/ios_build_add_libbelle-sip-tester_framework fix/malformed-from fix/prack fix/prack_auth fix/prack_retransmision_2 fix/pre_mbe_dtls3.6.1_with_belle_sip_loop_fix fix/retry_after fix/small_bug_fixes fix/undesired-behaviours fix/update-check fix/user_agent_grammar fix/video_conf_with_new_proto_packaging fix/warnings_treated_as_error_arch hotfix/4.0.1-ios hotfix/4.2 hotfix/gh_issues_templates_syntax_error release/1.4 release/1.6 release/4.2 release/4.3 release/4.4 release/4.5 release/5.0 release/5.1 release/5.2 release/5.3 release/5.4 test/dummy_change_to_trigger_tester_launch 5.5.0-alpha 5.4.2 5.4.1 5.4.0 5.4.0-beta 5.4.0-alpha 5.3.107 5.3.106 5.3.105 5.3.104 5.3.102 5.3.101 5.3.100 5.3.99 5.3.97 5.3.96 5.3.95 5.3.94 5.3.93 5.3.92 5.3.90 5.3.89 5.3.88 5.3.87 5.3.86 5.3.85 5.3.84 5.3.83 5.3.81 5.3.79 5.3.77 5.3.74 5.3.73 5.3.72 5.3.71 5.3.70 5.3.69 5.3.67 5.3.65 5.3.64 5.3.63 5.3.62 5.3.61 5.3.60 5.3.59 5.3.58 5.3.57 5.3.56 5.3.55 5.3.54 5.3.53 5.3.52 5.3.51 5.3.50 5.3.49 5.3.46 5.3.45 5.3.44 5.3.42 5.3.41 5.3.38 5.3.37 5.3.36 5.3.35 5.3.34 5.3.33 5.3.29 5.3.27 5.3.26 5.3.25 5.3.24 5.3.23 5.3.22 5.3.21 5.3.19 5.3.18 5.3.15 5.3.13 5.3.12 5.3.11 5.3.10 5.3.7 5.3.6 5.3.5 5.3.4 5.3.3 5.3.1 5.3.0 5.3.0-beta 5.3.0-alpha 5.2.114 5.2.113 5.2.112 5.2.111 5.2.109 5.2.108 5.2.107 5.2.106 5.2.105 5.2.102 5.2.100 5.2.98 5.2.97 5.2.95 5.2.94 5.2.93 5.2.91 5.2.89 5.2.86 5.2.85 5.2.83 5.2.78 5.2.73 5.2.71 5.2.70 5.2.64 5.2.63 5.2.58 5.2.57 5.2.54 5.2.53 5.2.52 5.2.51 5.2.49 5.2.45 5.2.42 5.2.37 5.2.32 5.2.30 5.2.29 5.2.28 5.2.27 5.2.26 5.2.25 5.2.23 5.2.22 5.2.21 5.2.16 5.2.12 5.2.11 5.2.9 5.2.6 5.2.5 5.2.4 5.2.2 5.2.0 5.2.0-alpha 5.1.72 5.1.71 5.1.67 5.1.66 5.1.64 5.1.61 5.1.60 5.1.58 5.1.55 5.1.51 5.1.47 5.1.45 5.1.44 5.1.32 5.1.31 5.1.12 5.1.10 5.1.3 5.1.2 5.1.0 5.1.0-beta 5.1.0-alpha 5.0.71 5.0.70 5.0.68 5.0.67 5.0.66 5.0.63 5.0.62 5.0.61 5.0.58 5.0.55 5.0.53 5.0.51 5.0.50 5.0.49 5.0.46 5.0.44 5.0.37 5.0.36 5.0.32 5.0.28 5.0.27 5.0.26 5.0.24 5.0.23 5.0.22 5.0.20 5.0.18 5.0.16 5.0.15 5.0.13 5.0.12 5.0.11 5.0.8 5.0.5 5.0.3 5.0.0 5.0.0-beta 5.0.0-alpha 4.5.22 4.5.20 4.5.15 4.5.14 4.5.13 4.5.12 4.5.10 4.5.7 4.5.3 4.5.1 4.5.0 4.5.0-alpha 4.4.34 4.4.33 4.4.32 4.4.31 4.4.29 4.4.28 4.4.27 4.4.26 4.4.25 4.4.24 4.4.22 4.4.21 4.4.19 4.4.18 4.4.17 4.4.16 4.4.13 4.4.12 4.4.10 4.4.9 4.4.8 4.4.7 4.4.6 4.4.5 4.4.4 4.4.2 4.4.0 4.4.0-beta 4.4.0-alpha 4.3.2 4.3.1 4.3.0 4.3.0-beta 1.6.3 1.6.2 1.6.1 1.6.0 1.5.0 1.4.2 1.4.1 1.4.0 1.3.3 1.3.0
No related merge requests found
Showing with 12 additions and 2 deletions
...@@ -520,7 +520,7 @@ static void test_tls_to_tcp(void){ ...@@ -520,7 +520,7 @@ static void test_tls_to_tcp(void){
belle_sip_stack_set_transport_timeout(stack,orig); belle_sip_stack_set_transport_timeout(stack,orig);
} }
static void register_dns_srv(void){ static void register_dns_srv_tcp(void){
belle_sip_request_t *req; belle_sip_request_t *req;
io_error_count=0; io_error_count=0;
req=try_register_user_at_domain(stack, prov, "TCP",1,"tester",client_auth_domain,"sip:linphone.net;transport=tcp",1); req=try_register_user_at_domain(stack, prov, "TCP",1,"tester",client_auth_domain,"sip:linphone.net;transport=tcp",1);
...@@ -528,6 +528,15 @@ static void register_dns_srv(void){ ...@@ -528,6 +528,15 @@ static void register_dns_srv(void){
if (req) belle_sip_object_unref(req); if (req) belle_sip_object_unref(req);
} }
static void register_dns_srv_tls(void){
belle_sip_request_t *req;
io_error_count=0;
req=try_register_user_at_domain(stack, prov, "TLS",1,"tester",client_auth_domain,"sip:linphone.net;transport=tls",1);
CU_ASSERT_TRUE(io_error_count==0);
if (req) belle_sip_object_unref(req);
}
test_t register_tests[] = { test_t register_tests[] = {
{ "Stateful UDP", stateful_register_udp }, { "Stateful UDP", stateful_register_udp },
{ "Stateful UDP with keep-alive", stateful_register_udp_with_keep_alive }, { "Stateful UDP with keep-alive", stateful_register_udp_with_keep_alive },
...@@ -546,7 +555,8 @@ test_t register_tests[] = { ...@@ -546,7 +555,8 @@ test_t register_tests[] = {
{ "TCP connection failure", test_connection_failure }, { "TCP connection failure", test_connection_failure },
{ "TCP connection too long", test_connection_too_long }, { "TCP connection too long", test_connection_too_long },
{ "TLS connection to TCP server", test_tls_to_tcp }, { "TLS connection to TCP server", test_tls_to_tcp },
{ "Register with DNS SRV failover", register_dns_srv } { "Register with DNS SRV failover TCP", register_dns_srv_tcp },
{ "Register with DNS SRV failover TLS", register_dns_srv_tls }
}; };
test_suite_t register_test_suite = { test_suite_t register_test_suite = {
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment