uProxy-p2p icon indicating copy to clipboard operation
uProxy-p2p copied to clipboard

Mock out an xmpp server

Open mollyling opened this issue 11 years ago • 3 comments

The current xmpp tests are rather spare, and don't seem to shake many bugs out of higher-level systems.

Instead, put together a mock XMPP server -- little more than static strings and an input expectation system. Likely, the underlying facility's available as an NPM and we just have to code in the XMPP protocol bits.

mollyling avatar Dec 16 '14 18:12 mollyling

We have a high-level test to make sure we can log in, which has been useful for verifying basic socket / ssl compatibility.

There aren't many tests of the xmpp protocol there, because they are largely covered by node-xmpp itself. https://github.com/node-xmpp/node-xmpp/tree/master/test https://github.com/node-xmpp/node-xmpp-core/tree/master/test

willscott avatar Dec 16 '14 18:12 willscott

Those tests aren't very complete. The node-xmpp tests don't represent what we know about what varies between xmpp implementations, and doesn't let us reproduce behavior seen in the wild. Those tests don't actually seem to test very much (unless I've missed a big file somewhere) about variations in protocol behavior at all.

mollyling avatar Dec 16 '14 18:12 mollyling

Closing as this is not currently a priority.

jab avatar Nov 03 '16 20:11 jab