aboutsummaryrefslogtreecommitdiffstats
path: root/t/fixtures
diff options
context:
space:
mode:
Diffstat (limited to 't/fixtures')
-rw-r--r--t/fixtures/input29
-rw-r--r--t/fixtures/localhost.conf3
-rw-r--r--t/fixtures/testplan6
3 files changed, 38 insertions, 0 deletions
diff --git a/t/fixtures/input b/t/fixtures/input
new file mode 100644
index 0000000..2d508fe
--- /dev/null
+++ b/t/fixtures/input
@@ -0,0 +1,29 @@
+<stream:stream xmlns:stream='http://etherx.jabber.org/streams'
+ version='1.0'
+ from='localhost'
+ id='somestreamid'
+ xmlns='jabber:client'>
+ <stream:features>
+ <mechanisms xmlns='urn:ietf:params:xml:ns:xmpp-sasl'>
+ <mechanism>SCRAM-SHA-1</mechanism>
+ <mechanism>PLAIN</mechanism>
+ </mechanisms>
+ <auth xmlns='http://jabber.org/features/iq-auth'/>
+ </stream:features>
+<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'></success>
+<stream:stream xmlns:stream='http://etherx.jabber.org/streams'
+ version='1.0'
+ from='localhost'
+ id='somestreamid'
+ xmlns='jabber:client'>
+ <stream:features>
+ <bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'/>
+ <session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
+ </stream:features>
+<iq from='test0@localhost' to='test0@localhost/xmpt' id='bind' type='result'>
+ <bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
+ <jid>test0@localhost/xmpt</jid>
+ </bind>
+</iq>
+<iq from='test0@localhost' to='test0@localhost/xmpt' id='session' type='result'/>
+</stream:stream>
diff --git a/t/fixtures/localhost.conf b/t/fixtures/localhost.conf
new file mode 100644
index 0000000..bc462d7
--- /dev/null
+++ b/t/fixtures/localhost.conf
@@ -0,0 +1,3 @@
+# Domain and bare JID are calculated from full.
+full_jid=test0@localhost/xmpt
+password=test
diff --git a/t/fixtures/testplan b/t/fixtures/testplan
new file mode 100644
index 0000000..ba7fcaa
--- /dev/null
+++ b/t/fixtures/testplan
@@ -0,0 +1,6 @@
+signin
+auth
+bind-reneg
+bind
+session
+signout