Test duration : 9.149s
Passed Tests | ||
---|---|---|
tigase.tests.pubsub.TestRestApiUsingJSON | ||
configureNodes | 1.094s |
2020-12-16 13:50:46 |
2020-12-16 13:50:46 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-12-16 13:50:46 | ------------------------------------ 2020-12-16 13:50:46 | [Mutex] waiting for: [configured:node:node-08d1e6a9-aab4-4bb2-a484-d2c23888b3a1:node-c543e695-39b1-4b19-adfc-090f12997417] 2020-12-16 13:50:46 | [Mutex] received everything. 2020-12-16 13:50:46 | [Mutex] isItemNotified: configured:node:node-08d1e6a9-aab4-4bb2-a484-d2c23888b3a1:node-c543e695-39b1-4b19-adfc-090f12997417 :: true 2020-12-16 13:50:47 | [Mutex] waiting for: [received:nodes:d20b8b20-d29b-4027-a672-113ca96f4084:localhost] 2020-12-16 13:50:47 | [Mutex] received everything. 2020-12-16 13:50:47 | [Mutex] isItemNotified: received:node:d20b8b20-d29b-4027-a672-113ca96f4084:localhost:node-08d1e6a9-aab4-4bb2-a484-d2c23888b3a1:Node 08d1e6a9-aab4-4bb2-a484-d2c23888b3a1 :: true 2020-12-16 13:50:47 | [Mutex] waiting for: [received:nodes:b86e1d52-a6e2-42f9-bb5a-b3733f238e54:localhost] 2020-12-16 13:50:47 | [Mutex] received everything. 2020-12-16 13:50:47 | [Mutex] isItemNotified: received:node:b86e1d52-a6e2-42f9-bb5a-b3733f238e54:localhost:node-08d1e6a9-aab4-4bb2-a484-d2c23888b3a1:Node 08d1e6a9-aab4-4bb2-a484-d2c23888b3a1 :: false |
createNodes | 1.657s |
2020-12-16 13:50:43 |
2020-12-16 13:50:43 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-12-16 13:50:43 | ------------------------------------ 2020-12-16 13:50:44 | on localhost executing action create-node with content type application/json and payload: { "owner": "admin@test-domain.com", "pubsub#node_type": "leaf", "node": "node-08d1e6a9-aab4-4bb2-a484-d2c23888b3a1", "pubsub#title": "Node 08d1e6a9-aab4-4bb2-a484-d2c23888b3a1" } 2020-12-16 13:50:44 | from localhost for action create-node got result code 200 and payload { "Note": "Operation successful" } 2020-12-16 13:50:45 | [Mutex] waiting for: [received:nodes:b0ec5efd-a9e2-4f29-9780-098fe71d9045:localhost] 2020-12-16 13:50:45 | [Mutex] received everything. 2020-12-16 13:50:45 | [Mutex] isItemNotified: received:node:b0ec5efd-a9e2-4f29-9780-098fe71d9045:localhost:node-08d1e6a9-aab4-4bb2-a484-d2c23888b3a1:Node 08d1e6a9-aab4-4bb2-a484-d2c23888b3a1 :: true |
createSubnodes | 1.032s |
2020-12-16 13:50:45 |
2020-12-16 13:50:45 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-12-16 13:50:45 | ------------------------------------ 2020-12-16 13:50:45 | on localhost executing action create-node with content type application/json and payload: { "owner": "admin@test-domain.com", "pubsub#node_type": "collection", "node": "node-c543e695-39b1-4b19-adfc-090f12997417", "pubsub#title": "Node c543e695-39b1-4b19-adfc-090f12997417" } 2020-12-16 13:50:45 | from localhost for action create-node got result code 200 and payload { "Note": "Operation successful" } 2020-12-16 13:50:46 | [Mutex] waiting for: [received:nodes:e0019c69-28ef-4992-bf8f-56bc83826671:localhost] 2020-12-16 13:50:46 | [Mutex] waiting for: [received:nodes:e0019c69-28ef-4992-bf8f-56bc83826671:localhost] 2020-12-16 13:50:46 | [Mutex] received everything. 2020-12-16 13:50:46 | [Mutex] isItemNotified: received:node:e0019c69-28ef-4992-bf8f-56bc83826671:localhost:node-c543e695-39b1-4b19-adfc-090f12997417:Node c543e695-39b1-4b19-adfc-090f12997417 :: true |
deleteNodes | 1.030s |
2020-12-16 13:50:51 |
2020-12-16 13:50:51 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-12-16 13:50:51 | ------------------------------------ 2020-12-16 13:50:51 | on localhost executing action delete-node with content type application/json and payload: { "node": "node-c543e695-39b1-4b19-adfc-090f12997417" } 2020-12-16 13:50:51 | from localhost for action delete-node got result code 200 and payload { "Note": "Operation successful" } 2020-12-16 13:50:52 | [Mutex] waiting for: [received:nodes:35af695a-33f3-4ac8-b62f-f0f3b199987b:localhost] 2020-12-16 13:50:52 | [Mutex] received everything. 2020-12-16 13:50:52 | [Mutex] isItemNotified: received:node:35af695a-33f3-4ac8-b62f-f0f3b199987b:localhost:node-c543e695-39b1-4b19-adfc-090f12997417:Node c543e695-39b1-4b19-adfc-090f12997417 :: false |
deleteSubnodes | 1.029s |
2020-12-16 13:50:50 |
2020-12-16 13:50:50 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-12-16 13:50:50 | ------------------------------------ 2020-12-16 13:50:50 | on localhost executing action delete-node with content type application/json and payload: { "node": "node-08d1e6a9-aab4-4bb2-a484-d2c23888b3a1" } 2020-12-16 13:50:50 | from localhost for action delete-node got result code 200 and payload { "Note": "Operation successful" } 2020-12-16 13:50:51 | [Mutex] waiting for: [received:nodes:a8f5c35e-472e-4940-8b20-67a4a1ae0b35:localhost] 2020-12-16 13:50:51 | [Mutex] received everything. 2020-12-16 13:50:51 | [Mutex] isItemNotified: received:node:a8f5c35e-472e-4940-8b20-67a4a1ae0b35:localhost:node-08d1e6a9-aab4-4bb2-a484-d2c23888b3a1:Node 08d1e6a9-aab4-4bb2-a484-d2c23888b3a1 :: false 2020-12-16 13:50:51 | [Mutex] waiting for: [received:nodes:4b4c7873-4600-4fa6-9d34-45539bef3ac8:localhost] 2020-12-16 13:50:51 | [Mutex] received everything. 2020-12-16 13:50:51 | [Mutex] isItemNotified: received:node:4b4c7873-4600-4fa6-9d34-45539bef3ac8:localhost:node-08d1e6a9-aab4-4bb2-a484-d2c23888b3a1:Node 08d1e6a9-aab4-4bb2-a484-d2c23888b3a1 :: false |
publishItemsToNodes | 0.035s |
2020-12-16 13:50:48 |
2020-12-16 13:50:48 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-12-16 13:50:48 | ------------------------------------ 2020-12-16 13:50:48 | on localhost executing action publish-item with content type application/json and payload: { "node": "node-08d1e6a9-aab4-4bb2-a484-d2c23888b3a1", "entry": "<test>item-63b25338-86bc-4830-900b-d27e416005db</test>", "item-id": "item-63b25338-86bc-4830-900b-d27e416005db" } 2020-12-16 13:50:48 | from localhost for action publish-item got result code 200 and payload { "Note": "Operation successful", "item-id": "item-63b25338-86bc-4830-900b-d27e416005db" } 2020-12-16 13:50:48 | [Mutex] waiting for: [published:item:notifieditem-63b25338-86bc-4830-900b-d27e416005db:admin@test-domain.com] 2020-12-16 13:50:48 | [Mutex] received everything. 2020-12-16 13:50:48 | [Mutex] isItemNotified: published:item:notifieditem-63b25338-86bc-4830-900b-d27e416005db:admin@test-domain.com :: true |
retractItemsFromNodes | 0.092s |
2020-12-16 13:50:49 |
2020-12-16 13:50:49 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-12-16 13:50:49 | ------------------------------------ 2020-12-16 13:50:49 | on localhost executing action delete-item with content type application/json and payload: { "node": "node-08d1e6a9-aab4-4bb2-a484-d2c23888b3a1", "item-id": "item-63b25338-86bc-4830-900b-d27e416005db" } 2020-12-16 13:50:49 | from localhost for action delete-item got result code 200 and payload { "Note": "Operation successful", "item-id": "item-63b25338-86bc-4830-900b-d27e416005db" } 2020-12-16 13:50:49 | [Mutex] waiting for: [retracted:item:notifieditem-63b25338-86bc-4830-900b-d27e416005db:admin@test-domain.com] 2020-12-16 13:50:49 | [Mutex] received everything. 2020-12-16 13:50:49 | [Mutex] isItemNotified: retracted:item:notifieditem-63b25338-86bc-4830-900b-d27e416005db:admin@test-domain.com :: true |
retrieveItemsFromNodes | 0.075s |
2020-12-16 13:50:48 |
2020-12-16 13:50:48 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-12-16 13:50:48 | ------------------------------------ 2020-12-16 13:50:48 | on localhost executing action retrieve-item with content type application/json and payload: { "node": "node-08d1e6a9-aab4-4bb2-a484-d2c23888b3a1", "item-id": "item-63b25338-86bc-4830-900b-d27e416005db" } 2020-12-16 13:50:48 | from localhost for action retrieve-item got result code 200 and payload { "title": "Retrive PubSub node item", "node": "node-08d1e6a9-aab4-4bb2-a484-d2c23888b3a1", "item-id": "item-63b25338-86bc-4830-900b-d27e416005db", "item": [ "<item id=\"item-63b25338-86bc-4830-900b-d27e416005db\"><test>item-63b25338-86bc-4830-900b-d27e416005db</test></item>" ] } 2020-12-16 13:50:48 | [Mutex] notify: [retrieved:item:item-63b25338-86bc-4830-900b-d27e416005db:payload-matches:true:localhost] 2020-12-16 13:50:48 | [Mutex] received everything. 2020-12-16 13:50:48 | [Mutex] isItemNotified: retrieved:item:item-63b25338-86bc-4830-900b-d27e416005db:payload-matches:true:localhost :: true |
retrieveUserSubscriptions | 0.051s |
2020-12-16 13:50:48 |
2020-12-16 13:50:48 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-12-16 13:50:48 | ------------------------------------ 2020-12-16 13:50:48 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload: { "jid": "admin@test-domain.com" } 2020-12-16 13:50:48 | from localhost for action retrieve-user-subscriptions got result code 200 and payload { "nodes": [ "node-c543e695-39b1-4b19-adfc-090f12997417", "test", "node-08d1e6a9-aab4-4bb2-a484-d2c23888b3a1" ] } |
retrieveUserSubscriptionsWithRegex | 0.052s |
2020-12-16 13:50:48 |
2020-12-16 13:50:48 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-12-16 13:50:48 | ------------------------------------ 2020-12-16 13:50:48 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload: { "jid": "admin@test-domain.com", "node-pattern": "(?!node-08d1e6a9-aab4-4bb2-a484-d2c23888b3a1)" } 2020-12-16 13:50:49 | from localhost for action retrieve-user-subscriptions got result code 200 and payload { "nodes": [ ] } |
subscribeNodes | 1.014s |
2020-12-16 13:50:47 |
2020-12-16 13:50:47 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-12-16 13:50:47 | ------------------------------------ 2020-12-16 13:50:47 | on localhost executing action subscribe-node with content type application/json and payload: { "node": "node-08d1e6a9-aab4-4bb2-a484-d2c23888b3a1", "jids": [ "admin@test-domain.com" ] } 2020-12-16 13:50:47 | from localhost for action subscribe-node got result code 200 and payload { "Note": "Operation successful" } |
unsubscribeNodes | 1.063s |
2020-12-16 13:50:49 |
2020-12-16 13:50:49 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-12-16 13:50:49 | ------------------------------------ 2020-12-16 13:50:49 | on localhost executing action unsubscribe-node with content type application/json and payload: { "node": "node-08d1e6a9-aab4-4bb2-a484-d2c23888b3a1", "jids": [ "admin@test-domain.com" ] } 2020-12-16 13:50:49 | from localhost for action unsubscribe-node got result code 200 and payload { "Note": "Operation successful" } |