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:
Maxime “pep” Buquet 2022-10-16 21:39:57 +02:00
parent a2cc7857b7
commit 1ada7f8bf4
Signed by: pep
GPG key ID: DEDA74AEECA9D0F2

View file

@ -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!()
}