mirror of
https://github.com/profanity-im/profanity.git
synced 2025-02-02 15:08:15 -05:00
Renamed verifcation functions
This commit is contained in:
parent
f8c5ed5727
commit
5aab876ab5
@ -27,7 +27,7 @@ connect_jid_requests_roster(void **state)
|
|||||||
prof_input("/connect stabber@localhost port 5230");
|
prof_input("/connect stabber@localhost port 5230");
|
||||||
prof_input("password");
|
prof_input("password");
|
||||||
|
|
||||||
assert_true(stbbr_verify(
|
assert_true(stbbr_received(
|
||||||
"<iq id=\"*\" type=\"get\"><query xmlns=\"jabber:iq:roster\"/></iq>"
|
"<iq id=\"*\" type=\"get\"><query xmlns=\"jabber:iq:roster\"/></iq>"
|
||||||
));
|
));
|
||||||
}
|
}
|
||||||
@ -47,7 +47,7 @@ connect_jid_sends_presence_after_receiving_roster(void **state)
|
|||||||
prof_input("/connect stabber@localhost port 5230");
|
prof_input("/connect stabber@localhost port 5230");
|
||||||
prof_input("password");
|
prof_input("password");
|
||||||
|
|
||||||
assert_true(stbbr_verify(
|
assert_true(stbbr_received(
|
||||||
"<presence id=\"*\">"
|
"<presence id=\"*\">"
|
||||||
"<c hash=\"sha-1\" xmlns=\"http://jabber.org/protocol/caps\" ver=\"*\" node=\"http://www.profanity.im\"/>"
|
"<c hash=\"sha-1\" xmlns=\"http://jabber.org/protocol/caps\" ver=\"*\" node=\"http://www.profanity.im\"/>"
|
||||||
"</presence>"
|
"</presence>"
|
||||||
@ -60,7 +60,7 @@ connect_jid_requests_bookmarks(void **state)
|
|||||||
prof_input("/connect stabber@localhost port 5230");
|
prof_input("/connect stabber@localhost port 5230");
|
||||||
prof_input("password");
|
prof_input("password");
|
||||||
|
|
||||||
assert_true(stbbr_verify(
|
assert_true(stbbr_received(
|
||||||
"<iq id=\"*\" type=\"get\">"
|
"<iq id=\"*\" type=\"get\">"
|
||||||
"<query xmlns=\"jabber:iq:private\">"
|
"<query xmlns=\"jabber:iq:private\">"
|
||||||
"<storage xmlns=\"storage:bookmarks\"/>"
|
"<storage xmlns=\"storage:bookmarks\"/>"
|
||||||
@ -138,7 +138,7 @@ sends_rooms_iq(void **state)
|
|||||||
prof_input("password");
|
prof_input("password");
|
||||||
prof_input("/rooms");
|
prof_input("/rooms");
|
||||||
|
|
||||||
assert_true(stbbr_verify_last(
|
assert_true(stbbr_last_received(
|
||||||
"<iq id=\"confreq\" to=\"conference.localhost\" type=\"get\">"
|
"<iq id=\"confreq\" to=\"conference.localhost\" type=\"get\">"
|
||||||
"<query xmlns=\"http://jabber.org/protocol/disco#items\"/>"
|
"<query xmlns=\"http://jabber.org/protocol/disco#items\"/>"
|
||||||
"</iq>"
|
"</iq>"
|
||||||
@ -159,7 +159,7 @@ multiple_pings(void **state)
|
|||||||
prof_input("password");
|
prof_input("password");
|
||||||
|
|
||||||
prof_input("/ping");
|
prof_input("/ping");
|
||||||
assert_true(stbbr_verify(
|
assert_true(stbbr_received(
|
||||||
"<iq id=\"prof_ping_1\" type=\"get\">"
|
"<iq id=\"prof_ping_1\" type=\"get\">"
|
||||||
"<ping xmlns=\"urn:xmpp:ping\"/>"
|
"<ping xmlns=\"urn:xmpp:ping\"/>"
|
||||||
"</iq>"
|
"</iq>"
|
||||||
@ -167,7 +167,7 @@ multiple_pings(void **state)
|
|||||||
assert_true(prof_output("Ping response from server"));
|
assert_true(prof_output("Ping response from server"));
|
||||||
|
|
||||||
prof_input("/ping");
|
prof_input("/ping");
|
||||||
assert_true(stbbr_verify(
|
assert_true(stbbr_received(
|
||||||
"<iq id=\"prof_ping_2\" type=\"get\">"
|
"<iq id=\"prof_ping_2\" type=\"get\">"
|
||||||
"<ping xmlns=\"urn:xmpp:ping\"/>"
|
"<ping xmlns=\"urn:xmpp:ping\"/>"
|
||||||
"</iq>"
|
"</iq>"
|
||||||
@ -189,7 +189,7 @@ responds_to_ping(void **state)
|
|||||||
"</iq>"
|
"</iq>"
|
||||||
);
|
);
|
||||||
|
|
||||||
assert_true(stbbr_verify(
|
assert_true(stbbr_received(
|
||||||
"<iq id=\"ping1\" type=\"result\" from=\"stabber@localhost/profanity\" to=\"localhost\"/>"
|
"<iq id=\"ping1\" type=\"result\" from=\"stabber@localhost/profanity\" to=\"localhost\"/>"
|
||||||
));
|
));
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user