Test duration : 8.948s
Passed Tests | ||
---|---|---|
tigase.tests.pubsub.TestRestApiUsingJSON | ||
configureNodes | 1.124s |
2021-03-21 22:28:08 |
2021-03-21 22:28:08 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-03-21 22:28:08 | ------------------------------------ 2021-03-21 22:28:08 | [Mutex] waiting for: [configured:node:node-e598c79d-8e7a-4e84-b27e-b33d7eac8d22:node-25068ada-9c6d-4783-a641-0024de03ad50] 2021-03-21 22:28:08 | [Mutex] received everything. 2021-03-21 22:28:08 | [Mutex] isItemNotified: configured:node:node-e598c79d-8e7a-4e84-b27e-b33d7eac8d22:node-25068ada-9c6d-4783-a641-0024de03ad50 :: true 2021-03-21 22:28:09 | [Mutex] waiting for: [received:nodes:41315248-5f9b-45f6-b7f0-32f9577fd627:localhost] 2021-03-21 22:28:09 | [Mutex] received everything. 2021-03-21 22:28:09 | [Mutex] isItemNotified: received:node:41315248-5f9b-45f6-b7f0-32f9577fd627:localhost:node-e598c79d-8e7a-4e84-b27e-b33d7eac8d22:Node e598c79d-8e7a-4e84-b27e-b33d7eac8d22 :: true 2021-03-21 22:28:09 | [Mutex] waiting for: [received:nodes:67242cbf-6ba6-44bc-afa7-cd9dc24da835:localhost] 2021-03-21 22:28:09 | [Mutex] received everything. 2021-03-21 22:28:09 | [Mutex] isItemNotified: received:node:67242cbf-6ba6-44bc-afa7-cd9dc24da835:localhost:node-e598c79d-8e7a-4e84-b27e-b33d7eac8d22:Node e598c79d-8e7a-4e84-b27e-b33d7eac8d22 :: false |
createNodes | 1.610s |
2021-03-21 22:28:05 |
2021-03-21 22:28:05 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-03-21 22:28:05 | ------------------------------------ 2021-03-21 22:28:06 | on localhost executing action create-node with content type application/json and payload: { "owner": "admin@test-domain.com", "pubsub#node_type": "leaf", "node": "node-e598c79d-8e7a-4e84-b27e-b33d7eac8d22", "pubsub#title": "Node e598c79d-8e7a-4e84-b27e-b33d7eac8d22" } 2021-03-21 22:28:06 | from localhost for action create-node got result code 200 and payload { "Note": "Operation successful" } 2021-03-21 22:28:07 | [Mutex] waiting for: [received:nodes:3dc5524d-40db-4344-bd03-d596fd0d6f59:localhost] 2021-03-21 22:28:07 | [Mutex] waiting for: [received:nodes:3dc5524d-40db-4344-bd03-d596fd0d6f59:localhost] 2021-03-21 22:28:07 | [Mutex] received everything. 2021-03-21 22:28:07 | [Mutex] isItemNotified: received:node:3dc5524d-40db-4344-bd03-d596fd0d6f59:localhost:node-e598c79d-8e7a-4e84-b27e-b33d7eac8d22:Node e598c79d-8e7a-4e84-b27e-b33d7eac8d22 :: true |
createSubnodes | 1.024s |
2021-03-21 22:28:07 |
2021-03-21 22:28:07 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-03-21 22:28:07 | ------------------------------------ 2021-03-21 22:28:07 | on localhost executing action create-node with content type application/json and payload: { "owner": "admin@test-domain.com", "pubsub#node_type": "collection", "node": "node-25068ada-9c6d-4783-a641-0024de03ad50", "pubsub#title": "Node 25068ada-9c6d-4783-a641-0024de03ad50" } 2021-03-21 22:28:07 | from localhost for action create-node got result code 200 and payload { "Note": "Operation successful" } 2021-03-21 22:28:08 | [Mutex] waiting for: [received:nodes:c94d6b8a-428a-4a49-83e3-f5630ebef04a:localhost] 2021-03-21 22:28:08 | [Mutex] received everything. 2021-03-21 22:28:08 | [Mutex] isItemNotified: received:node:c94d6b8a-428a-4a49-83e3-f5630ebef04a:localhost:node-25068ada-9c6d-4783-a641-0024de03ad50:Node 25068ada-9c6d-4783-a641-0024de03ad50 :: true |
deleteNodes | 1.024s |
2021-03-21 22:28:13 |
2021-03-21 22:28:13 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-03-21 22:28:13 | ------------------------------------ 2021-03-21 22:28:13 | on localhost executing action delete-node with content type application/json and payload: { "node": "node-25068ada-9c6d-4783-a641-0024de03ad50" } 2021-03-21 22:28:13 | from localhost for action delete-node got result code 200 and payload { "Note": "Operation successful" } 2021-03-21 22:28:14 | [Mutex] waiting for: [received:nodes:2b34322b-037b-44c1-a657-26474634512d:localhost] 2021-03-21 22:28:14 | [Mutex] received everything. 2021-03-21 22:28:14 | [Mutex] isItemNotified: received:node:2b34322b-037b-44c1-a657-26474634512d:localhost:node-25068ada-9c6d-4783-a641-0024de03ad50:Node 25068ada-9c6d-4783-a641-0024de03ad50 :: false |
deleteSubnodes | 1.028s |
2021-03-21 22:28:11 |
2021-03-21 22:28:11 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-03-21 22:28:11 | ------------------------------------ 2021-03-21 22:28:11 | on localhost executing action delete-node with content type application/json and payload: { "node": "node-e598c79d-8e7a-4e84-b27e-b33d7eac8d22" } 2021-03-21 22:28:12 | from localhost for action delete-node got result code 200 and payload { "Note": "Operation successful" } 2021-03-21 22:28:13 | [Mutex] waiting for: [received:nodes:1046225c-43df-4d11-bcfc-b6954a36e04e:localhost] 2021-03-21 22:28:13 | [Mutex] received everything. 2021-03-21 22:28:13 | [Mutex] isItemNotified: received:node:1046225c-43df-4d11-bcfc-b6954a36e04e:localhost:node-e598c79d-8e7a-4e84-b27e-b33d7eac8d22:Node e598c79d-8e7a-4e84-b27e-b33d7eac8d22 :: false 2021-03-21 22:28:13 | [Mutex] waiting for: [received:nodes:50f90563-e909-4e03-bf34-cd4d51f59cf2:localhost] 2021-03-21 22:28:13 | [Mutex] received everything. 2021-03-21 22:28:13 | [Mutex] isItemNotified: received:node:50f90563-e909-4e03-bf34-cd4d51f59cf2:localhost:node-e598c79d-8e7a-4e84-b27e-b33d7eac8d22:Node e598c79d-8e7a-4e84-b27e-b33d7eac8d22 :: false |
publishItemsToNodes | 0.057s |
2021-03-21 22:28:10 |
2021-03-21 22:28:10 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-03-21 22:28:10 | ------------------------------------ 2021-03-21 22:28:10 | on localhost executing action publish-item with content type application/json and payload: { "node": "node-e598c79d-8e7a-4e84-b27e-b33d7eac8d22", "entry": "<test>item-d0d256e2-2ae9-401e-b775-7150fa9d04f6</test>", "item-id": "item-d0d256e2-2ae9-401e-b775-7150fa9d04f6" } 2021-03-21 22:28:10 | from localhost for action publish-item got result code 200 and payload { "Note": "Operation successful", "item-id": "item-d0d256e2-2ae9-401e-b775-7150fa9d04f6" } 2021-03-21 22:28:10 | [Mutex] waiting for: [published:item:notifieditem-d0d256e2-2ae9-401e-b775-7150fa9d04f6:admin@test-domain.com] 2021-03-21 22:28:10 | [Mutex] received everything. 2021-03-21 22:28:10 | [Mutex] isItemNotified: published:item:notifieditem-d0d256e2-2ae9-401e-b775-7150fa9d04f6:admin@test-domain.com :: true |
retractItemsFromNodes | 0.085s |
2021-03-21 22:28:10 |
2021-03-21 22:28:10 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-03-21 22:28:10 | ------------------------------------ 2021-03-21 22:28:10 | on localhost executing action delete-item with content type application/json and payload: { "node": "node-e598c79d-8e7a-4e84-b27e-b33d7eac8d22", "item-id": "item-d0d256e2-2ae9-401e-b775-7150fa9d04f6" } 2021-03-21 22:28:10 | from localhost for action delete-item got result code 200 and payload { "Note": "Operation successful", "item-id": "item-d0d256e2-2ae9-401e-b775-7150fa9d04f6" } 2021-03-21 22:28:10 | [Mutex] waiting for: [retracted:item:notifieditem-d0d256e2-2ae9-401e-b775-7150fa9d04f6:admin@test-domain.com] 2021-03-21 22:28:10 | [Mutex] received everything. 2021-03-21 22:28:10 | [Mutex] isItemNotified: retracted:item:notifieditem-d0d256e2-2ae9-401e-b775-7150fa9d04f6:admin@test-domain.com :: true |
retrieveItemsFromNodes | 0.012s |
2021-03-21 22:28:10 |
2021-03-21 22:28:10 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-03-21 22:28:10 | ------------------------------------ 2021-03-21 22:28:10 | on localhost executing action retrieve-item with content type application/json and payload: { "node": "node-e598c79d-8e7a-4e84-b27e-b33d7eac8d22", "item-id": "item-d0d256e2-2ae9-401e-b775-7150fa9d04f6" } 2021-03-21 22:28:10 | from localhost for action retrieve-item got result code 200 and payload { "title": "Retrive PubSub node item", "node": "node-e598c79d-8e7a-4e84-b27e-b33d7eac8d22", "item-id": "item-d0d256e2-2ae9-401e-b775-7150fa9d04f6", "item": [ "<item id=\"item-d0d256e2-2ae9-401e-b775-7150fa9d04f6\"><test>item-d0d256e2-2ae9-401e-b775-7150fa9d04f6</test></item>" ] } 2021-03-21 22:28:10 | [Mutex] notify: [retrieved:item:item-d0d256e2-2ae9-401e-b775-7150fa9d04f6:payload-matches:true:localhost] 2021-03-21 22:28:10 | [Mutex] received everything. 2021-03-21 22:28:10 | [Mutex] isItemNotified: retrieved:item:item-d0d256e2-2ae9-401e-b775-7150fa9d04f6:payload-matches:true:localhost :: true |
retrieveUserSubscriptions | 0.060s |
2021-03-21 22:28:10 |
2021-03-21 22:28:10 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-03-21 22:28:10 | ------------------------------------ 2021-03-21 22:28:10 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload: { "jid": "admin@test-domain.com" } 2021-03-21 22:28:10 | from localhost for action retrieve-user-subscriptions got result code 200 and payload { "nodes": [ "test", "node-e598c79d-8e7a-4e84-b27e-b33d7eac8d22", "node-25068ada-9c6d-4783-a641-0024de03ad50" ] } |
retrieveUserSubscriptionsWithRegex | 0.047s |
2021-03-21 22:28:10 |
2021-03-21 22:28:10 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-03-21 22:28:10 | ------------------------------------ 2021-03-21 22:28:10 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload: { "jid": "admin@test-domain.com", "node-pattern": "(?!node-e598c79d-8e7a-4e84-b27e-b33d7eac8d22)" } 2021-03-21 22:28:10 | from localhost for action retrieve-user-subscriptions got result code 200 and payload { "nodes": [ ] } |
subscribeNodes | 1.013s |
2021-03-21 22:28:09 |
2021-03-21 22:28:09 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-03-21 22:28:09 | ------------------------------------ 2021-03-21 22:28:09 | on localhost executing action subscribe-node with content type application/json and payload: { "node": "node-e598c79d-8e7a-4e84-b27e-b33d7eac8d22", "jids": [ "admin@test-domain.com" ] } 2021-03-21 22:28:09 | from localhost for action subscribe-node got result code 200 and payload { "Note": "Operation successful" } |
unsubscribeNodes | 1.082s |
2021-03-21 22:28:10 |
2021-03-21 22:28:10 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-03-21 22:28:10 | ------------------------------------ 2021-03-21 22:28:10 | on localhost executing action unsubscribe-node with content type application/json and payload: { "node": "node-e598c79d-8e7a-4e84-b27e-b33d7eac8d22", "jids": [ "admin@test-domain.com" ] } 2021-03-21 22:28:10 | from localhost for action unsubscribe-node got result code 200 and payload { "Note": "Operation successful" } |