Test duration: 8.343s
| Passed Tests | ||
|---|---|---|
| tigase.tests.pubsub.TestRestApiUsingJSON | ||
| configureNodes | 1.097s |
2017-11-29 09:34:17 |
2017-11-29 09:34:17 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2017-11-29 09:34:17 | ------------------------------------ 2017-11-29 09:34:17 | tigase.jaxmpp.core.client.JaxmppCore$DefaultPacketWriter.write: SENT: <iq to="pubsub.localhost" id="sNC8IA" type="set"><pubsub xmlns="http://jabber.org/protocol/pubsub#owner"><configure node="node-aff814ff-7058-47f5-b693-6d7997b48ea0"><x xmlns="jabber:x:data" type="submit"><field type="text-single" var="pubsub#collection"><value>node-fccd13e4-c5e7-497b-a384-23812c1e3c84</value></field></x></configure></pubsub></iq> 2017-11-29 09:34:17 | tigase.jaxmpp.j2se.connectors.socket.SocketConnector.send: Send (oid=1392482765): <iq to="pubsub.localhost" id="sNC8IA" type="set"><pubsub xmlns="http://jabber.org/protocol/pubsub#owner"><configure node="node-aff814ff-7058-47f5-b693-6d7997b48ea0"><x xmlns="jabber:x:data" type="submit"><field type="text-single" var="pubsub#collection"><value>node-fccd13e4-c5e7-497b-a384-23812c1e3c84</value></field></x></configure></pubsub></iq> 2017-11-29 09:34:17 | [Mutex] waiting for: [configured:node:node-aff814ff-7058-47f5-b693-6d7997b48ea0:node-fccd13e4-c5e7-497b-a384-23812c1e3c84] 2017-11-29 09:34:17 | [Mutex] received everything. 2017-11-29 09:34:17 | [Mutex] isItemNotified: configured:node:node-aff814ff-7058-47f5-b693-6d7997b48ea0:node-fccd13e4-c5e7-497b-a384-23812c1e3c84 :: true 2017-11-29 09:34:18 | tigase.jaxmpp.core.client.JaxmppCore$DefaultPacketWriter.write: SENT: <iq to="pubsub.localhost" id="p4pugK" type="get"><query xmlns="http://jabber.org/protocol/disco#items" node="node-fccd13e4-c5e7-497b-a384-23812c1e3c84"/></iq> 2017-11-29 09:34:18 | tigase.jaxmpp.j2se.connectors.socket.SocketConnector.send: Send (oid=1392482765): <iq to="pubsub.localhost" id="p4pugK" type="get"><query xmlns="http://jabber.org/protocol/disco#items" node="node-fccd13e4-c5e7-497b-a384-23812c1e3c84"/></iq> 2017-11-29 09:34:18 | [Mutex] waiting for: [received:nodes:064b21ba-78c0-40da-b4e1-a786040bab4b:localhost] 2017-11-29 09:34:18 | [Mutex] received everything. 2017-11-29 09:34:18 | [Mutex] isItemNotified: received:node:064b21ba-78c0-40da-b4e1-a786040bab4b:localhost:node-aff814ff-7058-47f5-b693-6d7997b48ea0:Node aff814ff-7058-47f5-b693-6d7997b48ea0 :: true 2017-11-29 09:34:18 | tigase.jaxmpp.core.client.JaxmppCore$DefaultPacketWriter.write: SENT: <iq to="pubsub.localhost" id="xE77pO" type="get"><query xmlns="http://jabber.org/protocol/disco#items"/></iq> 2017-11-29 09:34:18 | tigase.jaxmpp.j2se.connectors.socket.SocketConnector.send: Send (oid=1392482765): <iq to="pubsub.localhost" id="xE77pO" type="get"><query xmlns="http://jabber.org/protocol/disco#items"/></iq> 2017-11-29 09:34:18 | [Mutex] waiting for: [received:nodes:d1eeb651-15cf-4e7b-94d9-21207be4c1e5:localhost] 2017-11-29 09:34:18 | [Mutex] received everything. 2017-11-29 09:34:18 | [Mutex] isItemNotified: received:node:d1eeb651-15cf-4e7b-94d9-21207be4c1e5:localhost:node-aff814ff-7058-47f5-b693-6d7997b48ea0:Node aff814ff-7058-47f5-b693-6d7997b48ea0 :: false |
| createNodes | 1.658s |
2017-11-29 09:34:15 |
2017-11-29 09:34:15 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2017-11-29 09:34:15 | ------------------------------------ 2017-11-29 09:34:15 | on localhost executing action create-node with content type application/json and payload: { "owner": "admin@localhost", "pubsub#node_type": "leaf", "node": "node-aff814ff-7058-47f5-b693-6d7997b48ea0", "pubsub#title": "Node aff814ff-7058-47f5-b693-6d7997b48ea0" } 2017-11-29 09:34:15 | from localhost for action create-node got result code 200 and payload { "Note": "Operation successful" } 2017-11-29 09:34:16 | tigase.jaxmpp.core.client.JaxmppCore$DefaultPacketWriter.write: SENT: <iq to="pubsub.localhost" id="kHoPHy" type="get"><query xmlns="http://jabber.org/protocol/disco#items"/></iq> 2017-11-29 09:34:16 | tigase.jaxmpp.j2se.connectors.socket.SocketConnector.send: Send (oid=1392482765): <iq to="pubsub.localhost" id="kHoPHy" type="get"><query xmlns="http://jabber.org/protocol/disco#items"/></iq> 2017-11-29 09:34:16 | [Mutex] waiting for: [received:nodes:a3c6ab59-4455-49a0-9a28-f1afd758a087:localhost] 2017-11-29 09:34:16 | [Mutex] received everything. 2017-11-29 09:34:16 | [Mutex] isItemNotified: received:node:a3c6ab59-4455-49a0-9a28-f1afd758a087:localhost:node-aff814ff-7058-47f5-b693-6d7997b48ea0:Node aff814ff-7058-47f5-b693-6d7997b48ea0 :: true |
| createSubnodes | 1.016s |
2017-11-29 09:34:16 |
2017-11-29 09:34:16 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2017-11-29 09:34:16 | ------------------------------------ 2017-11-29 09:34:16 | on localhost executing action create-node with content type application/json and payload: { "owner": "admin@localhost", "pubsub#node_type": "collection", "node": "node-fccd13e4-c5e7-497b-a384-23812c1e3c84", "pubsub#title": "Node fccd13e4-c5e7-497b-a384-23812c1e3c84" } 2017-11-29 09:34:16 | from localhost for action create-node got result code 200 and payload { "Note": "Operation successful" } 2017-11-29 09:34:17 | tigase.jaxmpp.core.client.JaxmppCore$DefaultPacketWriter.write: SENT: <iq to="pubsub.localhost" id="yNE7eD" type="get"><query xmlns="http://jabber.org/protocol/disco#items"/></iq> 2017-11-29 09:34:17 | tigase.jaxmpp.j2se.connectors.socket.SocketConnector.send: Send (oid=1392482765): <iq to="pubsub.localhost" id="yNE7eD" type="get"><query xmlns="http://jabber.org/protocol/disco#items"/></iq> 2017-11-29 09:34:17 | [Mutex] received everything. 2017-11-29 09:34:17 | [Mutex] isItemNotified: received:node:ac9b57cc-b873-4ddd-8057-e1ad4335fa68:localhost:node-fccd13e4-c5e7-497b-a384-23812c1e3c84:Node fccd13e4-c5e7-497b-a384-23812c1e3c84 :: true |
| deleteNodes | 1.016s |
2017-11-29 09:34:22 |
2017-11-29 09:34:22 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2017-11-29 09:34:22 | ------------------------------------ 2017-11-29 09:34:22 | on localhost executing action delete-node with content type application/json and payload: { "node": "node-fccd13e4-c5e7-497b-a384-23812c1e3c84" } 2017-11-29 09:34:22 | from localhost for action delete-node got result code 200 and payload { "Note": "Operation successful" } 2017-11-29 09:34:23 | tigase.jaxmpp.core.client.JaxmppCore$DefaultPacketWriter.write: SENT: <iq to="pubsub.localhost" id="kOv39s" type="get"><query xmlns="http://jabber.org/protocol/disco#items"/></iq> 2017-11-29 09:34:23 | tigase.jaxmpp.j2se.connectors.socket.SocketConnector.send: Send (oid=1392482765): <iq to="pubsub.localhost" id="kOv39s" type="get"><query xmlns="http://jabber.org/protocol/disco#items"/></iq> 2017-11-29 09:34:23 | [Mutex] waiting for: [received:nodes:5fa41cff-6903-4423-954e-9460e16930b4:localhost] 2017-11-29 09:34:23 | [Mutex] received everything. 2017-11-29 09:34:23 | [Mutex] isItemNotified: received:node:5fa41cff-6903-4423-954e-9460e16930b4:localhost:node-fccd13e4-c5e7-497b-a384-23812c1e3c84:Node fccd13e4-c5e7-497b-a384-23812c1e3c84 :: false |
| deleteSubnodes | 1.016s |
2017-11-29 09:34:21 |
2017-11-29 09:34:21 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2017-11-29 09:34:21 | ------------------------------------ 2017-11-29 09:34:21 | on localhost executing action delete-node with content type application/json and payload: { "node": "node-aff814ff-7058-47f5-b693-6d7997b48ea0" } 2017-11-29 09:34:21 | from localhost for action delete-node got result code 200 and payload { "Note": "Operation successful" } 2017-11-29 09:34:22 | tigase.jaxmpp.core.client.JaxmppCore$DefaultPacketWriter.write: SENT: <iq to="pubsub.localhost" id="4CZNID" type="get"><query xmlns="http://jabber.org/protocol/disco#items"/></iq> 2017-11-29 09:34:22 | tigase.jaxmpp.j2se.connectors.socket.SocketConnector.send: Send (oid=1392482765): <iq to="pubsub.localhost" id="4CZNID" type="get"><query xmlns="http://jabber.org/protocol/disco#items"/></iq> 2017-11-29 09:34:22 | [Mutex] waiting for: [received:nodes:0b780960-b5b5-4541-a66f-f18be7889606:localhost] 2017-11-29 09:34:22 | [Mutex] received everything. 2017-11-29 09:34:22 | [Mutex] isItemNotified: received:node:0b780960-b5b5-4541-a66f-f18be7889606:localhost:node-aff814ff-7058-47f5-b693-6d7997b48ea0:Node aff814ff-7058-47f5-b693-6d7997b48ea0 :: false 2017-11-29 09:34:22 | tigase.jaxmpp.core.client.JaxmppCore$DefaultPacketWriter.write: SENT: <iq to="pubsub.localhost" id="eD0JPN" type="get"><query xmlns="http://jabber.org/protocol/disco#items" node="node-fccd13e4-c5e7-497b-a384-23812c1e3c84"/></iq> 2017-11-29 09:34:22 | tigase.jaxmpp.j2se.connectors.socket.SocketConnector.send: Send (oid=1392482765): <iq to="pubsub.localhost" id="eD0JPN" type="get"><query xmlns="http://jabber.org/protocol/disco#items" node="node-fccd13e4-c5e7-497b-a384-23812c1e3c84"/></iq> 2017-11-29 09:34:22 | [Mutex] waiting for: [received:nodes:28086c58-26c7-4d7d-9e27-0c9527479e14:localhost] 2017-11-29 09:34:22 | [Mutex] received everything. 2017-11-29 09:34:22 | [Mutex] isItemNotified: received:node:28086c58-26c7-4d7d-9e27-0c9527479e14:localhost:node-aff814ff-7058-47f5-b693-6d7997b48ea0:Node aff814ff-7058-47f5-b693-6d7997b48ea0 :: false |
| publishItemsToNodes | 0.016s |
2017-11-29 09:34:19 |
2017-11-29 09:34:19 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2017-11-29 09:34:19 | ------------------------------------ 2017-11-29 09:34:19 | on localhost executing action publish-item with content type application/json and payload: { "node": "node-aff814ff-7058-47f5-b693-6d7997b48ea0", "entry": "<test>item-b9d85cf8-44c3-4030-8159-97eb434a4aff</test>", "item-id": "item-b9d85cf8-44c3-4030-8159-97eb434a4aff" } 2017-11-29 09:34:19 | from localhost for action publish-item got result code 200 and payload { "Note": "Operation successful", "item-id": "item-b9d85cf8-44c3-4030-8159-97eb434a4aff" } 2017-11-29 09:34:19 | [Mutex] received everything. 2017-11-29 09:34:19 | [Mutex] isItemNotified: published:item:notifieditem-b9d85cf8-44c3-4030-8159-97eb434a4aff:admin@localhost :: true |
| retractItemsFromNodes | 0.048s |
2017-11-29 09:34:20 |
2017-11-29 09:34:20 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2017-11-29 09:34:20 | ------------------------------------ 2017-11-29 09:34:20 | on localhost executing action delete-item with content type application/json and payload: { "node": "node-aff814ff-7058-47f5-b693-6d7997b48ea0", "item-id": "item-b9d85cf8-44c3-4030-8159-97eb434a4aff" } 2017-11-29 09:34:20 | from localhost for action delete-item got result code 200 and payload { "Note": "Operation successful", "item-id": "item-b9d85cf8-44c3-4030-8159-97eb434a4aff" } 2017-11-29 09:34:20 | [Mutex] received everything. 2017-11-29 09:34:20 | [Mutex] isItemNotified: retracted:item:notifieditem-b9d85cf8-44c3-4030-8159-97eb434a4aff:admin@localhost :: true |
| retrieveItemsFromNodes | 0.054s |
2017-11-29 09:34:19 |
2017-11-29 09:34:19 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2017-11-29 09:34:19 | ------------------------------------ 2017-11-29 09:34:19 | on localhost executing action retrieve-item with content type application/json and payload: { "node": "node-aff814ff-7058-47f5-b693-6d7997b48ea0", "item-id": "item-b9d85cf8-44c3-4030-8159-97eb434a4aff" } 2017-11-29 09:34:19 | from localhost for action retrieve-item got result code 200 and payload { "title": "Retrive PubSub node item", "node": "node-aff814ff-7058-47f5-b693-6d7997b48ea0", "item-id": "item-b9d85cf8-44c3-4030-8159-97eb434a4aff", "item": [ "<item id=\"item-b9d85cf8-44c3-4030-8159-97eb434a4aff\"><test>item-b9d85cf8-44c3-4030-8159-97eb434a4aff</test></item>" ] } 2017-11-29 09:34:19 | [Mutex] notify: [retrieved:item:item-b9d85cf8-44c3-4030-8159-97eb434a4aff:payload-matches:true:localhost] 2017-11-29 09:34:19 | [Mutex] received everything. 2017-11-29 09:34:19 | [Mutex] isItemNotified: retrieved:item:item-b9d85cf8-44c3-4030-8159-97eb434a4aff:payload-matches:true:localhost :: true |
| retrieveUserSubscriptions | 0.046s |
2017-11-29 09:34:19 |
2017-11-29 09:34:19 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2017-11-29 09:34:19 | ------------------------------------ 2017-11-29 09:34:19 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload: { "jid": "admin@localhost" } 2017-11-29 09:34:19 | from localhost for action retrieve-user-subscriptions got result code 200 and payload { "nodes": [ "node-aff814ff-7058-47f5-b693-6d7997b48ea0", "node-fccd13e4-c5e7-497b-a384-23812c1e3c84" ] } |
| retrieveUserSubscriptionsWithRegex | 0.043s |
2017-11-29 09:34:19 |
2017-11-29 09:34:19 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2017-11-29 09:34:19 | ------------------------------------ 2017-11-29 09:34:19 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload: { "jid": "admin@localhost", "node-pattern": "(?!node-aff814ff-7058-47f5-b693-6d7997b48ea0)" } 2017-11-29 09:34:20 | from localhost for action retrieve-user-subscriptions got result code 200 and payload { "nodes": [ ] } |
| subscribeNodes | 1.011s |
2017-11-29 09:34:18 |
2017-11-29 09:34:18 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2017-11-29 09:34:18 | ------------------------------------ 2017-11-29 09:34:18 | on localhost executing action subscribe-node with content type application/json and payload: { "node": "node-aff814ff-7058-47f5-b693-6d7997b48ea0", "jids": [ "admin@localhost" ] } 2017-11-29 09:34:18 | from localhost for action subscribe-node got result code 200 and payload { "Note": "Operation successful" } |
| unsubscribeNodes | 1.047s |
2017-11-29 09:34:20 |
2017-11-29 09:34:20 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2017-11-29 09:34:20 | ------------------------------------ 2017-11-29 09:34:20 | on localhost executing action unsubscribe-node with content type application/json and payload: { "node": "node-aff814ff-7058-47f5-b693-6d7997b48ea0", "jids": [ "admin@localhost" ] } 2017-11-29 09:34:20 | from localhost for action unsubscribe-node got result code 200 and payload { "Note": "Operation successful" } |