Test duration : 8.484s
Passed Tests | ||
---|---|---|
tigase.tests.pubsub.TestRestApiUsingJSON | ||
configureNodes | 1.095s |
2022-12-22 21:30:43 |
2022-12-22 21:30:43 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-12-22 21:30:43 | ------------------------------------ 2022-12-22 21:30:43 | [Mutex] waiting for: [configured:node:node-32849d7b-98bd-4294-b453-ccd77f57a571:node-a9c570ac-03cb-40ca-8a42-927b51dec7c1] 2022-12-22 21:30:43 | [Mutex] received everything. 2022-12-22 21:30:43 | [Mutex] isItemNotified: configured:node:node-32849d7b-98bd-4294-b453-ccd77f57a571:node-a9c570ac-03cb-40ca-8a42-927b51dec7c1 :: true 2022-12-22 21:30:44 | [Mutex] waiting for: [received:nodes:6c5e1a01-ae57-45fa-8fed-ba29216dadcb:localhost] 2022-12-22 21:30:44 | [Mutex] received everything. 2022-12-22 21:30:44 | [Mutex] isItemNotified: received:node:6c5e1a01-ae57-45fa-8fed-ba29216dadcb:localhost:node-32849d7b-98bd-4294-b453-ccd77f57a571:Node 32849d7b-98bd-4294-b453-ccd77f57a571 :: true 2022-12-22 21:30:44 | [Mutex] waiting for: [received:nodes:6f7145e1-165b-429a-a819-63741b1f3147:localhost] 2022-12-22 21:30:44 | [Mutex] waiting for: [received:nodes:6f7145e1-165b-429a-a819-63741b1f3147:localhost] 2022-12-22 21:30:44 | [Mutex] waiting for: [received:nodes:6f7145e1-165b-429a-a819-63741b1f3147:localhost] 2022-12-22 21:30:44 | [Mutex] waiting for: [received:nodes:6f7145e1-165b-429a-a819-63741b1f3147:localhost] 2022-12-22 21:30:44 | [Mutex] received everything. 2022-12-22 21:30:44 | [Mutex] isItemNotified: received:node:6f7145e1-165b-429a-a819-63741b1f3147:localhost:node-32849d7b-98bd-4294-b453-ccd77f57a571:Node 32849d7b-98bd-4294-b453-ccd77f57a571 :: false |
createNodes | 1.538s |
2022-12-22 21:30:40 |
2022-12-22 21:30:40 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-12-22 21:30:40 | ------------------------------------ 2022-12-22 21:30:41 | on localhost executing action create-node with content type application/json and payload: { "owner": "admin@test-domain.com", "pubsub#node_type": "leaf", "node": "node-32849d7b-98bd-4294-b453-ccd77f57a571", "pubsub#title": "Node 32849d7b-98bd-4294-b453-ccd77f57a571" } 2022-12-22 21:30:41 | from localhost for action create-node got result code 200 and payload { "Note": "Operation successful" } 2022-12-22 21:30:42 | [Mutex] waiting for: [received:nodes:2ce0108e-1f43-49fb-bc8f-21ec5089de23:localhost] 2022-12-22 21:30:42 | [Mutex] waiting for: [received:nodes:2ce0108e-1f43-49fb-bc8f-21ec5089de23:localhost] 2022-12-22 21:30:42 | [Mutex] waiting for: [received:nodes:2ce0108e-1f43-49fb-bc8f-21ec5089de23:localhost] 2022-12-22 21:30:42 | [Mutex] waiting for: [received:nodes:2ce0108e-1f43-49fb-bc8f-21ec5089de23:localhost] 2022-12-22 21:30:42 | [Mutex] received everything. 2022-12-22 21:30:42 | [Mutex] isItemNotified: received:node:2ce0108e-1f43-49fb-bc8f-21ec5089de23:localhost:node-32849d7b-98bd-4294-b453-ccd77f57a571:Node 32849d7b-98bd-4294-b453-ccd77f57a571 :: true |
createSubnodes | 1.020s |
2022-12-22 21:30:42 |
2022-12-22 21:30:42 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-12-22 21:30:42 | ------------------------------------ 2022-12-22 21:30:42 | on localhost executing action create-node with content type application/json and payload: { "owner": "admin@test-domain.com", "pubsub#node_type": "collection", "node": "node-a9c570ac-03cb-40ca-8a42-927b51dec7c1", "pubsub#title": "Node a9c570ac-03cb-40ca-8a42-927b51dec7c1" } 2022-12-22 21:30:42 | from localhost for action create-node got result code 200 and payload { "Note": "Operation successful" } 2022-12-22 21:30:43 | [Mutex] waiting for: [received:nodes:c4d39867-5efb-4ee5-94aa-98ad4407048d:localhost] 2022-12-22 21:30:43 | [Mutex] waiting for: [received:nodes:c4d39867-5efb-4ee5-94aa-98ad4407048d:localhost] 2022-12-22 21:30:43 | [Mutex] waiting for: [received:nodes:c4d39867-5efb-4ee5-94aa-98ad4407048d:localhost] 2022-12-22 21:30:43 | [Mutex] waiting for: [received:nodes:c4d39867-5efb-4ee5-94aa-98ad4407048d:localhost] 2022-12-22 21:30:43 | [Mutex] waiting for: [received:nodes:c4d39867-5efb-4ee5-94aa-98ad4407048d:localhost] 2022-12-22 21:30:43 | [Mutex] received everything. 2022-12-22 21:30:43 | [Mutex] isItemNotified: received:node:c4d39867-5efb-4ee5-94aa-98ad4407048d:localhost:node-a9c570ac-03cb-40ca-8a42-927b51dec7c1:Node a9c570ac-03cb-40ca-8a42-927b51dec7c1 :: true |
deleteNodes | 1.016s |
2022-12-22 21:30:47 |
2022-12-22 21:30:47 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-12-22 21:30:47 | ------------------------------------ 2022-12-22 21:30:47 | on localhost executing action delete-node with content type application/json and payload: { "node": "node-a9c570ac-03cb-40ca-8a42-927b51dec7c1" } 2022-12-22 21:30:47 | from localhost for action delete-node got result code 200 and payload { "Note": "Operation successful" } 2022-12-22 21:30:48 | [Mutex] waiting for: [received:nodes:9dbb2255-90ec-486e-9a62-1da2bf5b8159:localhost] 2022-12-22 21:30:48 | [Mutex] waiting for: [received:nodes:9dbb2255-90ec-486e-9a62-1da2bf5b8159:localhost] 2022-12-22 21:30:48 | [Mutex] waiting for: [received:nodes:9dbb2255-90ec-486e-9a62-1da2bf5b8159:localhost] 2022-12-22 21:30:48 | [Mutex] received everything. 2022-12-22 21:30:48 | [Mutex] isItemNotified: received:node:9dbb2255-90ec-486e-9a62-1da2bf5b8159:localhost:node-a9c570ac-03cb-40ca-8a42-927b51dec7c1:Node a9c570ac-03cb-40ca-8a42-927b51dec7c1 :: false |
deleteSubnodes | 1.038s |
2022-12-22 21:30:46 |
2022-12-22 21:30:46 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-12-22 21:30:46 | ------------------------------------ 2022-12-22 21:30:46 | on localhost executing action delete-node with content type application/json and payload: { "node": "node-32849d7b-98bd-4294-b453-ccd77f57a571" } 2022-12-22 21:30:46 | from localhost for action delete-node got result code 200 and payload { "Note": "Operation successful" } 2022-12-22 21:30:47 | [Mutex] waiting for: [received:nodes:284daead-20c0-4df7-9c84-4434d1e3b5b1:localhost] 2022-12-22 21:30:47 | [Mutex] waiting for: [received:nodes:284daead-20c0-4df7-9c84-4434d1e3b5b1:localhost] 2022-12-22 21:30:47 | [Mutex] waiting for: [received:nodes:284daead-20c0-4df7-9c84-4434d1e3b5b1:localhost] 2022-12-22 21:30:47 | [Mutex] waiting for: [received:nodes:284daead-20c0-4df7-9c84-4434d1e3b5b1:localhost] 2022-12-22 21:30:47 | [Mutex] received everything. 2022-12-22 21:30:47 | [Mutex] isItemNotified: received:node:284daead-20c0-4df7-9c84-4434d1e3b5b1:localhost:node-32849d7b-98bd-4294-b453-ccd77f57a571:Node 32849d7b-98bd-4294-b453-ccd77f57a571 :: false 2022-12-22 21:30:47 | [Mutex] waiting for: [received:nodes:cf3923b3-f401-4a3e-af17-9db03763bfeb:localhost] 2022-12-22 21:30:47 | [Mutex] received everything. 2022-12-22 21:30:47 | [Mutex] isItemNotified: received:node:cf3923b3-f401-4a3e-af17-9db03763bfeb:localhost:node-32849d7b-98bd-4294-b453-ccd77f57a571:Node 32849d7b-98bd-4294-b453-ccd77f57a571 :: false |
publishItemsToNodes | 0.051s |
2022-12-22 21:30:45 |
2022-12-22 21:30:45 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-12-22 21:30:45 | ------------------------------------ 2022-12-22 21:30:45 | on localhost executing action publish-item with content type application/json and payload: { "node": "node-32849d7b-98bd-4294-b453-ccd77f57a571", "entry": "<test>item-3cc092e3-72b4-49f5-b0d3-15ea38bfff81</test>", "item-id": "item-3cc092e3-72b4-49f5-b0d3-15ea38bfff81" } 2022-12-22 21:30:45 | from localhost for action publish-item got result code 200 and payload { "Note": "Operation successful", "item-id": "item-3cc092e3-72b4-49f5-b0d3-15ea38bfff81" } 2022-12-22 21:30:45 | [Mutex] waiting for: [published:item:notifieditem-3cc092e3-72b4-49f5-b0d3-15ea38bfff81:admin@test-domain.com] 2022-12-22 21:30:45 | [Mutex] received everything. 2022-12-22 21:30:45 | [Mutex] isItemNotified: published:item:notifieditem-3cc092e3-72b4-49f5-b0d3-15ea38bfff81:admin@test-domain.com :: true |
retractItemsFromNodes | 0.050s |
2022-12-22 21:30:45 |
2022-12-22 21:30:45 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-12-22 21:30:45 | ------------------------------------ 2022-12-22 21:30:45 | on localhost executing action delete-item with content type application/json and payload: { "node": "node-32849d7b-98bd-4294-b453-ccd77f57a571", "item-id": "item-3cc092e3-72b4-49f5-b0d3-15ea38bfff81" } 2022-12-22 21:30:45 | from localhost for action delete-item got result code 200 and payload { "Note": "Operation successful", "item-id": "item-3cc092e3-72b4-49f5-b0d3-15ea38bfff81" } 2022-12-22 21:30:45 | [Mutex] received everything. 2022-12-22 21:30:45 | [Mutex] isItemNotified: retracted:item:notifieditem-3cc092e3-72b4-49f5-b0d3-15ea38bfff81:admin@test-domain.com :: true |
retrieveItemsFromNodes | 0.028s |
2022-12-22 21:30:45 |
2022-12-22 21:30:45 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-12-22 21:30:45 | ------------------------------------ 2022-12-22 21:30:45 | on localhost executing action retrieve-item with content type application/json and payload: { "node": "node-32849d7b-98bd-4294-b453-ccd77f57a571", "item-id": "item-3cc092e3-72b4-49f5-b0d3-15ea38bfff81" } 2022-12-22 21:30:45 | from localhost for action retrieve-item got result code 200 and payload { "title": "Retrive PubSub node item", "node": "node-32849d7b-98bd-4294-b453-ccd77f57a571", "item-id": "item-3cc092e3-72b4-49f5-b0d3-15ea38bfff81", "item": [ "<item id=\"item-3cc092e3-72b4-49f5-b0d3-15ea38bfff81\"><test>item-3cc092e3-72b4-49f5-b0d3-15ea38bfff81</test></item>" ] } 2022-12-22 21:30:45 | [Mutex] notify: [retrieved:item:item-3cc092e3-72b4-49f5-b0d3-15ea38bfff81:payload-matches:true:localhost] 2022-12-22 21:30:45 | [Mutex] received everything. 2022-12-22 21:30:45 | [Mutex] isItemNotified: retrieved:item:item-3cc092e3-72b4-49f5-b0d3-15ea38bfff81:payload-matches:true:localhost :: true |
retrieveUserSubscriptions | 0.052s |
2022-12-22 21:30:45 |
2022-12-22 21:30:45 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-12-22 21:30:45 | ------------------------------------ 2022-12-22 21:30:45 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload: { "jid": "admin@test-domain.com" } 2022-12-22 21:30:45 | from localhost for action retrieve-user-subscriptions got result code 200 and payload { "nodes": [ "test", "node-32849d7b-98bd-4294-b453-ccd77f57a571", "node-a9c570ac-03cb-40ca-8a42-927b51dec7c1" ] } |
retrieveUserSubscriptionsWithRegex | 0.048s |
2022-12-22 21:30:45 |
2022-12-22 21:30:45 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-12-22 21:30:45 | ------------------------------------ 2022-12-22 21:30:45 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload: { "jid": "admin@test-domain.com", "node-pattern": "(?!node-32849d7b-98bd-4294-b453-ccd77f57a571)" } 2022-12-22 21:30:45 | from localhost for action retrieve-user-subscriptions got result code 200 and payload { "nodes": [ ] } |
subscribeNodes | 1.010s |
2022-12-22 21:30:44 |
2022-12-22 21:30:44 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-12-22 21:30:44 | ------------------------------------ 2022-12-22 21:30:44 | on localhost executing action subscribe-node with content type application/json and payload: { "node": "node-32849d7b-98bd-4294-b453-ccd77f57a571", "jids": [ "admin@test-domain.com" ] } 2022-12-22 21:30:44 | from localhost for action subscribe-node got result code 200 and payload { "Note": "Operation successful" } |
unsubscribeNodes | 1.071s |
2022-12-22 21:30:45 |
2022-12-22 21:30:45 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-12-22 21:30:45 | ------------------------------------ 2022-12-22 21:30:45 | on localhost executing action unsubscribe-node with content type application/json and payload: { "node": "node-32849d7b-98bd-4294-b453-ccd77f57a571", "jids": [ "admin@test-domain.com" ] } 2022-12-22 21:30:45 | from localhost for action unsubscribe-node got result code 200 and payload { "Note": "Operation successful" } |