ests: fix functional test rooms_query
This commit is contained in:
@@ -10,8 +10,8 @@
|
||||
void
|
||||
rooms_query(void** state)
|
||||
{
|
||||
stbbr_for_id("prof_confreq_*",
|
||||
"<iq id='prof_confreq_*' type='result' to='stabber@localhost/profanity' from='conference.localhost'>"
|
||||
stbbr_for_query("http://jabber.org/protocol/disco#items",
|
||||
"<iq id='*' type='result' to='stabber@localhost/profanity' from='conference.localhost'>"
|
||||
"<query xmlns='http://jabber.org/protocol/disco#items'>"
|
||||
"<item jid='chatroom@conference.localhost' name='A chat room'/>"
|
||||
"<item jid='hangout@conference.localhost' name='Another chat room'/>"
|
||||
@@ -22,11 +22,10 @@ rooms_query(void** state)
|
||||
|
||||
prof_input("/rooms service conference.localhost");
|
||||
|
||||
assert_true(prof_output_exact("chatroom@conference.localhost (A chat room)"));
|
||||
assert_true(prof_output_exact("hangout@conference.localhost (Another chat room)"));
|
||||
assert_true(prof_output_regex("Room list request sent: conference.localhost[\\s\\S]*chatroom@conference.localhost[\\s\\S]*hangout@conference.localhost"));
|
||||
|
||||
assert_true(stbbr_last_received(
|
||||
"<iq id='prof_confreq_*' to='conference.localhost' type='get'>"
|
||||
"<iq id='*' to='conference.localhost' type='get'>"
|
||||
"<query xmlns='http://jabber.org/protocol/disco#items'/>"
|
||||
"</iq>"));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user