Test duration : 9.372s
Passed Tests | ||
---|---|---|
tigase.tests.pubsub.TestRestApiUsingJSON | ||
configureNodes | 1.117s |
2021-02-02 21:57:38 |
2021-02-02 21:57:38 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-02-02 21:57:38 | ------------------------------------ 2021-02-02 21:57:38 | [Mutex] waiting for: [configured:node:node-4febda08-c9cb-4895-b53d-a3c3e5e3c626:node-28d5655f-6539-42b5-a836-ba64d0919352] 2021-02-02 21:57:39 | [Mutex] received everything. 2021-02-02 21:57:39 | [Mutex] isItemNotified: configured:node:node-4febda08-c9cb-4895-b53d-a3c3e5e3c626:node-28d5655f-6539-42b5-a836-ba64d0919352 :: true 2021-02-02 21:57:40 | [Mutex] waiting for: [received:nodes:11b0ec9b-566e-4487-bb20-190bf249bee8:localhost] 2021-02-02 21:57:40 | [Mutex] received everything. 2021-02-02 21:57:40 | [Mutex] isItemNotified: received:node:11b0ec9b-566e-4487-bb20-190bf249bee8:localhost:node-4febda08-c9cb-4895-b53d-a3c3e5e3c626:Node 4febda08-c9cb-4895-b53d-a3c3e5e3c626 :: true 2021-02-02 21:57:40 | [Mutex] waiting for: [received:nodes:5c37421d-ac74-4ac2-9463-b2c2263e69ab:localhost] 2021-02-02 21:57:40 | [Mutex] received everything. 2021-02-02 21:57:40 | [Mutex] isItemNotified: received:node:5c37421d-ac74-4ac2-9463-b2c2263e69ab:localhost:node-4febda08-c9cb-4895-b53d-a3c3e5e3c626:Node 4febda08-c9cb-4895-b53d-a3c3e5e3c626 :: false |
createNodes | 1.845s |
2021-02-02 21:57:36 |
2021-02-02 21:57:36 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-02-02 21:57:36 | ------------------------------------ 2021-02-02 21:57:36 | on localhost executing action create-node with content type application/json and payload: { "owner": "admin@test-domain.com", "pubsub#node_type": "leaf", "node": "node-4febda08-c9cb-4895-b53d-a3c3e5e3c626", "pubsub#title": "Node 4febda08-c9cb-4895-b53d-a3c3e5e3c626" } 2021-02-02 21:57:36 | from localhost for action create-node got result code 200 and payload { "Note": "Operation successful" } 2021-02-02 21:57:37 | [Mutex] waiting for: [received:nodes:41f4d189-5cbf-49fc-8fe7-2724129c52f3:localhost] 2021-02-02 21:57:37 | [Mutex] waiting for: [received:nodes:41f4d189-5cbf-49fc-8fe7-2724129c52f3:localhost] 2021-02-02 21:57:37 | [Mutex] received everything. 2021-02-02 21:57:37 | [Mutex] isItemNotified: received:node:41f4d189-5cbf-49fc-8fe7-2724129c52f3:localhost:node-4febda08-c9cb-4895-b53d-a3c3e5e3c626:Node 4febda08-c9cb-4895-b53d-a3c3e5e3c626 :: true |
createSubnodes | 1.034s |
2021-02-02 21:57:37 |
2021-02-02 21:57:37 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-02-02 21:57:37 | ------------------------------------ 2021-02-02 21:57:37 | on localhost executing action create-node with content type application/json and payload: { "owner": "admin@test-domain.com", "pubsub#node_type": "collection", "node": "node-28d5655f-6539-42b5-a836-ba64d0919352", "pubsub#title": "Node 28d5655f-6539-42b5-a836-ba64d0919352" } 2021-02-02 21:57:37 | from localhost for action create-node got result code 200 and payload { "Note": "Operation successful" } 2021-02-02 21:57:38 | [Mutex] waiting for: [received:nodes:6ee30612-7e65-42a5-b51d-27f0691cd9e2:localhost] 2021-02-02 21:57:38 | [Mutex] received everything. 2021-02-02 21:57:38 | [Mutex] isItemNotified: received:node:6ee30612-7e65-42a5-b51d-27f0691cd9e2:localhost:node-28d5655f-6539-42b5-a836-ba64d0919352:Node 28d5655f-6539-42b5-a836-ba64d0919352 :: true |
deleteNodes | 1.033s |
2021-02-02 21:57:43 |
2021-02-02 21:57:43 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-02-02 21:57:43 | ------------------------------------ 2021-02-02 21:57:43 | on localhost executing action delete-node with content type application/json and payload: { "node": "node-28d5655f-6539-42b5-a836-ba64d0919352" } 2021-02-02 21:57:43 | from localhost for action delete-node got result code 200 and payload { "Note": "Operation successful" } 2021-02-02 21:57:44 | [Mutex] waiting for: [received:nodes:4d47b2b7-a3c9-4fd8-b280-b6c821789907:localhost] 2021-02-02 21:57:44 | [Mutex] received everything. 2021-02-02 21:57:44 | [Mutex] isItemNotified: received:node:4d47b2b7-a3c9-4fd8-b280-b6c821789907:localhost:node-28d5655f-6539-42b5-a836-ba64d0919352:Node 28d5655f-6539-42b5-a836-ba64d0919352 :: false |
deleteSubnodes | 1.032s |
2021-02-02 21:57:42 |
2021-02-02 21:57:42 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-02-02 21:57:42 | ------------------------------------ 2021-02-02 21:57:42 | on localhost executing action delete-node with content type application/json and payload: { "node": "node-4febda08-c9cb-4895-b53d-a3c3e5e3c626" } 2021-02-02 21:57:42 | from localhost for action delete-node got result code 200 and payload { "Note": "Operation successful" } 2021-02-02 21:57:43 | [Mutex] waiting for: [received:nodes:df87d90f-fb37-4e4b-a2ab-8fddafc7a787:localhost] 2021-02-02 21:57:43 | [Mutex] waiting for: [received:nodes:df87d90f-fb37-4e4b-a2ab-8fddafc7a787:localhost] 2021-02-02 21:57:43 | [Mutex] received everything. 2021-02-02 21:57:43 | [Mutex] isItemNotified: received:node:df87d90f-fb37-4e4b-a2ab-8fddafc7a787:localhost:node-4febda08-c9cb-4895-b53d-a3c3e5e3c626:Node 4febda08-c9cb-4895-b53d-a3c3e5e3c626 :: false 2021-02-02 21:57:43 | [Mutex] waiting for: [received:nodes:142cc455-61f1-4fa4-883a-730240e7554e:localhost] 2021-02-02 21:57:43 | [Mutex] received everything. 2021-02-02 21:57:43 | [Mutex] isItemNotified: received:node:142cc455-61f1-4fa4-883a-730240e7554e:localhost:node-4febda08-c9cb-4895-b53d-a3c3e5e3c626:Node 4febda08-c9cb-4895-b53d-a3c3e5e3c626 :: false |
publishItemsToNodes | 0.074s |
2021-02-02 21:57:41 |
2021-02-02 21:57:41 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-02-02 21:57:41 | ------------------------------------ 2021-02-02 21:57:41 | on localhost executing action publish-item with content type application/json and payload: { "node": "node-4febda08-c9cb-4895-b53d-a3c3e5e3c626", "entry": "<test>item-78031669-fbca-4202-8e7f-5e15319e1093</test>", "item-id": "item-78031669-fbca-4202-8e7f-5e15319e1093" } 2021-02-02 21:57:41 | from localhost for action publish-item got result code 200 and payload { "Note": "Operation successful", "item-id": "item-78031669-fbca-4202-8e7f-5e15319e1093" } 2021-02-02 21:57:41 | [Mutex] waiting for: [published:item:notifieditem-78031669-fbca-4202-8e7f-5e15319e1093:admin@test-domain.com] 2021-02-02 21:57:41 | [Mutex] received everything. 2021-02-02 21:57:41 | [Mutex] isItemNotified: published:item:notifieditem-78031669-fbca-4202-8e7f-5e15319e1093:admin@test-domain.com :: true |
retractItemsFromNodes | 0.107s |
2021-02-02 21:57:41 |
2021-02-02 21:57:41 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-02-02 21:57:41 | ------------------------------------ 2021-02-02 21:57:41 | on localhost executing action delete-item with content type application/json and payload: { "node": "node-4febda08-c9cb-4895-b53d-a3c3e5e3c626", "item-id": "item-78031669-fbca-4202-8e7f-5e15319e1093" } 2021-02-02 21:57:41 | from localhost for action delete-item got result code 200 and payload { "Note": "Operation successful", "item-id": "item-78031669-fbca-4202-8e7f-5e15319e1093" } 2021-02-02 21:57:41 | [Mutex] received everything. 2021-02-02 21:57:41 | [Mutex] isItemNotified: retracted:item:notifieditem-78031669-fbca-4202-8e7f-5e15319e1093:admin@test-domain.com :: true |
retrieveItemsFromNodes | 0.035s |
2021-02-02 21:57:41 |
2021-02-02 21:57:41 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-02-02 21:57:41 | ------------------------------------ 2021-02-02 21:57:41 | on localhost executing action retrieve-item with content type application/json and payload: { "node": "node-4febda08-c9cb-4895-b53d-a3c3e5e3c626", "item-id": "item-78031669-fbca-4202-8e7f-5e15319e1093" } 2021-02-02 21:57:41 | from localhost for action retrieve-item got result code 200 and payload { "title": "Retrive PubSub node item", "node": "node-4febda08-c9cb-4895-b53d-a3c3e5e3c626", "item-id": "item-78031669-fbca-4202-8e7f-5e15319e1093", "item": [ "<item id=\"item-78031669-fbca-4202-8e7f-5e15319e1093\"><test>item-78031669-fbca-4202-8e7f-5e15319e1093</test></item>" ] } 2021-02-02 21:57:41 | [Mutex] notify: [retrieved:item:item-78031669-fbca-4202-8e7f-5e15319e1093:payload-matches:true:localhost] 2021-02-02 21:57:41 | [Mutex] received everything. 2021-02-02 21:57:41 | [Mutex] isItemNotified: retrieved:item:item-78031669-fbca-4202-8e7f-5e15319e1093:payload-matches:true:localhost :: true |
retrieveUserSubscriptions | 0.055s |
2021-02-02 21:57:41 |
2021-02-02 21:57:41 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-02-02 21:57:41 | ------------------------------------ 2021-02-02 21:57:41 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload: { "jid": "admin@test-domain.com" } 2021-02-02 21:57:41 | from localhost for action retrieve-user-subscriptions got result code 200 and payload { "nodes": [ "test", "node-28d5655f-6539-42b5-a836-ba64d0919352", "node-4febda08-c9cb-4895-b53d-a3c3e5e3c626" ] } |
retrieveUserSubscriptionsWithRegex | 0.052s |
2021-02-02 21:57:41 |
2021-02-02 21:57:41 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-02-02 21:57:41 | ------------------------------------ 2021-02-02 21:57:41 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload: { "jid": "admin@test-domain.com", "node-pattern": "(?!node-4febda08-c9cb-4895-b53d-a3c3e5e3c626)" } 2021-02-02 21:57:41 | from localhost for action retrieve-user-subscriptions got result code 200 and payload { "nodes": [ ] } |
subscribeNodes | 1.016s |
2021-02-02 21:57:40 |
2021-02-02 21:57:40 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-02-02 21:57:40 | ------------------------------------ 2021-02-02 21:57:40 | on localhost executing action subscribe-node with content type application/json and payload: { "node": "node-4febda08-c9cb-4895-b53d-a3c3e5e3c626", "jids": [ "admin@test-domain.com" ] } 2021-02-02 21:57:40 | from localhost for action subscribe-node got result code 200 and payload { "Note": "Operation successful" } |
unsubscribeNodes | 1.075s |
2021-02-02 21:57:41 |
2021-02-02 21:57:41 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-02-02 21:57:41 | ------------------------------------ 2021-02-02 21:57:41 | on localhost executing action unsubscribe-node with content type application/json and payload: { "node": "node-4febda08-c9cb-4895-b53d-a3c3e5e3c626", "jids": [ "admin@test-domain.com" ] } 2021-02-02 21:57:41 | from localhost for action unsubscribe-node got result code 200 and payload { "Note": "Operation successful" } |