Test duration : 9.313s
Passed Tests | ||
---|---|---|
tigase.tests.pubsub.TestRestApiUsingJSON | ||
configureNodes | 1.155s |
2020-10-18 23:00:01 |
2020-10-18 23:00:01 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-10-18 23:00:01 | ------------------------------------ 2020-10-18 23:00:01 | [Mutex] waiting for: [configured:node:node-13502857-3072-477a-bd0a-5308d0f6f9b2:node-0052b0c6-bfc3-44e0-9a7f-ffaebb6d73b3] 2020-10-18 23:00:01 | [Mutex] received everything. 2020-10-18 23:00:01 | [Mutex] isItemNotified: configured:node:node-13502857-3072-477a-bd0a-5308d0f6f9b2:node-0052b0c6-bfc3-44e0-9a7f-ffaebb6d73b3 :: true 2020-10-18 23:00:02 | [Mutex] waiting for: [received:nodes:20eab534-2e09-40ad-90be-624d6ff26f1e:localhost] 2020-10-18 23:00:02 | [Mutex] received everything. 2020-10-18 23:00:02 | [Mutex] isItemNotified: received:node:20eab534-2e09-40ad-90be-624d6ff26f1e:localhost:node-13502857-3072-477a-bd0a-5308d0f6f9b2:Node 13502857-3072-477a-bd0a-5308d0f6f9b2 :: true 2020-10-18 23:00:02 | [Mutex] waiting for: [received:nodes:7996cb1d-b25c-45f8-9446-29b9c40753c6:localhost] 2020-10-18 23:00:02 | [Mutex] received everything. 2020-10-18 23:00:02 | [Mutex] isItemNotified: received:node:7996cb1d-b25c-45f8-9446-29b9c40753c6:localhost:node-13502857-3072-477a-bd0a-5308d0f6f9b2:Node 13502857-3072-477a-bd0a-5308d0f6f9b2 :: false |
createNodes | 1.735s |
2020-10-18 22:59:58 |
2020-10-18 22:59:58 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-10-18 22:59:58 | ------------------------------------ 2020-10-18 22:59:59 | on localhost executing action create-node with content type application/json and payload: { "owner": "admin@test-domain.com", "pubsub#node_type": "leaf", "node": "node-13502857-3072-477a-bd0a-5308d0f6f9b2", "pubsub#title": "Node 13502857-3072-477a-bd0a-5308d0f6f9b2" } 2020-10-18 22:59:59 | from localhost for action create-node got result code 200 and payload { "Note": "Operation successful" } 2020-10-18 23:00:00 | [Mutex] waiting for: [received:nodes:923518d2-5fe3-4d8b-a85e-3c4fa9c710d5:localhost] 2020-10-18 23:00:00 | [Mutex] received everything. 2020-10-18 23:00:00 | [Mutex] isItemNotified: received:node:923518d2-5fe3-4d8b-a85e-3c4fa9c710d5:localhost:node-13502857-3072-477a-bd0a-5308d0f6f9b2:Node 13502857-3072-477a-bd0a-5308d0f6f9b2 :: true |
createSubnodes | 1.036s |
2020-10-18 23:00:00 |
2020-10-18 23:00:00 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-10-18 23:00:00 | ------------------------------------ 2020-10-18 23:00:00 | on localhost executing action create-node with content type application/json and payload: { "owner": "admin@test-domain.com", "pubsub#node_type": "collection", "node": "node-0052b0c6-bfc3-44e0-9a7f-ffaebb6d73b3", "pubsub#title": "Node 0052b0c6-bfc3-44e0-9a7f-ffaebb6d73b3" } 2020-10-18 23:00:00 | from localhost for action create-node got result code 200 and payload { "Note": "Operation successful" } 2020-10-18 23:00:01 | [Mutex] waiting for: [received:nodes:88ceabd1-67d8-4dd1-b163-9988081e86f7:localhost] 2020-10-18 23:00:01 | [Mutex] received everything. 2020-10-18 23:00:01 | [Mutex] isItemNotified: received:node:88ceabd1-67d8-4dd1-b163-9988081e86f7:localhost:node-0052b0c6-bfc3-44e0-9a7f-ffaebb6d73b3:Node 0052b0c6-bfc3-44e0-9a7f-ffaebb6d73b3 :: true |
deleteNodes | 1.024s |
2020-10-18 23:00:06 |
2020-10-18 23:00:06 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-10-18 23:00:06 | ------------------------------------ 2020-10-18 23:00:06 | on localhost executing action delete-node with content type application/json and payload: { "node": "node-0052b0c6-bfc3-44e0-9a7f-ffaebb6d73b3" } 2020-10-18 23:00:06 | from localhost for action delete-node got result code 200 and payload { "Note": "Operation successful" } 2020-10-18 23:00:07 | [Mutex] waiting for: [received:nodes:c2f8b290-7067-4690-ae42-ed699f832a3b:localhost] 2020-10-18 23:00:07 | [Mutex] waiting for: [received:nodes:c2f8b290-7067-4690-ae42-ed699f832a3b:localhost] 2020-10-18 23:00:07 | [Mutex] received everything. 2020-10-18 23:00:07 | [Mutex] isItemNotified: received:node:c2f8b290-7067-4690-ae42-ed699f832a3b:localhost:node-0052b0c6-bfc3-44e0-9a7f-ffaebb6d73b3:Node 0052b0c6-bfc3-44e0-9a7f-ffaebb6d73b3 :: false |
deleteSubnodes | 1.033s |
2020-10-18 23:00:05 |
2020-10-18 23:00:05 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-10-18 23:00:05 | ------------------------------------ 2020-10-18 23:00:05 | on localhost executing action delete-node with content type application/json and payload: { "node": "node-13502857-3072-477a-bd0a-5308d0f6f9b2" } 2020-10-18 23:00:05 | from localhost for action delete-node got result code 200 and payload { "Note": "Operation successful" } 2020-10-18 23:00:06 | [Mutex] waiting for: [received:nodes:99deb65f-e1f5-4251-9d64-cd2d321d9b5b:localhost] 2020-10-18 23:00:06 | [Mutex] received everything. 2020-10-18 23:00:06 | [Mutex] isItemNotified: received:node:99deb65f-e1f5-4251-9d64-cd2d321d9b5b:localhost:node-13502857-3072-477a-bd0a-5308d0f6f9b2:Node 13502857-3072-477a-bd0a-5308d0f6f9b2 :: false 2020-10-18 23:00:06 | [Mutex] waiting for: [received:nodes:fe3cf660-e89d-4d69-963e-7b56889d6e75:localhost] 2020-10-18 23:00:06 | [Mutex] received everything. 2020-10-18 23:00:06 | [Mutex] isItemNotified: received:node:fe3cf660-e89d-4d69-963e-7b56889d6e75:localhost:node-13502857-3072-477a-bd0a-5308d0f6f9b2:Node 13502857-3072-477a-bd0a-5308d0f6f9b2 :: false |
publishItemsToNodes | 0.052s |
2020-10-18 23:00:03 |
2020-10-18 23:00:03 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-10-18 23:00:03 | ------------------------------------ 2020-10-18 23:00:03 | on localhost executing action publish-item with content type application/json and payload: { "node": "node-13502857-3072-477a-bd0a-5308d0f6f9b2", "entry": "<test>item-dfe4033a-c30f-42db-8c06-4383197afcf8</test>", "item-id": "item-dfe4033a-c30f-42db-8c06-4383197afcf8" } 2020-10-18 23:00:03 | from localhost for action publish-item got result code 200 and payload { "Note": "Operation successful", "item-id": "item-dfe4033a-c30f-42db-8c06-4383197afcf8" } 2020-10-18 23:00:03 | [Mutex] waiting for: [published:item:notifieditem-dfe4033a-c30f-42db-8c06-4383197afcf8:admin@test-domain.com] 2020-10-18 23:00:03 | [Mutex] received everything. 2020-10-18 23:00:03 | [Mutex] isItemNotified: published:item:notifieditem-dfe4033a-c30f-42db-8c06-4383197afcf8:admin@test-domain.com :: true |
retractItemsFromNodes | 0.147s |
2020-10-18 23:00:03 |
2020-10-18 23:00:03 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-10-18 23:00:03 | ------------------------------------ 2020-10-18 23:00:03 | on localhost executing action delete-item with content type application/json and payload: { "node": "node-13502857-3072-477a-bd0a-5308d0f6f9b2", "item-id": "item-dfe4033a-c30f-42db-8c06-4383197afcf8" } 2020-10-18 23:00:04 | from localhost for action delete-item got result code 200 and payload { "Note": "Operation successful", "item-id": "item-dfe4033a-c30f-42db-8c06-4383197afcf8" } 2020-10-18 23:00:04 | [Mutex] received everything. 2020-10-18 23:00:04 | [Mutex] isItemNotified: retracted:item:notifieditem-dfe4033a-c30f-42db-8c06-4383197afcf8:admin@test-domain.com :: true |
retrieveItemsFromNodes | 0.036s |
2020-10-18 23:00:03 |
2020-10-18 23:00:03 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-10-18 23:00:03 | ------------------------------------ 2020-10-18 23:00:03 | on localhost executing action retrieve-item with content type application/json and payload: { "node": "node-13502857-3072-477a-bd0a-5308d0f6f9b2", "item-id": "item-dfe4033a-c30f-42db-8c06-4383197afcf8" } 2020-10-18 23:00:03 | from localhost for action retrieve-item got result code 200 and payload { "title": "Retrive PubSub node item", "node": "node-13502857-3072-477a-bd0a-5308d0f6f9b2", "item-id": "item-dfe4033a-c30f-42db-8c06-4383197afcf8", "item": [ "<item id=\"item-dfe4033a-c30f-42db-8c06-4383197afcf8\"><test>item-dfe4033a-c30f-42db-8c06-4383197afcf8</test></item>" ] } 2020-10-18 23:00:03 | [Mutex] notify: [retrieved:item:item-dfe4033a-c30f-42db-8c06-4383197afcf8:payload-matches:true:localhost] 2020-10-18 23:00:03 | [Mutex] received everything. 2020-10-18 23:00:03 | [Mutex] isItemNotified: retrieved:item:item-dfe4033a-c30f-42db-8c06-4383197afcf8:payload-matches:true:localhost :: true |
retrieveUserSubscriptions | 0.058s |
2020-10-18 23:00:03 |
2020-10-18 23:00:03 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-10-18 23:00:03 | ------------------------------------ 2020-10-18 23:00:03 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload: { "jid": "admin@test-domain.com" } 2020-10-18 23:00:03 | from localhost for action retrieve-user-subscriptions got result code 200 and payload { "nodes": [ "test", "node-13502857-3072-477a-bd0a-5308d0f6f9b2", "node-0052b0c6-bfc3-44e0-9a7f-ffaebb6d73b3" ] } |
retrieveUserSubscriptionsWithRegex | 0.051s |
2020-10-18 23:00:03 |
2020-10-18 23:00:03 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-10-18 23:00:03 | ------------------------------------ 2020-10-18 23:00:03 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload: { "jid": "admin@test-domain.com", "node-pattern": "(?!node-13502857-3072-477a-bd0a-5308d0f6f9b2)" } 2020-10-18 23:00:03 | from localhost for action retrieve-user-subscriptions got result code 200 and payload { "nodes": [ ] } |
subscribeNodes | 1.012s |
2020-10-18 23:00:02 |
2020-10-18 23:00:02 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-10-18 23:00:02 | ------------------------------------ 2020-10-18 23:00:02 | on localhost executing action subscribe-node with content type application/json and payload: { "node": "node-13502857-3072-477a-bd0a-5308d0f6f9b2", "jids": [ "admin@test-domain.com" ] } 2020-10-18 23:00:02 | from localhost for action subscribe-node got result code 200 and payload { "Note": "Operation successful" } |
unsubscribeNodes | 1.036s |
2020-10-18 23:00:04 |
2020-10-18 23:00:04 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-10-18 23:00:04 | ------------------------------------ 2020-10-18 23:00:04 | on localhost executing action unsubscribe-node with content type application/json and payload: { "node": "node-13502857-3072-477a-bd0a-5308d0f6f9b2", "jids": [ "admin@test-domain.com" ] } 2020-10-18 23:00:04 | from localhost for action unsubscribe-node got result code 200 and payload { "Note": "Operation successful" } |