Test duration : 9.045s
Passed Tests | ||
---|---|---|
tigase.tests.pubsub.TestRestApiUsingJSON | ||
configureNodes | 1.124s |
2021-03-25 23:04:44 |
2021-03-25 23:04:44 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-03-25 23:04:44 | ------------------------------------ 2021-03-25 23:04:44 | [Mutex] waiting for: [configured:node:node-5b6e5f6b-b582-4556-b269-1682ef483cc9:node-5cd389b7-aec7-4a24-afcc-c14508e46d67] 2021-03-25 23:04:45 | [Mutex] received everything. 2021-03-25 23:04:45 | [Mutex] isItemNotified: configured:node:node-5b6e5f6b-b582-4556-b269-1682ef483cc9:node-5cd389b7-aec7-4a24-afcc-c14508e46d67 :: true 2021-03-25 23:04:46 | [Mutex] waiting for: [received:nodes:831a501a-6cfa-4108-bf63-e5bd2471756e:localhost] 2021-03-25 23:04:46 | [Mutex] waiting for: [received:nodes:831a501a-6cfa-4108-bf63-e5bd2471756e:localhost] 2021-03-25 23:04:46 | [Mutex] received everything. 2021-03-25 23:04:46 | [Mutex] isItemNotified: received:node:831a501a-6cfa-4108-bf63-e5bd2471756e:localhost:node-5b6e5f6b-b582-4556-b269-1682ef483cc9:Node 5b6e5f6b-b582-4556-b269-1682ef483cc9 :: true 2021-03-25 23:04:46 | [Mutex] waiting for: [received:nodes:7f21b505-4b7a-4bd1-9999-060619658490:localhost] 2021-03-25 23:04:46 | [Mutex] received everything. 2021-03-25 23:04:46 | [Mutex] isItemNotified: received:node:7f21b505-4b7a-4bd1-9999-060619658490:localhost:node-5b6e5f6b-b582-4556-b269-1682ef483cc9:Node 5b6e5f6b-b582-4556-b269-1682ef483cc9 :: false |
createNodes | 1.665s |
2021-03-25 23:04:42 |
2021-03-25 23:04:42 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-03-25 23:04:42 | ------------------------------------ 2021-03-25 23:04:42 | on localhost executing action create-node with content type application/json and payload: { "owner": "admin@test-domain.com", "pubsub#node_type": "leaf", "node": "node-5b6e5f6b-b582-4556-b269-1682ef483cc9", "pubsub#title": "Node 5b6e5f6b-b582-4556-b269-1682ef483cc9" } 2021-03-25 23:04:42 | from localhost for action create-node got result code 200 and payload { "Note": "Operation successful" } 2021-03-25 23:04:43 | [Mutex] waiting for: [received:nodes:b6e9fbf7-aadc-46be-9b8a-ba54dab25f0b:localhost] 2021-03-25 23:04:43 | [Mutex] received everything. 2021-03-25 23:04:43 | [Mutex] isItemNotified: received:node:b6e9fbf7-aadc-46be-9b8a-ba54dab25f0b:localhost:node-5b6e5f6b-b582-4556-b269-1682ef483cc9:Node 5b6e5f6b-b582-4556-b269-1682ef483cc9 :: true |
createSubnodes | 1.029s |
2021-03-25 23:04:43 |
2021-03-25 23:04:43 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-03-25 23:04:43 | ------------------------------------ 2021-03-25 23:04:43 | on localhost executing action create-node with content type application/json and payload: { "owner": "admin@test-domain.com", "pubsub#node_type": "collection", "node": "node-5cd389b7-aec7-4a24-afcc-c14508e46d67", "pubsub#title": "Node 5cd389b7-aec7-4a24-afcc-c14508e46d67" } 2021-03-25 23:04:43 | from localhost for action create-node got result code 200 and payload { "Note": "Operation successful" } 2021-03-25 23:04:44 | [Mutex] waiting for: [received:nodes:d58364a6-2487-4898-a8c1-498ff8769536:localhost] 2021-03-25 23:04:44 | [Mutex] received everything. 2021-03-25 23:04:44 | [Mutex] isItemNotified: received:node:d58364a6-2487-4898-a8c1-498ff8769536:localhost:node-5cd389b7-aec7-4a24-afcc-c14508e46d67:Node 5cd389b7-aec7-4a24-afcc-c14508e46d67 :: true |
deleteNodes | 1.027s |
2021-03-25 23:04:49 |
2021-03-25 23:04:49 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-03-25 23:04:49 | ------------------------------------ 2021-03-25 23:04:49 | on localhost executing action delete-node with content type application/json and payload: { "node": "node-5cd389b7-aec7-4a24-afcc-c14508e46d67" } 2021-03-25 23:04:49 | from localhost for action delete-node got result code 200 and payload { "Note": "Operation successful" } 2021-03-25 23:04:50 | [Mutex] waiting for: [received:nodes:69a35084-97bb-4ff0-84b8-0d9d40ed8ab2:localhost] 2021-03-25 23:04:50 | [Mutex] received everything. 2021-03-25 23:04:50 | [Mutex] isItemNotified: received:node:69a35084-97bb-4ff0-84b8-0d9d40ed8ab2:localhost:node-5cd389b7-aec7-4a24-afcc-c14508e46d67:Node 5cd389b7-aec7-4a24-afcc-c14508e46d67 :: false |
deleteSubnodes | 1.030s |
2021-03-25 23:04:48 |
2021-03-25 23:04:48 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-03-25 23:04:48 | ------------------------------------ 2021-03-25 23:04:48 | on localhost executing action delete-node with content type application/json and payload: { "node": "node-5b6e5f6b-b582-4556-b269-1682ef483cc9" } 2021-03-25 23:04:48 | from localhost for action delete-node got result code 200 and payload { "Note": "Operation successful" } 2021-03-25 23:04:49 | [Mutex] waiting for: [received:nodes:2b39c638-6c05-40f4-a59a-4d0f41b8ea65:localhost] 2021-03-25 23:04:49 | [Mutex] waiting for: [received:nodes:2b39c638-6c05-40f4-a59a-4d0f41b8ea65:localhost] 2021-03-25 23:04:49 | [Mutex] waiting for: [received:nodes:2b39c638-6c05-40f4-a59a-4d0f41b8ea65:localhost] 2021-03-25 23:04:49 | [Mutex] received everything. 2021-03-25 23:04:49 | [Mutex] isItemNotified: received:node:2b39c638-6c05-40f4-a59a-4d0f41b8ea65:localhost:node-5b6e5f6b-b582-4556-b269-1682ef483cc9:Node 5b6e5f6b-b582-4556-b269-1682ef483cc9 :: false 2021-03-25 23:04:49 | [Mutex] waiting for: [received:nodes:58b72905-e750-4aa6-8b14-7548b12ccce7:localhost] 2021-03-25 23:04:49 | [Mutex] received everything. 2021-03-25 23:04:49 | [Mutex] isItemNotified: received:node:58b72905-e750-4aa6-8b14-7548b12ccce7:localhost:node-5b6e5f6b-b582-4556-b269-1682ef483cc9:Node 5b6e5f6b-b582-4556-b269-1682ef483cc9 :: false |
publishItemsToNodes | 0.109s |
2021-03-25 23:04:47 |
2021-03-25 23:04:47 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-03-25 23:04:47 | ------------------------------------ 2021-03-25 23:04:47 | on localhost executing action publish-item with content type application/json and payload: { "node": "node-5b6e5f6b-b582-4556-b269-1682ef483cc9", "entry": "<test>item-729c2f4c-e234-480b-b466-e16c5fad3406</test>", "item-id": "item-729c2f4c-e234-480b-b466-e16c5fad3406" } 2021-03-25 23:04:47 | from localhost for action publish-item got result code 200 and payload { "Note": "Operation successful", "item-id": "item-729c2f4c-e234-480b-b466-e16c5fad3406" } 2021-03-25 23:04:47 | [Mutex] waiting for: [published:item:notifieditem-729c2f4c-e234-480b-b466-e16c5fad3406:admin@test-domain.com] 2021-03-25 23:04:47 | [Mutex] received everything. 2021-03-25 23:04:47 | [Mutex] isItemNotified: published:item:notifieditem-729c2f4c-e234-480b-b466-e16c5fad3406:admin@test-domain.com :: true |
retractItemsFromNodes | 0.060s |
2021-03-25 23:04:47 |
2021-03-25 23:04:47 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-03-25 23:04:47 | ------------------------------------ 2021-03-25 23:04:47 | on localhost executing action delete-item with content type application/json and payload: { "node": "node-5b6e5f6b-b582-4556-b269-1682ef483cc9", "item-id": "item-729c2f4c-e234-480b-b466-e16c5fad3406" } 2021-03-25 23:04:47 | from localhost for action delete-item got result code 200 and payload { "Note": "Operation successful", "item-id": "item-729c2f4c-e234-480b-b466-e16c5fad3406" } 2021-03-25 23:04:47 | [Mutex] received everything. 2021-03-25 23:04:47 | [Mutex] isItemNotified: retracted:item:notifieditem-729c2f4c-e234-480b-b466-e16c5fad3406:admin@test-domain.com :: true |
retrieveItemsFromNodes | 0.014s |
2021-03-25 23:04:47 |
2021-03-25 23:04:47 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-03-25 23:04:47 | ------------------------------------ 2021-03-25 23:04:47 | on localhost executing action retrieve-item with content type application/json and payload: { "node": "node-5b6e5f6b-b582-4556-b269-1682ef483cc9", "item-id": "item-729c2f4c-e234-480b-b466-e16c5fad3406" } 2021-03-25 23:04:47 | from localhost for action retrieve-item got result code 200 and payload { "title": "Retrive PubSub node item", "node": "node-5b6e5f6b-b582-4556-b269-1682ef483cc9", "item-id": "item-729c2f4c-e234-480b-b466-e16c5fad3406", "item": [ "<item id=\"item-729c2f4c-e234-480b-b466-e16c5fad3406\"><test>item-729c2f4c-e234-480b-b466-e16c5fad3406</test></item>" ] } 2021-03-25 23:04:47 | [Mutex] notify: [retrieved:item:item-729c2f4c-e234-480b-b466-e16c5fad3406:payload-matches:true:localhost] 2021-03-25 23:04:47 | [Mutex] received everything. 2021-03-25 23:04:47 | [Mutex] isItemNotified: retrieved:item:item-729c2f4c-e234-480b-b466-e16c5fad3406:payload-matches:true:localhost :: true |
retrieveUserSubscriptions | 0.055s |
2021-03-25 23:04:47 |
2021-03-25 23:04:47 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-03-25 23:04:47 | ------------------------------------ 2021-03-25 23:04:47 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload: { "jid": "admin@test-domain.com" } 2021-03-25 23:04:47 | from localhost for action retrieve-user-subscriptions got result code 200 and payload { "nodes": [ "test", "node-5b6e5f6b-b582-4556-b269-1682ef483cc9", "node-5cd389b7-aec7-4a24-afcc-c14508e46d67" ] } |
retrieveUserSubscriptionsWithRegex | 0.060s |
2021-03-25 23:04:47 |
2021-03-25 23:04:47 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-03-25 23:04:47 | ------------------------------------ 2021-03-25 23:04:47 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload: { "jid": "admin@test-domain.com", "node-pattern": "(?!node-5b6e5f6b-b582-4556-b269-1682ef483cc9)" } 2021-03-25 23:04:47 | from localhost for action retrieve-user-subscriptions got result code 200 and payload { "nodes": [ ] } |
subscribeNodes | 1.020s |
2021-03-25 23:04:46 |
2021-03-25 23:04:46 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-03-25 23:04:46 | ------------------------------------ 2021-03-25 23:04:46 | on localhost executing action subscribe-node with content type application/json and payload: { "node": "node-5b6e5f6b-b582-4556-b269-1682ef483cc9", "jids": [ "admin@test-domain.com" ] } 2021-03-25 23:04:46 | from localhost for action subscribe-node got result code 200 and payload { "Note": "Operation successful" } |
unsubscribeNodes | 1.060s |
2021-03-25 23:04:47 |
2021-03-25 23:04:47 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-03-25 23:04:47 | ------------------------------------ 2021-03-25 23:04:47 | on localhost executing action unsubscribe-node with content type application/json and payload: { "node": "node-5b6e5f6b-b582-4556-b269-1682ef483cc9", "jids": [ "admin@test-domain.com" ] } 2021-03-25 23:04:47 | from localhost for action unsubscribe-node got result code 200 and payload { "Note": "Operation successful" } |