-
lovetox
hm is there some testmode on some servers
-
lovetox
so that i can run it, connect with a client
-
lovetox
and replay some test
-
lovetox
actually i would not need a full server for that, just a counter part that sends defined stanzas in a specified order
-
lovetox
its probably not hard to write that myself i guess, but thought i ask befor i put in any work
-
flow
lovetox, smack's unit test have a "dummy" connection which you can feed some protocol information, so that it will send this if you send that, and so on. but I am not aware of a generic framework for this
-
flow
would potentially be nice to have, but then again, at some point you are doing integration tests and could as well fire up a full featured server like openfire, prosody or ejabberd
-
lovetox
yeah but the server would need some interface where i can execute these testcases
-
flow
but for unit tests it is certainly nice, but you usually do not want to leave your native programming environment when running units tests, so a generic impl for that is probably not that sensible
-
flow
lovetox, loopback interface? or of what kind of interface are we talking about?
-
flow
hmm we could start a joint effort for docker containers with pre-configured xmpp servers to run integration tests against
-
lovetox
no i imagined something like, i send a custom element after streamstart <testcase name="testcase45">
-
lovetox
and after that the server does something that is defined in this server testcase
-
lovetox
for example send invalid xml, or abort the stream with a specific error at a specific point
-
flow
nice idea1✎ -
flow
nice idea! ✏
-
flow
Holger, could ejabberd do that? ↑
-
Link Mauve
lovetox, not exactly a server, but check biboumi’s e2e tests.
-
Link Mauve
I think they do something like that.
-
lovetox
i just dont know if its worth to implement something like that in a real server
-
lovetox
its probably much work because it hooks into all kind of modules
-
lovetox
maybe i need just a simple server that plays specific stanzas in a specific order i define
-
Link Mauve
You also have the opposite, scansion, for server testing.
-
lovetox
hm or i simply write a testmode for nbxmpp, where nbxmpp just plays the stanzas to my client
-
Zash
lovetox: like a reverse scansion?
-
lovetox
i guess what i searched was some way how i can do this with minimal work, but its either much impl on the server, or on my lib, or in my app
-
flow
Zash, no, I think he looks more for a server which behavior is configurable so that it eventually misbehaves in a predicatable way✎ -
flow
Zash, no, I think he looks more for a server whose behavior is configurable so that it eventually misbehaves in a predicatable way ✏
-
Zash
flow: so, like scansion in reverse, acting as a server instead of n clients
-
flow
Zash, ok, right in scansion you make the clients misbehave✎ -
flow
Zash, ok, right, in scansion you make the clients misbehave ✏
-
flow
Zash, would it be feasible to extend scansion in such a way?
-
Zash
If you're lucky it'd just be changing it to accept a connection instead of initiate them, then replay the scripts there
-
Zash
Probably more work than that tho
-
jake
你好
-
jake
你好?
-
jake
你好 你好 你好 你好 你好 你好 你好 你好 你好