tests/presence: todo!(): test_presence_update_not_joined, test_presence_leave_msn
Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
This commit is contained in:
parent
a2cc7857b7
commit
1ada7f8bf4
1 changed files with 29 additions and 0 deletions
|
@ -550,3 +550,32 @@ async fn test_presence_update_joined() {
|
||||||
|
|
||||||
handle_stanza(&mut component, &mut rooms).await.unwrap();
|
handle_stanza(&mut component, &mut rooms).await.unwrap();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#[ignore]
|
||||||
|
#[tokio::test]
|
||||||
|
async fn test_presence_update_not_joined() {
|
||||||
|
// https://xmpp.org/extensions/xep-0045.html#example-43
|
||||||
|
// GC1 join presence
|
||||||
|
// <presence
|
||||||
|
// from='coven@chat.shakespeare.lit/thirdwitch'
|
||||||
|
// to='hag66@shakespeare.lit/pda'
|
||||||
|
// type='unavailable'>
|
||||||
|
// <x xmlns='http://jabber.org/protocol/muc#user'>
|
||||||
|
// <item affiliation='none' role='none'>
|
||||||
|
// <reason>You are not in the room.</reason>
|
||||||
|
// </item>
|
||||||
|
// <status code='110'/>
|
||||||
|
// <status code='307'/>
|
||||||
|
// <status code='333'/>
|
||||||
|
// </x>
|
||||||
|
// </presence>
|
||||||
|
|
||||||
|
todo!()
|
||||||
|
}
|
||||||
|
|
||||||
|
#[ignore]
|
||||||
|
#[tokio::test]
|
||||||
|
async fn test_presence_leave_msn() {
|
||||||
|
// Ensure the occupant is still valid even though a first session left
|
||||||
|
todo!()
|
||||||
|
}
|
||||||
|
|
Loading…
Reference in a new issue