Test duration : 8.727s
Passed Tests | ||
---|---|---|
tigase.tests.pubsub.TestRestApiUsingJSON | ||
configureNodes | 1.095s |
2022-10-10 23:11:32 |
2022-10-10 23:11:32 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-10-10 23:11:32 | ------------------------------------ 2022-10-10 23:11:32 | [Mutex] waiting for: [configured:node:node-2d7c010c-f093-4bd0-8a39-207732366b26:node-512d8980-39e5-4519-abc2-c19defe393e9] 2022-10-10 23:11:32 | [Mutex] received everything. 2022-10-10 23:11:32 | [Mutex] isItemNotified: configured:node:node-2d7c010c-f093-4bd0-8a39-207732366b26:node-512d8980-39e5-4519-abc2-c19defe393e9 :: true 2022-10-10 23:11:33 | [Mutex] waiting for: [received:nodes:c6787704-eee2-423c-ad01-438fba46fd8c:localhost] 2022-10-10 23:11:33 | [Mutex] received everything. 2022-10-10 23:11:33 | [Mutex] isItemNotified: received:node:c6787704-eee2-423c-ad01-438fba46fd8c:localhost:node-2d7c010c-f093-4bd0-8a39-207732366b26:Node 2d7c010c-f093-4bd0-8a39-207732366b26 :: true 2022-10-10 23:11:33 | [Mutex] waiting for: [received:nodes:c7521674-abdc-491f-9251-7c435381bc69:localhost] 2022-10-10 23:11:33 | [Mutex] received everything. 2022-10-10 23:11:33 | [Mutex] isItemNotified: received:node:c7521674-abdc-491f-9251-7c435381bc69:localhost:node-2d7c010c-f093-4bd0-8a39-207732366b26:Node 2d7c010c-f093-4bd0-8a39-207732366b26 :: false |
createNodes | 1.613s |
2022-10-10 23:11:30 |
2022-10-10 23:11:30 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-10-10 23:11:30 | ------------------------------------ 2022-10-10 23:11:30 | on localhost executing action create-node with content type application/json and payload: { "owner": "admin@test-domain.com", "pubsub#node_type": "leaf", "node": "node-2d7c010c-f093-4bd0-8a39-207732366b26", "pubsub#title": "Node 2d7c010c-f093-4bd0-8a39-207732366b26" } 2022-10-10 23:11:30 | from localhost for action create-node got result code 200 and payload { "Note": "Operation successful" } 2022-10-10 23:11:31 | [Mutex] waiting for: [received:nodes:d52785b6-b8e6-4f19-a0a7-346c9c08ac02:localhost] 2022-10-10 23:11:31 | [Mutex] received everything. 2022-10-10 23:11:31 | [Mutex] isItemNotified: received:node:d52785b6-b8e6-4f19-a0a7-346c9c08ac02:localhost:node-2d7c010c-f093-4bd0-8a39-207732366b26:Node 2d7c010c-f093-4bd0-8a39-207732366b26 :: true |
createSubnodes | 1.026s |
2022-10-10 23:11:31 |
2022-10-10 23:11:31 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-10-10 23:11:31 | ------------------------------------ 2022-10-10 23:11:31 | on localhost executing action create-node with content type application/json and payload: { "owner": "admin@test-domain.com", "pubsub#node_type": "collection", "node": "node-512d8980-39e5-4519-abc2-c19defe393e9", "pubsub#title": "Node 512d8980-39e5-4519-abc2-c19defe393e9" } 2022-10-10 23:11:31 | from localhost for action create-node got result code 200 and payload { "Note": "Operation successful" } 2022-10-10 23:11:32 | [Mutex] waiting for: [received:nodes:7d243c8b-fef2-4995-884b-e1627e06660b:localhost] 2022-10-10 23:11:32 | [Mutex] received everything. 2022-10-10 23:11:32 | [Mutex] isItemNotified: received:node:7d243c8b-fef2-4995-884b-e1627e06660b:localhost:node-512d8980-39e5-4519-abc2-c19defe393e9:Node 512d8980-39e5-4519-abc2-c19defe393e9 :: true |
deleteNodes | 1.016s |
2022-10-10 23:11:37 |
2022-10-10 23:11:37 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-10-10 23:11:37 | ------------------------------------ 2022-10-10 23:11:37 | on localhost executing action delete-node with content type application/json and payload: { "node": "node-512d8980-39e5-4519-abc2-c19defe393e9" } 2022-10-10 23:11:37 | from localhost for action delete-node got result code 200 and payload { "Note": "Operation successful" } 2022-10-10 23:11:38 | [Mutex] waiting for: [received:nodes:e25e4486-ab9b-4f2a-a623-69b0162ad3f1:localhost] 2022-10-10 23:11:38 | [Mutex] received everything. 2022-10-10 23:11:38 | [Mutex] isItemNotified: received:node:e25e4486-ab9b-4f2a-a623-69b0162ad3f1:localhost:node-512d8980-39e5-4519-abc2-c19defe393e9:Node 512d8980-39e5-4519-abc2-c19defe393e9 :: false |
deleteSubnodes | 1.026s |
2022-10-10 23:11:36 |
2022-10-10 23:11:36 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-10-10 23:11:36 | ------------------------------------ 2022-10-10 23:11:36 | on localhost executing action delete-node with content type application/json and payload: { "node": "node-2d7c010c-f093-4bd0-8a39-207732366b26" } 2022-10-10 23:11:36 | from localhost for action delete-node got result code 200 and payload { "Note": "Operation successful" } 2022-10-10 23:11:37 | [Mutex] waiting for: [received:nodes:ed492868-ba8b-4bb8-ad79-269b3138ce9c:localhost] 2022-10-10 23:11:37 | [Mutex] received everything. 2022-10-10 23:11:37 | [Mutex] isItemNotified: received:node:ed492868-ba8b-4bb8-ad79-269b3138ce9c:localhost:node-2d7c010c-f093-4bd0-8a39-207732366b26:Node 2d7c010c-f093-4bd0-8a39-207732366b26 :: false 2022-10-10 23:11:37 | [Mutex] waiting for: [received:nodes:f2e1b40d-93a3-4b93-9e34-6a6547ee3b2b:localhost] 2022-10-10 23:11:37 | [Mutex] received everything. 2022-10-10 23:11:37 | [Mutex] isItemNotified: received:node:f2e1b40d-93a3-4b93-9e34-6a6547ee3b2b:localhost:node-2d7c010c-f093-4bd0-8a39-207732366b26:Node 2d7c010c-f093-4bd0-8a39-207732366b26 :: false |
publishItemsToNodes | 0.057s |
2022-10-10 23:11:34 |
2022-10-10 23:11:34 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-10-10 23:11:34 | ------------------------------------ 2022-10-10 23:11:34 | on localhost executing action publish-item with content type application/json and payload: { "node": "node-2d7c010c-f093-4bd0-8a39-207732366b26", "entry": "<test>item-491660e3-c89d-41c5-a26d-e70e931912bf</test>", "item-id": "item-491660e3-c89d-41c5-a26d-e70e931912bf" } 2022-10-10 23:11:34 | from localhost for action publish-item got result code 200 and payload { "Note": "Operation successful", "item-id": "item-491660e3-c89d-41c5-a26d-e70e931912bf" } 2022-10-10 23:11:34 | [Mutex] received everything. 2022-10-10 23:11:34 | [Mutex] isItemNotified: published:item:notifieditem-491660e3-c89d-41c5-a26d-e70e931912bf:admin@test-domain.com :: true |
retractItemsFromNodes | 0.058s |
2022-10-10 23:11:35 |
2022-10-10 23:11:35 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-10-10 23:11:35 | ------------------------------------ 2022-10-10 23:11:35 | on localhost executing action delete-item with content type application/json and payload: { "node": "node-2d7c010c-f093-4bd0-8a39-207732366b26", "item-id": "item-491660e3-c89d-41c5-a26d-e70e931912bf" } 2022-10-10 23:11:35 | from localhost for action delete-item got result code 200 and payload { "Note": "Operation successful", "item-id": "item-491660e3-c89d-41c5-a26d-e70e931912bf" } 2022-10-10 23:11:35 | [Mutex] received everything. 2022-10-10 23:11:35 | [Mutex] isItemNotified: retracted:item:notifieditem-491660e3-c89d-41c5-a26d-e70e931912bf:admin@test-domain.com :: true |
retrieveItemsFromNodes | 0.091s |
2022-10-10 23:11:34 |
2022-10-10 23:11:34 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-10-10 23:11:34 | ------------------------------------ 2022-10-10 23:11:34 | on localhost executing action retrieve-item with content type application/json and payload: { "node": "node-2d7c010c-f093-4bd0-8a39-207732366b26", "item-id": "item-491660e3-c89d-41c5-a26d-e70e931912bf" } 2022-10-10 23:11:34 | from localhost for action retrieve-item got result code 200 and payload { "title": "Retrive PubSub node item", "node": "node-2d7c010c-f093-4bd0-8a39-207732366b26", "item-id": "item-491660e3-c89d-41c5-a26d-e70e931912bf", "item": [ "<item id=\"item-491660e3-c89d-41c5-a26d-e70e931912bf\"><test>item-491660e3-c89d-41c5-a26d-e70e931912bf</test></item>" ] } 2022-10-10 23:11:34 | [Mutex] notify: [retrieved:item:item-491660e3-c89d-41c5-a26d-e70e931912bf:payload-matches:true:localhost] 2022-10-10 23:11:34 | [Mutex] received everything. 2022-10-10 23:11:34 | [Mutex] isItemNotified: retrieved:item:item-491660e3-c89d-41c5-a26d-e70e931912bf:payload-matches:true:localhost :: true |
retrieveUserSubscriptions | 0.046s |
2022-10-10 23:11:34 |
2022-10-10 23:11:34 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-10-10 23:11:34 | ------------------------------------ 2022-10-10 23:11:34 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload: { "jid": "admin@test-domain.com" } 2022-10-10 23:11:35 | from localhost for action retrieve-user-subscriptions got result code 200 and payload { "nodes": [ "test", "node-2d7c010c-f093-4bd0-8a39-207732366b26", "node-512d8980-39e5-4519-abc2-c19defe393e9" ] } |
retrieveUserSubscriptionsWithRegex | 0.048s |
2022-10-10 23:11:35 |
2022-10-10 23:11:35 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-10-10 23:11:35 | ------------------------------------ 2022-10-10 23:11:35 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload: { "jid": "admin@test-domain.com", "node-pattern": "(?!node-2d7c010c-f093-4bd0-8a39-207732366b26)" } 2022-10-10 23:11:35 | from localhost for action retrieve-user-subscriptions got result code 200 and payload { "nodes": [ ] } |
subscribeNodes | 1.010s |
2022-10-10 23:11:33 |
2022-10-10 23:11:33 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-10-10 23:11:33 | ------------------------------------ 2022-10-10 23:11:33 | on localhost executing action subscribe-node with content type application/json and payload: { "node": "node-2d7c010c-f093-4bd0-8a39-207732366b26", "jids": [ "admin@test-domain.com" ] } 2022-10-10 23:11:33 | from localhost for action subscribe-node got result code 200 and payload { "Note": "Operation successful" } |
unsubscribeNodes | 1.056s |
2022-10-10 23:11:35 |
2022-10-10 23:11:35 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-10-10 23:11:35 | ------------------------------------ 2022-10-10 23:11:35 | on localhost executing action unsubscribe-node with content type application/json and payload: { "node": "node-2d7c010c-f093-4bd0-8a39-207732366b26", "jids": [ "admin@test-domain.com" ] } 2022-10-10 23:11:35 | from localhost for action unsubscribe-node got result code 200 and payload { "Note": "Operation successful" } |