mirror of
https://gitlab.linphone.org/BC/public/linphone-iphone.git
synced 2026-01-22 21:58:08 +00:00
Move "regid" test to Flexisip suite.
This commit is contained in:
parent
0eda4c72a4
commit
ce5be07253
2 changed files with 15 additions and 16 deletions
|
|
@ -1409,6 +1409,18 @@ end:
|
|||
ms_free(hellopath);
|
||||
}
|
||||
|
||||
static void register_without_regid(void) {
|
||||
LinphoneCoreManager *marie = linphone_core_manager_new2("marie_rc", FALSE);
|
||||
linphone_core_manager_start(marie,TRUE);
|
||||
LinphoneProxyConfig *cfg=linphone_core_get_default_proxy_config(marie->lc);
|
||||
if(cfg) {
|
||||
const LinphoneAddress *addr = linphone_proxy_config_get_contact(cfg);
|
||||
BC_ASSERT_PTR_NOT_NULL(addr);
|
||||
BC_ASSERT_PTR_NULL(strstr(linphone_address_as_string_uri_only(addr), "regid"));
|
||||
}
|
||||
linphone_core_manager_destroy(marie);
|
||||
}
|
||||
|
||||
void test_removing_old_tport(void) {
|
||||
bctbx_list_t* lcs;
|
||||
LinphoneCoreManager* marie2;
|
||||
|
|
@ -1472,7 +1484,8 @@ test_t flexisip_tests[] = {
|
|||
TEST_NO_TAG("TLS authentication - client rejected due to CN mismatch", tls_client_auth_bad_certificate_cn),
|
||||
TEST_NO_TAG("TLS authentication - client rejected due to unrecognized certificate chain", tls_client_auth_bad_certificate),
|
||||
TEST_NO_TAG("Transcoder", transcoder_tester),
|
||||
TEST_NO_TAG("Removing old tport on flexisip for the same client", test_removing_old_tport)
|
||||
TEST_NO_TAG("Removing old tport on flexisip for the same client", test_removing_old_tport),
|
||||
TEST_NO_TAG("Registered contact does not have regid param", register_without_regid)
|
||||
};
|
||||
|
||||
|
||||
|
|
|
|||
|
|
@ -1272,19 +1272,6 @@ static void multi_devices_register_with_gruu(void) {
|
|||
linphone_core_manager_destroy(marie);
|
||||
}
|
||||
|
||||
static void register_without_regid(void) {
|
||||
LinphoneCoreManager *marie = ms_new0(LinphoneCoreManager, 1);
|
||||
linphone_core_manager_init(marie, "marie_rc", NULL);
|
||||
linphone_core_manager_start(marie,TRUE);
|
||||
LinphoneProxyConfig *cfg=linphone_core_get_default_proxy_config(marie->lc);
|
||||
if(cfg) {
|
||||
const LinphoneAddress *addr = linphone_proxy_config_get_contact(cfg);
|
||||
BC_ASSERT_PTR_NOT_NULL(addr);
|
||||
BC_ASSERT_PTR_NULL(strstr(linphone_address_as_string_uri_only(addr), "regid"));
|
||||
}
|
||||
linphone_core_manager_destroy(marie);
|
||||
}
|
||||
|
||||
|
||||
test_t register_tests[] = {
|
||||
TEST_NO_TAG("Simple register", simple_register),
|
||||
|
|
@ -1333,8 +1320,7 @@ test_t register_tests[] = {
|
|||
TEST_NO_TAG("AuthInfo TLS client certificate authentication in callback", tls_auth_info_client_cert_cb),
|
||||
TEST_NO_TAG("AuthInfo TLS client certificate authentication in callback 2", tls_auth_info_client_cert_cb_2),
|
||||
TEST_NO_TAG("Register get GRUU", register_get_gruu),
|
||||
TEST_NO_TAG("Register get GRUU for multi device", multi_devices_register_with_gruu),
|
||||
TEST_NO_TAG("Register contact do not have regid param", register_without_regid)
|
||||
TEST_NO_TAG("Register get GRUU for multi device", multi_devices_register_with_gruu)
|
||||
};
|
||||
|
||||
test_suite_t register_test_suite = {"Register", NULL, NULL, liblinphone_tester_before_each, liblinphone_tester_after_each,
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue