Test duration : 8.754s
Passed Tests | ||
---|---|---|
tigase.tests.pubsub.TestRestApiUsingJSON | ||
configureNodes | 1.103s |
2022-08-07 22:34:20 |
2022-08-07 22:34:20 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-08-07 22:34:20 | ------------------------------------ 2022-08-07 22:34:20 | [Mutex] waiting for: [configured:node:node-53e1c400-3bb6-4001-b723-ed2488142196:node-fdeb9464-b706-4362-b8b8-2ca5242b70d0] 2022-08-07 22:34:20 | [Mutex] received everything. 2022-08-07 22:34:20 | [Mutex] isItemNotified: configured:node:node-53e1c400-3bb6-4001-b723-ed2488142196:node-fdeb9464-b706-4362-b8b8-2ca5242b70d0 :: true 2022-08-07 22:34:21 | [Mutex] waiting for: [received:nodes:cfaf341c-3164-4e9a-93f6-13a3cc5e7a0f:localhost] 2022-08-07 22:34:21 | [Mutex] received everything. 2022-08-07 22:34:21 | [Mutex] isItemNotified: received:node:cfaf341c-3164-4e9a-93f6-13a3cc5e7a0f:localhost:node-53e1c400-3bb6-4001-b723-ed2488142196:Node 53e1c400-3bb6-4001-b723-ed2488142196 :: true 2022-08-07 22:34:21 | [Mutex] waiting for: [received:nodes:a8ecc32d-56e9-4402-af74-c90c5d136173:localhost] 2022-08-07 22:34:21 | [Mutex] received everything. 2022-08-07 22:34:21 | [Mutex] isItemNotified: received:node:a8ecc32d-56e9-4402-af74-c90c5d136173:localhost:node-53e1c400-3bb6-4001-b723-ed2488142196:Node 53e1c400-3bb6-4001-b723-ed2488142196 :: false |
createNodes | 1.653s |
2022-08-07 22:34:17 |
2022-08-07 22:34:17 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-08-07 22:34:17 | ------------------------------------ 2022-08-07 22:34:17 | on localhost executing action create-node with content type application/json and payload: { "owner": "admin@test-domain.com", "pubsub#node_type": "leaf", "node": "node-53e1c400-3bb6-4001-b723-ed2488142196", "pubsub#title": "Node 53e1c400-3bb6-4001-b723-ed2488142196" } 2022-08-07 22:34:18 | from localhost for action create-node got result code 200 and payload { "Note": "Operation successful" } 2022-08-07 22:34:19 | [Mutex] waiting for: [received:nodes:8a900cee-4276-4bbb-8248-117ac307b714:localhost] 2022-08-07 22:34:19 | [Mutex] received everything. 2022-08-07 22:34:19 | [Mutex] isItemNotified: received:node:8a900cee-4276-4bbb-8248-117ac307b714:localhost:node-53e1c400-3bb6-4001-b723-ed2488142196:Node 53e1c400-3bb6-4001-b723-ed2488142196 :: true |
createSubnodes | 1.025s |
2022-08-07 22:34:19 |
2022-08-07 22:34:19 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-08-07 22:34:19 | ------------------------------------ 2022-08-07 22:34:19 | on localhost executing action create-node with content type application/json and payload: { "owner": "admin@test-domain.com", "pubsub#node_type": "collection", "node": "node-fdeb9464-b706-4362-b8b8-2ca5242b70d0", "pubsub#title": "Node fdeb9464-b706-4362-b8b8-2ca5242b70d0" } 2022-08-07 22:34:19 | from localhost for action create-node got result code 200 and payload { "Note": "Operation successful" } 2022-08-07 22:34:20 | [Mutex] waiting for: [received:nodes:d0035741-7f5e-4273-845c-a0621131f3a9:localhost] 2022-08-07 22:34:20 | [Mutex] waiting for: [received:nodes:d0035741-7f5e-4273-845c-a0621131f3a9:localhost] 2022-08-07 22:34:20 | [Mutex] received everything. 2022-08-07 22:34:20 | [Mutex] isItemNotified: received:node:d0035741-7f5e-4273-845c-a0621131f3a9:localhost:node-fdeb9464-b706-4362-b8b8-2ca5242b70d0:Node fdeb9464-b706-4362-b8b8-2ca5242b70d0 :: true |
deleteNodes | 1.028s |
2022-08-07 22:34:24 |
2022-08-07 22:34:24 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-08-07 22:34:24 | ------------------------------------ 2022-08-07 22:34:24 | on localhost executing action delete-node with content type application/json and payload: { "node": "node-fdeb9464-b706-4362-b8b8-2ca5242b70d0" } 2022-08-07 22:34:24 | from localhost for action delete-node got result code 200 and payload { "Note": "Operation successful" } 2022-08-07 22:34:25 | [Mutex] waiting for: [received:nodes:3a751f13-c12c-4a90-bca0-6d643f2f34e7:localhost] 2022-08-07 22:34:25 | [Mutex] waiting for: [received:nodes:3a751f13-c12c-4a90-bca0-6d643f2f34e7:localhost] 2022-08-07 22:34:25 | [Mutex] waiting for: [received:nodes:3a751f13-c12c-4a90-bca0-6d643f2f34e7:localhost] 2022-08-07 22:34:25 | [Mutex] received everything. 2022-08-07 22:34:25 | [Mutex] isItemNotified: received:node:3a751f13-c12c-4a90-bca0-6d643f2f34e7:localhost:node-fdeb9464-b706-4362-b8b8-2ca5242b70d0:Node fdeb9464-b706-4362-b8b8-2ca5242b70d0 :: false |
deleteSubnodes | 1.028s |
2022-08-07 22:34:23 |
2022-08-07 22:34:23 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-08-07 22:34:23 | ------------------------------------ 2022-08-07 22:34:23 | on localhost executing action delete-node with content type application/json and payload: { "node": "node-53e1c400-3bb6-4001-b723-ed2488142196" } 2022-08-07 22:34:23 | from localhost for action delete-node got result code 200 and payload { "Note": "Operation successful" } 2022-08-07 22:34:24 | [Mutex] waiting for: [received:nodes:6fe9d45b-2de1-4ed4-8c42-c8a24f9e2893:localhost] 2022-08-07 22:34:24 | [Mutex] waiting for: [received:nodes:6fe9d45b-2de1-4ed4-8c42-c8a24f9e2893:localhost] 2022-08-07 22:34:24 | [Mutex] received everything. 2022-08-07 22:34:24 | [Mutex] isItemNotified: received:node:6fe9d45b-2de1-4ed4-8c42-c8a24f9e2893:localhost:node-53e1c400-3bb6-4001-b723-ed2488142196:Node 53e1c400-3bb6-4001-b723-ed2488142196 :: false 2022-08-07 22:34:24 | [Mutex] waiting for: [received:nodes:9d946126-5f7b-424b-b686-f60c9c7c9009:localhost] 2022-08-07 22:34:24 | [Mutex] received everything. 2022-08-07 22:34:24 | [Mutex] isItemNotified: received:node:9d946126-5f7b-424b-b686-f60c9c7c9009:localhost:node-53e1c400-3bb6-4001-b723-ed2488142196:Node 53e1c400-3bb6-4001-b723-ed2488142196 :: false |
publishItemsToNodes | 0.059s |
2022-08-07 22:34:22 |
2022-08-07 22:34:22 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-08-07 22:34:22 | ------------------------------------ 2022-08-07 22:34:22 | on localhost executing action publish-item with content type application/json and payload: { "node": "node-53e1c400-3bb6-4001-b723-ed2488142196", "entry": "<test>item-0684196e-31b2-426c-800d-15112f791979</test>", "item-id": "item-0684196e-31b2-426c-800d-15112f791979" } 2022-08-07 22:34:22 | from localhost for action publish-item got result code 200 and payload { "Note": "Operation successful", "item-id": "item-0684196e-31b2-426c-800d-15112f791979" } 2022-08-07 22:34:22 | [Mutex] waiting for: [published:item:notifieditem-0684196e-31b2-426c-800d-15112f791979:admin@test-domain.com] 2022-08-07 22:34:22 | [Mutex] received everything. 2022-08-07 22:34:22 | [Mutex] isItemNotified: published:item:notifieditem-0684196e-31b2-426c-800d-15112f791979:admin@test-domain.com :: true |
retractItemsFromNodes | 0.085s |
2022-08-07 22:34:22 |
2022-08-07 22:34:22 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-08-07 22:34:22 | ------------------------------------ 2022-08-07 22:34:22 | on localhost executing action delete-item with content type application/json and payload: { "node": "node-53e1c400-3bb6-4001-b723-ed2488142196", "item-id": "item-0684196e-31b2-426c-800d-15112f791979" } 2022-08-07 22:34:22 | from localhost for action delete-item got result code 200 and payload { "Note": "Operation successful", "item-id": "item-0684196e-31b2-426c-800d-15112f791979" } 2022-08-07 22:34:22 | [Mutex] waiting for: [retracted:item:notifieditem-0684196e-31b2-426c-800d-15112f791979:admin@test-domain.com] 2022-08-07 22:34:22 | [Mutex] received everything. 2022-08-07 22:34:22 | [Mutex] isItemNotified: retracted:item:notifieditem-0684196e-31b2-426c-800d-15112f791979:admin@test-domain.com :: true |
retrieveItemsFromNodes | 0.072s |
2022-08-07 22:34:22 |
2022-08-07 22:34:22 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-08-07 22:34:22 | ------------------------------------ 2022-08-07 22:34:22 | on localhost executing action retrieve-item with content type application/json and payload: { "node": "node-53e1c400-3bb6-4001-b723-ed2488142196", "item-id": "item-0684196e-31b2-426c-800d-15112f791979" } 2022-08-07 22:34:22 | from localhost for action retrieve-item got result code 200 and payload { "title": "Retrive PubSub node item", "node": "node-53e1c400-3bb6-4001-b723-ed2488142196", "item-id": "item-0684196e-31b2-426c-800d-15112f791979", "item": [ "<item id=\"item-0684196e-31b2-426c-800d-15112f791979\"><test>item-0684196e-31b2-426c-800d-15112f791979</test></item>" ] } 2022-08-07 22:34:22 | [Mutex] notify: [retrieved:item:item-0684196e-31b2-426c-800d-15112f791979:payload-matches:true:localhost] 2022-08-07 22:34:22 | [Mutex] received everything. 2022-08-07 22:34:22 | [Mutex] isItemNotified: retrieved:item:item-0684196e-31b2-426c-800d-15112f791979:payload-matches:true:localhost :: true |
retrieveUserSubscriptions | 0.055s |
2022-08-07 22:34:22 |
2022-08-07 22:34:22 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-08-07 22:34:22 | ------------------------------------ 2022-08-07 22:34:22 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload: { "jid": "admin@test-domain.com" } 2022-08-07 22:34:22 | from localhost for action retrieve-user-subscriptions got result code 200 and payload { "nodes": [ "node-fdeb9464-b706-4362-b8b8-2ca5242b70d0", "test", "node-53e1c400-3bb6-4001-b723-ed2488142196" ] } |
retrieveUserSubscriptionsWithRegex | 0.052s |
2022-08-07 22:34:22 |
2022-08-07 22:34:22 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-08-07 22:34:22 | ------------------------------------ 2022-08-07 22:34:22 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload: { "jid": "admin@test-domain.com", "node-pattern": "(?!node-53e1c400-3bb6-4001-b723-ed2488142196)" } 2022-08-07 22:34:22 | from localhost for action retrieve-user-subscriptions got result code 200 and payload { "nodes": [ ] } |
subscribeNodes | 1.014s |
2022-08-07 22:34:21 |
2022-08-07 22:34:21 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-08-07 22:34:21 | ------------------------------------ 2022-08-07 22:34:21 | on localhost executing action subscribe-node with content type application/json and payload: { "node": "node-53e1c400-3bb6-4001-b723-ed2488142196", "jids": [ "admin@test-domain.com" ] } 2022-08-07 22:34:21 | from localhost for action subscribe-node got result code 200 and payload { "Note": "Operation successful" } |
unsubscribeNodes | 1.055s |
2022-08-07 22:34:22 |
2022-08-07 22:34:22 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-08-07 22:34:22 | ------------------------------------ 2022-08-07 22:34:22 | on localhost executing action unsubscribe-node with content type application/json and payload: { "node": "node-53e1c400-3bb6-4001-b723-ed2488142196", "jids": [ "admin@test-domain.com" ] } 2022-08-07 22:34:22 | from localhost for action unsubscribe-node got result code 200 and payload { "Note": "Operation successful" } |