Test duration : 8.878s
Passed Tests | ||
---|---|---|
tigase.tests.pubsub.TestRestApiUsingJSON | ||
configureNodes | 1.092s |
2022-04-27 23:20:54 |
2022-04-27 23:20:54 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-04-27 23:20:54 | ------------------------------------ 2022-04-27 23:20:54 | [Mutex] waiting for: [configured:node:node-a8141240-c7a8-4a4f-9b67-31a074069dc4:node-f728a093-149c-4ce0-a68a-710f37cd195a] 2022-04-27 23:20:54 | [Mutex] received everything. 2022-04-27 23:20:54 | [Mutex] isItemNotified: configured:node:node-a8141240-c7a8-4a4f-9b67-31a074069dc4:node-f728a093-149c-4ce0-a68a-710f37cd195a :: true 2022-04-27 23:20:55 | [Mutex] waiting for: [received:nodes:708738cd-b064-477e-883d-b74b3aeec6c1:localhost] 2022-04-27 23:20:55 | [Mutex] received everything. 2022-04-27 23:20:55 | [Mutex] isItemNotified: received:node:708738cd-b064-477e-883d-b74b3aeec6c1:localhost:node-a8141240-c7a8-4a4f-9b67-31a074069dc4:Node a8141240-c7a8-4a4f-9b67-31a074069dc4 :: true 2022-04-27 23:20:55 | [Mutex] waiting for: [received:nodes:3ba99fdb-7aec-4ac8-9c29-c9092a999b62:localhost] 2022-04-27 23:20:55 | [Mutex] waiting for: [received:nodes:3ba99fdb-7aec-4ac8-9c29-c9092a999b62:localhost] 2022-04-27 23:20:55 | [Mutex] received everything. 2022-04-27 23:20:55 | [Mutex] isItemNotified: received:node:3ba99fdb-7aec-4ac8-9c29-c9092a999b62:localhost:node-a8141240-c7a8-4a4f-9b67-31a074069dc4:Node a8141240-c7a8-4a4f-9b67-31a074069dc4 :: false |
createNodes | 1.610s |
2022-04-27 23:20:51 |
2022-04-27 23:20:51 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-04-27 23:20:51 | ------------------------------------ 2022-04-27 23:20:51 | on localhost executing action create-node with content type application/json and payload: { "owner": "admin@test-domain.com", "pubsub#node_type": "leaf", "node": "node-a8141240-c7a8-4a4f-9b67-31a074069dc4", "pubsub#title": "Node a8141240-c7a8-4a4f-9b67-31a074069dc4" } 2022-04-27 23:20:52 | from localhost for action create-node got result code 200 and payload { "Note": "Operation successful" } 2022-04-27 23:20:53 | [Mutex] waiting for: [received:nodes:d7cc375e-3a17-4914-90b3-d1eff4de6f1c:localhost] 2022-04-27 23:20:53 | [Mutex] received everything. 2022-04-27 23:20:53 | [Mutex] isItemNotified: received:node:d7cc375e-3a17-4914-90b3-d1eff4de6f1c:localhost:node-a8141240-c7a8-4a4f-9b67-31a074069dc4:Node a8141240-c7a8-4a4f-9b67-31a074069dc4 :: true |
createSubnodes | 1.025s |
2022-04-27 23:20:53 |
2022-04-27 23:20:53 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-04-27 23:20:53 | ------------------------------------ 2022-04-27 23:20:53 | on localhost executing action create-node with content type application/json and payload: { "owner": "admin@test-domain.com", "pubsub#node_type": "collection", "node": "node-f728a093-149c-4ce0-a68a-710f37cd195a", "pubsub#title": "Node f728a093-149c-4ce0-a68a-710f37cd195a" } 2022-04-27 23:20:53 | from localhost for action create-node got result code 200 and payload { "Note": "Operation successful" } 2022-04-27 23:20:54 | [Mutex] waiting for: [received:nodes:327bec8c-f6b7-4c6d-a12e-0dcebcbdfe40:localhost] 2022-04-27 23:20:54 | [Mutex] waiting for: [received:nodes:327bec8c-f6b7-4c6d-a12e-0dcebcbdfe40:localhost] 2022-04-27 23:20:54 | [Mutex] received everything. 2022-04-27 23:20:54 | [Mutex] isItemNotified: received:node:327bec8c-f6b7-4c6d-a12e-0dcebcbdfe40:localhost:node-f728a093-149c-4ce0-a68a-710f37cd195a:Node f728a093-149c-4ce0-a68a-710f37cd195a :: true |
deleteNodes | 1.019s |
2022-04-27 23:20:58 |
2022-04-27 23:20:58 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-04-27 23:20:58 | ------------------------------------ 2022-04-27 23:20:58 | on localhost executing action delete-node with content type application/json and payload: { "node": "node-f728a093-149c-4ce0-a68a-710f37cd195a" } 2022-04-27 23:20:58 | from localhost for action delete-node got result code 200 and payload { "Note": "Operation successful" } 2022-04-27 23:20:59 | [Mutex] waiting for: [received:nodes:f5878238-5ede-49bf-86d1-ad13e6cd39f3:localhost] 2022-04-27 23:20:59 | [Mutex] waiting for: [received:nodes:f5878238-5ede-49bf-86d1-ad13e6cd39f3:localhost] 2022-04-27 23:20:59 | [Mutex] received everything. 2022-04-27 23:20:59 | [Mutex] isItemNotified: received:node:f5878238-5ede-49bf-86d1-ad13e6cd39f3:localhost:node-f728a093-149c-4ce0-a68a-710f37cd195a:Node f728a093-149c-4ce0-a68a-710f37cd195a :: false |
deleteSubnodes | 1.028s |
2022-04-27 23:20:57 |
2022-04-27 23:20:57 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-04-27 23:20:57 | ------------------------------------ 2022-04-27 23:20:57 | on localhost executing action delete-node with content type application/json and payload: { "node": "node-a8141240-c7a8-4a4f-9b67-31a074069dc4" } 2022-04-27 23:20:57 | from localhost for action delete-node got result code 200 and payload { "Note": "Operation successful" } 2022-04-27 23:20:58 | [Mutex] waiting for: [received:nodes:a4515c1c-f5a7-428b-bab0-785f529f5379:localhost] 2022-04-27 23:20:58 | [Mutex] received everything. 2022-04-27 23:20:58 | [Mutex] isItemNotified: received:node:a4515c1c-f5a7-428b-bab0-785f529f5379:localhost:node-a8141240-c7a8-4a4f-9b67-31a074069dc4:Node a8141240-c7a8-4a4f-9b67-31a074069dc4 :: false 2022-04-27 23:20:58 | [Mutex] waiting for: [received:nodes:178282c6-88ac-466a-b591-084b1f76304d:localhost] 2022-04-27 23:20:58 | [Mutex] received everything. 2022-04-27 23:20:58 | [Mutex] isItemNotified: received:node:178282c6-88ac-466a-b591-084b1f76304d:localhost:node-a8141240-c7a8-4a4f-9b67-31a074069dc4:Node a8141240-c7a8-4a4f-9b67-31a074069dc4 :: false |
publishItemsToNodes | 0.088s |
2022-04-27 23:20:56 |
2022-04-27 23:20:56 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-04-27 23:20:56 | ------------------------------------ 2022-04-27 23:20:56 | on localhost executing action publish-item with content type application/json and payload: { "node": "node-a8141240-c7a8-4a4f-9b67-31a074069dc4", "entry": "<test>item-c1c52597-3af9-4401-810d-d87957347d9c</test>", "item-id": "item-c1c52597-3af9-4401-810d-d87957347d9c" } 2022-04-27 23:20:56 | from localhost for action publish-item got result code 200 and payload { "Note": "Operation successful", "item-id": "item-c1c52597-3af9-4401-810d-d87957347d9c" } 2022-04-27 23:20:56 | [Mutex] waiting for: [published:item:notifieditem-c1c52597-3af9-4401-810d-d87957347d9c:admin@test-domain.com] 2022-04-27 23:20:56 | [Mutex] received everything. 2022-04-27 23:20:56 | [Mutex] isItemNotified: published:item:notifieditem-c1c52597-3af9-4401-810d-d87957347d9c:admin@test-domain.com :: true |
retractItemsFromNodes | 0.055s |
2022-04-27 23:20:56 |
2022-04-27 23:20:56 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-04-27 23:20:56 | ------------------------------------ 2022-04-27 23:20:56 | on localhost executing action delete-item with content type application/json and payload: { "node": "node-a8141240-c7a8-4a4f-9b67-31a074069dc4", "item-id": "item-c1c52597-3af9-4401-810d-d87957347d9c" } 2022-04-27 23:20:56 | from localhost for action delete-item got result code 200 and payload { "Note": "Operation successful", "item-id": "item-c1c52597-3af9-4401-810d-d87957347d9c" } 2022-04-27 23:20:56 | [Mutex] received everything. 2022-04-27 23:20:56 | [Mutex] isItemNotified: retracted:item:notifieditem-c1c52597-3af9-4401-810d-d87957347d9c:admin@test-domain.com :: true |
retrieveItemsFromNodes | 0.024s |
2022-04-27 23:20:56 |
2022-04-27 23:20:56 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-04-27 23:20:56 | ------------------------------------ 2022-04-27 23:20:56 | on localhost executing action retrieve-item with content type application/json and payload: { "node": "node-a8141240-c7a8-4a4f-9b67-31a074069dc4", "item-id": "item-c1c52597-3af9-4401-810d-d87957347d9c" } 2022-04-27 23:20:56 | from localhost for action retrieve-item got result code 200 and payload { "title": "Retrive PubSub node item", "node": "node-a8141240-c7a8-4a4f-9b67-31a074069dc4", "item-id": "item-c1c52597-3af9-4401-810d-d87957347d9c", "item": [ "<item id=\"item-c1c52597-3af9-4401-810d-d87957347d9c\"><test>item-c1c52597-3af9-4401-810d-d87957347d9c</test></item>" ] } 2022-04-27 23:20:56 | [Mutex] notify: [retrieved:item:item-c1c52597-3af9-4401-810d-d87957347d9c:payload-matches:true:localhost] 2022-04-27 23:20:56 | [Mutex] received everything. 2022-04-27 23:20:56 | [Mutex] isItemNotified: retrieved:item:item-c1c52597-3af9-4401-810d-d87957347d9c:payload-matches:true:localhost :: true |
retrieveUserSubscriptions | 0.047s |
2022-04-27 23:20:56 |
2022-04-27 23:20:56 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-04-27 23:20:56 | ------------------------------------ 2022-04-27 23:20:56 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload: { "jid": "admin@test-domain.com" } 2022-04-27 23:20:56 | from localhost for action retrieve-user-subscriptions got result code 200 and payload { "nodes": [ "test", "node-a8141240-c7a8-4a4f-9b67-31a074069dc4", "node-f728a093-149c-4ce0-a68a-710f37cd195a" ] } |
retrieveUserSubscriptionsWithRegex | 0.047s |
2022-04-27 23:20:56 |
2022-04-27 23:20:56 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-04-27 23:20:56 | ------------------------------------ 2022-04-27 23:20:56 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload: { "jid": "admin@test-domain.com", "node-pattern": "(?!node-a8141240-c7a8-4a4f-9b67-31a074069dc4)" } 2022-04-27 23:20:56 | from localhost for action retrieve-user-subscriptions got result code 200 and payload { "nodes": [ ] } |
subscribeNodes | 1.012s |
2022-04-27 23:20:55 |
2022-04-27 23:20:55 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-04-27 23:20:55 | ------------------------------------ 2022-04-27 23:20:55 | on localhost executing action subscribe-node with content type application/json and payload: { "node": "node-a8141240-c7a8-4a4f-9b67-31a074069dc4", "jids": [ "admin@test-domain.com" ] } 2022-04-27 23:20:55 | from localhost for action subscribe-node got result code 200 and payload { "Note": "Operation successful" } |
unsubscribeNodes | 1.067s |
2022-04-27 23:20:56 |
2022-04-27 23:20:56 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-04-27 23:20:56 | ------------------------------------ 2022-04-27 23:20:56 | on localhost executing action unsubscribe-node with content type application/json and payload: { "node": "node-a8141240-c7a8-4a4f-9b67-31a074069dc4", "jids": [ "admin@test-domain.com" ] } 2022-04-27 23:20:56 | from localhost for action unsubscribe-node got result code 200 and payload { "Note": "Operation successful" } |