Test duration : 8.653s
Passed Tests | ||
---|---|---|
tigase.tests.pubsub.TestRestApiUsingJSON | ||
configureNodes | 1.138s |
2023-07-31 22:31:15 |
2023-07-31 22:31:15 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2023-07-31 22:31:15 | ------------------------------------ 2023-07-31 22:31:15 | [Mutex] waiting for: [configured:node:node-554817b9-4dd0-4d25-a1be-9c05efb48713:node-e806a3f1-2078-47d9-ba14-d218cd3814e1] 2023-07-31 22:31:15 | [Mutex] received everything. 2023-07-31 22:31:15 | [Mutex] isItemNotified: configured:node:node-554817b9-4dd0-4d25-a1be-9c05efb48713:node-e806a3f1-2078-47d9-ba14-d218cd3814e1 :: true 2023-07-31 22:31:16 | [Mutex] waiting for: [received:nodes:24f71684-af0c-4fe8-9e2a-f46b0b1e8679:localhost] 2023-07-31 22:31:16 | [Mutex] received everything. 2023-07-31 22:31:16 | [Mutex] isItemNotified: received:node:24f71684-af0c-4fe8-9e2a-f46b0b1e8679:localhost:node-554817b9-4dd0-4d25-a1be-9c05efb48713:Node 554817b9-4dd0-4d25-a1be-9c05efb48713 :: true 2023-07-31 22:31:16 | [Mutex] waiting for: [received:nodes:0115c1a3-3b96-4ef4-ad61-ea9bf221bbf1:localhost] 2023-07-31 22:31:16 | [Mutex] received everything. 2023-07-31 22:31:16 | [Mutex] isItemNotified: received:node:0115c1a3-3b96-4ef4-ad61-ea9bf221bbf1:localhost:node-554817b9-4dd0-4d25-a1be-9c05efb48713:Node 554817b9-4dd0-4d25-a1be-9c05efb48713 :: false |
createNodes | 1.662s |
2023-07-31 22:31:12 |
2023-07-31 22:31:12 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2023-07-31 22:31:12 | ------------------------------------ 2023-07-31 22:31:13 | on localhost executing action create-node with content type application/json and payload: { "owner": "admin@test-domain.com", "pubsub#node_type": "leaf", "node": "node-554817b9-4dd0-4d25-a1be-9c05efb48713", "pubsub#title": "Node 554817b9-4dd0-4d25-a1be-9c05efb48713" } 2023-07-31 22:31:13 | from localhost for action create-node got result code 200 and payload { "Note": "Operation successful" } 2023-07-31 22:31:14 | [Mutex] waiting for: [received:nodes:8e027f9a-60e0-4ba0-bf62-d34ae0415320:localhost] 2023-07-31 22:31:14 | [Mutex] waiting for: [received:nodes:8e027f9a-60e0-4ba0-bf62-d34ae0415320:localhost] 2023-07-31 22:31:14 | [Mutex] waiting for: [received:nodes:8e027f9a-60e0-4ba0-bf62-d34ae0415320:localhost] 2023-07-31 22:31:14 | [Mutex] waiting for: [received:nodes:8e027f9a-60e0-4ba0-bf62-d34ae0415320:localhost] 2023-07-31 22:31:14 | [Mutex] received everything. 2023-07-31 22:31:14 | [Mutex] isItemNotified: received:node:8e027f9a-60e0-4ba0-bf62-d34ae0415320:localhost:node-554817b9-4dd0-4d25-a1be-9c05efb48713:Node 554817b9-4dd0-4d25-a1be-9c05efb48713 :: true |
createSubnodes | 1.029s |
2023-07-31 22:31:14 |
2023-07-31 22:31:14 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2023-07-31 22:31:14 | ------------------------------------ 2023-07-31 22:31:14 | on localhost executing action create-node with content type application/json and payload: { "owner": "admin@test-domain.com", "pubsub#node_type": "collection", "node": "node-e806a3f1-2078-47d9-ba14-d218cd3814e1", "pubsub#title": "Node e806a3f1-2078-47d9-ba14-d218cd3814e1" } 2023-07-31 22:31:14 | from localhost for action create-node got result code 200 and payload { "Note": "Operation successful" } 2023-07-31 22:31:15 | [Mutex] waiting for: [received:nodes:2a240783-cc6e-47b7-91c4-4beea185e3dd:localhost] 2023-07-31 22:31:15 | [Mutex] waiting for: [received:nodes:2a240783-cc6e-47b7-91c4-4beea185e3dd:localhost] 2023-07-31 22:31:15 | [Mutex] waiting for: [received:nodes:2a240783-cc6e-47b7-91c4-4beea185e3dd:localhost] 2023-07-31 22:31:15 | [Mutex] waiting for: [received:nodes:2a240783-cc6e-47b7-91c4-4beea185e3dd:localhost] 2023-07-31 22:31:15 | [Mutex] waiting for: [received:nodes:2a240783-cc6e-47b7-91c4-4beea185e3dd:localhost] 2023-07-31 22:31:15 | [Mutex] waiting for: [received:nodes:2a240783-cc6e-47b7-91c4-4beea185e3dd:localhost] 2023-07-31 22:31:15 | [Mutex] received everything. 2023-07-31 22:31:15 | [Mutex] isItemNotified: received:node:2a240783-cc6e-47b7-91c4-4beea185e3dd:localhost:node-e806a3f1-2078-47d9-ba14-d218cd3814e1:Node e806a3f1-2078-47d9-ba14-d218cd3814e1 :: true |
deleteNodes | 1.025s |
2023-07-31 22:31:19 |
2023-07-31 22:31:19 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2023-07-31 22:31:19 | ------------------------------------ 2023-07-31 22:31:19 | on localhost executing action delete-node with content type application/json and payload: { "node": "node-e806a3f1-2078-47d9-ba14-d218cd3814e1" } 2023-07-31 22:31:19 | from localhost for action delete-node got result code 200 and payload { "Note": "Operation successful" } 2023-07-31 22:31:20 | [Mutex] waiting for: [received:nodes:59e6eda5-b0f7-4434-b243-311ae61a9c1c:localhost] 2023-07-31 22:31:20 | [Mutex] waiting for: [received:nodes:59e6eda5-b0f7-4434-b243-311ae61a9c1c:localhost] 2023-07-31 22:31:20 | [Mutex] waiting for: [received:nodes:59e6eda5-b0f7-4434-b243-311ae61a9c1c:localhost] 2023-07-31 22:31:20 | [Mutex] received everything. 2023-07-31 22:31:20 | [Mutex] isItemNotified: received:node:59e6eda5-b0f7-4434-b243-311ae61a9c1c:localhost:node-e806a3f1-2078-47d9-ba14-d218cd3814e1:Node e806a3f1-2078-47d9-ba14-d218cd3814e1 :: false |
deleteSubnodes | 1.031s |
2023-07-31 22:31:18 |
2023-07-31 22:31:18 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2023-07-31 22:31:18 | ------------------------------------ 2023-07-31 22:31:18 | on localhost executing action delete-node with content type application/json and payload: { "node": "node-554817b9-4dd0-4d25-a1be-9c05efb48713" } 2023-07-31 22:31:18 | from localhost for action delete-node got result code 200 and payload { "Note": "Operation successful" } 2023-07-31 22:31:19 | [Mutex] waiting for: [received:nodes:6dd74856-64e1-4bb9-a681-e2360ef83eb9:localhost] 2023-07-31 22:31:19 | [Mutex] waiting for: [received:nodes:6dd74856-64e1-4bb9-a681-e2360ef83eb9:localhost] 2023-07-31 22:31:19 | [Mutex] waiting for: [received:nodes:6dd74856-64e1-4bb9-a681-e2360ef83eb9:localhost] 2023-07-31 22:31:19 | [Mutex] waiting for: [received:nodes:6dd74856-64e1-4bb9-a681-e2360ef83eb9:localhost] 2023-07-31 22:31:19 | [Mutex] received everything. 2023-07-31 22:31:19 | [Mutex] isItemNotified: received:node:6dd74856-64e1-4bb9-a681-e2360ef83eb9:localhost:node-554817b9-4dd0-4d25-a1be-9c05efb48713:Node 554817b9-4dd0-4d25-a1be-9c05efb48713 :: false 2023-07-31 22:31:19 | [Mutex] waiting for: [received:nodes:230036af-95cc-4922-8ce9-94a5c2d23201:localhost] 2023-07-31 22:31:19 | [Mutex] received everything. 2023-07-31 22:31:19 | [Mutex] isItemNotified: received:node:230036af-95cc-4922-8ce9-94a5c2d23201:localhost:node-554817b9-4dd0-4d25-a1be-9c05efb48713:Node 554817b9-4dd0-4d25-a1be-9c05efb48713 :: false |
publishItemsToNodes | 0.052s |
2023-07-31 22:31:17 |
2023-07-31 22:31:17 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2023-07-31 22:31:17 | ------------------------------------ 2023-07-31 22:31:17 | on localhost executing action publish-item with content type application/json and payload: { "node": "node-554817b9-4dd0-4d25-a1be-9c05efb48713", "entry": "<test>item-0d9cd305-e80d-4b56-9629-9a6457353905</test>", "item-id": "item-0d9cd305-e80d-4b56-9629-9a6457353905" } 2023-07-31 22:31:17 | from localhost for action publish-item got result code 200 and payload { "Note": "Operation successful", "item-id": "item-0d9cd305-e80d-4b56-9629-9a6457353905" } 2023-07-31 22:31:17 | [Mutex] waiting for: [published:item:notifieditem-0d9cd305-e80d-4b56-9629-9a6457353905:admin@test-domain.com] 2023-07-31 22:31:17 | [Mutex] received everything. 2023-07-31 22:31:17 | [Mutex] isItemNotified: published:item:notifieditem-0d9cd305-e80d-4b56-9629-9a6457353905:admin@test-domain.com :: true |
retractItemsFromNodes | 0.050s |
2023-07-31 22:31:17 |
2023-07-31 22:31:17 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2023-07-31 22:31:17 | ------------------------------------ 2023-07-31 22:31:17 | on localhost executing action delete-item with content type application/json and payload: { "node": "node-554817b9-4dd0-4d25-a1be-9c05efb48713", "item-id": "item-0d9cd305-e80d-4b56-9629-9a6457353905" } 2023-07-31 22:31:17 | from localhost for action delete-item got result code 200 and payload { "Note": "Operation successful", "item-id": "item-0d9cd305-e80d-4b56-9629-9a6457353905" } 2023-07-31 22:31:17 | [Mutex] received everything. 2023-07-31 22:31:17 | [Mutex] isItemNotified: retracted:item:notifieditem-0d9cd305-e80d-4b56-9629-9a6457353905:admin@test-domain.com :: true |
retrieveItemsFromNodes | 0.042s |
2023-07-31 22:31:17 |
2023-07-31 22:31:17 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2023-07-31 22:31:17 | ------------------------------------ 2023-07-31 22:31:17 | on localhost executing action retrieve-item with content type application/json and payload: { "node": "node-554817b9-4dd0-4d25-a1be-9c05efb48713", "item-id": "item-0d9cd305-e80d-4b56-9629-9a6457353905" } 2023-07-31 22:31:17 | from localhost for action retrieve-item got result code 200 and payload { "title": "Retrive PubSub node item", "node": "node-554817b9-4dd0-4d25-a1be-9c05efb48713", "item-id": "item-0d9cd305-e80d-4b56-9629-9a6457353905", "item": [ "<item id=\"item-0d9cd305-e80d-4b56-9629-9a6457353905\"><test>item-0d9cd305-e80d-4b56-9629-9a6457353905</test></item>" ] } 2023-07-31 22:31:17 | [Mutex] notify: [retrieved:item:item-0d9cd305-e80d-4b56-9629-9a6457353905:payload-matches:true:localhost] 2023-07-31 22:31:17 | [Mutex] received everything. 2023-07-31 22:31:17 | [Mutex] isItemNotified: retrieved:item:item-0d9cd305-e80d-4b56-9629-9a6457353905:payload-matches:true:localhost :: true |
retrieveUserSubscriptions | 0.048s |
2023-07-31 22:31:17 |
2023-07-31 22:31:17 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2023-07-31 22:31:17 | ------------------------------------ 2023-07-31 22:31:17 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload: { "jid": "admin@test-domain.com" } 2023-07-31 22:31:17 | from localhost for action retrieve-user-subscriptions got result code 200 and payload { "nodes": [ "node-554817b9-4dd0-4d25-a1be-9c05efb48713", "test", "node-e806a3f1-2078-47d9-ba14-d218cd3814e1" ] } |
retrieveUserSubscriptionsWithRegex | 0.047s |
2023-07-31 22:31:17 |
2023-07-31 22:31:17 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2023-07-31 22:31:17 | ------------------------------------ 2023-07-31 22:31:17 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload: { "jid": "admin@test-domain.com", "node-pattern": "(?!node-554817b9-4dd0-4d25-a1be-9c05efb48713)" } 2023-07-31 22:31:17 | from localhost for action retrieve-user-subscriptions got result code 200 and payload { "nodes": [ ] } |
subscribeNodes | 1.016s |
2023-07-31 22:31:16 |
2023-07-31 22:31:16 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2023-07-31 22:31:16 | ------------------------------------ 2023-07-31 22:31:16 | on localhost executing action subscribe-node with content type application/json and payload: { "node": "node-554817b9-4dd0-4d25-a1be-9c05efb48713", "jids": [ "admin@test-domain.com" ] } 2023-07-31 22:31:16 | from localhost for action subscribe-node got result code 200 and payload { "Note": "Operation successful" } |
unsubscribeNodes | 1.053s |
2023-07-31 22:31:17 |
2023-07-31 22:31:17 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2023-07-31 22:31:17 | ------------------------------------ 2023-07-31 22:31:17 | on localhost executing action unsubscribe-node with content type application/json and payload: { "node": "node-554817b9-4dd0-4d25-a1be-9c05efb48713", "jids": [ "admin@test-domain.com" ] } 2023-07-31 22:31:17 | from localhost for action unsubscribe-node got result code 200 and payload { "Note": "Operation successful" } |