Test duration : 9.020s
Passed Tests | ||
---|---|---|
tigase.tests.pubsub.TestRestApiUsingJSON | ||
configureNodes | 1.114s |
2021-03-24 22:58:49 |
2021-03-24 22:58:49 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-03-24 22:58:49 | ------------------------------------ 2021-03-24 22:58:49 | [Mutex] waiting for: [configured:node:node-f1a02687-aa93-485a-bc34-49c2cc22dbec:node-2d0604b1-e8f5-4fbc-b4be-3f9ae8db188e] 2021-03-24 22:58:49 | [Mutex] received everything. 2021-03-24 22:58:49 | [Mutex] isItemNotified: configured:node:node-f1a02687-aa93-485a-bc34-49c2cc22dbec:node-2d0604b1-e8f5-4fbc-b4be-3f9ae8db188e :: true 2021-03-24 22:58:50 | [Mutex] waiting for: [received:nodes:921da2cb-9bee-4d37-a1d8-9ccc01192f12:localhost] 2021-03-24 22:58:50 | [Mutex] received everything. 2021-03-24 22:58:50 | [Mutex] isItemNotified: received:node:921da2cb-9bee-4d37-a1d8-9ccc01192f12:localhost:node-f1a02687-aa93-485a-bc34-49c2cc22dbec:Node f1a02687-aa93-485a-bc34-49c2cc22dbec :: true 2021-03-24 22:58:50 | [Mutex] waiting for: [received:nodes:b2770a94-ee52-42fd-ad05-443d19aa3a77:localhost] 2021-03-24 22:58:50 | [Mutex] received everything. 2021-03-24 22:58:50 | [Mutex] isItemNotified: received:node:b2770a94-ee52-42fd-ad05-443d19aa3a77:localhost:node-f1a02687-aa93-485a-bc34-49c2cc22dbec:Node f1a02687-aa93-485a-bc34-49c2cc22dbec :: false |
createNodes | 1.620s |
2021-03-24 22:58:46 |
2021-03-24 22:58:46 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-03-24 22:58:46 | ------------------------------------ 2021-03-24 22:58:47 | on localhost executing action create-node with content type application/json and payload: { "owner": "admin@test-domain.com", "pubsub#node_type": "leaf", "node": "node-f1a02687-aa93-485a-bc34-49c2cc22dbec", "pubsub#title": "Node f1a02687-aa93-485a-bc34-49c2cc22dbec" } 2021-03-24 22:58:47 | from localhost for action create-node got result code 200 and payload { "Note": "Operation successful" } 2021-03-24 22:58:48 | [Mutex] waiting for: [received:nodes:186ed214-9b97-4a78-9df6-0ca184f7e679:localhost] 2021-03-24 22:58:48 | [Mutex] received everything. 2021-03-24 22:58:48 | [Mutex] isItemNotified: received:node:186ed214-9b97-4a78-9df6-0ca184f7e679:localhost:node-f1a02687-aa93-485a-bc34-49c2cc22dbec:Node f1a02687-aa93-485a-bc34-49c2cc22dbec :: true |
createSubnodes | 1.033s |
2021-03-24 22:58:48 |
2021-03-24 22:58:48 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-03-24 22:58:48 | ------------------------------------ 2021-03-24 22:58:48 | on localhost executing action create-node with content type application/json and payload: { "owner": "admin@test-domain.com", "pubsub#node_type": "collection", "node": "node-2d0604b1-e8f5-4fbc-b4be-3f9ae8db188e", "pubsub#title": "Node 2d0604b1-e8f5-4fbc-b4be-3f9ae8db188e" } 2021-03-24 22:58:48 | from localhost for action create-node got result code 200 and payload { "Note": "Operation successful" } 2021-03-24 22:58:49 | [Mutex] waiting for: [received:nodes:d023a8c5-8c73-4e0d-82b4-babad4416d7c:localhost] 2021-03-24 22:58:49 | [Mutex] received everything. 2021-03-24 22:58:49 | [Mutex] isItemNotified: received:node:d023a8c5-8c73-4e0d-82b4-babad4416d7c:localhost:node-2d0604b1-e8f5-4fbc-b4be-3f9ae8db188e:Node 2d0604b1-e8f5-4fbc-b4be-3f9ae8db188e :: true |
deleteNodes | 1.028s |
2021-03-24 22:58:54 |
2021-03-24 22:58:54 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-03-24 22:58:54 | ------------------------------------ 2021-03-24 22:58:54 | on localhost executing action delete-node with content type application/json and payload: { "node": "node-2d0604b1-e8f5-4fbc-b4be-3f9ae8db188e" } 2021-03-24 22:58:54 | from localhost for action delete-node got result code 200 and payload { "Note": "Operation successful" } 2021-03-24 22:58:55 | [Mutex] waiting for: [received:nodes:7844cab4-6d1e-4208-aa1c-454d623fa386:localhost] 2021-03-24 22:58:55 | [Mutex] received everything. 2021-03-24 22:58:55 | [Mutex] isItemNotified: received:node:7844cab4-6d1e-4208-aa1c-454d623fa386:localhost:node-2d0604b1-e8f5-4fbc-b4be-3f9ae8db188e:Node 2d0604b1-e8f5-4fbc-b4be-3f9ae8db188e :: false |
deleteSubnodes | 1.035s |
2021-03-24 22:58:53 |
2021-03-24 22:58:53 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-03-24 22:58:53 | ------------------------------------ 2021-03-24 22:58:53 | on localhost executing action delete-node with content type application/json and payload: { "node": "node-f1a02687-aa93-485a-bc34-49c2cc22dbec" } 2021-03-24 22:58:53 | from localhost for action delete-node got result code 200 and payload { "Note": "Operation successful" } 2021-03-24 22:58:54 | [Mutex] waiting for: [received:nodes:9865c0d9-c2ed-4fba-987c-e2dba13796a0:localhost] 2021-03-24 22:58:54 | [Mutex] received everything. 2021-03-24 22:58:54 | [Mutex] isItemNotified: received:node:9865c0d9-c2ed-4fba-987c-e2dba13796a0:localhost:node-f1a02687-aa93-485a-bc34-49c2cc22dbec:Node f1a02687-aa93-485a-bc34-49c2cc22dbec :: false 2021-03-24 22:58:54 | [Mutex] waiting for: [received:nodes:192af8e3-6226-4039-9fc7-4a61e1304fe1:localhost] 2021-03-24 22:58:54 | [Mutex] received everything. 2021-03-24 22:58:54 | [Mutex] isItemNotified: received:node:192af8e3-6226-4039-9fc7-4a61e1304fe1:localhost:node-f1a02687-aa93-485a-bc34-49c2cc22dbec:Node f1a02687-aa93-485a-bc34-49c2cc22dbec :: false |
publishItemsToNodes | 0.116s |
2021-03-24 22:58:51 |
2021-03-24 22:58:51 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-03-24 22:58:51 | ------------------------------------ 2021-03-24 22:58:51 | on localhost executing action publish-item with content type application/json and payload: { "node": "node-f1a02687-aa93-485a-bc34-49c2cc22dbec", "entry": "<test>item-183b9f6c-ba64-4c3d-8480-b04f573b0187</test>", "item-id": "item-183b9f6c-ba64-4c3d-8480-b04f573b0187" } 2021-03-24 22:58:51 | from localhost for action publish-item got result code 200 and payload { "Note": "Operation successful", "item-id": "item-183b9f6c-ba64-4c3d-8480-b04f573b0187" } 2021-03-24 22:58:51 | [Mutex] waiting for: [published:item:notifieditem-183b9f6c-ba64-4c3d-8480-b04f573b0187:admin@test-domain.com] 2021-03-24 22:58:51 | [Mutex] received everything. 2021-03-24 22:58:51 | [Mutex] isItemNotified: published:item:notifieditem-183b9f6c-ba64-4c3d-8480-b04f573b0187:admin@test-domain.com :: true |
retractItemsFromNodes | 0.077s |
2021-03-24 22:58:51 |
2021-03-24 22:58:51 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-03-24 22:58:51 | ------------------------------------ 2021-03-24 22:58:51 | on localhost executing action delete-item with content type application/json and payload: { "node": "node-f1a02687-aa93-485a-bc34-49c2cc22dbec", "item-id": "item-183b9f6c-ba64-4c3d-8480-b04f573b0187" } 2021-03-24 22:58:51 | from localhost for action delete-item got result code 200 and payload { "Note": "Operation successful", "item-id": "item-183b9f6c-ba64-4c3d-8480-b04f573b0187" } 2021-03-24 22:58:51 | [Mutex] received everything. 2021-03-24 22:58:51 | [Mutex] isItemNotified: retracted:item:notifieditem-183b9f6c-ba64-4c3d-8480-b04f573b0187:admin@test-domain.com :: true |
retrieveItemsFromNodes | 0.043s |
2021-03-24 22:58:51 |
2021-03-24 22:58:51 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-03-24 22:58:51 | ------------------------------------ 2021-03-24 22:58:51 | on localhost executing action retrieve-item with content type application/json and payload: { "node": "node-f1a02687-aa93-485a-bc34-49c2cc22dbec", "item-id": "item-183b9f6c-ba64-4c3d-8480-b04f573b0187" } 2021-03-24 22:58:51 | from localhost for action retrieve-item got result code 200 and payload { "title": "Retrive PubSub node item", "node": "node-f1a02687-aa93-485a-bc34-49c2cc22dbec", "item-id": "item-183b9f6c-ba64-4c3d-8480-b04f573b0187", "item": [ "<item id=\"item-183b9f6c-ba64-4c3d-8480-b04f573b0187\"><test>item-183b9f6c-ba64-4c3d-8480-b04f573b0187</test></item>" ] } 2021-03-24 22:58:51 | [Mutex] notify: [retrieved:item:item-183b9f6c-ba64-4c3d-8480-b04f573b0187:payload-matches:true:localhost] 2021-03-24 22:58:51 | [Mutex] received everything. 2021-03-24 22:58:51 | [Mutex] isItemNotified: retrieved:item:item-183b9f6c-ba64-4c3d-8480-b04f573b0187:payload-matches:true:localhost :: true |
retrieveUserSubscriptions | 0.055s |
2021-03-24 22:58:51 |
2021-03-24 22:58:51 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-03-24 22:58:51 | ------------------------------------ 2021-03-24 22:58:51 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload: { "jid": "admin@test-domain.com" } 2021-03-24 22:58:51 | from localhost for action retrieve-user-subscriptions got result code 200 and payload { "nodes": [ "test", "node-2d0604b1-e8f5-4fbc-b4be-3f9ae8db188e", "node-f1a02687-aa93-485a-bc34-49c2cc22dbec" ] } |
retrieveUserSubscriptionsWithRegex | 0.051s |
2021-03-24 22:58:51 |
2021-03-24 22:58:51 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-03-24 22:58:51 | ------------------------------------ 2021-03-24 22:58:51 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload: { "jid": "admin@test-domain.com", "node-pattern": "(?!node-f1a02687-aa93-485a-bc34-49c2cc22dbec)" } 2021-03-24 22:58:51 | from localhost for action retrieve-user-subscriptions got result code 200 and payload { "nodes": [ ] } |
subscribeNodes | 1.015s |
2021-03-24 22:58:50 |
2021-03-24 22:58:50 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-03-24 22:58:50 | ------------------------------------ 2021-03-24 22:58:50 | on localhost executing action subscribe-node with content type application/json and payload: { "node": "node-f1a02687-aa93-485a-bc34-49c2cc22dbec", "jids": [ "admin@test-domain.com" ] } 2021-03-24 22:58:50 | from localhost for action subscribe-node got result code 200 and payload { "Note": "Operation successful" } |
unsubscribeNodes | 1.098s |
2021-03-24 22:58:51 |
2021-03-24 22:58:51 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-03-24 22:58:51 | ------------------------------------ 2021-03-24 22:58:51 | on localhost executing action unsubscribe-node with content type application/json and payload: { "node": "node-f1a02687-aa93-485a-bc34-49c2cc22dbec", "jids": [ "admin@test-domain.com" ] } 2021-03-24 22:58:52 | from localhost for action unsubscribe-node got result code 200 and payload { "Note": "Operation successful" } |