Test duration : 8.590s
Passed Tests | ||
---|---|---|
tigase.tests.pubsub.TestRestApiUsingJSON | ||
configureNodes | 1.028s |
2023-03-17 23:01:50 |
2023-03-17 23:01:50 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2023-03-17 23:01:50 | ------------------------------------ 2023-03-17 23:01:50 | [Mutex] waiting for: [configured:node:node-6aa6069b-1fd2-4881-9d2f-76c53dc313d5:node-7023a705-5d3e-42ac-8f57-ea02774b1fce] 2023-03-17 23:01:50 | [Mutex] received everything. 2023-03-17 23:01:50 | [Mutex] isItemNotified: configured:node:node-6aa6069b-1fd2-4881-9d2f-76c53dc313d5:node-7023a705-5d3e-42ac-8f57-ea02774b1fce :: true 2023-03-17 23:01:51 | [Mutex] waiting for: [received:nodes:75aef65b-1e38-4053-ba7c-7c65407f7056:localhost] 2023-03-17 23:01:51 | [Mutex] received everything. 2023-03-17 23:01:51 | [Mutex] isItemNotified: received:node:75aef65b-1e38-4053-ba7c-7c65407f7056:localhost:node-6aa6069b-1fd2-4881-9d2f-76c53dc313d5:Node 6aa6069b-1fd2-4881-9d2f-76c53dc313d5 :: true 2023-03-17 23:01:51 | [Mutex] waiting for: [received:nodes:6801e491-873e-4bd6-bd68-818c2f137c4c:localhost] 2023-03-17 23:01:51 | [Mutex] waiting for: [received:nodes:6801e491-873e-4bd6-bd68-818c2f137c4c:localhost] 2023-03-17 23:01:51 | [Mutex] waiting for: [received:nodes:6801e491-873e-4bd6-bd68-818c2f137c4c:localhost] 2023-03-17 23:01:51 | [Mutex] received everything. 2023-03-17 23:01:51 | [Mutex] isItemNotified: received:node:6801e491-873e-4bd6-bd68-818c2f137c4c:localhost:node-6aa6069b-1fd2-4881-9d2f-76c53dc313d5:Node 6aa6069b-1fd2-4881-9d2f-76c53dc313d5 :: false |
createNodes | 1.592s |
2023-03-17 23:01:47 |
2023-03-17 23:01:47 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2023-03-17 23:01:47 | ------------------------------------ 2023-03-17 23:01:48 | on localhost executing action create-node with content type application/json and payload: { "owner": "admin@test-domain.com", "pubsub#node_type": "leaf", "node": "node-6aa6069b-1fd2-4881-9d2f-76c53dc313d5", "pubsub#title": "Node 6aa6069b-1fd2-4881-9d2f-76c53dc313d5" } 2023-03-17 23:01:48 | from localhost for action create-node got result code 200 and payload { "Note": "Operation successful" } 2023-03-17 23:01:49 | [Mutex] waiting for: [received:nodes:0b8f990a-92d6-4d40-a92c-6062a2c24765:localhost] 2023-03-17 23:01:49 | [Mutex] waiting for: [received:nodes:0b8f990a-92d6-4d40-a92c-6062a2c24765:localhost] 2023-03-17 23:01:49 | [Mutex] waiting for: [received:nodes:0b8f990a-92d6-4d40-a92c-6062a2c24765:localhost] 2023-03-17 23:01:49 | [Mutex] received everything. 2023-03-17 23:01:49 | [Mutex] isItemNotified: received:node:0b8f990a-92d6-4d40-a92c-6062a2c24765:localhost:node-6aa6069b-1fd2-4881-9d2f-76c53dc313d5:Node 6aa6069b-1fd2-4881-9d2f-76c53dc313d5 :: true |
createSubnodes | 1.021s |
2023-03-17 23:01:49 |
2023-03-17 23:01:49 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2023-03-17 23:01:49 | ------------------------------------ 2023-03-17 23:01:49 | on localhost executing action create-node with content type application/json and payload: { "owner": "admin@test-domain.com", "pubsub#node_type": "collection", "node": "node-7023a705-5d3e-42ac-8f57-ea02774b1fce", "pubsub#title": "Node 7023a705-5d3e-42ac-8f57-ea02774b1fce" } 2023-03-17 23:01:49 | from localhost for action create-node got result code 200 and payload { "Note": "Operation successful" } 2023-03-17 23:01:50 | [Mutex] waiting for: [received:nodes:a2366d9a-8d1e-4569-a0b0-27fbee5cac40:localhost] 2023-03-17 23:01:50 | [Mutex] waiting for: [received:nodes:a2366d9a-8d1e-4569-a0b0-27fbee5cac40:localhost] 2023-03-17 23:01:50 | [Mutex] waiting for: [received:nodes:a2366d9a-8d1e-4569-a0b0-27fbee5cac40:localhost] 2023-03-17 23:01:50 | [Mutex] waiting for: [received:nodes:a2366d9a-8d1e-4569-a0b0-27fbee5cac40:localhost] 2023-03-17 23:01:50 | [Mutex] received everything. 2023-03-17 23:01:50 | [Mutex] isItemNotified: received:node:a2366d9a-8d1e-4569-a0b0-27fbee5cac40:localhost:node-7023a705-5d3e-42ac-8f57-ea02774b1fce:Node 7023a705-5d3e-42ac-8f57-ea02774b1fce :: true |
deleteNodes | 1.018s |
2023-03-17 23:01:54 |
2023-03-17 23:01:54 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2023-03-17 23:01:54 | ------------------------------------ 2023-03-17 23:01:54 | on localhost executing action delete-node with content type application/json and payload: { "node": "node-7023a705-5d3e-42ac-8f57-ea02774b1fce" } 2023-03-17 23:01:54 | from localhost for action delete-node got result code 200 and payload { "Note": "Operation successful" } 2023-03-17 23:01:55 | [Mutex] waiting for: [received:nodes:fff949e2-2ce5-4a3a-92b2-ada62f1d9342:localhost] 2023-03-17 23:01:56 | [Mutex] waiting for: [received:nodes:fff949e2-2ce5-4a3a-92b2-ada62f1d9342:localhost] 2023-03-17 23:01:56 | [Mutex] waiting for: [received:nodes:fff949e2-2ce5-4a3a-92b2-ada62f1d9342:localhost] 2023-03-17 23:01:56 | [Mutex] received everything. 2023-03-17 23:01:56 | [Mutex] isItemNotified: received:node:fff949e2-2ce5-4a3a-92b2-ada62f1d9342:localhost:node-7023a705-5d3e-42ac-8f57-ea02774b1fce:Node 7023a705-5d3e-42ac-8f57-ea02774b1fce :: false |
deleteSubnodes | 1.022s |
2023-03-17 23:01:53 |
2023-03-17 23:01:53 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2023-03-17 23:01:53 | ------------------------------------ 2023-03-17 23:01:53 | on localhost executing action delete-node with content type application/json and payload: { "node": "node-6aa6069b-1fd2-4881-9d2f-76c53dc313d5" } 2023-03-17 23:01:53 | from localhost for action delete-node got result code 200 and payload { "Note": "Operation successful" } 2023-03-17 23:01:54 | [Mutex] waiting for: [received:nodes:f588bf96-e0bd-4472-94ea-cb6e1fe777d3:localhost] 2023-03-17 23:01:54 | [Mutex] waiting for: [received:nodes:f588bf96-e0bd-4472-94ea-cb6e1fe777d3:localhost] 2023-03-17 23:01:54 | [Mutex] waiting for: [received:nodes:f588bf96-e0bd-4472-94ea-cb6e1fe777d3:localhost] 2023-03-17 23:01:54 | [Mutex] waiting for: [received:nodes:f588bf96-e0bd-4472-94ea-cb6e1fe777d3:localhost] 2023-03-17 23:01:54 | [Mutex] received everything. 2023-03-17 23:01:54 | [Mutex] isItemNotified: received:node:f588bf96-e0bd-4472-94ea-cb6e1fe777d3:localhost:node-6aa6069b-1fd2-4881-9d2f-76c53dc313d5:Node 6aa6069b-1fd2-4881-9d2f-76c53dc313d5 :: false 2023-03-17 23:01:54 | [Mutex] waiting for: [received:nodes:47580bc0-b145-43f2-875e-bd71537423c2:localhost] 2023-03-17 23:01:54 | [Mutex] received everything. 2023-03-17 23:01:54 | [Mutex] isItemNotified: received:node:47580bc0-b145-43f2-875e-bd71537423c2:localhost:node-6aa6069b-1fd2-4881-9d2f-76c53dc313d5:Node 6aa6069b-1fd2-4881-9d2f-76c53dc313d5 :: false |
publishItemsToNodes | 0.037s |
2023-03-17 23:01:52 |
2023-03-17 23:01:52 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2023-03-17 23:01:52 | ------------------------------------ 2023-03-17 23:01:52 | on localhost executing action publish-item with content type application/json and payload: { "node": "node-6aa6069b-1fd2-4881-9d2f-76c53dc313d5", "entry": "<test>item-1b4ccbd3-4f4d-4635-8edb-cbd5d68a3e85</test>", "item-id": "item-1b4ccbd3-4f4d-4635-8edb-cbd5d68a3e85" } 2023-03-17 23:01:52 | from localhost for action publish-item got result code 200 and payload { "Note": "Operation successful", "item-id": "item-1b4ccbd3-4f4d-4635-8edb-cbd5d68a3e85" } 2023-03-17 23:01:52 | [Mutex] waiting for: [published:item:notifieditem-1b4ccbd3-4f4d-4635-8edb-cbd5d68a3e85:admin@test-domain.com] 2023-03-17 23:01:52 | [Mutex] received everything. 2023-03-17 23:01:52 | [Mutex] isItemNotified: published:item:notifieditem-1b4ccbd3-4f4d-4635-8edb-cbd5d68a3e85:admin@test-domain.com :: true |
retractItemsFromNodes | 0.071s |
2023-03-17 23:01:52 |
2023-03-17 23:01:52 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2023-03-17 23:01:52 | ------------------------------------ 2023-03-17 23:01:52 | on localhost executing action delete-item with content type application/json and payload: { "node": "node-6aa6069b-1fd2-4881-9d2f-76c53dc313d5", "item-id": "item-1b4ccbd3-4f4d-4635-8edb-cbd5d68a3e85" } 2023-03-17 23:01:52 | from localhost for action delete-item got result code 200 and payload { "Note": "Operation successful", "item-id": "item-1b4ccbd3-4f4d-4635-8edb-cbd5d68a3e85" } 2023-03-17 23:01:52 | [Mutex] waiting for: [retracted:item:notifieditem-1b4ccbd3-4f4d-4635-8edb-cbd5d68a3e85:admin@test-domain.com] 2023-03-17 23:01:52 | [Mutex] received everything. 2023-03-17 23:01:52 | [Mutex] isItemNotified: retracted:item:notifieditem-1b4ccbd3-4f4d-4635-8edb-cbd5d68a3e85:admin@test-domain.com :: true |
retrieveItemsFromNodes | 0.063s |
2023-03-17 23:01:52 |
2023-03-17 23:01:52 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2023-03-17 23:01:52 | ------------------------------------ 2023-03-17 23:01:52 | on localhost executing action retrieve-item with content type application/json and payload: { "node": "node-6aa6069b-1fd2-4881-9d2f-76c53dc313d5", "item-id": "item-1b4ccbd3-4f4d-4635-8edb-cbd5d68a3e85" } 2023-03-17 23:01:52 | from localhost for action retrieve-item got result code 200 and payload { "title": "Retrive PubSub node item", "node": "node-6aa6069b-1fd2-4881-9d2f-76c53dc313d5", "item-id": "item-1b4ccbd3-4f4d-4635-8edb-cbd5d68a3e85", "item": [ "<item id=\"item-1b4ccbd3-4f4d-4635-8edb-cbd5d68a3e85\"><test>item-1b4ccbd3-4f4d-4635-8edb-cbd5d68a3e85</test></item>" ] } 2023-03-17 23:01:52 | [Mutex] notify: [retrieved:item:item-1b4ccbd3-4f4d-4635-8edb-cbd5d68a3e85:payload-matches:true:localhost] 2023-03-17 23:01:52 | [Mutex] received everything. 2023-03-17 23:01:52 | [Mutex] isItemNotified: retrieved:item:item-1b4ccbd3-4f4d-4635-8edb-cbd5d68a3e85:payload-matches:true:localhost :: true |
retrieveUserSubscriptions | 0.055s |
2023-03-17 23:01:52 |
2023-03-17 23:01:52 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2023-03-17 23:01:52 | ------------------------------------ 2023-03-17 23:01:52 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload: { "jid": "admin@test-domain.com" } 2023-03-17 23:01:52 | from localhost for action retrieve-user-subscriptions got result code 200 and payload { "nodes": [ "test", "node-7023a705-5d3e-42ac-8f57-ea02774b1fce", "node-6aa6069b-1fd2-4881-9d2f-76c53dc313d5" ] } |
retrieveUserSubscriptionsWithRegex | 0.048s |
2023-03-17 23:01:52 |
2023-03-17 23:01:52 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2023-03-17 23:01:52 | ------------------------------------ 2023-03-17 23:01:52 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload: { "jid": "admin@test-domain.com", "node-pattern": "(?!node-6aa6069b-1fd2-4881-9d2f-76c53dc313d5)" } 2023-03-17 23:01:52 | from localhost for action retrieve-user-subscriptions got result code 200 and payload { "nodes": [ ] } |
subscribeNodes | 1.009s |
2023-03-17 23:01:51 |
2023-03-17 23:01:51 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2023-03-17 23:01:51 | ------------------------------------ 2023-03-17 23:01:51 | on localhost executing action subscribe-node with content type application/json and payload: { "node": "node-6aa6069b-1fd2-4881-9d2f-76c53dc313d5", "jids": [ "admin@test-domain.com" ] } 2023-03-17 23:01:51 | from localhost for action subscribe-node got result code 200 and payload { "Note": "Operation successful" } |
unsubscribeNodes | 1.059s |
2023-03-17 23:01:52 |
2023-03-17 23:01:52 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2023-03-17 23:01:52 | ------------------------------------ 2023-03-17 23:01:52 | on localhost executing action unsubscribe-node with content type application/json and payload: { "node": "node-6aa6069b-1fd2-4881-9d2f-76c53dc313d5", "jids": [ "admin@test-domain.com" ] } 2023-03-17 23:01:52 | from localhost for action unsubscribe-node got result code 200 and payload { "Note": "Operation successful" } |