Test duration : 8.593s
Passed Tests | ||
---|---|---|
tigase.tests.pubsub.TestRestApiUsingJSON | ||
configureNodes | 1.094s |
2023-06-22 23:00:05 |
2023-06-22 23:00:05 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2023-06-22 23:00:05 | ------------------------------------ 2023-06-22 23:00:05 | [Mutex] waiting for: [configured:node:node-1566f99c-a54f-453e-903b-4b8c36433c1d:node-e1dbc5ce-de4d-43f9-b30b-f30263c15e9d] 2023-06-22 23:00:05 | [Mutex] received everything. 2023-06-22 23:00:05 | [Mutex] isItemNotified: configured:node:node-1566f99c-a54f-453e-903b-4b8c36433c1d:node-e1dbc5ce-de4d-43f9-b30b-f30263c15e9d :: true 2023-06-22 23:00:06 | [Mutex] waiting for: [received:nodes:edc6c730-e766-4287-9b03-07f181fda0a5:localhost] 2023-06-22 23:00:06 | [Mutex] received everything. 2023-06-22 23:00:06 | [Mutex] isItemNotified: received:node:edc6c730-e766-4287-9b03-07f181fda0a5:localhost:node-1566f99c-a54f-453e-903b-4b8c36433c1d:Node 1566f99c-a54f-453e-903b-4b8c36433c1d :: true 2023-06-22 23:00:06 | [Mutex] waiting for: [received:nodes:3c66c178-2dee-4fb3-a194-b921a9d70583:localhost] 2023-06-22 23:00:06 | [Mutex] waiting for: [received:nodes:3c66c178-2dee-4fb3-a194-b921a9d70583:localhost] 2023-06-22 23:00:06 | [Mutex] waiting for: [received:nodes:3c66c178-2dee-4fb3-a194-b921a9d70583:localhost] 2023-06-22 23:00:06 | [Mutex] received everything. 2023-06-22 23:00:06 | [Mutex] isItemNotified: received:node:3c66c178-2dee-4fb3-a194-b921a9d70583:localhost:node-1566f99c-a54f-453e-903b-4b8c36433c1d:Node 1566f99c-a54f-453e-903b-4b8c36433c1d :: false |
createNodes | 1.564s |
2023-06-22 23:00:02 |
2023-06-22 23:00:02 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2023-06-22 23:00:02 | ------------------------------------ 2023-06-22 23:00:03 | on localhost executing action create-node with content type application/json and payload: { "owner": "admin@test-domain.com", "pubsub#node_type": "leaf", "node": "node-1566f99c-a54f-453e-903b-4b8c36433c1d", "pubsub#title": "Node 1566f99c-a54f-453e-903b-4b8c36433c1d" } 2023-06-22 23:00:03 | from localhost for action create-node got result code 200 and payload { "Note": "Operation successful" } 2023-06-22 23:00:04 | [Mutex] waiting for: [received:nodes:f5f3401b-ed56-442a-b845-85635ab66bbf:localhost] 2023-06-22 23:00:04 | [Mutex] received everything. 2023-06-22 23:00:04 | [Mutex] isItemNotified: received:node:f5f3401b-ed56-442a-b845-85635ab66bbf:localhost:node-1566f99c-a54f-453e-903b-4b8c36433c1d:Node 1566f99c-a54f-453e-903b-4b8c36433c1d :: true |
createSubnodes | 1.020s |
2023-06-22 23:00:04 |
2023-06-22 23:00:04 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2023-06-22 23:00:04 | ------------------------------------ 2023-06-22 23:00:04 | on localhost executing action create-node with content type application/json and payload: { "owner": "admin@test-domain.com", "pubsub#node_type": "collection", "node": "node-e1dbc5ce-de4d-43f9-b30b-f30263c15e9d", "pubsub#title": "Node e1dbc5ce-de4d-43f9-b30b-f30263c15e9d" } 2023-06-22 23:00:04 | from localhost for action create-node got result code 200 and payload { "Note": "Operation successful" } 2023-06-22 23:00:05 | [Mutex] waiting for: [received:nodes:1d04111a-fa1e-4039-bd27-291b118744a2:localhost] 2023-06-22 23:00:05 | [Mutex] waiting for: [received:nodes:1d04111a-fa1e-4039-bd27-291b118744a2:localhost] 2023-06-22 23:00:05 | [Mutex] waiting for: [received:nodes:1d04111a-fa1e-4039-bd27-291b118744a2:localhost] 2023-06-22 23:00:05 | [Mutex] received everything. 2023-06-22 23:00:05 | [Mutex] isItemNotified: received:node:1d04111a-fa1e-4039-bd27-291b118744a2:localhost:node-e1dbc5ce-de4d-43f9-b30b-f30263c15e9d:Node e1dbc5ce-de4d-43f9-b30b-f30263c15e9d :: true |
deleteNodes | 1.019s |
2023-06-22 23:00:09 |
2023-06-22 23:00:09 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2023-06-22 23:00:09 | ------------------------------------ 2023-06-22 23:00:09 | on localhost executing action delete-node with content type application/json and payload: { "node": "node-e1dbc5ce-de4d-43f9-b30b-f30263c15e9d" } 2023-06-22 23:00:09 | from localhost for action delete-node got result code 200 and payload { "Note": "Operation successful" } 2023-06-22 23:00:10 | [Mutex] waiting for: [received:nodes:d72c0657-824b-445f-b2ae-1b3940ca436a:localhost] 2023-06-22 23:00:10 | [Mutex] waiting for: [received:nodes:d72c0657-824b-445f-b2ae-1b3940ca436a:localhost] 2023-06-22 23:00:10 | [Mutex] received everything. 2023-06-22 23:00:10 | [Mutex] isItemNotified: received:node:d72c0657-824b-445f-b2ae-1b3940ca436a:localhost:node-e1dbc5ce-de4d-43f9-b30b-f30263c15e9d:Node e1dbc5ce-de4d-43f9-b30b-f30263c15e9d :: false |
deleteSubnodes | 1.026s |
2023-06-22 23:00:08 |
2023-06-22 23:00:08 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2023-06-22 23:00:08 | ------------------------------------ 2023-06-22 23:00:08 | on localhost executing action delete-node with content type application/json and payload: { "node": "node-1566f99c-a54f-453e-903b-4b8c36433c1d" } 2023-06-22 23:00:08 | from localhost for action delete-node got result code 200 and payload { "Note": "Operation successful" } 2023-06-22 23:00:09 | [Mutex] waiting for: [received:nodes:0df800cc-10f0-407c-8be6-e9518d20bca7:localhost] 2023-06-22 23:00:09 | [Mutex] received everything. 2023-06-22 23:00:09 | [Mutex] isItemNotified: received:node:0df800cc-10f0-407c-8be6-e9518d20bca7:localhost:node-1566f99c-a54f-453e-903b-4b8c36433c1d:Node 1566f99c-a54f-453e-903b-4b8c36433c1d :: false 2023-06-22 23:00:09 | [Mutex] waiting for: [received:nodes:7ca4cf38-9fcd-45fb-8c30-a7af6677deb9:localhost] 2023-06-22 23:00:09 | [Mutex] received everything. 2023-06-22 23:00:09 | [Mutex] isItemNotified: received:node:7ca4cf38-9fcd-45fb-8c30-a7af6677deb9:localhost:node-1566f99c-a54f-453e-903b-4b8c36433c1d:Node 1566f99c-a54f-453e-903b-4b8c36433c1d :: false |
publishItemsToNodes | 0.054s |
2023-06-22 23:00:07 |
2023-06-22 23:00:07 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2023-06-22 23:00:07 | ------------------------------------ 2023-06-22 23:00:07 | on localhost executing action publish-item with content type application/json and payload: { "node": "node-1566f99c-a54f-453e-903b-4b8c36433c1d", "entry": "<test>item-474228fa-6e8a-4ff0-bb36-fdb63f0118e2</test>", "item-id": "item-474228fa-6e8a-4ff0-bb36-fdb63f0118e2" } 2023-06-22 23:00:07 | from localhost for action publish-item got result code 200 and payload { "Note": "Operation successful", "item-id": "item-474228fa-6e8a-4ff0-bb36-fdb63f0118e2" } 2023-06-22 23:00:07 | [Mutex] waiting for: [published:item:notifieditem-474228fa-6e8a-4ff0-bb36-fdb63f0118e2:admin@test-domain.com] 2023-06-22 23:00:07 | [Mutex] received everything. 2023-06-22 23:00:07 | [Mutex] isItemNotified: published:item:notifieditem-474228fa-6e8a-4ff0-bb36-fdb63f0118e2:admin@test-domain.com :: true |
retractItemsFromNodes | 0.075s |
2023-06-22 23:00:07 |
2023-06-22 23:00:07 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2023-06-22 23:00:07 | ------------------------------------ 2023-06-22 23:00:07 | on localhost executing action delete-item with content type application/json and payload: { "node": "node-1566f99c-a54f-453e-903b-4b8c36433c1d", "item-id": "item-474228fa-6e8a-4ff0-bb36-fdb63f0118e2" } 2023-06-22 23:00:07 | from localhost for action delete-item got result code 200 and payload { "Note": "Operation successful", "item-id": "item-474228fa-6e8a-4ff0-bb36-fdb63f0118e2" } 2023-06-22 23:00:07 | [Mutex] received everything. 2023-06-22 23:00:07 | [Mutex] isItemNotified: retracted:item:notifieditem-474228fa-6e8a-4ff0-bb36-fdb63f0118e2:admin@test-domain.com :: true |
retrieveItemsFromNodes | 0.029s |
2023-06-22 23:00:07 |
2023-06-22 23:00:07 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2023-06-22 23:00:07 | ------------------------------------ 2023-06-22 23:00:07 | on localhost executing action retrieve-item with content type application/json and payload: { "node": "node-1566f99c-a54f-453e-903b-4b8c36433c1d", "item-id": "item-474228fa-6e8a-4ff0-bb36-fdb63f0118e2" } 2023-06-22 23:00:07 | from localhost for action retrieve-item got result code 200 and payload { "title": "Retrive PubSub node item", "node": "node-1566f99c-a54f-453e-903b-4b8c36433c1d", "item-id": "item-474228fa-6e8a-4ff0-bb36-fdb63f0118e2", "item": [ "<item id=\"item-474228fa-6e8a-4ff0-bb36-fdb63f0118e2\"><test>item-474228fa-6e8a-4ff0-bb36-fdb63f0118e2</test></item>" ] } 2023-06-22 23:00:07 | [Mutex] notify: [retrieved:item:item-474228fa-6e8a-4ff0-bb36-fdb63f0118e2:payload-matches:true:localhost] 2023-06-22 23:00:07 | [Mutex] received everything. 2023-06-22 23:00:07 | [Mutex] isItemNotified: retrieved:item:item-474228fa-6e8a-4ff0-bb36-fdb63f0118e2:payload-matches:true:localhost :: true |
retrieveUserSubscriptions | 0.058s |
2023-06-22 23:00:07 |
2023-06-22 23:00:07 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2023-06-22 23:00:07 | ------------------------------------ 2023-06-22 23:00:07 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload: { "jid": "admin@test-domain.com" } 2023-06-22 23:00:07 | from localhost for action retrieve-user-subscriptions got result code 200 and payload { "nodes": [ "test", "node-1566f99c-a54f-453e-903b-4b8c36433c1d", "node-e1dbc5ce-de4d-43f9-b30b-f30263c15e9d" ] } |
retrieveUserSubscriptionsWithRegex | 0.051s |
2023-06-22 23:00:07 |
2023-06-22 23:00:07 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2023-06-22 23:00:07 | ------------------------------------ 2023-06-22 23:00:07 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload: { "jid": "admin@test-domain.com", "node-pattern": "(?!node-1566f99c-a54f-453e-903b-4b8c36433c1d)" } 2023-06-22 23:00:07 | from localhost for action retrieve-user-subscriptions got result code 200 and payload { "nodes": [ ] } |
subscribeNodes | 1.014s |
2023-06-22 23:00:06 |
2023-06-22 23:00:06 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2023-06-22 23:00:06 | ------------------------------------ 2023-06-22 23:00:06 | on localhost executing action subscribe-node with content type application/json and payload: { "node": "node-1566f99c-a54f-453e-903b-4b8c36433c1d", "jids": [ "admin@test-domain.com" ] } 2023-06-22 23:00:06 | from localhost for action subscribe-node got result code 200 and payload { "Note": "Operation successful" } |
unsubscribeNodes | 1.127s |
2023-06-22 23:00:07 |
2023-06-22 23:00:07 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2023-06-22 23:00:07 | ------------------------------------ 2023-06-22 23:00:07 | on localhost executing action unsubscribe-node with content type application/json and payload: { "node": "node-1566f99c-a54f-453e-903b-4b8c36433c1d", "jids": [ "admin@test-domain.com" ] } 2023-06-22 23:00:07 | from localhost for action unsubscribe-node got result code 200 and payload { "Note": "Operation successful" } |