Test duration : 8.555s
Passed Tests | ||
---|---|---|
tigase.tests.pubsub.TestRestApiUsingJSON | ||
configureNodes | 1.104s |
2022-12-26 04:11:21 |
2022-12-26 04:11:21 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-12-26 04:11:21 | ------------------------------------ 2022-12-26 04:11:21 | [Mutex] waiting for: [configured:node:node-11cc7e5d-c0b3-4f3a-9b54-85bb536b1a6a:node-592ced81-566f-4148-89cf-e8bd743ffa55] 2022-12-26 04:11:21 | [Mutex] received everything. 2022-12-26 04:11:21 | [Mutex] isItemNotified: configured:node:node-11cc7e5d-c0b3-4f3a-9b54-85bb536b1a6a:node-592ced81-566f-4148-89cf-e8bd743ffa55 :: true 2022-12-26 04:11:22 | [Mutex] waiting for: [received:nodes:baecc97a-06bd-4d3e-a6c4-11be0f84c881:localhost] 2022-12-26 04:11:22 | [Mutex] received everything. 2022-12-26 04:11:22 | [Mutex] isItemNotified: received:node:baecc97a-06bd-4d3e-a6c4-11be0f84c881:localhost:node-11cc7e5d-c0b3-4f3a-9b54-85bb536b1a6a:Node 11cc7e5d-c0b3-4f3a-9b54-85bb536b1a6a :: true 2022-12-26 04:11:22 | [Mutex] waiting for: [received:nodes:8752c92d-4dbf-46d8-ab65-43e455c2eb5a:localhost] 2022-12-26 04:11:22 | [Mutex] waiting for: [received:nodes:8752c92d-4dbf-46d8-ab65-43e455c2eb5a:localhost] 2022-12-26 04:11:22 | [Mutex] waiting for: [received:nodes:8752c92d-4dbf-46d8-ab65-43e455c2eb5a:localhost] 2022-12-26 04:11:22 | [Mutex] waiting for: [received:nodes:8752c92d-4dbf-46d8-ab65-43e455c2eb5a:localhost] 2022-12-26 04:11:22 | [Mutex] received everything. 2022-12-26 04:11:22 | [Mutex] isItemNotified: received:node:8752c92d-4dbf-46d8-ab65-43e455c2eb5a:localhost:node-11cc7e5d-c0b3-4f3a-9b54-85bb536b1a6a:Node 11cc7e5d-c0b3-4f3a-9b54-85bb536b1a6a :: false |
createNodes | 1.537s |
2022-12-26 04:11:18 |
2022-12-26 04:11:18 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-12-26 04:11:18 | ------------------------------------ 2022-12-26 04:11:19 | on localhost executing action create-node with content type application/json and payload: { "owner": "admin@test-domain.com", "pubsub#node_type": "leaf", "node": "node-11cc7e5d-c0b3-4f3a-9b54-85bb536b1a6a", "pubsub#title": "Node 11cc7e5d-c0b3-4f3a-9b54-85bb536b1a6a" } 2022-12-26 04:11:19 | from localhost for action create-node got result code 200 and payload { "Note": "Operation successful" } 2022-12-26 04:11:20 | [Mutex] waiting for: [received:nodes:710e452b-2eb9-42e4-ac96-721c48bda274:localhost] 2022-12-26 04:11:20 | [Mutex] waiting for: [received:nodes:710e452b-2eb9-42e4-ac96-721c48bda274:localhost] 2022-12-26 04:11:20 | [Mutex] waiting for: [received:nodes:710e452b-2eb9-42e4-ac96-721c48bda274:localhost] 2022-12-26 04:11:20 | [Mutex] received everything. 2022-12-26 04:11:20 | [Mutex] isItemNotified: received:node:710e452b-2eb9-42e4-ac96-721c48bda274:localhost:node-11cc7e5d-c0b3-4f3a-9b54-85bb536b1a6a:Node 11cc7e5d-c0b3-4f3a-9b54-85bb536b1a6a :: true |
createSubnodes | 1.021s |
2022-12-26 04:11:20 |
2022-12-26 04:11:20 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-12-26 04:11:20 | ------------------------------------ 2022-12-26 04:11:20 | on localhost executing action create-node with content type application/json and payload: { "owner": "admin@test-domain.com", "pubsub#node_type": "collection", "node": "node-592ced81-566f-4148-89cf-e8bd743ffa55", "pubsub#title": "Node 592ced81-566f-4148-89cf-e8bd743ffa55" } 2022-12-26 04:11:20 | from localhost for action create-node got result code 200 and payload { "Note": "Operation successful" } 2022-12-26 04:11:21 | [Mutex] waiting for: [received:nodes:6d347e17-634d-40e3-a119-ff5e4460f57b:localhost] 2022-12-26 04:11:21 | [Mutex] received everything. 2022-12-26 04:11:21 | [Mutex] isItemNotified: received:node:6d347e17-634d-40e3-a119-ff5e4460f57b:localhost:node-592ced81-566f-4148-89cf-e8bd743ffa55:Node 592ced81-566f-4148-89cf-e8bd743ffa55 :: true |
deleteNodes | 1.019s |
2022-12-26 04:11:25 |
2022-12-26 04:11:25 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-12-26 04:11:25 | ------------------------------------ 2022-12-26 04:11:25 | on localhost executing action delete-node with content type application/json and payload: { "node": "node-592ced81-566f-4148-89cf-e8bd743ffa55" } 2022-12-26 04:11:25 | from localhost for action delete-node got result code 200 and payload { "Note": "Operation successful" } 2022-12-26 04:11:26 | [Mutex] waiting for: [received:nodes:bf889a0c-0c4b-4e6f-bdb3-cd5d2e3cbcb1:localhost] 2022-12-26 04:11:26 | [Mutex] waiting for: [received:nodes:bf889a0c-0c4b-4e6f-bdb3-cd5d2e3cbcb1:localhost] 2022-12-26 04:11:26 | [Mutex] waiting for: [received:nodes:bf889a0c-0c4b-4e6f-bdb3-cd5d2e3cbcb1:localhost] 2022-12-26 04:11:26 | [Mutex] received everything. 2022-12-26 04:11:26 | [Mutex] isItemNotified: received:node:bf889a0c-0c4b-4e6f-bdb3-cd5d2e3cbcb1:localhost:node-592ced81-566f-4148-89cf-e8bd743ffa55:Node 592ced81-566f-4148-89cf-e8bd743ffa55 :: false |
deleteSubnodes | 1.025s |
2022-12-26 04:11:24 |
2022-12-26 04:11:24 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-12-26 04:11:24 | ------------------------------------ 2022-12-26 04:11:24 | on localhost executing action delete-node with content type application/json and payload: { "node": "node-11cc7e5d-c0b3-4f3a-9b54-85bb536b1a6a" } 2022-12-26 04:11:24 | from localhost for action delete-node got result code 200 and payload { "Note": "Operation successful" } 2022-12-26 04:11:25 | [Mutex] waiting for: [received:nodes:1b46eb52-b78f-45dc-b3f3-28d0ceadf15d:localhost] 2022-12-26 04:11:25 | [Mutex] waiting for: [received:nodes:1b46eb52-b78f-45dc-b3f3-28d0ceadf15d:localhost] 2022-12-26 04:11:25 | [Mutex] waiting for: [received:nodes:1b46eb52-b78f-45dc-b3f3-28d0ceadf15d:localhost] 2022-12-26 04:11:25 | [Mutex] waiting for: [received:nodes:1b46eb52-b78f-45dc-b3f3-28d0ceadf15d:localhost] 2022-12-26 04:11:25 | [Mutex] received everything. 2022-12-26 04:11:25 | [Mutex] isItemNotified: received:node:1b46eb52-b78f-45dc-b3f3-28d0ceadf15d:localhost:node-11cc7e5d-c0b3-4f3a-9b54-85bb536b1a6a:Node 11cc7e5d-c0b3-4f3a-9b54-85bb536b1a6a :: false 2022-12-26 04:11:25 | [Mutex] waiting for: [received:nodes:fc53f605-73c7-47b7-849e-f666396e55a1:localhost] 2022-12-26 04:11:25 | [Mutex] received everything. 2022-12-26 04:11:25 | [Mutex] isItemNotified: received:node:fc53f605-73c7-47b7-849e-f666396e55a1:localhost:node-11cc7e5d-c0b3-4f3a-9b54-85bb536b1a6a:Node 11cc7e5d-c0b3-4f3a-9b54-85bb536b1a6a :: false |
publishItemsToNodes | 0.045s |
2022-12-26 04:11:23 |
2022-12-26 04:11:23 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-12-26 04:11:23 | ------------------------------------ 2022-12-26 04:11:23 | on localhost executing action publish-item with content type application/json and payload: { "node": "node-11cc7e5d-c0b3-4f3a-9b54-85bb536b1a6a", "entry": "<test>item-ba7ba2ef-361e-45b5-a629-c4756af81bcb</test>", "item-id": "item-ba7ba2ef-361e-45b5-a629-c4756af81bcb" } 2022-12-26 04:11:23 | from localhost for action publish-item got result code 200 and payload { "Note": "Operation successful", "item-id": "item-ba7ba2ef-361e-45b5-a629-c4756af81bcb" } 2022-12-26 04:11:23 | [Mutex] waiting for: [published:item:notifieditem-ba7ba2ef-361e-45b5-a629-c4756af81bcb:admin@test-domain.com] 2022-12-26 04:11:23 | [Mutex] received everything. 2022-12-26 04:11:23 | [Mutex] isItemNotified: published:item:notifieditem-ba7ba2ef-361e-45b5-a629-c4756af81bcb:admin@test-domain.com :: true |
retractItemsFromNodes | 0.094s |
2022-12-26 04:11:23 |
2022-12-26 04:11:23 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-12-26 04:11:23 | ------------------------------------ 2022-12-26 04:11:23 | on localhost executing action delete-item with content type application/json and payload: { "node": "node-11cc7e5d-c0b3-4f3a-9b54-85bb536b1a6a", "item-id": "item-ba7ba2ef-361e-45b5-a629-c4756af81bcb" } 2022-12-26 04:11:23 | from localhost for action delete-item got result code 200 and payload { "Note": "Operation successful", "item-id": "item-ba7ba2ef-361e-45b5-a629-c4756af81bcb" } 2022-12-26 04:11:23 | [Mutex] received everything. 2022-12-26 04:11:23 | [Mutex] isItemNotified: retracted:item:notifieditem-ba7ba2ef-361e-45b5-a629-c4756af81bcb:admin@test-domain.com :: true |
retrieveItemsFromNodes | 0.060s |
2022-12-26 04:11:23 |
2022-12-26 04:11:23 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-12-26 04:11:23 | ------------------------------------ 2022-12-26 04:11:23 | on localhost executing action retrieve-item with content type application/json and payload: { "node": "node-11cc7e5d-c0b3-4f3a-9b54-85bb536b1a6a", "item-id": "item-ba7ba2ef-361e-45b5-a629-c4756af81bcb" } 2022-12-26 04:11:23 | from localhost for action retrieve-item got result code 200 and payload { "title": "Retrive PubSub node item", "node": "node-11cc7e5d-c0b3-4f3a-9b54-85bb536b1a6a", "item-id": "item-ba7ba2ef-361e-45b5-a629-c4756af81bcb", "item": [ "<item id=\"item-ba7ba2ef-361e-45b5-a629-c4756af81bcb\"><test>item-ba7ba2ef-361e-45b5-a629-c4756af81bcb</test></item>" ] } 2022-12-26 04:11:23 | [Mutex] notify: [retrieved:item:item-ba7ba2ef-361e-45b5-a629-c4756af81bcb:payload-matches:true:localhost] 2022-12-26 04:11:23 | [Mutex] received everything. 2022-12-26 04:11:23 | [Mutex] isItemNotified: retrieved:item:item-ba7ba2ef-361e-45b5-a629-c4756af81bcb:payload-matches:true:localhost :: true |
retrieveUserSubscriptions | 0.047s |
2022-12-26 04:11:23 |
2022-12-26 04:11:23 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-12-26 04:11:23 | ------------------------------------ 2022-12-26 04:11:23 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload: { "jid": "admin@test-domain.com" } 2022-12-26 04:11:23 | from localhost for action retrieve-user-subscriptions got result code 200 and payload { "nodes": [ "node-11cc7e5d-c0b3-4f3a-9b54-85bb536b1a6a", "test", "node-592ced81-566f-4148-89cf-e8bd743ffa55" ] } |
retrieveUserSubscriptionsWithRegex | 0.047s |
2022-12-26 04:11:23 |
2022-12-26 04:11:23 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-12-26 04:11:23 | ------------------------------------ 2022-12-26 04:11:23 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload: { "jid": "admin@test-domain.com", "node-pattern": "(?!node-11cc7e5d-c0b3-4f3a-9b54-85bb536b1a6a)" } 2022-12-26 04:11:23 | from localhost for action retrieve-user-subscriptions got result code 200 and payload { "nodes": [ ] } |
subscribeNodes | 1.009s |
2022-12-26 04:11:22 |
2022-12-26 04:11:22 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-12-26 04:11:22 | ------------------------------------ 2022-12-26 04:11:22 | on localhost executing action subscribe-node with content type application/json and payload: { "node": "node-11cc7e5d-c0b3-4f3a-9b54-85bb536b1a6a", "jids": [ "admin@test-domain.com" ] } 2022-12-26 04:11:22 | from localhost for action subscribe-node got result code 200 and payload { "Note": "Operation successful" } |
unsubscribeNodes | 1.059s |
2022-12-26 04:11:23 |
2022-12-26 04:11:23 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-12-26 04:11:23 | ------------------------------------ 2022-12-26 04:11:23 | on localhost executing action unsubscribe-node with content type application/json and payload: { "node": "node-11cc7e5d-c0b3-4f3a-9b54-85bb536b1a6a", "jids": [ "admin@test-domain.com" ] } 2022-12-26 04:11:23 | from localhost for action unsubscribe-node got result code 200 and payload { "Note": "Operation successful" } |