Test duration : 8.879s
Passed Tests | ||
---|---|---|
tigase.tests.pubsub.TestRestApiUsingJSON | ||
configureNodes | 1.108s |
2022-06-29 23:02:07 |
2022-06-29 23:02:07 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-06-29 23:02:07 | ------------------------------------ 2022-06-29 23:02:07 | [Mutex] waiting for: [configured:node:node-6626893a-6b9d-4f2b-b18e-6b756dd88bea:node-46d45640-bd3b-4c3e-909a-c97e7c25df09] 2022-06-29 23:02:07 | [Mutex] received everything. 2022-06-29 23:02:07 | [Mutex] isItemNotified: configured:node:node-6626893a-6b9d-4f2b-b18e-6b756dd88bea:node-46d45640-bd3b-4c3e-909a-c97e7c25df09 :: true 2022-06-29 23:02:08 | [Mutex] waiting for: [received:nodes:f0ca8d7d-dcf7-4240-b976-26de517cb62c:localhost] 2022-06-29 23:02:08 | [Mutex] received everything. 2022-06-29 23:02:08 | [Mutex] isItemNotified: received:node:f0ca8d7d-dcf7-4240-b976-26de517cb62c:localhost:node-6626893a-6b9d-4f2b-b18e-6b756dd88bea:Node 6626893a-6b9d-4f2b-b18e-6b756dd88bea :: true 2022-06-29 23:02:08 | [Mutex] waiting for: [received:nodes:3219a500-63d3-4352-a0ec-1dfa04627f8d:localhost] 2022-06-29 23:02:08 | [Mutex] received everything. 2022-06-29 23:02:08 | [Mutex] isItemNotified: received:node:3219a500-63d3-4352-a0ec-1dfa04627f8d:localhost:node-6626893a-6b9d-4f2b-b18e-6b756dd88bea:Node 6626893a-6b9d-4f2b-b18e-6b756dd88bea :: false |
createNodes | 1.695s |
2022-06-29 23:02:04 |
2022-06-29 23:02:04 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-06-29 23:02:04 | ------------------------------------ 2022-06-29 23:02:05 | on localhost executing action create-node with content type application/json and payload: { "owner": "admin@test-domain.com", "pubsub#node_type": "leaf", "node": "node-6626893a-6b9d-4f2b-b18e-6b756dd88bea", "pubsub#title": "Node 6626893a-6b9d-4f2b-b18e-6b756dd88bea" } 2022-06-29 23:02:05 | from localhost for action create-node got result code 200 and payload { "Note": "Operation successful" } 2022-06-29 23:02:06 | [Mutex] waiting for: [received:nodes:bb351b7f-9b87-41ea-8ba9-5766254d1b9c:localhost] 2022-06-29 23:02:06 | [Mutex] waiting for: [received:nodes:bb351b7f-9b87-41ea-8ba9-5766254d1b9c:localhost] 2022-06-29 23:02:06 | [Mutex] received everything. 2022-06-29 23:02:06 | [Mutex] isItemNotified: received:node:bb351b7f-9b87-41ea-8ba9-5766254d1b9c:localhost:node-6626893a-6b9d-4f2b-b18e-6b756dd88bea:Node 6626893a-6b9d-4f2b-b18e-6b756dd88bea :: true |
createSubnodes | 1.024s |
2022-06-29 23:02:06 |
2022-06-29 23:02:06 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-06-29 23:02:06 | ------------------------------------ 2022-06-29 23:02:06 | on localhost executing action create-node with content type application/json and payload: { "owner": "admin@test-domain.com", "pubsub#node_type": "collection", "node": "node-46d45640-bd3b-4c3e-909a-c97e7c25df09", "pubsub#title": "Node 46d45640-bd3b-4c3e-909a-c97e7c25df09" } 2022-06-29 23:02:06 | from localhost for action create-node got result code 200 and payload { "Note": "Operation successful" } 2022-06-29 23:02:07 | [Mutex] waiting for: [received:nodes:e0f2dd6f-0daa-4bc8-8c28-c354a1a025ed:localhost] 2022-06-29 23:02:07 | [Mutex] waiting for: [received:nodes:e0f2dd6f-0daa-4bc8-8c28-c354a1a025ed:localhost] 2022-06-29 23:02:07 | [Mutex] received everything. 2022-06-29 23:02:07 | [Mutex] isItemNotified: received:node:e0f2dd6f-0daa-4bc8-8c28-c354a1a025ed:localhost:node-46d45640-bd3b-4c3e-909a-c97e7c25df09:Node 46d45640-bd3b-4c3e-909a-c97e7c25df09 :: true |
deleteNodes | 1.058s |
2022-06-29 23:02:11 |
2022-06-29 23:02:11 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-06-29 23:02:11 | ------------------------------------ 2022-06-29 23:02:11 | on localhost executing action delete-node with content type application/json and payload: { "node": "node-46d45640-bd3b-4c3e-909a-c97e7c25df09" } 2022-06-29 23:02:11 | from localhost for action delete-node got result code 200 and payload { "Note": "Operation successful" } 2022-06-29 23:02:12 | [Mutex] waiting for: [received:nodes:01cf7051-1175-41cf-a795-c5dd23af397d:localhost] 2022-06-29 23:02:12 | [Mutex] waiting for: [received:nodes:01cf7051-1175-41cf-a795-c5dd23af397d:localhost] 2022-06-29 23:02:12 | [Mutex] received everything. 2022-06-29 23:02:12 | [Mutex] isItemNotified: received:node:01cf7051-1175-41cf-a795-c5dd23af397d:localhost:node-46d45640-bd3b-4c3e-909a-c97e7c25df09:Node 46d45640-bd3b-4c3e-909a-c97e7c25df09 :: false |
deleteSubnodes | 1.032s |
2022-06-29 23:02:10 |
2022-06-29 23:02:10 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-06-29 23:02:10 | ------------------------------------ 2022-06-29 23:02:10 | on localhost executing action delete-node with content type application/json and payload: { "node": "node-6626893a-6b9d-4f2b-b18e-6b756dd88bea" } 2022-06-29 23:02:10 | from localhost for action delete-node got result code 200 and payload { "Note": "Operation successful" } 2022-06-29 23:02:11 | [Mutex] waiting for: [received:nodes:83dc5004-b6f3-4f1c-b531-2fd5a1e08091:localhost] 2022-06-29 23:02:11 | [Mutex] received everything. 2022-06-29 23:02:11 | [Mutex] isItemNotified: received:node:83dc5004-b6f3-4f1c-b531-2fd5a1e08091:localhost:node-6626893a-6b9d-4f2b-b18e-6b756dd88bea:Node 6626893a-6b9d-4f2b-b18e-6b756dd88bea :: false 2022-06-29 23:02:11 | [Mutex] waiting for: [received:nodes:28aa46c8-f9b0-49fd-a2d9-d5ecf32b3b4f:localhost] 2022-06-29 23:02:11 | [Mutex] received everything. 2022-06-29 23:02:11 | [Mutex] isItemNotified: received:node:28aa46c8-f9b0-49fd-a2d9-d5ecf32b3b4f:localhost:node-6626893a-6b9d-4f2b-b18e-6b756dd88bea:Node 6626893a-6b9d-4f2b-b18e-6b756dd88bea :: false |
publishItemsToNodes | 0.037s |
2022-06-29 23:02:09 |
2022-06-29 23:02:09 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-06-29 23:02:09 | ------------------------------------ 2022-06-29 23:02:09 | on localhost executing action publish-item with content type application/json and payload: { "node": "node-6626893a-6b9d-4f2b-b18e-6b756dd88bea", "entry": "<test>item-68157c3d-4a02-497b-a604-b57a1ad0cb0f</test>", "item-id": "item-68157c3d-4a02-497b-a604-b57a1ad0cb0f" } 2022-06-29 23:02:09 | from localhost for action publish-item got result code 200 and payload { "Note": "Operation successful", "item-id": "item-68157c3d-4a02-497b-a604-b57a1ad0cb0f" } 2022-06-29 23:02:09 | [Mutex] waiting for: [published:item:notifieditem-68157c3d-4a02-497b-a604-b57a1ad0cb0f:admin@test-domain.com] 2022-06-29 23:02:09 | [Mutex] received everything. 2022-06-29 23:02:09 | [Mutex] isItemNotified: published:item:notifieditem-68157c3d-4a02-497b-a604-b57a1ad0cb0f:admin@test-domain.com :: true |
retractItemsFromNodes | 0.063s |
2022-06-29 23:02:09 |
2022-06-29 23:02:09 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-06-29 23:02:09 | ------------------------------------ 2022-06-29 23:02:09 | on localhost executing action delete-item with content type application/json and payload: { "node": "node-6626893a-6b9d-4f2b-b18e-6b756dd88bea", "item-id": "item-68157c3d-4a02-497b-a604-b57a1ad0cb0f" } 2022-06-29 23:02:09 | from localhost for action delete-item got result code 200 and payload { "Note": "Operation successful", "item-id": "item-68157c3d-4a02-497b-a604-b57a1ad0cb0f" } 2022-06-29 23:02:09 | [Mutex] received everything. 2022-06-29 23:02:09 | [Mutex] isItemNotified: retracted:item:notifieditem-68157c3d-4a02-497b-a604-b57a1ad0cb0f:admin@test-domain.com :: true |
retrieveItemsFromNodes | 0.085s |
2022-06-29 23:02:09 |
2022-06-29 23:02:09 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-06-29 23:02:09 | ------------------------------------ 2022-06-29 23:02:09 | on localhost executing action retrieve-item with content type application/json and payload: { "node": "node-6626893a-6b9d-4f2b-b18e-6b756dd88bea", "item-id": "item-68157c3d-4a02-497b-a604-b57a1ad0cb0f" } 2022-06-29 23:02:09 | from localhost for action retrieve-item got result code 200 and payload { "title": "Retrive PubSub node item", "node": "node-6626893a-6b9d-4f2b-b18e-6b756dd88bea", "item-id": "item-68157c3d-4a02-497b-a604-b57a1ad0cb0f", "item": [ "<item id=\"item-68157c3d-4a02-497b-a604-b57a1ad0cb0f\"><test>item-68157c3d-4a02-497b-a604-b57a1ad0cb0f</test></item>" ] } 2022-06-29 23:02:09 | [Mutex] notify: [retrieved:item:item-68157c3d-4a02-497b-a604-b57a1ad0cb0f:payload-matches:true:localhost] 2022-06-29 23:02:09 | [Mutex] received everything. 2022-06-29 23:02:09 | [Mutex] isItemNotified: retrieved:item:item-68157c3d-4a02-497b-a604-b57a1ad0cb0f:payload-matches:true:localhost :: true |
retrieveUserSubscriptions | 0.048s |
2022-06-29 23:02:09 |
2022-06-29 23:02:09 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-06-29 23:02:09 | ------------------------------------ 2022-06-29 23:02:09 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload: { "jid": "admin@test-domain.com" } 2022-06-29 23:02:09 | from localhost for action retrieve-user-subscriptions got result code 200 and payload { "nodes": [ "test", "node-46d45640-bd3b-4c3e-909a-c97e7c25df09", "node-6626893a-6b9d-4f2b-b18e-6b756dd88bea" ] } |
retrieveUserSubscriptionsWithRegex | 0.047s |
2022-06-29 23:02:09 |
2022-06-29 23:02:09 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-06-29 23:02:09 | ------------------------------------ 2022-06-29 23:02:09 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload: { "jid": "admin@test-domain.com", "node-pattern": "(?!node-6626893a-6b9d-4f2b-b18e-6b756dd88bea)" } 2022-06-29 23:02:09 | from localhost for action retrieve-user-subscriptions got result code 200 and payload { "nodes": [ ] } |
subscribeNodes | 1.009s |
2022-06-29 23:02:08 |
2022-06-29 23:02:08 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-06-29 23:02:08 | ------------------------------------ 2022-06-29 23:02:08 | on localhost executing action subscribe-node with content type application/json and payload: { "node": "node-6626893a-6b9d-4f2b-b18e-6b756dd88bea", "jids": [ "admin@test-domain.com" ] } 2022-06-29 23:02:08 | from localhost for action subscribe-node got result code 200 and payload { "Note": "Operation successful" } |
unsubscribeNodes | 1.068s |
2022-06-29 23:02:09 |
2022-06-29 23:02:09 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-06-29 23:02:09 | ------------------------------------ 2022-06-29 23:02:09 | on localhost executing action unsubscribe-node with content type application/json and payload: { "node": "node-6626893a-6b9d-4f2b-b18e-6b756dd88bea", "jids": [ "admin@test-domain.com" ] } 2022-06-29 23:02:09 | from localhost for action unsubscribe-node got result code 200 and payload { "Note": "Operation successful" } |