Test duration : 9.029s
Passed Tests | ||
---|---|---|
tigase.tests.pubsub.TestRestApiUsingJSON | ||
configureNodes | 1.120s |
2021-09-22 00:29:25 |
2021-09-22 00:29:25 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-09-22 00:29:25 | ------------------------------------ 2021-09-22 00:29:25 | [Mutex] waiting for: [configured:node:node-86eda488-77b7-484e-a852-2213e8614711:node-4abfe474-01f3-42db-995a-a184cb47a505] 2021-09-22 00:29:25 | [Mutex] received everything. 2021-09-22 00:29:25 | [Mutex] isItemNotified: configured:node:node-86eda488-77b7-484e-a852-2213e8614711:node-4abfe474-01f3-42db-995a-a184cb47a505 :: true 2021-09-22 00:29:26 | [Mutex] waiting for: [received:nodes:b7dbc8df-32c0-44c3-869f-8aa41d04d246:localhost] 2021-09-22 00:29:26 | [Mutex] received everything. 2021-09-22 00:29:26 | [Mutex] isItemNotified: received:node:b7dbc8df-32c0-44c3-869f-8aa41d04d246:localhost:node-86eda488-77b7-484e-a852-2213e8614711:Node 86eda488-77b7-484e-a852-2213e8614711 :: true 2021-09-22 00:29:26 | [Mutex] waiting for: [received:nodes:264b9730-a4df-423e-ba03-cc71cf342af9:localhost] 2021-09-22 00:29:26 | [Mutex] received everything. 2021-09-22 00:29:26 | [Mutex] isItemNotified: received:node:264b9730-a4df-423e-ba03-cc71cf342af9:localhost:node-86eda488-77b7-484e-a852-2213e8614711:Node 86eda488-77b7-484e-a852-2213e8614711 :: false |
createNodes | 1.619s |
2021-09-22 00:29:23 |
2021-09-22 00:29:23 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-09-22 00:29:23 | ------------------------------------ 2021-09-22 00:29:23 | on localhost executing action create-node with content type application/json and payload: { "owner": "admin@test-domain.com", "pubsub#node_type": "leaf", "node": "node-86eda488-77b7-484e-a852-2213e8614711", "pubsub#title": "Node 86eda488-77b7-484e-a852-2213e8614711" } 2021-09-22 00:29:23 | from localhost for action create-node got result code 200 and payload { "Note": "Operation successful" } 2021-09-22 00:29:24 | [Mutex] waiting for: [received:nodes:677d1577-2cb8-408c-981f-bf21ea8e9a09:localhost] 2021-09-22 00:29:24 | [Mutex] waiting for: [received:nodes:677d1577-2cb8-408c-981f-bf21ea8e9a09:localhost] 2021-09-22 00:29:24 | [Mutex] received everything. 2021-09-22 00:29:24 | [Mutex] isItemNotified: received:node:677d1577-2cb8-408c-981f-bf21ea8e9a09:localhost:node-86eda488-77b7-484e-a852-2213e8614711:Node 86eda488-77b7-484e-a852-2213e8614711 :: true |
createSubnodes | 1.026s |
2021-09-22 00:29:24 |
2021-09-22 00:29:24 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-09-22 00:29:24 | ------------------------------------ 2021-09-22 00:29:24 | on localhost executing action create-node with content type application/json and payload: { "owner": "admin@test-domain.com", "pubsub#node_type": "collection", "node": "node-4abfe474-01f3-42db-995a-a184cb47a505", "pubsub#title": "Node 4abfe474-01f3-42db-995a-a184cb47a505" } 2021-09-22 00:29:24 | from localhost for action create-node got result code 200 and payload { "Note": "Operation successful" } 2021-09-22 00:29:25 | [Mutex] waiting for: [received:nodes:447f5ef6-38f8-4219-86a2-c0721549123a:localhost] 2021-09-22 00:29:25 | [Mutex] received everything. 2021-09-22 00:29:25 | [Mutex] isItemNotified: received:node:447f5ef6-38f8-4219-86a2-c0721549123a:localhost:node-4abfe474-01f3-42db-995a-a184cb47a505:Node 4abfe474-01f3-42db-995a-a184cb47a505 :: true |
deleteNodes | 1.022s |
2021-09-22 00:29:30 |
2021-09-22 00:29:30 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-09-22 00:29:30 | ------------------------------------ 2021-09-22 00:29:30 | on localhost executing action delete-node with content type application/json and payload: { "node": "node-4abfe474-01f3-42db-995a-a184cb47a505" } 2021-09-22 00:29:30 | from localhost for action delete-node got result code 200 and payload { "Note": "Operation successful" } 2021-09-22 00:29:31 | [Mutex] waiting for: [received:nodes:39438811-bc95-4f79-9c59-1d8683924e4e:localhost] 2021-09-22 00:29:31 | [Mutex] waiting for: [received:nodes:39438811-bc95-4f79-9c59-1d8683924e4e:localhost] 2021-09-22 00:29:31 | [Mutex] received everything. 2021-09-22 00:29:31 | [Mutex] isItemNotified: received:node:39438811-bc95-4f79-9c59-1d8683924e4e:localhost:node-4abfe474-01f3-42db-995a-a184cb47a505:Node 4abfe474-01f3-42db-995a-a184cb47a505 :: false |
deleteSubnodes | 1.028s |
2021-09-22 00:29:29 |
2021-09-22 00:29:29 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-09-22 00:29:29 | ------------------------------------ 2021-09-22 00:29:29 | on localhost executing action delete-node with content type application/json and payload: { "node": "node-86eda488-77b7-484e-a852-2213e8614711" } 2021-09-22 00:29:29 | from localhost for action delete-node got result code 200 and payload { "Note": "Operation successful" } 2021-09-22 00:29:30 | [Mutex] waiting for: [received:nodes:87652081-bc79-49a0-a843-84e5a3c06322:localhost] 2021-09-22 00:29:30 | [Mutex] received everything. 2021-09-22 00:29:30 | [Mutex] isItemNotified: received:node:87652081-bc79-49a0-a843-84e5a3c06322:localhost:node-86eda488-77b7-484e-a852-2213e8614711:Node 86eda488-77b7-484e-a852-2213e8614711 :: false 2021-09-22 00:29:30 | [Mutex] waiting for: [received:nodes:de708db7-af28-4a6e-89c1-84d6948686af:localhost] 2021-09-22 00:29:30 | [Mutex] received everything. 2021-09-22 00:29:30 | [Mutex] isItemNotified: received:node:de708db7-af28-4a6e-89c1-84d6948686af:localhost:node-86eda488-77b7-484e-a852-2213e8614711:Node 86eda488-77b7-484e-a852-2213e8614711 :: false |
publishItemsToNodes | 0.040s |
2021-09-22 00:29:27 |
2021-09-22 00:29:27 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-09-22 00:29:27 | ------------------------------------ 2021-09-22 00:29:27 | on localhost executing action publish-item with content type application/json and payload: { "node": "node-86eda488-77b7-484e-a852-2213e8614711", "entry": "<test>item-6b465456-af53-49a0-a9f6-2b67a3de23e6</test>", "item-id": "item-6b465456-af53-49a0-a9f6-2b67a3de23e6" } 2021-09-22 00:29:27 | from localhost for action publish-item got result code 200 and payload { "Note": "Operation successful", "item-id": "item-6b465456-af53-49a0-a9f6-2b67a3de23e6" } 2021-09-22 00:29:27 | [Mutex] waiting for: [published:item:notifieditem-6b465456-af53-49a0-a9f6-2b67a3de23e6:admin@test-domain.com] 2021-09-22 00:29:27 | [Mutex] received everything. 2021-09-22 00:29:27 | [Mutex] isItemNotified: published:item:notifieditem-6b465456-af53-49a0-a9f6-2b67a3de23e6:admin@test-domain.com :: true |
retractItemsFromNodes | 0.072s |
2021-09-22 00:29:28 |
2021-09-22 00:29:28 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-09-22 00:29:28 | ------------------------------------ 2021-09-22 00:29:28 | on localhost executing action delete-item with content type application/json and payload: { "node": "node-86eda488-77b7-484e-a852-2213e8614711", "item-id": "item-6b465456-af53-49a0-a9f6-2b67a3de23e6" } 2021-09-22 00:29:28 | from localhost for action delete-item got result code 200 and payload { "Note": "Operation successful", "item-id": "item-6b465456-af53-49a0-a9f6-2b67a3de23e6" } 2021-09-22 00:29:28 | [Mutex] waiting for: [retracted:item:notifieditem-6b465456-af53-49a0-a9f6-2b67a3de23e6:admin@test-domain.com] 2021-09-22 00:29:28 | [Mutex] received everything. 2021-09-22 00:29:28 | [Mutex] isItemNotified: retracted:item:notifieditem-6b465456-af53-49a0-a9f6-2b67a3de23e6:admin@test-domain.com :: true |
retrieveItemsFromNodes | 0.069s |
2021-09-22 00:29:27 |
2021-09-22 00:29:27 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-09-22 00:29:27 | ------------------------------------ 2021-09-22 00:29:27 | on localhost executing action retrieve-item with content type application/json and payload: { "node": "node-86eda488-77b7-484e-a852-2213e8614711", "item-id": "item-6b465456-af53-49a0-a9f6-2b67a3de23e6" } 2021-09-22 00:29:27 | from localhost for action retrieve-item got result code 200 and payload { "title": "Retrive PubSub node item", "node": "node-86eda488-77b7-484e-a852-2213e8614711", "item-id": "item-6b465456-af53-49a0-a9f6-2b67a3de23e6", "item": [ "<item id=\"item-6b465456-af53-49a0-a9f6-2b67a3de23e6\"><test>item-6b465456-af53-49a0-a9f6-2b67a3de23e6</test></item>" ] } 2021-09-22 00:29:27 | [Mutex] notify: [retrieved:item:item-6b465456-af53-49a0-a9f6-2b67a3de23e6:payload-matches:true:localhost] 2021-09-22 00:29:27 | [Mutex] received everything. 2021-09-22 00:29:27 | [Mutex] isItemNotified: retrieved:item:item-6b465456-af53-49a0-a9f6-2b67a3de23e6:payload-matches:true:localhost :: true |
retrieveUserSubscriptions | 0.051s |
2021-09-22 00:29:27 |
2021-09-22 00:29:27 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-09-22 00:29:27 | ------------------------------------ 2021-09-22 00:29:27 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload: { "jid": "admin@test-domain.com" } 2021-09-22 00:29:27 | from localhost for action retrieve-user-subscriptions got result code 200 and payload { "nodes": [ "node-4abfe474-01f3-42db-995a-a184cb47a505", "test", "node-86eda488-77b7-484e-a852-2213e8614711" ] } |
retrieveUserSubscriptionsWithRegex | 0.051s |
2021-09-22 00:29:27 |
2021-09-22 00:29:27 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-09-22 00:29:27 | ------------------------------------ 2021-09-22 00:29:27 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload: { "jid": "admin@test-domain.com", "node-pattern": "(?!node-86eda488-77b7-484e-a852-2213e8614711)" } 2021-09-22 00:29:28 | from localhost for action retrieve-user-subscriptions got result code 200 and payload { "nodes": [ ] } |
subscribeNodes | 1.014s |
2021-09-22 00:29:26 |
2021-09-22 00:29:26 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-09-22 00:29:26 | ------------------------------------ 2021-09-22 00:29:26 | on localhost executing action subscribe-node with content type application/json and payload: { "node": "node-86eda488-77b7-484e-a852-2213e8614711", "jids": [ "admin@test-domain.com" ] } 2021-09-22 00:29:26 | from localhost for action subscribe-node got result code 200 and payload { "Note": "Operation successful" } |
unsubscribeNodes | 1.082s |
2021-09-22 00:29:28 |
2021-09-22 00:29:28 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-09-22 00:29:28 | ------------------------------------ 2021-09-22 00:29:28 | on localhost executing action unsubscribe-node with content type application/json and payload: { "node": "node-86eda488-77b7-484e-a852-2213e8614711", "jids": [ "admin@test-domain.com" ] } 2021-09-22 00:29:28 | from localhost for action unsubscribe-node got result code 200 and payload { "Note": "Operation successful" } |