diff --git a/tests/functionaltests/test_ping.c b/tests/functionaltests/test_ping.c index 14c1352d..254ac012 100644 --- a/tests/functionaltests/test_ping.c +++ b/tests/functionaltests/test_ping.c @@ -10,31 +10,29 @@ void ping_server(void** state) { - stbbr_for_id("prof_disco_info_onconnect_*", - "" + stbbr_for_query("http://jabber.org/protocol/disco#info", + "" "" "" "" "" ""); - stbbr_for_id("prof_ping_*", - ""); - stbbr_for_id("prof_ping_*", - ""); + stbbr_for_xmlns("urn:xmpp:ping", + ""); prof_connect(); prof_input("/ping"); assert_true(stbbr_received( - "" + "" "" "")); assert_true(prof_output_exact("Ping response from server")); prof_input("/ping"); assert_true(stbbr_received( - "" + "" "" "")); assert_true(prof_output_exact("Ping response from server")); @@ -43,8 +41,8 @@ ping_server(void** state) void ping_server_not_supported(void** state) { - stbbr_for_id("prof_disco_info_onconnect_*", - "" + stbbr_for_query("http://jabber.org/protocol/disco#info", + "" "" "" "" @@ -67,14 +65,14 @@ ping_responds_to_server_request(void** state) ""); assert_true(stbbr_received( - "")); + "")); } void ping_jid(void** state) { - stbbr_for_id("prof_caps_*", - "" + stbbr_for_id("*", + "" "" "" "" @@ -83,6 +81,9 @@ ping_jid(void** state) "" ""); + stbbr_for_xmlns("urn:xmpp:ping", + ""); + prof_connect(); stbbr_send( @@ -99,17 +100,14 @@ ping_jid(void** state) assert_true(prof_output_exact("Buddy1 (mobile) is online, \"I'm here\"")); assert_true(stbbr_received( - "" + "" "" "")); - stbbr_for_id("prof_ping_*", - ""); - prof_input("/ping buddy1@localhost/mobile"); assert_true(stbbr_received( - "" + "" "" "")); assert_true(prof_output_exact("Ping response from buddy1@localhost/mobile")); @@ -118,8 +116,8 @@ ping_jid(void** state) void ping_jid_not_supported(void** state) { - stbbr_for_id("prof_caps_*", - "" + stbbr_for_id("*", + "" "" "" "" @@ -143,7 +141,7 @@ ping_jid_not_supported(void** state) assert_true(prof_output_exact("Buddy1 (mobile) is online, \"I'm here\"")); assert_true(stbbr_received( - "" + "" "" ""));