XMPP Server functional tests.

  1. Get server version
  2. Server configuration
  3. Server statistics
  4. Script with functional tests for all basic XMPP/Jabber features
  5. Tests for Virtual Hosts implementation in the server
  6. Testing bosh component
  7. Multi-threaded tests for various XMPP functions

Test start time: Dec 15, 2008 10:13:34 PM

Server version info:

Name:  Tigase
Version:  4.1.0-b1315
OS:  Mac OS X-x86_64-10.5.6, Java HotSpot(TM) 64-Bit Server VM-1.6.0_07-b06-57-Apple Inc.
    
Local IP:  127.0.0.1
Remote IP:  127.0.0.1

Server basic configuration parameters:

sess-man:admins admin@test-d
sess-man:auth-repo-class tigase.db.jdbc.JDBCRepository
sess-man:auth-repo-params/param-1 value-1
sess-man:auth-repo-url jdbc:postgresql://localhost/tigasetest?user=tigase
sess-man:component-id sess-man@devel.tigase.org
sess-man:def-hostname devel.tigase.org
sess-man:max-queue-size 100490
sess-man:plugins jabber:iq:register, jabber:iq:auth, urn:ietf:params:xml:ns:xmpp-sasl, urn:ietf:params:xml:ns:xmpp-bind, urn:ietf:params:xml:ns:xmpp-session, roster-presence, jabber:iq:privacy, jabber:iq:version, http://jabber.org/protocol/stats, starttls, vcard-temp, http://jabber.org/protocol/commands, jabber:iq:private, urn:xmpp:ping
sess-man:plugins-conf/roster-presence/dynamic-roster-classes tigase.xmpp.impl.DynamicRosterTest
sess-man:trusted admin@test.test-d
sess-man:user-repo-class tigase.db.jdbc.JDBCRepository
sess-man:user-repo-params/param-1 value-1
sess-man:user-repo-url jdbc:postgresql://localhost/tigasetest?user=tigase

Tests results:

Test name Result Total time OK Average Description History
Version success 0 sec 1 18 ms Get server version Version
Configuration success 0 sec 1 41 ms Server configuration Configuration
Statistics success 0 sec 1 94 ms Server statistics Statistics
Test 1 success 0 sec 1 0 ms Plain socket connect. Test 1
Test 2 success 0 sec 1 3 ms Stream open to server. Test 2
Test 3 success 0 sec 1 422 ms SSL socket connect. Test 3
Test 4 success 0 sec 1 28 ms XEP-0077 - In-Band Registration, register Test 4
Test 5 success 0 sec 1 9 ms XEP-0078 Non-SASL authorization with plain password. Test 5
Test 6 success 0 sec 1 12 ms XEP-0078 Non-SASL authorization with digest password. Test 6
Test 7 success 0 sec 1 33 ms TLS connection open Test 7
Test 8 success 0 sec 1 37 ms SASL authorization Test 8
Test 9 success 0 sec 1 27 ms XMPP resource bind Test 9
Test 10 success 0 sec 1 41 ms Establish XMPP session Test 10
Test 11 success 0 sec 1 20 ms Send a message to self user and don't wait for response Test 11
Test 12 success 0 sec 1 14 ms Send a message to all-xmpp-test_1 user Test 12
Test 13 success 0 sec 1 5 ms XEP-0092 - get entity version Test 13
Test 14 success 0 sec 1 51 ms XEP-0039 Statistics Gathering Test 14
Test 15 success 0 sec 1 239 ms Roster management test Test 15
Test 16 success 0 sec 1 132 ms Privacy lists management test Test 16
Test 17 success 0 sec 1 16 ms Privacy lists - send a message to blocking-test-user_1 user Test 17
Test 18 success 0 sec 1 28 ms Send a message to long-list-user_1 user Test 18
Test 19 success 0 sec 1 121 ms XEP-0049: Private XML Storage Test 19
Test 20 success 0 sec 1 44 ms Test for feature-not-implemented error which should be returned when client sends unsupported stanza Test 20
Test 21 success 0 sec 1 70 ms XEP-0054: vcard-temp Test 21
Test 22 success 0 sec 1 164 ms XEP-0199: XMPP Ping to domain 'test-d' the user is logged in Test 22
Test 23 success 0 sec 1 74 ms XEP-0199: XMPP Ping to another, vrtual domain 'test-domain' on the server Test 23
Test 24 success 0 sec 1 99 ms XEP-0030: XMPP Service Discovery Test 24
Test 25 success 0 sec 2 274 ms Presence subscription test between 'admin' and 'all-xmpp-test'. Test 25
Test 26 success 0 sec 2 104 ms Presence cancel test between 'admin' and 'all-xmpp-test'. Test 26
Test 27 success 0 sec 2 95 ms Presence unsubscribe test between 'admin' and 'all-xmpp-test'. Test 27
Test 28 success 0 sec 2 108 ms Presence subscription between 'admin' and 'all-xmpp-test' again to prepare for the next test. Test 28
Test 29 success 0 sec 2 74 ms Remove subscribed contact 'all-xmpp-test' from the roster of the user 'admin', all subscriptions should be cancelled automatically by the server. Test 29
Test 30 success 0 sec 2 31 ms 2 user connections, each using a different resource. Test 30
Test 31 success 0 sec 2 51 ms Presence subscription deny test between 'admin' and 'all-xmpp-test'. Test 31
Test 32 success 0 sec 1 11 ms Send a message without resource binding and expect an error response. Test 32
Test 33 success 0 sec 1 47 ms USER_STATUS command test to ensure interoperability with Yate Test 33
Test 34 success 0 sec 1 4 ms USER_STATUS command test to ensure security, should receive forbidden error. Test 34
Test 35 success 0 sec 1 17 ms Send room create presence request to MUC component. Test 35
Test 36 success 0 sec 1 17 ms Get version from the pubsub component. Test 36
Test 37 success 0 sec 1 68 ms Create a new channel in the pubsub component. Test 37
Test 38 success 0 sec 1 15 ms Check whether the tester user account responds Test 38
Test 39 success 0 sec 1 17 ms Send a command to tester_1 user to generate 10 messages on the server. Test 39
Test 40 success 0 sec 1 26 ms Send a command to tester_1 user to generate 100 messages on the server. Test 40
Test 41 success 0 sec 1 160 ms Send a command to tester_1 user to generate 1000 messages on the server. Test 41
Test 42 success 1 sec 1 1357 ms Send a command to tester_1 user to generate 10000 messages on the server. Test 42
Test 43 success 6 sec 1 6190 ms Send a command to tester_1 user to generate 100000 messages on the server. Test 43
Test 44 success 0 sec 1 344 ms Dynamic roster storage test Test 44
VHost 1 success 0 sec 1 19 ms XEP-0199: XMPP Ping to virtual domain 'test-domain' on the server VHost 1
VHost 2 success 0 sec 1 60 ms Reloading VHosts from non-admin account, expecting error message VHost 2
VHost 3 success 0 sec 1 20 ms Updating VHost from non-admin account, expecting error message VHost 3
VHost 4 success 0 sec 1 37 ms Removing VHost from non-admin account, expecting error message VHost 4
VHost 5 success 0 sec 1 21 ms Reloading VHosts from admin account... VHost 5
VHost 6 success 0 sec 1 53 ms XEP-0199: XMPP Ping to virtual domain 'vhost-1' which is not on the server, expecting error response VHost 6
VHost 7 success 0 sec 1 32 ms Adding VHost 'vhost-1' from admin account VHost 7
VHost 8 success 0 sec 1 30 ms XEP-0199: XMPP Ping to virtual domain 'vhost-1' on the server VHost 8
VHost 9 success 0 sec 1 28 ms Removing VHost 'vhost-1' from admin account VHost 9
VHost 10 success 0 sec 1 13 ms XEP-0199: XMPP Ping to virtual domain 'vhost-1' which is not on the server, expecting error response VHost 10
VHost 11 success 2 sec 200 13 ms XEP-0199: XMPP Ping 200 non-existen vhosts on the server, expecting error responses VHost 11
VHost 12 success 3 sec 200 18 ms Adding 200 virtual hosts from admin account VHost 12
VHost 13 success 2 sec 200 11 ms XEP-0199: XMPP Ping all 200 virtual hosts on the server VHost 13
VHost 14 success 0 sec 1 19 ms Reloading all VHosts from admin account... VHost 14
VHost 15 success 4 sec 200 20 ms Removing 200 VHosts from admin account VHost 15
VHost 16 success 2 sec 200 11 ms XEP-0199: XMPP Ping 200 non-existen vhosts on the server, expecting error responses VHost 16
VHost 17 success 0 sec 1 11 ms Reloading all VHosts from admin account... VHost 17
Vhost end success 0 sec 1 18 ms XEP-0077 - In-Band Registration - user unregister Vhost end
Bosh 1 success 0 sec 1 1 ms Socket connect. Bosh 1
Bosh 2 success 0 sec 1 8 ms Stream open to server. Bosh 2
Bosh 3 success 0 sec 1 26 ms XEP-0077 - In-Band Registration, register Bosh 3
Bosh 4 success 0 sec 1 11 ms XEP-0078 Non-SASL authorization with plain password. Bosh 4
Bosh 5 success 0 sec 1 17 ms SASL authorization Bosh 5
Bosh 6 success 0 sec 1 18 ms XMPP resource bind Bosh 6
Bosh 7 success 0 sec 1 14 ms Establish XMPP session Bosh 7
Bosh 8 success 0 sec 1 26 ms Send a message to self user and don't wait for response Bosh 8
Bosh 9 success 0 sec 1 22 ms Send a message to all-xmpp-test_1 user Bosh 9
Bosh 10 success 0 sec 1 7 ms XEP-0092 - get entity version Bosh 10
Bosh 11 success 0 sec 1 37 ms XEP-0039 Statistics Gathering Bosh 11
Bosh 12 success 0 sec 1 50 ms Roster management test Bosh 12
Bosh 13 success 0 sec 1 74 ms Privacy lists management test Bosh 13
Bosh 14 success 0 sec 1 14 ms Privacy lists - send a message to blocking-test-user_1 user Bosh 14
Bosh 15 success 0 sec 1 37 ms Send a message to long-list-user_1 user Bosh 15
Bosh 16 success 0 sec 1 45 ms XEP-0049: Private XML Storage Bosh 16
Bosh 17 success 0 sec 1 28 ms Test for feature-not-implemented error which should be returned when client sends unsupported stanza Bosh 17
Bosh 18 success 0 sec 1 40 ms XEP-0054: vcard-temp Bosh 18
Bosh 19 success 0 sec 1 15 ms XEP-0199: XMPP Ping to domain 'test-d' the user is logged in Bosh 19
Bosh 20 success 0 sec 1 14 ms XEP-0199: XMPP Ping to another, vrtual domain 'test-domain' on the server Bosh 20
Bosh 21 success 0 sec 1 24 ms XEP-0030: XMPP Service Discovery Bosh 21
Bosh 22 success 0 sec 2 83 ms Presence subscription test between 'admin' and 'all-xmpp-test'. Bosh 22
Bosh 23 success 0 sec 2 34 ms Presence cancel test between 'admin' and 'all-xmpp-test'. Bosh 23
Bosh 24 success 0 sec 2 45 ms Presence unsubscribe test between 'admin' and 'all-xmpp-test'. Bosh 24
Bosh 25 success 0 sec 2 74 ms Presence subscription between 'admin' and 'all-xmpp-test' again to prepare for the next test. Bosh 25
Bosh 26 success 0 sec 2 66 ms Remove subscribed contact 'all-xmpp-test' from the roster of the user 'admin', all subscriptions should be cancelled automatically by the server. Bosh 26
Bosh 27 success 0 sec 2 24 ms 2 user connections, each using a different resource. Bosh 27
Bosh 28 success 0 sec 2 32 ms Mixed, one connectiob via Bosh another standard c2s, each using a different resource. Bosh 28
Bosh 29 success 1 sec 2 377 ms Presence subscription deny test between 'admin' and 'all-xmpp-test'. Bosh 29
Bosh 30 success 0 sec 1 17 ms Send a message without resource binding and expect an error response. Bosh 30
Bosh end success 0 sec 1 18 ms XEP-0077 - In-Band Registration - user unregister Bosh end
Multi 1 success 1 sec 25 64 ms Multi-thread test of XEP-0077 - In-Band Registration, user register Multi 1
Multi 2 success 0 sec 25 7 ms Multi-thread test of server Version info Multi 2
Multi 3 success 2 sec 25 92 ms Multi-thread test of server Statistics info Multi 3
Multi 4 success 4 sec 25 178 ms Multi-thread test Roster management functions Multi 4
Multi 5 success 0 sec 25 28 ms Multi-thread test of message send to daemon user Multi 5
Multi 6 success 7 sec 25 314 ms Multi-thread test privacy lists management Multi 6
Multi 7 success 0 sec 25 37 ms Multi-thread test privacy lists - send a message to daemon user who blocks all messages Multi 7
Multi 8 success 0 sec 25 36 ms Multi-thread test privacy lists - send a message to daemon user with very long privacy list Multi 8
Multi-test end success 1 sec 25 49 ms Multi-thread test of XEP-0077 - In-Band Registration, user unregister Multi-test end

Test end time: Dec 15, 2008 10:14:13 PM

Total test time: 0 hours, 0 minutes, 38 seconds, 850 ms.

Server stats after test:

message-router:Last second packets 81
message-router:Last minute packets 0
message-router:Last hour packets 0
message-router:Packets received 245522
message-router:Packets sent 847
message-router:Total waiting packets 0
message-router:Max queue size 100490
message-router:IN Queue overflow 0
message-router:OUT Queue overflow 0
message-router:Average processing time on last 100 runs [ms] 0
message-router:Uptime 56 sec
message-router:Load average 2.1885
message-router:CPUs no 2
message-router:Threads count 71
message-router:CPU usage 32.9%
message-router:Max Heap mem 981,376 KB
message-router:Used Heap 166,674 KB
message-router:Free Heap 814,701 KB
message-router:Max NonHeap mem 135,168 KB
message-router:Used NonHeap 44,419 KB
message-router:Free NonHeap 90,748 KB
vhost-man:Number of VHosts 2
vhost-man:Checks: is local domain 451891
vhost-man:Checks: is anonymous domain 1337
vhost-man:Get components for local domain 112965
vhost-man:Get components for non-local domain 404
bosh:Last second packets 0
bosh:Last minute packets 0
bosh:Last hour packets 0
bosh:Packets received 289
bosh:Packets sent 372
bosh:Total waiting packets 0
bosh:Max queue size 10049
bosh:IN Queue overflow 0
bosh:OUT Queue overflow 0
bosh:Average processing time on last 100 runs [ms] 0
bosh:Open connections 0
c2s:Last second packets 291
c2s:Last minute packets 0
c2s:Last hour packets 0
c2s:Packets received 8311
c2s:Packets sent 12024
c2s:Total waiting packets 0
c2s:Max queue size 10049
c2s:IN Queue overflow 0
c2s:OUT Queue overflow 0
c2s:Average processing time on last 100 runs [ms] 0
c2s:Open connections 4
ext-comp:Last second packets 0
ext-comp:Last minute packets 0
ext-comp:Last hour packets 0
ext-comp:Packets received 4
ext-comp:Packets sent 4
ext-comp:Total waiting packets 0
ext-comp:Max queue size 10049
ext-comp:IN Queue overflow 0
ext-comp:OUT Queue overflow 0
ext-comp:Average processing time on last 100 runs [ms] 0
ext-comp:Open connections 0
muc:Last second packets 0
muc:Last minute packets 0
muc:Last hour packets 0
muc:Packets received 1
muc:Packets sent 2
muc:Total waiting packets 0
muc:Max queue size 10049
muc:IN Queue overflow 0
muc:OUT Queue overflow 0
muc:Average processing time on last 100 runs [ms] 0
pubsub:Last second packets 0
pubsub:Last minute packets 0
pubsub:Last hour packets 0
pubsub:Packets received 2
pubsub:Packets sent 2
pubsub:Total waiting packets 0
pubsub:Max queue size 10049
pubsub:IN Queue overflow 0
pubsub:OUT Queue overflow 0
pubsub:Average processing time on last 100 runs [ms] 0
sess-man:Last second packets 360
sess-man:Last minute packets 0
sess-man:Last hour packets 0
sess-man:Packets received 124950
sess-man:Packets sent 121154
sess-man:Total waiting packets 0
sess-man:Max queue size 100490
sess-man:IN Queue overflow 0
sess-man:OUT Queue overflow 0
sess-man:Average processing time on last 100 runs [ms] 0
sess-man:Open connections 6
sess-man:Registered accounts 10
sess-man:Open authorized sessions 7
sess-man:Closed connections 1368
srecv:Last second packets 0
srecv:Last minute packets 0
srecv:Last hour packets 0
srecv:Packets received 66384
srecv:Packets sent 111117
srecv:Total waiting packets 0
srecv:Max queue size 10049
srecv:IN Queue overflow 44732
srecv:OUT Queue overflow 0
srecv:Average processing time on last 100 runs [ms] 0
unknown:Stats level FINEST