Test duration : 8.541s
Passed Tests | ||
---|---|---|
tigase.tests.pubsub.TestRestApiUsingJSON | ||
configureNodes | 1.113s |
2023-03-24 23:01:40 |
2023-03-24 23:01:40 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2023-03-24 23:01:40 | ------------------------------------ 2023-03-24 23:01:40 | [Mutex] waiting for: [configured:node:node-f151ecc6-9688-4047-a38e-9b4fb2ac1997:node-12e0573a-d2d7-4c6c-b2a0-62fd163d84cb] 2023-03-24 23:01:41 | [Mutex] received everything. 2023-03-24 23:01:41 | [Mutex] isItemNotified: configured:node:node-f151ecc6-9688-4047-a38e-9b4fb2ac1997:node-12e0573a-d2d7-4c6c-b2a0-62fd163d84cb :: true 2023-03-24 23:01:42 | [Mutex] waiting for: [received:nodes:2992da98-2560-403d-a981-98e8d1fb3c0e:localhost] 2023-03-24 23:01:42 | [Mutex] received everything. 2023-03-24 23:01:42 | [Mutex] isItemNotified: received:node:2992da98-2560-403d-a981-98e8d1fb3c0e:localhost:node-f151ecc6-9688-4047-a38e-9b4fb2ac1997:Node f151ecc6-9688-4047-a38e-9b4fb2ac1997 :: true 2023-03-24 23:01:42 | [Mutex] waiting for: [received:nodes:4dd7f49e-bafb-4f55-b51f-3c496270d6b4:localhost] 2023-03-24 23:01:42 | [Mutex] waiting for: [received:nodes:4dd7f49e-bafb-4f55-b51f-3c496270d6b4:localhost] 2023-03-24 23:01:42 | [Mutex] waiting for: [received:nodes:4dd7f49e-bafb-4f55-b51f-3c496270d6b4:localhost] 2023-03-24 23:01:42 | [Mutex] waiting for: [received:nodes:4dd7f49e-bafb-4f55-b51f-3c496270d6b4:localhost] 2023-03-24 23:01:42 | [Mutex] received everything. 2023-03-24 23:01:42 | [Mutex] isItemNotified: received:node:4dd7f49e-bafb-4f55-b51f-3c496270d6b4:localhost:node-f151ecc6-9688-4047-a38e-9b4fb2ac1997:Node f151ecc6-9688-4047-a38e-9b4fb2ac1997 :: false |
createNodes | 1.508s |
2023-03-24 23:01:38 |
2023-03-24 23:01:38 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2023-03-24 23:01:38 | ------------------------------------ 2023-03-24 23:01:38 | on localhost executing action create-node with content type application/json and payload: { "owner": "admin@test-domain.com", "pubsub#node_type": "leaf", "node": "node-f151ecc6-9688-4047-a38e-9b4fb2ac1997", "pubsub#title": "Node f151ecc6-9688-4047-a38e-9b4fb2ac1997" } 2023-03-24 23:01:38 | from localhost for action create-node got result code 200 and payload { "Note": "Operation successful" } 2023-03-24 23:01:39 | [Mutex] waiting for: [received:nodes:1ed408aa-d9df-4662-8e86-76cb5b1c2a6d:localhost] 2023-03-24 23:01:39 | [Mutex] waiting for: [received:nodes:1ed408aa-d9df-4662-8e86-76cb5b1c2a6d:localhost] 2023-03-24 23:01:39 | [Mutex] waiting for: [received:nodes:1ed408aa-d9df-4662-8e86-76cb5b1c2a6d:localhost] 2023-03-24 23:01:39 | [Mutex] waiting for: [received:nodes:1ed408aa-d9df-4662-8e86-76cb5b1c2a6d:localhost] 2023-03-24 23:01:39 | [Mutex] received everything. 2023-03-24 23:01:39 | [Mutex] isItemNotified: received:node:1ed408aa-d9df-4662-8e86-76cb5b1c2a6d:localhost:node-f151ecc6-9688-4047-a38e-9b4fb2ac1997:Node f151ecc6-9688-4047-a38e-9b4fb2ac1997 :: true |
createSubnodes | 1.068s |
2023-03-24 23:01:39 |
2023-03-24 23:01:39 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2023-03-24 23:01:39 | ------------------------------------ 2023-03-24 23:01:39 | on localhost executing action create-node with content type application/json and payload: { "owner": "admin@test-domain.com", "pubsub#node_type": "collection", "node": "node-12e0573a-d2d7-4c6c-b2a0-62fd163d84cb", "pubsub#title": "Node 12e0573a-d2d7-4c6c-b2a0-62fd163d84cb" } 2023-03-24 23:01:39 | from localhost for action create-node got result code 200 and payload { "Note": "Operation successful" } 2023-03-24 23:01:40 | [Mutex] waiting for: [received:nodes:e1d3a745-8f4b-4d0c-8ece-3620ecd4c65b:localhost] 2023-03-24 23:01:40 | [Mutex] waiting for: [received:nodes:e1d3a745-8f4b-4d0c-8ece-3620ecd4c65b:localhost] 2023-03-24 23:01:40 | [Mutex] waiting for: [received:nodes:e1d3a745-8f4b-4d0c-8ece-3620ecd4c65b:localhost] 2023-03-24 23:01:40 | [Mutex] received everything. 2023-03-24 23:01:40 | [Mutex] isItemNotified: received:node:e1d3a745-8f4b-4d0c-8ece-3620ecd4c65b:localhost:node-12e0573a-d2d7-4c6c-b2a0-62fd163d84cb:Node 12e0573a-d2d7-4c6c-b2a0-62fd163d84cb :: true |
deleteNodes | 1.021s |
2023-03-24 23:01:45 |
2023-03-24 23:01:45 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2023-03-24 23:01:45 | ------------------------------------ 2023-03-24 23:01:45 | on localhost executing action delete-node with content type application/json and payload: { "node": "node-12e0573a-d2d7-4c6c-b2a0-62fd163d84cb" } 2023-03-24 23:01:45 | from localhost for action delete-node got result code 200 and payload { "Note": "Operation successful" } 2023-03-24 23:01:46 | [Mutex] waiting for: [received:nodes:4edbaec7-a176-47fc-b9c0-b5e6754ef98e:localhost] 2023-03-24 23:01:46 | [Mutex] waiting for: [received:nodes:4edbaec7-a176-47fc-b9c0-b5e6754ef98e:localhost] 2023-03-24 23:01:46 | [Mutex] waiting for: [received:nodes:4edbaec7-a176-47fc-b9c0-b5e6754ef98e:localhost] 2023-03-24 23:01:46 | [Mutex] received everything. 2023-03-24 23:01:46 | [Mutex] isItemNotified: received:node:4edbaec7-a176-47fc-b9c0-b5e6754ef98e:localhost:node-12e0573a-d2d7-4c6c-b2a0-62fd163d84cb:Node 12e0573a-d2d7-4c6c-b2a0-62fd163d84cb :: false |
deleteSubnodes | 1.029s |
2023-03-24 23:01:44 |
2023-03-24 23:01:44 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2023-03-24 23:01:44 | ------------------------------------ 2023-03-24 23:01:44 | on localhost executing action delete-node with content type application/json and payload: { "node": "node-f151ecc6-9688-4047-a38e-9b4fb2ac1997" } 2023-03-24 23:01:44 | from localhost for action delete-node got result code 200 and payload { "Note": "Operation successful" } 2023-03-24 23:01:45 | [Mutex] waiting for: [received:nodes:ffe41611-c616-481c-934a-aa76cb355078:localhost] 2023-03-24 23:01:45 | [Mutex] waiting for: [received:nodes:ffe41611-c616-481c-934a-aa76cb355078:localhost] 2023-03-24 23:01:45 | [Mutex] waiting for: [received:nodes:ffe41611-c616-481c-934a-aa76cb355078:localhost] 2023-03-24 23:01:45 | [Mutex] waiting for: [received:nodes:ffe41611-c616-481c-934a-aa76cb355078:localhost] 2023-03-24 23:01:45 | [Mutex] received everything. 2023-03-24 23:01:45 | [Mutex] isItemNotified: received:node:ffe41611-c616-481c-934a-aa76cb355078:localhost:node-f151ecc6-9688-4047-a38e-9b4fb2ac1997:Node f151ecc6-9688-4047-a38e-9b4fb2ac1997 :: false 2023-03-24 23:01:45 | [Mutex] waiting for: [received:nodes:2ecc1d6d-1a2d-42c0-a034-43b1b763241f:localhost] 2023-03-24 23:01:45 | [Mutex] received everything. 2023-03-24 23:01:45 | [Mutex] isItemNotified: received:node:2ecc1d6d-1a2d-42c0-a034-43b1b763241f:localhost:node-f151ecc6-9688-4047-a38e-9b4fb2ac1997:Node f151ecc6-9688-4047-a38e-9b4fb2ac1997 :: false |
publishItemsToNodes | 0.047s |
2023-03-24 23:01:43 |
2023-03-24 23:01:43 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2023-03-24 23:01:43 | ------------------------------------ 2023-03-24 23:01:43 | on localhost executing action publish-item with content type application/json and payload: { "node": "node-f151ecc6-9688-4047-a38e-9b4fb2ac1997", "entry": "<test>item-5f1d81b4-e633-428e-ab01-7b4303f7212d</test>", "item-id": "item-5f1d81b4-e633-428e-ab01-7b4303f7212d" } 2023-03-24 23:01:43 | from localhost for action publish-item got result code 200 and payload { "Note": "Operation successful", "item-id": "item-5f1d81b4-e633-428e-ab01-7b4303f7212d" } 2023-03-24 23:01:43 | [Mutex] waiting for: [published:item:notifieditem-5f1d81b4-e633-428e-ab01-7b4303f7212d:admin@test-domain.com] 2023-03-24 23:01:43 | [Mutex] received everything. 2023-03-24 23:01:43 | [Mutex] isItemNotified: published:item:notifieditem-5f1d81b4-e633-428e-ab01-7b4303f7212d:admin@test-domain.com :: true |
retractItemsFromNodes | 0.055s |
2023-03-24 23:01:43 |
2023-03-24 23:01:43 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2023-03-24 23:01:43 | ------------------------------------ 2023-03-24 23:01:43 | on localhost executing action delete-item with content type application/json and payload: { "node": "node-f151ecc6-9688-4047-a38e-9b4fb2ac1997", "item-id": "item-5f1d81b4-e633-428e-ab01-7b4303f7212d" } 2023-03-24 23:01:43 | from localhost for action delete-item got result code 200 and payload { "Note": "Operation successful", "item-id": "item-5f1d81b4-e633-428e-ab01-7b4303f7212d" } 2023-03-24 23:01:43 | [Mutex] received everything. 2023-03-24 23:01:43 | [Mutex] isItemNotified: retracted:item:notifieditem-5f1d81b4-e633-428e-ab01-7b4303f7212d:admin@test-domain.com :: true |
retrieveItemsFromNodes | 0.078s |
2023-03-24 23:01:43 |
2023-03-24 23:01:43 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2023-03-24 23:01:43 | ------------------------------------ 2023-03-24 23:01:43 | on localhost executing action retrieve-item with content type application/json and payload: { "node": "node-f151ecc6-9688-4047-a38e-9b4fb2ac1997", "item-id": "item-5f1d81b4-e633-428e-ab01-7b4303f7212d" } 2023-03-24 23:01:43 | from localhost for action retrieve-item got result code 200 and payload { "title": "Retrive PubSub node item", "node": "node-f151ecc6-9688-4047-a38e-9b4fb2ac1997", "item-id": "item-5f1d81b4-e633-428e-ab01-7b4303f7212d", "item": [ "<item id=\"item-5f1d81b4-e633-428e-ab01-7b4303f7212d\"><test>item-5f1d81b4-e633-428e-ab01-7b4303f7212d</test></item>" ] } 2023-03-24 23:01:43 | [Mutex] notify: [retrieved:item:item-5f1d81b4-e633-428e-ab01-7b4303f7212d:payload-matches:true:localhost] 2023-03-24 23:01:43 | [Mutex] received everything. 2023-03-24 23:01:43 | [Mutex] isItemNotified: retrieved:item:item-5f1d81b4-e633-428e-ab01-7b4303f7212d:payload-matches:true:localhost :: true |
retrieveUserSubscriptions | 0.047s |
2023-03-24 23:01:43 |
2023-03-24 23:01:43 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2023-03-24 23:01:43 | ------------------------------------ 2023-03-24 23:01:43 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload: { "jid": "admin@test-domain.com" } 2023-03-24 23:01:43 | from localhost for action retrieve-user-subscriptions got result code 200 and payload { "nodes": [ "test", "node-12e0573a-d2d7-4c6c-b2a0-62fd163d84cb", "node-f151ecc6-9688-4047-a38e-9b4fb2ac1997" ] } |
retrieveUserSubscriptionsWithRegex | 0.047s |
2023-03-24 23:01:43 |
2023-03-24 23:01:43 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2023-03-24 23:01:43 | ------------------------------------ 2023-03-24 23:01:43 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload: { "jid": "admin@test-domain.com", "node-pattern": "(?!node-f151ecc6-9688-4047-a38e-9b4fb2ac1997)" } 2023-03-24 23:01:43 | from localhost for action retrieve-user-subscriptions got result code 200 and payload { "nodes": [ ] } |
subscribeNodes | 1.012s |
2023-03-24 23:01:42 |
2023-03-24 23:01:42 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2023-03-24 23:01:42 | ------------------------------------ 2023-03-24 23:01:42 | on localhost executing action subscribe-node with content type application/json and payload: { "node": "node-f151ecc6-9688-4047-a38e-9b4fb2ac1997", "jids": [ "admin@test-domain.com" ] } 2023-03-24 23:01:42 | from localhost for action subscribe-node got result code 200 and payload { "Note": "Operation successful" } |
unsubscribeNodes | 1.067s |
2023-03-24 23:01:43 |
2023-03-24 23:01:43 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2023-03-24 23:01:43 | ------------------------------------ 2023-03-24 23:01:43 | on localhost executing action unsubscribe-node with content type application/json and payload: { "node": "node-f151ecc6-9688-4047-a38e-9b4fb2ac1997", "jids": [ "admin@test-domain.com" ] } 2023-03-24 23:01:43 | from localhost for action unsubscribe-node got result code 200 and payload { "Note": "Operation successful" } |