Test duration : 8.637s
Passed Tests | ||
---|---|---|
tigase.tests.pubsub.TestRestApiUsingJSON | ||
configureNodes | 1.103s |
2022-08-01 23:02:25 |
2022-08-01 23:02:25 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-08-01 23:02:25 | ------------------------------------ 2022-08-01 23:02:25 | [Mutex] waiting for: [configured:node:node-6448af61-4a84-45b5-9eb0-8c8af0fe8787:node-a1b600e0-4785-4c87-ae17-e7e4638a093f] 2022-08-01 23:02:25 | [Mutex] received everything. 2022-08-01 23:02:25 | [Mutex] isItemNotified: configured:node:node-6448af61-4a84-45b5-9eb0-8c8af0fe8787:node-a1b600e0-4785-4c87-ae17-e7e4638a093f :: true 2022-08-01 23:02:26 | [Mutex] waiting for: [received:nodes:9208e44b-c4c3-4d86-94b0-141821ad1f9b:localhost] 2022-08-01 23:02:26 | [Mutex] received everything. 2022-08-01 23:02:26 | [Mutex] isItemNotified: received:node:9208e44b-c4c3-4d86-94b0-141821ad1f9b:localhost:node-6448af61-4a84-45b5-9eb0-8c8af0fe8787:Node 6448af61-4a84-45b5-9eb0-8c8af0fe8787 :: true 2022-08-01 23:02:26 | [Mutex] waiting for: [received:nodes:1c612fd6-6f7c-4e28-927b-b595b75364e9:localhost] 2022-08-01 23:02:26 | [Mutex] received everything. 2022-08-01 23:02:26 | [Mutex] isItemNotified: received:node:1c612fd6-6f7c-4e28-927b-b595b75364e9:localhost:node-6448af61-4a84-45b5-9eb0-8c8af0fe8787:Node 6448af61-4a84-45b5-9eb0-8c8af0fe8787 :: false |
createNodes | 1.537s |
2022-08-01 23:02:22 |
2022-08-01 23:02:22 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-08-01 23:02:22 | ------------------------------------ 2022-08-01 23:02:23 | on localhost executing action create-node with content type application/json and payload: { "owner": "admin@test-domain.com", "pubsub#node_type": "leaf", "node": "node-6448af61-4a84-45b5-9eb0-8c8af0fe8787", "pubsub#title": "Node 6448af61-4a84-45b5-9eb0-8c8af0fe8787" } 2022-08-01 23:02:23 | from localhost for action create-node got result code 200 and payload { "Note": "Operation successful" } 2022-08-01 23:02:24 | [Mutex] waiting for: [received:nodes:785ce454-88e8-4acd-986d-afdd846574ae:localhost] 2022-08-01 23:02:24 | [Mutex] received everything. 2022-08-01 23:02:24 | [Mutex] isItemNotified: received:node:785ce454-88e8-4acd-986d-afdd846574ae:localhost:node-6448af61-4a84-45b5-9eb0-8c8af0fe8787:Node 6448af61-4a84-45b5-9eb0-8c8af0fe8787 :: true |
createSubnodes | 1.022s |
2022-08-01 23:02:24 |
2022-08-01 23:02:24 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-08-01 23:02:24 | ------------------------------------ 2022-08-01 23:02:24 | on localhost executing action create-node with content type application/json and payload: { "owner": "admin@test-domain.com", "pubsub#node_type": "collection", "node": "node-a1b600e0-4785-4c87-ae17-e7e4638a093f", "pubsub#title": "Node a1b600e0-4785-4c87-ae17-e7e4638a093f" } 2022-08-01 23:02:24 | from localhost for action create-node got result code 200 and payload { "Note": "Operation successful" } 2022-08-01 23:02:25 | [Mutex] waiting for: [received:nodes:3eaece65-19a2-4fd5-acb2-0e1bed2f5964:localhost] 2022-08-01 23:02:25 | [Mutex] received everything. 2022-08-01 23:02:25 | [Mutex] isItemNotified: received:node:3eaece65-19a2-4fd5-acb2-0e1bed2f5964:localhost:node-a1b600e0-4785-4c87-ae17-e7e4638a093f:Node a1b600e0-4785-4c87-ae17-e7e4638a093f :: true |
deleteNodes | 1.032s |
2022-08-01 23:02:30 |
2022-08-01 23:02:30 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-08-01 23:02:30 | ------------------------------------ 2022-08-01 23:02:30 | on localhost executing action delete-node with content type application/json and payload: { "node": "node-a1b600e0-4785-4c87-ae17-e7e4638a093f" } 2022-08-01 23:02:30 | from localhost for action delete-node got result code 200 and payload { "Note": "Operation successful" } 2022-08-01 23:02:31 | [Mutex] waiting for: [received:nodes:591cabff-a6e8-404f-8ac5-55ef6bf1109e:localhost] 2022-08-01 23:02:31 | [Mutex] received everything. 2022-08-01 23:02:31 | [Mutex] isItemNotified: received:node:591cabff-a6e8-404f-8ac5-55ef6bf1109e:localhost:node-a1b600e0-4785-4c87-ae17-e7e4638a093f:Node a1b600e0-4785-4c87-ae17-e7e4638a093f :: false |
deleteSubnodes | 1.028s |
2022-08-01 23:02:29 |
2022-08-01 23:02:29 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-08-01 23:02:29 | ------------------------------------ 2022-08-01 23:02:29 | on localhost executing action delete-node with content type application/json and payload: { "node": "node-6448af61-4a84-45b5-9eb0-8c8af0fe8787" } 2022-08-01 23:02:29 | from localhost for action delete-node got result code 200 and payload { "Note": "Operation successful" } 2022-08-01 23:02:30 | [Mutex] waiting for: [received:nodes:2717483e-ee0e-43e9-86da-94b58e4ed573:localhost] 2022-08-01 23:02:30 | [Mutex] received everything. 2022-08-01 23:02:30 | [Mutex] isItemNotified: received:node:2717483e-ee0e-43e9-86da-94b58e4ed573:localhost:node-6448af61-4a84-45b5-9eb0-8c8af0fe8787:Node 6448af61-4a84-45b5-9eb0-8c8af0fe8787 :: false 2022-08-01 23:02:30 | [Mutex] waiting for: [received:nodes:0adcc449-eee4-4a43-8a67-5f5bb8c5e2dc:localhost] 2022-08-01 23:02:30 | [Mutex] received everything. 2022-08-01 23:02:30 | [Mutex] isItemNotified: received:node:0adcc449-eee4-4a43-8a67-5f5bb8c5e2dc:localhost:node-6448af61-4a84-45b5-9eb0-8c8af0fe8787:Node 6448af61-4a84-45b5-9eb0-8c8af0fe8787 :: false |
publishItemsToNodes | 0.058s |
2022-08-01 23:02:27 |
2022-08-01 23:02:27 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-08-01 23:02:27 | ------------------------------------ 2022-08-01 23:02:27 | on localhost executing action publish-item with content type application/json and payload: { "node": "node-6448af61-4a84-45b5-9eb0-8c8af0fe8787", "entry": "<test>item-1a58d33b-3b73-4a4e-b8d6-a67fe631e0be</test>", "item-id": "item-1a58d33b-3b73-4a4e-b8d6-a67fe631e0be" } 2022-08-01 23:02:27 | from localhost for action publish-item got result code 200 and payload { "Note": "Operation successful", "item-id": "item-1a58d33b-3b73-4a4e-b8d6-a67fe631e0be" } 2022-08-01 23:02:27 | [Mutex] waiting for: [published:item:notifieditem-1a58d33b-3b73-4a4e-b8d6-a67fe631e0be:admin@test-domain.com] 2022-08-01 23:02:27 | [Mutex] received everything. 2022-08-01 23:02:27 | [Mutex] isItemNotified: published:item:notifieditem-1a58d33b-3b73-4a4e-b8d6-a67fe631e0be:admin@test-domain.com :: true |
retractItemsFromNodes | 0.067s |
2022-08-01 23:02:27 |
2022-08-01 23:02:27 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-08-01 23:02:27 | ------------------------------------ 2022-08-01 23:02:27 | on localhost executing action delete-item with content type application/json and payload: { "node": "node-6448af61-4a84-45b5-9eb0-8c8af0fe8787", "item-id": "item-1a58d33b-3b73-4a4e-b8d6-a67fe631e0be" } 2022-08-01 23:02:27 | from localhost for action delete-item got result code 200 and payload { "Note": "Operation successful", "item-id": "item-1a58d33b-3b73-4a4e-b8d6-a67fe631e0be" } 2022-08-01 23:02:27 | [Mutex] received everything. 2022-08-01 23:02:27 | [Mutex] isItemNotified: retracted:item:notifieditem-1a58d33b-3b73-4a4e-b8d6-a67fe631e0be:admin@test-domain.com :: true |
retrieveItemsFromNodes | 0.079s |
2022-08-01 23:02:27 |
2022-08-01 23:02:27 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-08-01 23:02:27 | ------------------------------------ 2022-08-01 23:02:27 | on localhost executing action retrieve-item with content type application/json and payload: { "node": "node-6448af61-4a84-45b5-9eb0-8c8af0fe8787", "item-id": "item-1a58d33b-3b73-4a4e-b8d6-a67fe631e0be" } 2022-08-01 23:02:27 | from localhost for action retrieve-item got result code 200 and payload { "title": "Retrive PubSub node item", "node": "node-6448af61-4a84-45b5-9eb0-8c8af0fe8787", "item-id": "item-1a58d33b-3b73-4a4e-b8d6-a67fe631e0be", "item": [ "<item id=\"item-1a58d33b-3b73-4a4e-b8d6-a67fe631e0be\"><test>item-1a58d33b-3b73-4a4e-b8d6-a67fe631e0be</test></item>" ] } 2022-08-01 23:02:27 | [Mutex] notify: [retrieved:item:item-1a58d33b-3b73-4a4e-b8d6-a67fe631e0be:payload-matches:true:localhost] 2022-08-01 23:02:27 | [Mutex] received everything. 2022-08-01 23:02:27 | [Mutex] isItemNotified: retrieved:item:item-1a58d33b-3b73-4a4e-b8d6-a67fe631e0be:payload-matches:true:localhost :: true |
retrieveUserSubscriptions | 0.047s |
2022-08-01 23:02:27 |
2022-08-01 23:02:27 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-08-01 23:02:27 | ------------------------------------ 2022-08-01 23:02:27 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload: { "jid": "admin@test-domain.com" } 2022-08-01 23:02:27 | from localhost for action retrieve-user-subscriptions got result code 200 and payload { "nodes": [ "node-a1b600e0-4785-4c87-ae17-e7e4638a093f", "test", "node-6448af61-4a84-45b5-9eb0-8c8af0fe8787" ] } |
retrieveUserSubscriptionsWithRegex | 0.047s |
2022-08-01 23:02:27 |
2022-08-01 23:02:27 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-08-01 23:02:27 | ------------------------------------ 2022-08-01 23:02:27 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload: { "jid": "admin@test-domain.com", "node-pattern": "(?!node-6448af61-4a84-45b5-9eb0-8c8af0fe8787)" } 2022-08-01 23:02:27 | from localhost for action retrieve-user-subscriptions got result code 200 and payload { "nodes": [ ] } |
subscribeNodes | 1.057s |
2022-08-01 23:02:26 |
2022-08-01 23:02:26 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-08-01 23:02:26 | ------------------------------------ 2022-08-01 23:02:26 | on localhost executing action subscribe-node with content type application/json and payload: { "node": "node-6448af61-4a84-45b5-9eb0-8c8af0fe8787", "jids": [ "admin@test-domain.com" ] } 2022-08-01 23:02:26 | from localhost for action subscribe-node got result code 200 and payload { "Note": "Operation successful" } |
unsubscribeNodes | 1.072s |
2022-08-01 23:02:27 |
2022-08-01 23:02:27 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-08-01 23:02:27 | ------------------------------------ 2022-08-01 23:02:27 | on localhost executing action unsubscribe-node with content type application/json and payload: { "node": "node-6448af61-4a84-45b5-9eb0-8c8af0fe8787", "jids": [ "admin@test-domain.com" ] } 2022-08-01 23:02:28 | from localhost for action unsubscribe-node got result code 200 and payload { "Note": "Operation successful" } |