Test duration : 9.201s
Passed Tests | ||
---|---|---|
tigase.tests.pubsub.TestRestApiUsingJSON | ||
configureNodes | 1.114s |
2021-04-25 22:58:05 |
2021-04-25 22:58:05 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-04-25 22:58:05 | ------------------------------------ 2021-04-25 22:58:05 | [Mutex] waiting for: [configured:node:node-92d08241-8e1a-4db7-b2b6-8c3d940baf0a:node-2fec7b9e-9684-4c24-aebf-59a1a076aadd] 2021-04-25 22:58:05 | [Mutex] received everything. 2021-04-25 22:58:05 | [Mutex] isItemNotified: configured:node:node-92d08241-8e1a-4db7-b2b6-8c3d940baf0a:node-2fec7b9e-9684-4c24-aebf-59a1a076aadd :: true 2021-04-25 22:58:06 | [Mutex] waiting for: [received:nodes:e1a5faf6-61f2-4e85-9ff1-a37c6e049727:localhost] 2021-04-25 22:58:06 | [Mutex] received everything. 2021-04-25 22:58:06 | [Mutex] isItemNotified: received:node:e1a5faf6-61f2-4e85-9ff1-a37c6e049727:localhost:node-92d08241-8e1a-4db7-b2b6-8c3d940baf0a:Node 92d08241-8e1a-4db7-b2b6-8c3d940baf0a :: true 2021-04-25 22:58:06 | [Mutex] waiting for: [received:nodes:72dd234d-c0e9-4796-b84a-381060b4fa1c:localhost] 2021-04-25 22:58:06 | [Mutex] waiting for: [received:nodes:72dd234d-c0e9-4796-b84a-381060b4fa1c:localhost] 2021-04-25 22:58:06 | [Mutex] received everything. 2021-04-25 22:58:06 | [Mutex] isItemNotified: received:node:72dd234d-c0e9-4796-b84a-381060b4fa1c:localhost:node-92d08241-8e1a-4db7-b2b6-8c3d940baf0a:Node 92d08241-8e1a-4db7-b2b6-8c3d940baf0a :: false |
createNodes | 1.707s |
2021-04-25 22:58:02 |
2021-04-25 22:58:02 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-04-25 22:58:02 | ------------------------------------ 2021-04-25 22:58:03 | on localhost executing action create-node with content type application/json and payload: { "owner": "admin@test-domain.com", "pubsub#node_type": "leaf", "node": "node-92d08241-8e1a-4db7-b2b6-8c3d940baf0a", "pubsub#title": "Node 92d08241-8e1a-4db7-b2b6-8c3d940baf0a" } 2021-04-25 22:58:03 | from localhost for action create-node got result code 200 and payload { "Note": "Operation successful" } 2021-04-25 22:58:04 | [Mutex] waiting for: [received:nodes:5697668e-e05d-4765-86f1-c7da9a241629:localhost] 2021-04-25 22:58:04 | [Mutex] received everything. 2021-04-25 22:58:04 | [Mutex] isItemNotified: received:node:5697668e-e05d-4765-86f1-c7da9a241629:localhost:node-92d08241-8e1a-4db7-b2b6-8c3d940baf0a:Node 92d08241-8e1a-4db7-b2b6-8c3d940baf0a :: true |
createSubnodes | 1.031s |
2021-04-25 22:58:04 |
2021-04-25 22:58:04 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-04-25 22:58:04 | ------------------------------------ 2021-04-25 22:58:04 | on localhost executing action create-node with content type application/json and payload: { "owner": "admin@test-domain.com", "pubsub#node_type": "collection", "node": "node-2fec7b9e-9684-4c24-aebf-59a1a076aadd", "pubsub#title": "Node 2fec7b9e-9684-4c24-aebf-59a1a076aadd" } 2021-04-25 22:58:04 | from localhost for action create-node got result code 200 and payload { "Note": "Operation successful" } 2021-04-25 22:58:05 | [Mutex] waiting for: [received:nodes:29fee392-a60f-4dce-b78d-202e27860923:localhost] 2021-04-25 22:58:05 | [Mutex] received everything. 2021-04-25 22:58:05 | [Mutex] isItemNotified: received:node:29fee392-a60f-4dce-b78d-202e27860923:localhost:node-2fec7b9e-9684-4c24-aebf-59a1a076aadd:Node 2fec7b9e-9684-4c24-aebf-59a1a076aadd :: true |
deleteNodes | 1.032s |
2021-04-25 22:58:09 |
2021-04-25 22:58:09 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-04-25 22:58:09 | ------------------------------------ 2021-04-25 22:58:09 | on localhost executing action delete-node with content type application/json and payload: { "node": "node-2fec7b9e-9684-4c24-aebf-59a1a076aadd" } 2021-04-25 22:58:09 | from localhost for action delete-node got result code 200 and payload { "Note": "Operation successful" } 2021-04-25 22:58:10 | [Mutex] waiting for: [received:nodes:10b9abd3-06f0-4b40-9825-a5843af30e59:localhost] 2021-04-25 22:58:10 | [Mutex] received everything. 2021-04-25 22:58:10 | [Mutex] isItemNotified: received:node:10b9abd3-06f0-4b40-9825-a5843af30e59:localhost:node-2fec7b9e-9684-4c24-aebf-59a1a076aadd:Node 2fec7b9e-9684-4c24-aebf-59a1a076aadd :: false |
deleteSubnodes | 1.031s |
2021-04-25 22:58:08 |
2021-04-25 22:58:08 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-04-25 22:58:08 | ------------------------------------ 2021-04-25 22:58:08 | on localhost executing action delete-node with content type application/json and payload: { "node": "node-92d08241-8e1a-4db7-b2b6-8c3d940baf0a" } 2021-04-25 22:58:08 | from localhost for action delete-node got result code 200 and payload { "Note": "Operation successful" } 2021-04-25 22:58:09 | [Mutex] waiting for: [received:nodes:a4695ba7-b6d4-4b44-aac8-3b9bf4d659da:localhost] 2021-04-25 22:58:09 | [Mutex] received everything. 2021-04-25 22:58:09 | [Mutex] isItemNotified: received:node:a4695ba7-b6d4-4b44-aac8-3b9bf4d659da:localhost:node-92d08241-8e1a-4db7-b2b6-8c3d940baf0a:Node 92d08241-8e1a-4db7-b2b6-8c3d940baf0a :: false 2021-04-25 22:58:09 | [Mutex] waiting for: [received:nodes:e74aac12-7386-46da-9774-9c3af49334b1:localhost] 2021-04-25 22:58:09 | [Mutex] received everything. 2021-04-25 22:58:09 | [Mutex] isItemNotified: received:node:e74aac12-7386-46da-9774-9c3af49334b1:localhost:node-92d08241-8e1a-4db7-b2b6-8c3d940baf0a:Node 92d08241-8e1a-4db7-b2b6-8c3d940baf0a :: false |
publishItemsToNodes | 0.047s |
2021-04-25 22:58:07 |
2021-04-25 22:58:07 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-04-25 22:58:07 | ------------------------------------ 2021-04-25 22:58:07 | on localhost executing action publish-item with content type application/json and payload: { "node": "node-92d08241-8e1a-4db7-b2b6-8c3d940baf0a", "entry": "<test>item-324d2e2b-7354-400b-89fc-83f82c5b0d42</test>", "item-id": "item-324d2e2b-7354-400b-89fc-83f82c5b0d42" } 2021-04-25 22:58:07 | from localhost for action publish-item got result code 200 and payload { "Note": "Operation successful", "item-id": "item-324d2e2b-7354-400b-89fc-83f82c5b0d42" } 2021-04-25 22:58:07 | [Mutex] waiting for: [published:item:notifieditem-324d2e2b-7354-400b-89fc-83f82c5b0d42:admin@test-domain.com] 2021-04-25 22:58:07 | [Mutex] received everything. 2021-04-25 22:58:07 | [Mutex] isItemNotified: published:item:notifieditem-324d2e2b-7354-400b-89fc-83f82c5b0d42:admin@test-domain.com :: true |
retractItemsFromNodes | 0.152s |
2021-04-25 22:58:07 |
2021-04-25 22:58:07 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-04-25 22:58:07 | ------------------------------------ 2021-04-25 22:58:07 | on localhost executing action delete-item with content type application/json and payload: { "node": "node-92d08241-8e1a-4db7-b2b6-8c3d940baf0a", "item-id": "item-324d2e2b-7354-400b-89fc-83f82c5b0d42" } 2021-04-25 22:58:07 | from localhost for action delete-item got result code 200 and payload { "Note": "Operation successful", "item-id": "item-324d2e2b-7354-400b-89fc-83f82c5b0d42" } 2021-04-25 22:58:07 | [Mutex] received everything. 2021-04-25 22:58:07 | [Mutex] isItemNotified: retracted:item:notifieditem-324d2e2b-7354-400b-89fc-83f82c5b0d42:admin@test-domain.com :: true |
retrieveItemsFromNodes | 0.082s |
2021-04-25 22:58:07 |
2021-04-25 22:58:07 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-04-25 22:58:07 | ------------------------------------ 2021-04-25 22:58:07 | on localhost executing action retrieve-item with content type application/json and payload: { "node": "node-92d08241-8e1a-4db7-b2b6-8c3d940baf0a", "item-id": "item-324d2e2b-7354-400b-89fc-83f82c5b0d42" } 2021-04-25 22:58:07 | from localhost for action retrieve-item got result code 200 and payload { "title": "Retrive PubSub node item", "node": "node-92d08241-8e1a-4db7-b2b6-8c3d940baf0a", "item-id": "item-324d2e2b-7354-400b-89fc-83f82c5b0d42", "item": [ "<item id=\"item-324d2e2b-7354-400b-89fc-83f82c5b0d42\"><test>item-324d2e2b-7354-400b-89fc-83f82c5b0d42</test></item>" ] } 2021-04-25 22:58:07 | [Mutex] notify: [retrieved:item:item-324d2e2b-7354-400b-89fc-83f82c5b0d42:payload-matches:true:localhost] 2021-04-25 22:58:07 | [Mutex] received everything. 2021-04-25 22:58:07 | [Mutex] isItemNotified: retrieved:item:item-324d2e2b-7354-400b-89fc-83f82c5b0d42:payload-matches:true:localhost :: true |
retrieveUserSubscriptions | 0.051s |
2021-04-25 22:58:07 |
2021-04-25 22:58:07 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-04-25 22:58:07 | ------------------------------------ 2021-04-25 22:58:07 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload: { "jid": "admin@test-domain.com" } 2021-04-25 22:58:07 | from localhost for action retrieve-user-subscriptions got result code 200 and payload { "nodes": [ "test", "node-92d08241-8e1a-4db7-b2b6-8c3d940baf0a", "node-2fec7b9e-9684-4c24-aebf-59a1a076aadd" ] } |
retrieveUserSubscriptionsWithRegex | 0.052s |
2021-04-25 22:58:07 |
2021-04-25 22:58:07 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-04-25 22:58:07 | ------------------------------------ 2021-04-25 22:58:07 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload: { "jid": "admin@test-domain.com", "node-pattern": "(?!node-92d08241-8e1a-4db7-b2b6-8c3d940baf0a)" } 2021-04-25 22:58:07 | from localhost for action retrieve-user-subscriptions got result code 200 and payload { "nodes": [ ] } |
subscribeNodes | 1.013s |
2021-04-25 22:58:06 |
2021-04-25 22:58:06 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-04-25 22:58:06 | ------------------------------------ 2021-04-25 22:58:06 | on localhost executing action subscribe-node with content type application/json and payload: { "node": "node-92d08241-8e1a-4db7-b2b6-8c3d940baf0a", "jids": [ "admin@test-domain.com" ] } 2021-04-25 22:58:06 | from localhost for action subscribe-node got result code 200 and payload { "Note": "Operation successful" } |
unsubscribeNodes | 1.071s |
2021-04-25 22:58:07 |
2021-04-25 22:58:07 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-04-25 22:58:07 | ------------------------------------ 2021-04-25 22:58:07 | on localhost executing action unsubscribe-node with content type application/json and payload: { "node": "node-92d08241-8e1a-4db7-b2b6-8c3d940baf0a", "jids": [ "admin@test-domain.com" ] } 2021-04-25 22:58:07 | from localhost for action unsubscribe-node got result code 200 and payload { "Note": "Operation successful" } |