Test duration : 8.867s
Passed Tests | ||
---|---|---|
tigase.tests.pubsub.TestRestApiUsingJSON | ||
configureNodes | 1.088s |
2023-03-23 22:30:30 |
2023-03-23 22:30:30 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2023-03-23 22:30:30 | ------------------------------------ 2023-03-23 22:30:30 | [Mutex] waiting for: [configured:node:node-d4fb676f-94c9-4b80-b97a-ddecd9b0d3c4:node-241d36bc-8088-4a8f-9b13-4611e2904b0a] 2023-03-23 22:30:30 | [Mutex] received everything. 2023-03-23 22:30:30 | [Mutex] isItemNotified: configured:node:node-d4fb676f-94c9-4b80-b97a-ddecd9b0d3c4:node-241d36bc-8088-4a8f-9b13-4611e2904b0a :: true 2023-03-23 22:30:31 | [Mutex] waiting for: [received:nodes:64cd07cc-df95-47a8-ba80-af2a3618f94b:localhost] 2023-03-23 22:30:31 | [Mutex] received everything. 2023-03-23 22:30:31 | [Mutex] isItemNotified: received:node:64cd07cc-df95-47a8-ba80-af2a3618f94b:localhost:node-d4fb676f-94c9-4b80-b97a-ddecd9b0d3c4:Node d4fb676f-94c9-4b80-b97a-ddecd9b0d3c4 :: true 2023-03-23 22:30:31 | [Mutex] waiting for: [received:nodes:68cb7c30-de55-4a24-8c63-10d8a682c5a4:localhost] 2023-03-23 22:30:31 | [Mutex] waiting for: [received:nodes:68cb7c30-de55-4a24-8c63-10d8a682c5a4:localhost] 2023-03-23 22:30:31 | [Mutex] waiting for: [received:nodes:68cb7c30-de55-4a24-8c63-10d8a682c5a4:localhost] 2023-03-23 22:30:31 | [Mutex] waiting for: [received:nodes:68cb7c30-de55-4a24-8c63-10d8a682c5a4:localhost] 2023-03-23 22:30:31 | [Mutex] received everything. 2023-03-23 22:30:31 | [Mutex] isItemNotified: received:node:68cb7c30-de55-4a24-8c63-10d8a682c5a4:localhost:node-d4fb676f-94c9-4b80-b97a-ddecd9b0d3c4:Node d4fb676f-94c9-4b80-b97a-ddecd9b0d3c4 :: false |
createNodes | 1.715s |
2023-03-23 22:30:27 |
2023-03-23 22:30:27 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2023-03-23 22:30:27 | ------------------------------------ 2023-03-23 22:30:28 | on localhost executing action create-node with content type application/json and payload: { "owner": "admin@test-domain.com", "pubsub#node_type": "leaf", "node": "node-d4fb676f-94c9-4b80-b97a-ddecd9b0d3c4", "pubsub#title": "Node d4fb676f-94c9-4b80-b97a-ddecd9b0d3c4" } 2023-03-23 22:30:28 | from localhost for action create-node got result code 200 and payload { "Note": "Operation successful" } 2023-03-23 22:30:29 | [Mutex] waiting for: [received:nodes:c6b348f3-0b08-4c23-a135-cc3bb0676947:localhost] 2023-03-23 22:30:29 | [Mutex] waiting for: [received:nodes:c6b348f3-0b08-4c23-a135-cc3bb0676947:localhost] 2023-03-23 22:30:29 | [Mutex] received everything. 2023-03-23 22:30:29 | [Mutex] isItemNotified: received:node:c6b348f3-0b08-4c23-a135-cc3bb0676947:localhost:node-d4fb676f-94c9-4b80-b97a-ddecd9b0d3c4:Node d4fb676f-94c9-4b80-b97a-ddecd9b0d3c4 :: true |
createSubnodes | 1.024s |
2023-03-23 22:30:29 |
2023-03-23 22:30:29 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2023-03-23 22:30:29 | ------------------------------------ 2023-03-23 22:30:29 | on localhost executing action create-node with content type application/json and payload: { "owner": "admin@test-domain.com", "pubsub#node_type": "collection", "node": "node-241d36bc-8088-4a8f-9b13-4611e2904b0a", "pubsub#title": "Node 241d36bc-8088-4a8f-9b13-4611e2904b0a" } 2023-03-23 22:30:29 | from localhost for action create-node got result code 200 and payload { "Note": "Operation successful" } 2023-03-23 22:30:30 | [Mutex] waiting for: [received:nodes:48f09330-3536-4704-8c21-d4a05dcd3de1:localhost] 2023-03-23 22:30:30 | [Mutex] received everything. 2023-03-23 22:30:30 | [Mutex] isItemNotified: received:node:48f09330-3536-4704-8c21-d4a05dcd3de1:localhost:node-241d36bc-8088-4a8f-9b13-4611e2904b0a:Node 241d36bc-8088-4a8f-9b13-4611e2904b0a :: true |
deleteNodes | 1.019s |
2023-03-23 22:30:34 |
2023-03-23 22:30:34 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2023-03-23 22:30:34 | ------------------------------------ 2023-03-23 22:30:34 | on localhost executing action delete-node with content type application/json and payload: { "node": "node-241d36bc-8088-4a8f-9b13-4611e2904b0a" } 2023-03-23 22:30:34 | from localhost for action delete-node got result code 200 and payload { "Note": "Operation successful" } 2023-03-23 22:30:35 | [Mutex] waiting for: [received:nodes:e9148d3d-c1d4-4b94-8ad6-0a0687795315:localhost] 2023-03-23 22:30:35 | [Mutex] waiting for: [received:nodes:e9148d3d-c1d4-4b94-8ad6-0a0687795315:localhost] 2023-03-23 22:30:35 | [Mutex] waiting for: [received:nodes:e9148d3d-c1d4-4b94-8ad6-0a0687795315:localhost] 2023-03-23 22:30:35 | [Mutex] received everything. 2023-03-23 22:30:35 | [Mutex] isItemNotified: received:node:e9148d3d-c1d4-4b94-8ad6-0a0687795315:localhost:node-241d36bc-8088-4a8f-9b13-4611e2904b0a:Node 241d36bc-8088-4a8f-9b13-4611e2904b0a :: false |
deleteSubnodes | 1.027s |
2023-03-23 22:30:33 |
2023-03-23 22:30:33 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2023-03-23 22:30:33 | ------------------------------------ 2023-03-23 22:30:33 | on localhost executing action delete-node with content type application/json and payload: { "node": "node-d4fb676f-94c9-4b80-b97a-ddecd9b0d3c4" } 2023-03-23 22:30:33 | from localhost for action delete-node got result code 200 and payload { "Note": "Operation successful" } 2023-03-23 22:30:34 | [Mutex] waiting for: [received:nodes:1490ea93-9ddd-4ad3-a7d5-b865f0257e01:localhost] 2023-03-23 22:30:34 | [Mutex] waiting for: [received:nodes:1490ea93-9ddd-4ad3-a7d5-b865f0257e01:localhost] 2023-03-23 22:30:34 | [Mutex] waiting for: [received:nodes:1490ea93-9ddd-4ad3-a7d5-b865f0257e01:localhost] 2023-03-23 22:30:34 | [Mutex] received everything. 2023-03-23 22:30:34 | [Mutex] isItemNotified: received:node:1490ea93-9ddd-4ad3-a7d5-b865f0257e01:localhost:node-d4fb676f-94c9-4b80-b97a-ddecd9b0d3c4:Node d4fb676f-94c9-4b80-b97a-ddecd9b0d3c4 :: false 2023-03-23 22:30:34 | [Mutex] waiting for: [received:nodes:1de63592-02fc-4524-889c-dc729648c261:localhost] 2023-03-23 22:30:34 | [Mutex] received everything. 2023-03-23 22:30:34 | [Mutex] isItemNotified: received:node:1de63592-02fc-4524-889c-dc729648c261:localhost:node-d4fb676f-94c9-4b80-b97a-ddecd9b0d3c4:Node d4fb676f-94c9-4b80-b97a-ddecd9b0d3c4 :: false |
publishItemsToNodes | 0.056s |
2023-03-23 22:30:32 |
2023-03-23 22:30:32 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2023-03-23 22:30:32 | ------------------------------------ 2023-03-23 22:30:32 | on localhost executing action publish-item with content type application/json and payload: { "node": "node-d4fb676f-94c9-4b80-b97a-ddecd9b0d3c4", "entry": "<test>item-0823da1a-c7d8-48af-9244-eacc6eb4d439</test>", "item-id": "item-0823da1a-c7d8-48af-9244-eacc6eb4d439" } 2023-03-23 22:30:32 | from localhost for action publish-item got result code 200 and payload { "Note": "Operation successful", "item-id": "item-0823da1a-c7d8-48af-9244-eacc6eb4d439" } 2023-03-23 22:30:32 | [Mutex] waiting for: [published:item:notifieditem-0823da1a-c7d8-48af-9244-eacc6eb4d439:admin@test-domain.com] 2023-03-23 22:30:32 | [Mutex] received everything. 2023-03-23 22:30:32 | [Mutex] isItemNotified: published:item:notifieditem-0823da1a-c7d8-48af-9244-eacc6eb4d439:admin@test-domain.com :: true |
retractItemsFromNodes | 0.116s |
2023-03-23 22:30:32 |
2023-03-23 22:30:32 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2023-03-23 22:30:32 | ------------------------------------ 2023-03-23 22:30:32 | on localhost executing action delete-item with content type application/json and payload: { "node": "node-d4fb676f-94c9-4b80-b97a-ddecd9b0d3c4", "item-id": "item-0823da1a-c7d8-48af-9244-eacc6eb4d439" } 2023-03-23 22:30:32 | from localhost for action delete-item got result code 200 and payload { "Note": "Operation successful", "item-id": "item-0823da1a-c7d8-48af-9244-eacc6eb4d439" } 2023-03-23 22:30:32 | [Mutex] received everything. 2023-03-23 22:30:32 | [Mutex] isItemNotified: retracted:item:notifieditem-0823da1a-c7d8-48af-9244-eacc6eb4d439:admin@test-domain.com :: true |
retrieveItemsFromNodes | 0.055s |
2023-03-23 22:30:32 |
2023-03-23 22:30:32 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2023-03-23 22:30:32 | ------------------------------------ 2023-03-23 22:30:32 | on localhost executing action retrieve-item with content type application/json and payload: { "node": "node-d4fb676f-94c9-4b80-b97a-ddecd9b0d3c4", "item-id": "item-0823da1a-c7d8-48af-9244-eacc6eb4d439" } 2023-03-23 22:30:32 | from localhost for action retrieve-item got result code 200 and payload { "title": "Retrive PubSub node item", "node": "node-d4fb676f-94c9-4b80-b97a-ddecd9b0d3c4", "item-id": "item-0823da1a-c7d8-48af-9244-eacc6eb4d439", "item": [ "<item id=\"item-0823da1a-c7d8-48af-9244-eacc6eb4d439\"><test>item-0823da1a-c7d8-48af-9244-eacc6eb4d439</test></item>" ] } 2023-03-23 22:30:32 | [Mutex] notify: [retrieved:item:item-0823da1a-c7d8-48af-9244-eacc6eb4d439:payload-matches:true:localhost] 2023-03-23 22:30:32 | [Mutex] received everything. 2023-03-23 22:30:32 | [Mutex] isItemNotified: retrieved:item:item-0823da1a-c7d8-48af-9244-eacc6eb4d439:payload-matches:true:localhost :: true |
retrieveUserSubscriptions | 0.051s |
2023-03-23 22:30:32 |
2023-03-23 22:30:32 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2023-03-23 22:30:32 | ------------------------------------ 2023-03-23 22:30:32 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload: { "jid": "admin@test-domain.com" } 2023-03-23 22:30:32 | from localhost for action retrieve-user-subscriptions got result code 200 and payload { "nodes": [ "test", "node-d4fb676f-94c9-4b80-b97a-ddecd9b0d3c4", "node-241d36bc-8088-4a8f-9b13-4611e2904b0a" ] } |
retrieveUserSubscriptionsWithRegex | 0.046s |
2023-03-23 22:30:32 |
2023-03-23 22:30:32 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2023-03-23 22:30:32 | ------------------------------------ 2023-03-23 22:30:32 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload: { "jid": "admin@test-domain.com", "node-pattern": "(?!node-d4fb676f-94c9-4b80-b97a-ddecd9b0d3c4)" } 2023-03-23 22:30:32 | from localhost for action retrieve-user-subscriptions got result code 200 and payload { "nodes": [ ] } |
subscribeNodes | 1.012s |
2023-03-23 22:30:31 |
2023-03-23 22:30:31 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2023-03-23 22:30:31 | ------------------------------------ 2023-03-23 22:30:31 | on localhost executing action subscribe-node with content type application/json and payload: { "node": "node-d4fb676f-94c9-4b80-b97a-ddecd9b0d3c4", "jids": [ "admin@test-domain.com" ] } 2023-03-23 22:30:31 | from localhost for action subscribe-node got result code 200 and payload { "Note": "Operation successful" } |
unsubscribeNodes | 1.087s |
2023-03-23 22:30:32 |
2023-03-23 22:30:32 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2023-03-23 22:30:32 | ------------------------------------ 2023-03-23 22:30:32 | on localhost executing action unsubscribe-node with content type application/json and payload: { "node": "node-d4fb676f-94c9-4b80-b97a-ddecd9b0d3c4", "jids": [ "admin@test-domain.com" ] } 2023-03-23 22:30:32 | from localhost for action unsubscribe-node got result code 200 and payload { "Note": "Operation successful" } |