Test duration : 8.663s
Passed Tests | ||
---|---|---|
tigase.tests.pubsub.TestRestApiUsingJSON | ||
configureNodes | 1.101s |
2022-08-09 22:34:08 |
2022-08-09 22:34:08 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-08-09 22:34:08 | ------------------------------------ 2022-08-09 22:34:08 | [Mutex] waiting for: [configured:node:node-d5089612-9033-42f3-a42d-5427eef06a3d:node-4e0fd532-a654-47dc-a1a7-ab94a34f7c80] 2022-08-09 22:34:08 | [Mutex] received everything. 2022-08-09 22:34:08 | [Mutex] isItemNotified: configured:node:node-d5089612-9033-42f3-a42d-5427eef06a3d:node-4e0fd532-a654-47dc-a1a7-ab94a34f7c80 :: true 2022-08-09 22:34:09 | [Mutex] waiting for: [received:nodes:88e8aa91-1083-483f-9aae-afbb399e1221:localhost] 2022-08-09 22:34:09 | [Mutex] received everything. 2022-08-09 22:34:09 | [Mutex] isItemNotified: received:node:88e8aa91-1083-483f-9aae-afbb399e1221:localhost:node-d5089612-9033-42f3-a42d-5427eef06a3d:Node d5089612-9033-42f3-a42d-5427eef06a3d :: true 2022-08-09 22:34:09 | [Mutex] waiting for: [received:nodes:3d5e181e-8aeb-4d66-ae07-45c32ffe91e5:localhost] 2022-08-09 22:34:09 | [Mutex] received everything. 2022-08-09 22:34:09 | [Mutex] isItemNotified: received:node:3d5e181e-8aeb-4d66-ae07-45c32ffe91e5:localhost:node-d5089612-9033-42f3-a42d-5427eef06a3d:Node d5089612-9033-42f3-a42d-5427eef06a3d :: false |
createNodes | 1.581s |
2022-08-09 22:34:06 |
2022-08-09 22:34:06 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-08-09 22:34:06 | ------------------------------------ 2022-08-09 22:34:06 | on localhost executing action create-node with content type application/json and payload: { "owner": "admin@test-domain.com", "pubsub#node_type": "leaf", "node": "node-d5089612-9033-42f3-a42d-5427eef06a3d", "pubsub#title": "Node d5089612-9033-42f3-a42d-5427eef06a3d" } 2022-08-09 22:34:06 | from localhost for action create-node got result code 200 and payload { "Note": "Operation successful" } 2022-08-09 22:34:07 | [Mutex] waiting for: [received:nodes:32171e88-5bcd-4793-9522-75fb80c1b317:localhost] 2022-08-09 22:34:07 | [Mutex] received everything. 2022-08-09 22:34:07 | [Mutex] isItemNotified: received:node:32171e88-5bcd-4793-9522-75fb80c1b317:localhost:node-d5089612-9033-42f3-a42d-5427eef06a3d:Node d5089612-9033-42f3-a42d-5427eef06a3d :: true |
createSubnodes | 1.022s |
2022-08-09 22:34:07 |
2022-08-09 22:34:07 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-08-09 22:34:07 | ------------------------------------ 2022-08-09 22:34:07 | on localhost executing action create-node with content type application/json and payload: { "owner": "admin@test-domain.com", "pubsub#node_type": "collection", "node": "node-4e0fd532-a654-47dc-a1a7-ab94a34f7c80", "pubsub#title": "Node 4e0fd532-a654-47dc-a1a7-ab94a34f7c80" } 2022-08-09 22:34:07 | from localhost for action create-node got result code 200 and payload { "Note": "Operation successful" } 2022-08-09 22:34:08 | [Mutex] waiting for: [received:nodes:696169be-c0ae-4cb7-bf7d-f7208b6c1e05:localhost] 2022-08-09 22:34:08 | [Mutex] received everything. 2022-08-09 22:34:08 | [Mutex] isItemNotified: received:node:696169be-c0ae-4cb7-bf7d-f7208b6c1e05:localhost:node-4e0fd532-a654-47dc-a1a7-ab94a34f7c80:Node 4e0fd532-a654-47dc-a1a7-ab94a34f7c80 :: true |
deleteNodes | 1.021s |
2022-08-09 22:34:13 |
2022-08-09 22:34:13 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-08-09 22:34:13 | ------------------------------------ 2022-08-09 22:34:13 | on localhost executing action delete-node with content type application/json and payload: { "node": "node-4e0fd532-a654-47dc-a1a7-ab94a34f7c80" } 2022-08-09 22:34:13 | from localhost for action delete-node got result code 200 and payload { "Note": "Operation successful" } 2022-08-09 22:34:14 | [Mutex] waiting for: [received:nodes:f676eb77-cc26-4fd6-9d30-1cfd68d26247:localhost] 2022-08-09 22:34:14 | [Mutex] received everything. 2022-08-09 22:34:14 | [Mutex] isItemNotified: received:node:f676eb77-cc26-4fd6-9d30-1cfd68d26247:localhost:node-4e0fd532-a654-47dc-a1a7-ab94a34f7c80:Node 4e0fd532-a654-47dc-a1a7-ab94a34f7c80 :: false |
deleteSubnodes | 1.023s |
2022-08-09 22:34:12 |
2022-08-09 22:34:12 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-08-09 22:34:12 | ------------------------------------ 2022-08-09 22:34:12 | on localhost executing action delete-node with content type application/json and payload: { "node": "node-d5089612-9033-42f3-a42d-5427eef06a3d" } 2022-08-09 22:34:12 | from localhost for action delete-node got result code 200 and payload { "Note": "Operation successful" } 2022-08-09 22:34:13 | [Mutex] waiting for: [received:nodes:2add0499-9916-4463-8097-cd4c4f365625:localhost] 2022-08-09 22:34:13 | [Mutex] received everything. 2022-08-09 22:34:13 | [Mutex] isItemNotified: received:node:2add0499-9916-4463-8097-cd4c4f365625:localhost:node-d5089612-9033-42f3-a42d-5427eef06a3d:Node d5089612-9033-42f3-a42d-5427eef06a3d :: false 2022-08-09 22:34:13 | [Mutex] waiting for: [received:nodes:919bee72-dbc7-4470-81c0-eb4bbce4ddf7:localhost] 2022-08-09 22:34:13 | [Mutex] received everything. 2022-08-09 22:34:13 | [Mutex] isItemNotified: received:node:919bee72-dbc7-4470-81c0-eb4bbce4ddf7:localhost:node-d5089612-9033-42f3-a42d-5427eef06a3d:Node d5089612-9033-42f3-a42d-5427eef06a3d :: false |
publishItemsToNodes | 0.052s |
2022-08-09 22:34:10 |
2022-08-09 22:34:10 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-08-09 22:34:10 | ------------------------------------ 2022-08-09 22:34:10 | on localhost executing action publish-item with content type application/json and payload: { "node": "node-d5089612-9033-42f3-a42d-5427eef06a3d", "entry": "<test>item-521adb99-903f-4e1a-98f7-43c6d4228177</test>", "item-id": "item-521adb99-903f-4e1a-98f7-43c6d4228177" } 2022-08-09 22:34:11 | from localhost for action publish-item got result code 200 and payload { "Note": "Operation successful", "item-id": "item-521adb99-903f-4e1a-98f7-43c6d4228177" } 2022-08-09 22:34:11 | [Mutex] received everything. 2022-08-09 22:34:11 | [Mutex] isItemNotified: published:item:notifieditem-521adb99-903f-4e1a-98f7-43c6d4228177:admin@test-domain.com :: true |
retractItemsFromNodes | 0.060s |
2022-08-09 22:34:11 |
2022-08-09 22:34:11 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-08-09 22:34:11 | ------------------------------------ 2022-08-09 22:34:11 | on localhost executing action delete-item with content type application/json and payload: { "node": "node-d5089612-9033-42f3-a42d-5427eef06a3d", "item-id": "item-521adb99-903f-4e1a-98f7-43c6d4228177" } 2022-08-09 22:34:11 | from localhost for action delete-item got result code 200 and payload { "Note": "Operation successful", "item-id": "item-521adb99-903f-4e1a-98f7-43c6d4228177" } 2022-08-09 22:34:11 | [Mutex] received everything. 2022-08-09 22:34:11 | [Mutex] isItemNotified: retracted:item:notifieditem-521adb99-903f-4e1a-98f7-43c6d4228177:admin@test-domain.com :: true |
retrieveItemsFromNodes | 0.091s |
2022-08-09 22:34:11 |
2022-08-09 22:34:11 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-08-09 22:34:11 | ------------------------------------ 2022-08-09 22:34:11 | on localhost executing action retrieve-item with content type application/json and payload: { "node": "node-d5089612-9033-42f3-a42d-5427eef06a3d", "item-id": "item-521adb99-903f-4e1a-98f7-43c6d4228177" } 2022-08-09 22:34:11 | from localhost for action retrieve-item got result code 200 and payload { "title": "Retrive PubSub node item", "node": "node-d5089612-9033-42f3-a42d-5427eef06a3d", "item-id": "item-521adb99-903f-4e1a-98f7-43c6d4228177", "item": [ "<item id=\"item-521adb99-903f-4e1a-98f7-43c6d4228177\"><test>item-521adb99-903f-4e1a-98f7-43c6d4228177</test></item>" ] } 2022-08-09 22:34:11 | [Mutex] notify: [retrieved:item:item-521adb99-903f-4e1a-98f7-43c6d4228177:payload-matches:true:localhost] 2022-08-09 22:34:11 | [Mutex] received everything. 2022-08-09 22:34:11 | [Mutex] isItemNotified: retrieved:item:item-521adb99-903f-4e1a-98f7-43c6d4228177:payload-matches:true:localhost :: true |
retrieveUserSubscriptions | 0.047s |
2022-08-09 22:34:11 |
2022-08-09 22:34:11 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-08-09 22:34:11 | ------------------------------------ 2022-08-09 22:34:11 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload: { "jid": "admin@test-domain.com" } 2022-08-09 22:34:11 | from localhost for action retrieve-user-subscriptions got result code 200 and payload { "nodes": [ "node-4e0fd532-a654-47dc-a1a7-ab94a34f7c80", "test", "node-d5089612-9033-42f3-a42d-5427eef06a3d" ] } |
retrieveUserSubscriptionsWithRegex | 0.047s |
2022-08-09 22:34:11 |
2022-08-09 22:34:11 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-08-09 22:34:11 | ------------------------------------ 2022-08-09 22:34:11 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload: { "jid": "admin@test-domain.com", "node-pattern": "(?!node-d5089612-9033-42f3-a42d-5427eef06a3d)" } 2022-08-09 22:34:11 | from localhost for action retrieve-user-subscriptions got result code 200 and payload { "nodes": [ ] } |
subscribeNodes | 1.010s |
2022-08-09 22:34:09 |
2022-08-09 22:34:09 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-08-09 22:34:09 | ------------------------------------ 2022-08-09 22:34:09 | on localhost executing action subscribe-node with content type application/json and payload: { "node": "node-d5089612-9033-42f3-a42d-5427eef06a3d", "jids": [ "admin@test-domain.com" ] } 2022-08-09 22:34:09 | from localhost for action subscribe-node got result code 200 and payload { "Note": "Operation successful" } |
unsubscribeNodes | 1.075s |
2022-08-09 22:34:11 |
2022-08-09 22:34:11 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-08-09 22:34:11 | ------------------------------------ 2022-08-09 22:34:11 | on localhost executing action unsubscribe-node with content type application/json and payload: { "node": "node-d5089612-9033-42f3-a42d-5427eef06a3d", "jids": [ "admin@test-domain.com" ] } 2022-08-09 22:34:11 | from localhost for action unsubscribe-node got result code 200 and payload { "Note": "Operation successful" } |