Commit 4fd22279 authored by johan's avatar johan Committed by johan
Browse files

Tester shall not use linphone.org to transfer file

TODO: a lft.php file must be deployed on 54.37.202.228 for test to pass
using remote servers
parent c6c93630
......@@ -989,7 +989,7 @@ static void file_transfer_message_rcs_to_external_body_client(void) {
fseek(file_to_send, 0, SEEK_SET);
/* Globally configure an http file transfer server. */
linphone_core_set_file_transfer_server(pauline->lc,"https://www.linphone.org:444/lft.php");
linphone_core_set_file_transfer_server(pauline->lc, file_transfer_url);
/* create a chatroom on pauline's side */
chat_room = linphone_core_get_chat_room(pauline->lc, marie->identity);
......
......@@ -615,7 +615,7 @@ static void group_chat_lime_x3dh_send_encrypted_file_with_or_without_text (bool_
const char *text = "Hello Group !";
// Globally configure an http file transfer server
linphone_core_set_file_transfer_server(marie->lc, "https://www.linphone.org:444/lft.php");
linphone_core_set_file_transfer_server(marie->lc, file_transfer_url);
coresManagerList = bctbx_list_append(coresManagerList, marie);
coresManagerList = bctbx_list_append(coresManagerList, pauline);
coresManagerList = bctbx_list_append(coresManagerList, chloe);
......
......@@ -3032,7 +3032,7 @@ static void group_chat_room_send_file_with_or_without_text (bool_t with_text) {
const char *text = "Hello Group !";
/* Globally configure an http file transfer server. */
linphone_core_set_file_transfer_server(marie->lc, "https://www.linphone.org:444/lft.php");
linphone_core_set_file_transfer_server(marie->lc, file_transfer_url);
coresManagerList = bctbx_list_append(coresManagerList, marie);
coresManagerList = bctbx_list_append(coresManagerList, pauline);
coresManagerList = bctbx_list_append(coresManagerList, chloe);
......
......@@ -143,6 +143,7 @@ extern const char* pure_sha256_user;
extern const char* test_password;
extern const char* test_route;
extern const char* userhostsfile;
extern const char* file_transfer_url;
extern bool_t liblinphone_tester_keep_uuid;
extern bool_t liblinphone_tester_tls_support_disabled;
extern const MSAudioDiffParams audio_cmp_params;
......
127.0.0.1 sip2.linphone.org sip.example.org sipopen.example.org auth.example.org auth1.example.org auth2.example.org altname.linphone.org sip.wildcard1.linphone.org altname.wildcard2.linphone.org sipv4.example.org conf.example.org subscribe.example.org lime.wildcard1.linphone.org http-proxy.example.org stun.example.org external.example.org sip1.example.org
127.0.0.1 sip2.linphone.org sip.example.org sipopen.example.org auth.example.org auth1.example.org auth2.example.org altname.linphone.org sip.wildcard1.linphone.org altname.wildcard2.linphone.org sipv4.example.org conf.example.org subscribe.example.org lime.wildcard1.linphone.org http-proxy.example.org stun.example.org external.example.org sip1.example.org transfer.example.org
::1 lime.wildcard1.linphone.org sip2.linphone.org sip.example.org sipopen.example.org auth.example.org auth1.example.org auth2.example.org altname.linphone.org sip.wildcard1.linphone.org altname.wildcard2.linphone.org external.example.org sip1.example.org
::1 lime.wildcard1.linphone.org sip2.linphone.org sip.example.org sipopen.example.org auth.example.org auth1.example.org auth2.example.org altname.linphone.org sip.wildcard1.linphone.org altname.wildcard2.linphone.org external.example.org sip1.example.org transfer.example.org
188.165.46.90 tunnel.wildcard2.linphone.org
......
......@@ -321,7 +321,7 @@ static void upload_collected_traces(void) {
linphone_core_cbs_unref(cbs);
linphone_core_set_log_collection_max_file_size(5000);
linphone_core_set_log_collection_upload_server_url(marie->lc,"https://www.linphone.org:444/lft.php");
linphone_core_set_log_collection_upload_server_url(marie->lc, file_transfer_url);
// Generate some logs
while (--waiting) ms_error("(test error)Waiting %d...", waiting);
ms_free(linphone_core_compress_log_collection());
......
......@@ -498,7 +498,7 @@ void transfer_message_base2(LinphoneCoreManager* marie, LinphoneCoreManager* pau
remove(receive_filepath);
/* Globally configure an http file transfer server. */
linphone_core_set_file_transfer_server(pauline->lc,"https://www.linphone.org:444/lft.php");
linphone_core_set_file_transfer_server(pauline->lc, file_transfer_url);
/* create a chatroom on pauline's side */
chat_room = linphone_core_get_chat_room(pauline->lc, marie->identity);
......@@ -699,7 +699,7 @@ static void transfer_message_upload_cancelled(void) {
LinphoneCoreManager* pauline = linphone_core_manager_new( "pauline_tcp_rc");
/* Globally configure an http file transfer server. */
linphone_core_set_file_transfer_server(pauline->lc,"https://www.linphone.org:444/lft.php");
linphone_core_set_file_transfer_server(pauline->lc, file_transfer_url);
/* create a chatroom on pauline's side */
chat_room = linphone_core_get_chat_room(pauline->lc, marie->identity);
......@@ -729,7 +729,7 @@ static void transfer_message_download_cancelled(void) {
LinphoneCoreManager* pauline = linphone_core_manager_new( "pauline_tcp_rc");
/* Globally configure an http file transfer server. */
linphone_core_set_file_transfer_server(pauline->lc,"https://www.linphone.org:444/lft.php");
linphone_core_set_file_transfer_server(pauline->lc, file_transfer_url);
/* create a chatroom on pauline's side */
chat_room = linphone_core_get_chat_room(pauline->lc,marie->identity);
......@@ -775,7 +775,7 @@ static void file_transfer_2_messages_simultaneously(void) {
remove(receive_filepath);
/* Globally configure an http file transfer server. */
linphone_core_set_file_transfer_server(pauline->lc,"https://www.linphone.org:444/lft.php");
linphone_core_set_file_transfer_server(pauline->lc, file_transfer_url);
/* create a chatroom on pauline's side */
pauline_room = linphone_core_get_chat_room(pauline->lc, marie->identity);
......@@ -1513,7 +1513,7 @@ void lime_transfer_message_base(bool_t encrypt_file,bool_t download_file_from_st
lp_config_set_int(pauline_lp, "sip", "lime_for_file_sharing", 0);
}
/* Globally configure an http file transfer server. */
linphone_core_set_file_transfer_server(pauline->lc,"https://www.linphone.org:444/lft.php");
linphone_core_set_file_transfer_server(pauline->lc, file_transfer_url);
/* create a file transfer msg */
if (use_file_body_handler_in_upload) {
......@@ -1702,7 +1702,7 @@ void crash_during_file_transfer(void) {
bctbx_list_t *msg_list = NULL;
/* Globally configure an http file transfer server. */
linphone_core_set_file_transfer_server(pauline->lc, "https://www.linphone.org:444/lft.php");
linphone_core_set_file_transfer_server(pauline->lc, file_transfer_url);
/* Create a chatroom and a file transfer message on pauline's side */
chat_room = linphone_core_get_chat_room(pauline->lc, marie->identity);
......@@ -1716,7 +1716,7 @@ void crash_during_file_transfer(void) {
/* Create a new core and check that the message stored in the saved database is in the not delivered state */
linphone_core_manager_restart(pauline, TRUE);
linphone_core_set_file_transfer_server(pauline->lc, "https://www.linphone.org:444/lft.php");
linphone_core_set_file_transfer_server(pauline->lc, file_transfer_url);
//BC_ASSERT_TRUE(wait_for(pauline->lc, pauline->lc, &pauline->stat.number_of_LinphoneRegistrationOk, 1));
......@@ -1819,7 +1819,7 @@ static void file_transfer_success_after_destroying_chatroom(void) {
linphone_chat_message_get_callbacks(msg),
liblinphone_tester_chat_message_msg_state_changed
);
linphone_core_set_file_transfer_server(marie->lc, "https://www.linphone.org:444/lft.php");
linphone_core_set_file_transfer_server(marie->lc, file_transfer_url);
linphone_chat_message_send(msg);
BC_ASSERT_TRUE(wait_for_until(marie->lc, NULL, &marie->stat.number_of_LinphoneMessageFileTransferInProgress, 1, 1000));
linphone_core_delete_chat_room(marie->lc, chatroom);
......
......@@ -181,7 +181,7 @@ static void chat_message_multipart_modifier_base(bool first_file_transfer, bool
marieMessage->addContent(content);
}
linphone_core_set_file_transfer_server(marie->lc,"https://www.linphone.org:444/lft.php");
linphone_core_set_file_transfer_server(marie->lc, file_transfer_url);
marieMessage->send();
BC_ASSERT_TRUE(wait_for(pauline->lc,marie->lc,&pauline->stat.number_of_LinphoneMessageReceived,1));
......
......@@ -56,6 +56,7 @@ const char* pure_sha256_user="pure_sha256_user";
const char* test_password="secret";
const char* test_route="sip2.linphone.org";
const char *userhostsfile = "tester_hosts";
const char *file_transfer_url="http://transfer.example.org:444/lft.php";
bool_t liblinphonetester_ipv6 = TRUE;
bool_t liblinphonetester_show_account_manager_logs = FALSE;
bool_t liblinphonetester_no_account_creator = FALSE;
......
54.37.202.228 sip2.linphone.org sip.example.org sipopen.example.org auth.example.org auth1.example.org auth2.example.org altname.linphone.org sip.wildcard1.linphone.org altname.wildcard2.linphone.org sipv4.example.org conf.example.org subscribe.example.org lime.wildcard1.linphone.org http-proxy.example.org stun.example.org external.example.org
54.37.202.228 sip2.linphone.org sip.example.org sipopen.example.org auth.example.org auth1.example.org auth2.example.org altname.linphone.org sip.wildcard1.linphone.org altname.wildcard2.linphone.org sipv4.example.org conf.example.org subscribe.example.org lime.wildcard1.linphone.org http-proxy.example.org stun.example.org external.example.org transfer.example.org
2001:41d0:700:789::2010 sip2.linphone.org sip.example.org sipopen.example.org auth.example.org auth1.example.org auth2.example.org altname.linphone.org sip.wildcard1.linphone.org altname.wildcard2.linphone.org lime.wildcard1.linphone.org external.example.org
2001:41d0:700:789::2010 sip2.linphone.org sip.example.org sipopen.example.org auth.example.org auth1.example.org auth2.example.org altname.linphone.org sip.wildcard1.linphone.org altname.wildcard2.linphone.org lime.wildcard1.linphone.org external.example.org transfer.example.org
188.165.46.90 tunnel.wildcard2.linphone.org
......
Markdown is supported
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