# HG changeset patch # User Emmanuel Gil Peyrot # Date 1573660655 -3600 # Node ID 1cfc8012a76f2f4251603c6adffc88ff9bfc5e02 # Parent 5eab799b5fa45cb455a76f595c18321a212c2211 mod_bookmarks2: Add tests. diff -r 5eab799b5fa4 -r 1cfc8012a76f mod_bookmarks2/tests/bookmarks2.scs --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/mod_bookmarks2/tests/bookmarks2.scs Wed Nov 13 16:57:35 2019 +0100 @@ -0,0 +1,180 @@ +# Pubsub: Bookmarks 2.0 + +[Client] Juliet + jid: admin@localhost + password: password + +// admin@localhost is assumed to have node creation privileges + +--------- + +Juliet connects + +-- Generated with https://gitlab.com/xmpp-rs/xmpp-parsers: +-- cargo run --example=generate-caps https://code.matthewwild.co.uk/scansion/ <<< "" +Juliet sends: + + + + 5a5oTk21S9EmWQGIyuMwPKuSkPwqmXv6aKO5ftqCw/Q= + f3ziwT4vDK+VxuWrhhPEEgI3HJcEw7Zg4MggYE6vjZ0= + + + +Juliet receives: + + + + +Juliet sends: + + + + + + + + +Juliet sends: + + + + + + JC + + + + + + + http://jabber.org/protocol/pubsub#publish-options + + + true + + + 255 + + + never + + + whitelist + + + + + + +Juliet receives: + + + + + + JC + + + + + + +Juliet receives: + + + + + + + + +Juliet sends: + + + + + + JC + + + + + + + http://jabber.org/protocol/pubsub#publish-options + + + true + + + 255 + + + never + + + whitelist + + + + + + +Juliet receives: + + + + + + JC + + + + + + +Juliet receives: + + + + + + + + +Juliet sends: + + + + + + + + +Juliet receives: + + + + + + + + +Juliet receives: + + +Juliet disconnects + +// vim: syntax=xml: diff -r 5eab799b5fa4 -r 1cfc8012a76f mod_bookmarks2/tests/conversion.scs --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/mod_bookmarks2/tests/conversion.scs Wed Nov 13 16:57:35 2019 +0100 @@ -0,0 +1,253 @@ +# Pubsub: Bookmarks 2.0 + +[Client] Juliet-old + jid: admin@localhost + password: password + +[Client] Juliet-new + jid: admin@localhost + password: password + +// admin@localhost is assumed to have node creation privileges + +--------- + +Juliet-new connects + +-- Generated with https://gitlab.com/xmpp-rs/xmpp-parsers: +-- cargo run --example=generate-caps https://code.matthewwild.co.uk/scansion/ <<< "" +Juliet-new sends: + + + + 5a5oTk21S9EmWQGIyuMwPKuSkPwqmXv6aKO5ftqCw/Q= + f3ziwT4vDK+VxuWrhhPEEgI3HJcEw7Zg4MggYE6vjZ0= + + + +Juliet-new receives: + + + + +Juliet-new sends: + + + + + + + + +Juliet-old connects + +Juliet-old sends: + + + + + + +Juliet-old receives: + + + + + + +Juliet-old sends: + + + + + JC + + + + + +Juliet-new receives: + + + + + + JC + + + + + + +Juliet-old receives: + + +Juliet-old sends: + + + + + + +Juliet-old receives: + + + + + JC + + + + + +Juliet-old sends: + + + + + JC + + + JC + + + + + +Juliet-new receives: + + + + + + JC + + + + + + +Juliet-old receives: + + +Juliet-old sends: + + + + + + +Juliet-old receives: + + + + + JC + + + JC + + + + + +Juliet-old sends: + + + + + JC + + + + + +Juliet-new receives: + + + + + + + + +Juliet-old receives: + + +Juliet-old sends: + + + + + + +Juliet-old receives: + + + + + JC + + + + + +Juliet-old sends: + + + + + + +Juliet-new receives: + + + + + + +Juliet-old receives: + + +Juliet-old sends: + + + + + + +Juliet-old receives: + + + + + + +Juliet-old disconnects + +Juliet-new disconnects + +// vim: syntax=xml: