Test duration : 9.298s
Passed Tests | ||
---|---|---|
tigase.tests.pubsub.TestRestApiUsingJSON | ||
configureNodes | 1.117s |
2020-10-21 23:02:17 |
2020-10-21 23:02:17 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-10-21 23:02:17 | ------------------------------------ 2020-10-21 23:02:17 | [Mutex] waiting for: [configured:node:node-27865fbc-f63a-4f69-9b1b-c24f31a0036f:node-d5d9185e-d550-48a4-b219-21e10b3cce9c] 2020-10-21 23:02:17 | [Mutex] received everything. 2020-10-21 23:02:17 | [Mutex] isItemNotified: configured:node:node-27865fbc-f63a-4f69-9b1b-c24f31a0036f:node-d5d9185e-d550-48a4-b219-21e10b3cce9c :: true 2020-10-21 23:02:18 | [Mutex] waiting for: [received:nodes:d1dcd352-66a7-4bdb-b44f-e7a755a2fb0a:localhost] 2020-10-21 23:02:18 | [Mutex] waiting for: [received:nodes:d1dcd352-66a7-4bdb-b44f-e7a755a2fb0a:localhost] 2020-10-21 23:02:18 | [Mutex] received everything. 2020-10-21 23:02:18 | [Mutex] isItemNotified: received:node:d1dcd352-66a7-4bdb-b44f-e7a755a2fb0a:localhost:node-27865fbc-f63a-4f69-9b1b-c24f31a0036f:Node 27865fbc-f63a-4f69-9b1b-c24f31a0036f :: true 2020-10-21 23:02:18 | [Mutex] waiting for: [received:nodes:8454ea85-2241-4adf-8b57-2074130e0a03:localhost] 2020-10-21 23:02:18 | [Mutex] waiting for: [received:nodes:8454ea85-2241-4adf-8b57-2074130e0a03:localhost] 2020-10-21 23:02:18 | [Mutex] waiting for: [received:nodes:8454ea85-2241-4adf-8b57-2074130e0a03:localhost] 2020-10-21 23:02:18 | [Mutex] received everything. 2020-10-21 23:02:18 | [Mutex] isItemNotified: received:node:8454ea85-2241-4adf-8b57-2074130e0a03:localhost:node-27865fbc-f63a-4f69-9b1b-c24f31a0036f:Node 27865fbc-f63a-4f69-9b1b-c24f31a0036f :: false |
createNodes | 1.703s |
2020-10-21 23:02:15 |
2020-10-21 23:02:15 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-10-21 23:02:15 | ------------------------------------ 2020-10-21 23:02:15 | on localhost executing action create-node with content type application/json and payload: { "owner": "admin@test-domain.com", "pubsub#node_type": "leaf", "node": "node-27865fbc-f63a-4f69-9b1b-c24f31a0036f", "pubsub#title": "Node 27865fbc-f63a-4f69-9b1b-c24f31a0036f" } 2020-10-21 23:02:15 | from localhost for action create-node got result code 200 and payload { "Note": "Operation successful" } 2020-10-21 23:02:16 | [Mutex] waiting for: [received:nodes:1c056996-e7f3-4d06-b04a-4c34f6312454:localhost] 2020-10-21 23:02:16 | [Mutex] received everything. 2020-10-21 23:02:16 | [Mutex] isItemNotified: received:node:1c056996-e7f3-4d06-b04a-4c34f6312454:localhost:node-27865fbc-f63a-4f69-9b1b-c24f31a0036f:Node 27865fbc-f63a-4f69-9b1b-c24f31a0036f :: true |
createSubnodes | 1.035s |
2020-10-21 23:02:16 |
2020-10-21 23:02:16 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-10-21 23:02:16 | ------------------------------------ 2020-10-21 23:02:16 | on localhost executing action create-node with content type application/json and payload: { "owner": "admin@test-domain.com", "pubsub#node_type": "collection", "node": "node-d5d9185e-d550-48a4-b219-21e10b3cce9c", "pubsub#title": "Node d5d9185e-d550-48a4-b219-21e10b3cce9c" } 2020-10-21 23:02:16 | from localhost for action create-node got result code 200 and payload { "Note": "Operation successful" } 2020-10-21 23:02:17 | [Mutex] waiting for: [received:nodes:f97d1847-9c87-4367-bf04-342ed1ada10e:localhost] 2020-10-21 23:02:17 | [Mutex] received everything. 2020-10-21 23:02:17 | [Mutex] isItemNotified: received:node:f97d1847-9c87-4367-bf04-342ed1ada10e:localhost:node-d5d9185e-d550-48a4-b219-21e10b3cce9c:Node d5d9185e-d550-48a4-b219-21e10b3cce9c :: true |
deleteNodes | 1.023s |
2020-10-21 23:02:22 |
2020-10-21 23:02:22 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-10-21 23:02:22 | ------------------------------------ 2020-10-21 23:02:22 | on localhost executing action delete-node with content type application/json and payload: { "node": "node-d5d9185e-d550-48a4-b219-21e10b3cce9c" } 2020-10-21 23:02:22 | from localhost for action delete-node got result code 200 and payload { "Note": "Operation successful" } 2020-10-21 23:02:23 | [Mutex] waiting for: [received:nodes:9b521a4a-6b1e-492d-b3df-716a7716dafc:localhost] 2020-10-21 23:02:23 | [Mutex] received everything. 2020-10-21 23:02:23 | [Mutex] isItemNotified: received:node:9b521a4a-6b1e-492d-b3df-716a7716dafc:localhost:node-d5d9185e-d550-48a4-b219-21e10b3cce9c:Node d5d9185e-d550-48a4-b219-21e10b3cce9c :: false |
deleteSubnodes | 1.035s |
2020-10-21 23:02:21 |
2020-10-21 23:02:21 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-10-21 23:02:21 | ------------------------------------ 2020-10-21 23:02:21 | on localhost executing action delete-node with content type application/json and payload: { "node": "node-27865fbc-f63a-4f69-9b1b-c24f31a0036f" } 2020-10-21 23:02:21 | from localhost for action delete-node got result code 200 and payload { "Note": "Operation successful" } 2020-10-21 23:02:22 | [Mutex] waiting for: [received:nodes:cfec6668-7604-425a-8821-c9af4abf6131:localhost] 2020-10-21 23:02:22 | [Mutex] received everything. 2020-10-21 23:02:22 | [Mutex] isItemNotified: received:node:cfec6668-7604-425a-8821-c9af4abf6131:localhost:node-27865fbc-f63a-4f69-9b1b-c24f31a0036f:Node 27865fbc-f63a-4f69-9b1b-c24f31a0036f :: false 2020-10-21 23:02:22 | [Mutex] waiting for: [received:nodes:812416b0-0fda-44ba-a2d6-fdf025e52332:localhost] 2020-10-21 23:02:22 | [Mutex] received everything. 2020-10-21 23:02:22 | [Mutex] isItemNotified: received:node:812416b0-0fda-44ba-a2d6-fdf025e52332:localhost:node-27865fbc-f63a-4f69-9b1b-c24f31a0036f:Node 27865fbc-f63a-4f69-9b1b-c24f31a0036f :: false |
publishItemsToNodes | 0.072s |
2020-10-21 23:02:19 |
2020-10-21 23:02:19 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-10-21 23:02:19 | ------------------------------------ 2020-10-21 23:02:19 | on localhost executing action publish-item with content type application/json and payload: { "node": "node-27865fbc-f63a-4f69-9b1b-c24f31a0036f", "entry": "<test>item-ab4cae8c-78ed-47d2-bc43-ed690e4e1054</test>", "item-id": "item-ab4cae8c-78ed-47d2-bc43-ed690e4e1054" } 2020-10-21 23:02:19 | from localhost for action publish-item got result code 200 and payload { "Note": "Operation successful", "item-id": "item-ab4cae8c-78ed-47d2-bc43-ed690e4e1054" } 2020-10-21 23:02:19 | [Mutex] waiting for: [published:item:notifieditem-ab4cae8c-78ed-47d2-bc43-ed690e4e1054:admin@test-domain.com] 2020-10-21 23:02:20 | [Mutex] received everything. 2020-10-21 23:02:20 | [Mutex] isItemNotified: published:item:notifieditem-ab4cae8c-78ed-47d2-bc43-ed690e4e1054:admin@test-domain.com :: true |
retractItemsFromNodes | 0.076s |
2020-10-21 23:02:20 |
2020-10-21 23:02:20 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-10-21 23:02:20 | ------------------------------------ 2020-10-21 23:02:20 | on localhost executing action delete-item with content type application/json and payload: { "node": "node-27865fbc-f63a-4f69-9b1b-c24f31a0036f", "item-id": "item-ab4cae8c-78ed-47d2-bc43-ed690e4e1054" } 2020-10-21 23:02:20 | from localhost for action delete-item got result code 200 and payload { "Note": "Operation successful", "item-id": "item-ab4cae8c-78ed-47d2-bc43-ed690e4e1054" } 2020-10-21 23:02:20 | [Mutex] received everything. 2020-10-21 23:02:20 | [Mutex] isItemNotified: retracted:item:notifieditem-ab4cae8c-78ed-47d2-bc43-ed690e4e1054:admin@test-domain.com :: true |
retrieveItemsFromNodes | 0.026s |
2020-10-21 23:02:20 |
2020-10-21 23:02:20 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-10-21 23:02:20 | ------------------------------------ 2020-10-21 23:02:20 | on localhost executing action retrieve-item with content type application/json and payload: { "node": "node-27865fbc-f63a-4f69-9b1b-c24f31a0036f", "item-id": "item-ab4cae8c-78ed-47d2-bc43-ed690e4e1054" } 2020-10-21 23:02:20 | from localhost for action retrieve-item got result code 200 and payload { "title": "Retrive PubSub node item", "node": "node-27865fbc-f63a-4f69-9b1b-c24f31a0036f", "item-id": "item-ab4cae8c-78ed-47d2-bc43-ed690e4e1054", "item": [ "<item id=\"item-ab4cae8c-78ed-47d2-bc43-ed690e4e1054\"><test>item-ab4cae8c-78ed-47d2-bc43-ed690e4e1054</test></item>" ] } 2020-10-21 23:02:20 | [Mutex] notify: [retrieved:item:item-ab4cae8c-78ed-47d2-bc43-ed690e4e1054:payload-matches:true:localhost] 2020-10-21 23:02:20 | [Mutex] received everything. 2020-10-21 23:02:20 | [Mutex] isItemNotified: retrieved:item:item-ab4cae8c-78ed-47d2-bc43-ed690e4e1054:payload-matches:true:localhost :: true |
retrieveUserSubscriptions | 0.171s |
2020-10-21 23:02:20 |
2020-10-21 23:02:20 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-10-21 23:02:20 | ------------------------------------ 2020-10-21 23:02:20 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload: { "jid": "admin@test-domain.com" } 2020-10-21 23:02:20 | from localhost for action retrieve-user-subscriptions got result code 200 and payload { "nodes": [ "test", "node-27865fbc-f63a-4f69-9b1b-c24f31a0036f", "node-d5d9185e-d550-48a4-b219-21e10b3cce9c" ] } |
retrieveUserSubscriptionsWithRegex | 0.051s |
2020-10-21 23:02:20 |
2020-10-21 23:02:20 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-10-21 23:02:20 | ------------------------------------ 2020-10-21 23:02:20 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload: { "jid": "admin@test-domain.com", "node-pattern": "(?!node-27865fbc-f63a-4f69-9b1b-c24f31a0036f)" } 2020-10-21 23:02:20 | from localhost for action retrieve-user-subscriptions got result code 200 and payload { "nodes": [ ] } |
subscribeNodes | 1.012s |
2020-10-21 23:02:18 |
2020-10-21 23:02:18 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-10-21 23:02:18 | ------------------------------------ 2020-10-21 23:02:18 | on localhost executing action subscribe-node with content type application/json and payload: { "node": "node-27865fbc-f63a-4f69-9b1b-c24f31a0036f", "jids": [ "admin@test-domain.com" ] } 2020-10-21 23:02:18 | from localhost for action subscribe-node got result code 200 and payload { "Note": "Operation successful" } |
unsubscribeNodes | 1.062s |
2020-10-21 23:02:20 |
2020-10-21 23:02:20 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-10-21 23:02:20 | ------------------------------------ 2020-10-21 23:02:20 | on localhost executing action unsubscribe-node with content type application/json and payload: { "node": "node-27865fbc-f63a-4f69-9b1b-c24f31a0036f", "jids": [ "admin@test-domain.com" ] } 2020-10-21 23:02:20 | from localhost for action unsubscribe-node got result code 200 and payload { "Note": "Operation successful" } |