Test duration : 8.551s
Passed Tests | ||
---|---|---|
tigase.tests.pubsub.TestRestApiUsingJSON | ||
configureNodes | 1.100s |
2023-01-10 21:29:34 |
2023-01-10 21:29:34 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2023-01-10 21:29:34 | ------------------------------------ 2023-01-10 21:29:34 | [Mutex] waiting for: [configured:node:node-c17c9d28-8503-4c21-b6d0-635ce5590876:node-0d6dbb58-af83-4077-9c7a-1d0c5da0a7a9] 2023-01-10 21:29:35 | [Mutex] received everything. 2023-01-10 21:29:35 | [Mutex] isItemNotified: configured:node:node-c17c9d28-8503-4c21-b6d0-635ce5590876:node-0d6dbb58-af83-4077-9c7a-1d0c5da0a7a9 :: true 2023-01-10 21:29:36 | [Mutex] waiting for: [received:nodes:7e324ce8-28ce-44d2-9d8e-bb1fc56004b3:localhost] 2023-01-10 21:29:36 | [Mutex] received everything. 2023-01-10 21:29:36 | [Mutex] isItemNotified: received:node:7e324ce8-28ce-44d2-9d8e-bb1fc56004b3:localhost:node-c17c9d28-8503-4c21-b6d0-635ce5590876:Node c17c9d28-8503-4c21-b6d0-635ce5590876 :: true 2023-01-10 21:29:36 | [Mutex] waiting for: [received:nodes:1812da26-dfe1-412f-a9b3-abb53cb59a0b:localhost] 2023-01-10 21:29:36 | [Mutex] waiting for: [received:nodes:1812da26-dfe1-412f-a9b3-abb53cb59a0b:localhost] 2023-01-10 21:29:36 | [Mutex] waiting for: [received:nodes:1812da26-dfe1-412f-a9b3-abb53cb59a0b:localhost] 2023-01-10 21:29:36 | [Mutex] received everything. 2023-01-10 21:29:36 | [Mutex] isItemNotified: received:node:1812da26-dfe1-412f-a9b3-abb53cb59a0b:localhost:node-c17c9d28-8503-4c21-b6d0-635ce5590876:Node c17c9d28-8503-4c21-b6d0-635ce5590876 :: false |
createNodes | 1.534s |
2023-01-10 21:29:32 |
2023-01-10 21:29:32 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2023-01-10 21:29:32 | ------------------------------------ 2023-01-10 21:29:32 | on localhost executing action create-node with content type application/json and payload: { "owner": "admin@test-domain.com", "pubsub#node_type": "leaf", "node": "node-c17c9d28-8503-4c21-b6d0-635ce5590876", "pubsub#title": "Node c17c9d28-8503-4c21-b6d0-635ce5590876" } 2023-01-10 21:29:32 | from localhost for action create-node got result code 200 and payload { "Note": "Operation successful" } 2023-01-10 21:29:33 | [Mutex] waiting for: [received:nodes:5535ace4-5d9f-4bed-907a-e7281dd06ce0:localhost] 2023-01-10 21:29:33 | [Mutex] waiting for: [received:nodes:5535ace4-5d9f-4bed-907a-e7281dd06ce0:localhost] 2023-01-10 21:29:33 | [Mutex] waiting for: [received:nodes:5535ace4-5d9f-4bed-907a-e7281dd06ce0:localhost] 2023-01-10 21:29:33 | [Mutex] waiting for: [received:nodes:5535ace4-5d9f-4bed-907a-e7281dd06ce0:localhost] 2023-01-10 21:29:33 | [Mutex] received everything. 2023-01-10 21:29:33 | [Mutex] isItemNotified: received:node:5535ace4-5d9f-4bed-907a-e7281dd06ce0:localhost:node-c17c9d28-8503-4c21-b6d0-635ce5590876:Node c17c9d28-8503-4c21-b6d0-635ce5590876 :: true |
createSubnodes | 1.024s |
2023-01-10 21:29:33 |
2023-01-10 21:29:33 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2023-01-10 21:29:33 | ------------------------------------ 2023-01-10 21:29:33 | on localhost executing action create-node with content type application/json and payload: { "owner": "admin@test-domain.com", "pubsub#node_type": "collection", "node": "node-0d6dbb58-af83-4077-9c7a-1d0c5da0a7a9", "pubsub#title": "Node 0d6dbb58-af83-4077-9c7a-1d0c5da0a7a9" } 2023-01-10 21:29:33 | from localhost for action create-node got result code 200 and payload { "Note": "Operation successful" } 2023-01-10 21:29:34 | [Mutex] waiting for: [received:nodes:95a6b493-d701-4aca-b9dd-c472bb218641:localhost] 2023-01-10 21:29:34 | [Mutex] waiting for: [received:nodes:95a6b493-d701-4aca-b9dd-c472bb218641:localhost] 2023-01-10 21:29:34 | [Mutex] waiting for: [received:nodes:95a6b493-d701-4aca-b9dd-c472bb218641:localhost] 2023-01-10 21:29:34 | [Mutex] waiting for: [received:nodes:95a6b493-d701-4aca-b9dd-c472bb218641:localhost] 2023-01-10 21:29:34 | [Mutex] waiting for: [received:nodes:95a6b493-d701-4aca-b9dd-c472bb218641:localhost] 2023-01-10 21:29:34 | [Mutex] received everything. 2023-01-10 21:29:34 | [Mutex] isItemNotified: received:node:95a6b493-d701-4aca-b9dd-c472bb218641:localhost:node-0d6dbb58-af83-4077-9c7a-1d0c5da0a7a9:Node 0d6dbb58-af83-4077-9c7a-1d0c5da0a7a9 :: true |
deleteNodes | 1.027s |
2023-01-10 21:29:39 |
2023-01-10 21:29:39 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2023-01-10 21:29:39 | ------------------------------------ 2023-01-10 21:29:39 | on localhost executing action delete-node with content type application/json and payload: { "node": "node-0d6dbb58-af83-4077-9c7a-1d0c5da0a7a9" } 2023-01-10 21:29:39 | from localhost for action delete-node got result code 200 and payload { "Note": "Operation successful" } 2023-01-10 21:29:40 | [Mutex] waiting for: [received:nodes:f995bd4a-7592-4fac-ae1f-ba8d53136097:localhost] 2023-01-10 21:29:40 | [Mutex] waiting for: [received:nodes:f995bd4a-7592-4fac-ae1f-ba8d53136097:localhost] 2023-01-10 21:29:40 | [Mutex] waiting for: [received:nodes:f995bd4a-7592-4fac-ae1f-ba8d53136097:localhost] 2023-01-10 21:29:40 | [Mutex] received everything. 2023-01-10 21:29:40 | [Mutex] isItemNotified: received:node:f995bd4a-7592-4fac-ae1f-ba8d53136097:localhost:node-0d6dbb58-af83-4077-9c7a-1d0c5da0a7a9:Node 0d6dbb58-af83-4077-9c7a-1d0c5da0a7a9 :: false |
deleteSubnodes | 1.024s |
2023-01-10 21:29:38 |
2023-01-10 21:29:38 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2023-01-10 21:29:38 | ------------------------------------ 2023-01-10 21:29:38 | on localhost executing action delete-node with content type application/json and payload: { "node": "node-c17c9d28-8503-4c21-b6d0-635ce5590876" } 2023-01-10 21:29:38 | from localhost for action delete-node got result code 200 and payload { "Note": "Operation successful" } 2023-01-10 21:29:39 | [Mutex] waiting for: [received:nodes:9a503e98-98d3-4d32-96e3-0fed07f8daa9:localhost] 2023-01-10 21:29:39 | [Mutex] waiting for: [received:nodes:9a503e98-98d3-4d32-96e3-0fed07f8daa9:localhost] 2023-01-10 21:29:39 | [Mutex] waiting for: [received:nodes:9a503e98-98d3-4d32-96e3-0fed07f8daa9:localhost] 2023-01-10 21:29:39 | [Mutex] received everything. 2023-01-10 21:29:39 | [Mutex] isItemNotified: received:node:9a503e98-98d3-4d32-96e3-0fed07f8daa9:localhost:node-c17c9d28-8503-4c21-b6d0-635ce5590876:Node c17c9d28-8503-4c21-b6d0-635ce5590876 :: false 2023-01-10 21:29:39 | [Mutex] waiting for: [received:nodes:e9acf1bd-3700-44d8-83f4-2899df8ade2d:localhost] 2023-01-10 21:29:39 | [Mutex] received everything. 2023-01-10 21:29:39 | [Mutex] isItemNotified: received:node:e9acf1bd-3700-44d8-83f4-2899df8ade2d:localhost:node-c17c9d28-8503-4c21-b6d0-635ce5590876:Node c17c9d28-8503-4c21-b6d0-635ce5590876 :: false |
publishItemsToNodes | 0.068s |
2023-01-10 21:29:37 |
2023-01-10 21:29:37 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2023-01-10 21:29:37 | ------------------------------------ 2023-01-10 21:29:37 | on localhost executing action publish-item with content type application/json and payload: { "node": "node-c17c9d28-8503-4c21-b6d0-635ce5590876", "entry": "<test>item-7d410892-86c5-4c5a-9e85-5bc1af6738a3</test>", "item-id": "item-7d410892-86c5-4c5a-9e85-5bc1af6738a3" } 2023-01-10 21:29:37 | from localhost for action publish-item got result code 200 and payload { "Note": "Operation successful", "item-id": "item-7d410892-86c5-4c5a-9e85-5bc1af6738a3" } 2023-01-10 21:29:37 | [Mutex] waiting for: [published:item:notifieditem-7d410892-86c5-4c5a-9e85-5bc1af6738a3:admin@test-domain.com] 2023-01-10 21:29:37 | [Mutex] received everything. 2023-01-10 21:29:37 | [Mutex] isItemNotified: published:item:notifieditem-7d410892-86c5-4c5a-9e85-5bc1af6738a3:admin@test-domain.com :: true |
retractItemsFromNodes | 0.054s |
2023-01-10 21:29:37 |
2023-01-10 21:29:37 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2023-01-10 21:29:37 | ------------------------------------ 2023-01-10 21:29:37 | on localhost executing action delete-item with content type application/json and payload: { "node": "node-c17c9d28-8503-4c21-b6d0-635ce5590876", "item-id": "item-7d410892-86c5-4c5a-9e85-5bc1af6738a3" } 2023-01-10 21:29:37 | from localhost for action delete-item got result code 200 and payload { "Note": "Operation successful", "item-id": "item-7d410892-86c5-4c5a-9e85-5bc1af6738a3" } 2023-01-10 21:29:37 | [Mutex] received everything. 2023-01-10 21:29:37 | [Mutex] isItemNotified: retracted:item:notifieditem-7d410892-86c5-4c5a-9e85-5bc1af6738a3:admin@test-domain.com :: true |
retrieveItemsFromNodes | 0.018s |
2023-01-10 21:29:37 |
2023-01-10 21:29:37 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2023-01-10 21:29:37 | ------------------------------------ 2023-01-10 21:29:37 | on localhost executing action retrieve-item with content type application/json and payload: { "node": "node-c17c9d28-8503-4c21-b6d0-635ce5590876", "item-id": "item-7d410892-86c5-4c5a-9e85-5bc1af6738a3" } 2023-01-10 21:29:37 | from localhost for action retrieve-item got result code 200 and payload { "title": "Retrive PubSub node item", "node": "node-c17c9d28-8503-4c21-b6d0-635ce5590876", "item-id": "item-7d410892-86c5-4c5a-9e85-5bc1af6738a3", "item": [ "<item id=\"item-7d410892-86c5-4c5a-9e85-5bc1af6738a3\"><test>item-7d410892-86c5-4c5a-9e85-5bc1af6738a3</test></item>" ] } 2023-01-10 21:29:37 | [Mutex] notify: [retrieved:item:item-7d410892-86c5-4c5a-9e85-5bc1af6738a3:payload-matches:true:localhost] 2023-01-10 21:29:37 | [Mutex] received everything. 2023-01-10 21:29:37 | [Mutex] isItemNotified: retrieved:item:item-7d410892-86c5-4c5a-9e85-5bc1af6738a3:payload-matches:true:localhost :: true |
retrieveUserSubscriptions | 0.049s |
2023-01-10 21:29:37 |
2023-01-10 21:29:37 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2023-01-10 21:29:37 | ------------------------------------ 2023-01-10 21:29:37 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload: { "jid": "admin@test-domain.com" } 2023-01-10 21:29:37 | from localhost for action retrieve-user-subscriptions got result code 200 and payload { "nodes": [ "test", "node-0d6dbb58-af83-4077-9c7a-1d0c5da0a7a9", "node-c17c9d28-8503-4c21-b6d0-635ce5590876" ] } |
retrieveUserSubscriptionsWithRegex | 0.047s |
2023-01-10 21:29:37 |
2023-01-10 21:29:37 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2023-01-10 21:29:37 | ------------------------------------ 2023-01-10 21:29:37 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload: { "jid": "admin@test-domain.com", "node-pattern": "(?!node-c17c9d28-8503-4c21-b6d0-635ce5590876)" } 2023-01-10 21:29:37 | from localhost for action retrieve-user-subscriptions got result code 200 and payload { "nodes": [ ] } |
subscribeNodes | 1.009s |
2023-01-10 21:29:36 |
2023-01-10 21:29:36 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2023-01-10 21:29:36 | ------------------------------------ 2023-01-10 21:29:36 | on localhost executing action subscribe-node with content type application/json and payload: { "node": "node-c17c9d28-8503-4c21-b6d0-635ce5590876", "jids": [ "admin@test-domain.com" ] } 2023-01-10 21:29:36 | from localhost for action subscribe-node got result code 200 and payload { "Note": "Operation successful" } |
unsubscribeNodes | 1.075s |
2023-01-10 21:29:37 |
2023-01-10 21:29:37 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2023-01-10 21:29:37 | ------------------------------------ 2023-01-10 21:29:37 | on localhost executing action unsubscribe-node with content type application/json and payload: { "node": "node-c17c9d28-8503-4c21-b6d0-635ce5590876", "jids": [ "admin@test-domain.com" ] } 2023-01-10 21:29:37 | from localhost for action unsubscribe-node got result code 200 and payload { "Note": "Operation successful" } |