Test duration : 8.592s
Passed Tests | ||
---|---|---|
tigase.tests.pubsub.TestRestApiUsingJSON | ||
configureNodes | 1.096s |
2022-12-24 21:33:14 |
2022-12-24 21:33:14 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-12-24 21:33:14 | ------------------------------------ 2022-12-24 21:33:14 | [Mutex] waiting for: [configured:node:node-6d214f6d-25e1-423b-9363-f249d5cc82c1:node-5ff62b74-5bdb-4369-a5d0-0b89f23256a2] 2022-12-24 21:33:14 | [Mutex] received everything. 2022-12-24 21:33:14 | [Mutex] isItemNotified: configured:node:node-6d214f6d-25e1-423b-9363-f249d5cc82c1:node-5ff62b74-5bdb-4369-a5d0-0b89f23256a2 :: true 2022-12-24 21:33:15 | [Mutex] waiting for: [received:nodes:52e574fe-bdad-41b2-baaf-c7cadbd7e4b8:localhost] 2022-12-24 21:33:15 | [Mutex] received everything. 2022-12-24 21:33:15 | [Mutex] isItemNotified: received:node:52e574fe-bdad-41b2-baaf-c7cadbd7e4b8:localhost:node-6d214f6d-25e1-423b-9363-f249d5cc82c1:Node 6d214f6d-25e1-423b-9363-f249d5cc82c1 :: true 2022-12-24 21:33:15 | [Mutex] waiting for: [received:nodes:39c76d6b-2dec-4b7a-b755-88b679bc4ef8:localhost] 2022-12-24 21:33:15 | [Mutex] waiting for: [received:nodes:39c76d6b-2dec-4b7a-b755-88b679bc4ef8:localhost] 2022-12-24 21:33:15 | [Mutex] received everything. 2022-12-24 21:33:15 | [Mutex] isItemNotified: received:node:39c76d6b-2dec-4b7a-b755-88b679bc4ef8:localhost:node-6d214f6d-25e1-423b-9363-f249d5cc82c1:Node 6d214f6d-25e1-423b-9363-f249d5cc82c1 :: false |
createNodes | 1.630s |
2022-12-24 21:33:11 |
2022-12-24 21:33:11 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-12-24 21:33:11 | ------------------------------------ 2022-12-24 21:33:12 | on localhost executing action create-node with content type application/json and payload: { "owner": "admin@test-domain.com", "pubsub#node_type": "leaf", "node": "node-6d214f6d-25e1-423b-9363-f249d5cc82c1", "pubsub#title": "Node 6d214f6d-25e1-423b-9363-f249d5cc82c1" } 2022-12-24 21:33:12 | from localhost for action create-node got result code 200 and payload { "Note": "Operation successful" } 2022-12-24 21:33:13 | [Mutex] waiting for: [received:nodes:41986c75-fa36-4375-b87e-bbba64a24c16:localhost] 2022-12-24 21:33:13 | [Mutex] waiting for: [received:nodes:41986c75-fa36-4375-b87e-bbba64a24c16:localhost] 2022-12-24 21:33:13 | [Mutex] waiting for: [received:nodes:41986c75-fa36-4375-b87e-bbba64a24c16:localhost] 2022-12-24 21:33:13 | [Mutex] waiting for: [received:nodes:41986c75-fa36-4375-b87e-bbba64a24c16:localhost] 2022-12-24 21:33:13 | [Mutex] received everything. 2022-12-24 21:33:13 | [Mutex] isItemNotified: received:node:41986c75-fa36-4375-b87e-bbba64a24c16:localhost:node-6d214f6d-25e1-423b-9363-f249d5cc82c1:Node 6d214f6d-25e1-423b-9363-f249d5cc82c1 :: true |
createSubnodes | 1.023s |
2022-12-24 21:33:13 |
2022-12-24 21:33:13 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-12-24 21:33:13 | ------------------------------------ 2022-12-24 21:33:13 | on localhost executing action create-node with content type application/json and payload: { "owner": "admin@test-domain.com", "pubsub#node_type": "collection", "node": "node-5ff62b74-5bdb-4369-a5d0-0b89f23256a2", "pubsub#title": "Node 5ff62b74-5bdb-4369-a5d0-0b89f23256a2" } 2022-12-24 21:33:13 | from localhost for action create-node got result code 200 and payload { "Note": "Operation successful" } 2022-12-24 21:33:14 | [Mutex] waiting for: [received:nodes:93f7704b-93e3-4bc6-bc6d-c7711c3f1815:localhost] 2022-12-24 21:33:14 | [Mutex] waiting for: [received:nodes:93f7704b-93e3-4bc6-bc6d-c7711c3f1815:localhost] 2022-12-24 21:33:14 | [Mutex] waiting for: [received:nodes:93f7704b-93e3-4bc6-bc6d-c7711c3f1815:localhost] 2022-12-24 21:33:14 | [Mutex] received everything. 2022-12-24 21:33:14 | [Mutex] isItemNotified: received:node:93f7704b-93e3-4bc6-bc6d-c7711c3f1815:localhost:node-5ff62b74-5bdb-4369-a5d0-0b89f23256a2:Node 5ff62b74-5bdb-4369-a5d0-0b89f23256a2 :: true |
deleteNodes | 1.017s |
2022-12-24 21:33:18 |
2022-12-24 21:33:18 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-12-24 21:33:18 | ------------------------------------ 2022-12-24 21:33:18 | on localhost executing action delete-node with content type application/json and payload: { "node": "node-5ff62b74-5bdb-4369-a5d0-0b89f23256a2" } 2022-12-24 21:33:18 | from localhost for action delete-node got result code 200 and payload { "Note": "Operation successful" } 2022-12-24 21:33:19 | [Mutex] waiting for: [received:nodes:8c818616-a768-42c6-be38-96b478956862:localhost] 2022-12-24 21:33:19 | [Mutex] waiting for: [received:nodes:8c818616-a768-42c6-be38-96b478956862:localhost] 2022-12-24 21:33:19 | [Mutex] received everything. 2022-12-24 21:33:19 | [Mutex] isItemNotified: received:node:8c818616-a768-42c6-be38-96b478956862:localhost:node-5ff62b74-5bdb-4369-a5d0-0b89f23256a2:Node 5ff62b74-5bdb-4369-a5d0-0b89f23256a2 :: false |
deleteSubnodes | 1.026s |
2022-12-24 21:33:17 |
2022-12-24 21:33:17 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-12-24 21:33:17 | ------------------------------------ 2022-12-24 21:33:17 | on localhost executing action delete-node with content type application/json and payload: { "node": "node-6d214f6d-25e1-423b-9363-f249d5cc82c1" } 2022-12-24 21:33:17 | from localhost for action delete-node got result code 200 and payload { "Note": "Operation successful" } 2022-12-24 21:33:18 | [Mutex] waiting for: [received:nodes:ac1ca383-7630-4f15-93a6-05f78e92f3e9:localhost] 2022-12-24 21:33:18 | [Mutex] waiting for: [received:nodes:ac1ca383-7630-4f15-93a6-05f78e92f3e9:localhost] 2022-12-24 21:33:18 | [Mutex] waiting for: [received:nodes:ac1ca383-7630-4f15-93a6-05f78e92f3e9:localhost] 2022-12-24 21:33:18 | [Mutex] waiting for: [received:nodes:ac1ca383-7630-4f15-93a6-05f78e92f3e9:localhost] 2022-12-24 21:33:18 | [Mutex] waiting for: [received:nodes:ac1ca383-7630-4f15-93a6-05f78e92f3e9:localhost] 2022-12-24 21:33:18 | [Mutex] received everything. 2022-12-24 21:33:18 | [Mutex] isItemNotified: received:node:ac1ca383-7630-4f15-93a6-05f78e92f3e9:localhost:node-6d214f6d-25e1-423b-9363-f249d5cc82c1:Node 6d214f6d-25e1-423b-9363-f249d5cc82c1 :: false 2022-12-24 21:33:18 | [Mutex] waiting for: [received:nodes:7356297f-b96d-4a48-a103-fee34a684ac7:localhost] 2022-12-24 21:33:18 | [Mutex] received everything. 2022-12-24 21:33:18 | [Mutex] isItemNotified: received:node:7356297f-b96d-4a48-a103-fee34a684ac7:localhost:node-6d214f6d-25e1-423b-9363-f249d5cc82c1:Node 6d214f6d-25e1-423b-9363-f249d5cc82c1 :: false |
publishItemsToNodes | 0.058s |
2022-12-24 21:33:16 |
2022-12-24 21:33:16 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-12-24 21:33:16 | ------------------------------------ 2022-12-24 21:33:16 | on localhost executing action publish-item with content type application/json and payload: { "node": "node-6d214f6d-25e1-423b-9363-f249d5cc82c1", "entry": "<test>item-9838587c-2a3c-4d74-b7c6-097cb8c90939</test>", "item-id": "item-9838587c-2a3c-4d74-b7c6-097cb8c90939" } 2022-12-24 21:33:16 | from localhost for action publish-item got result code 200 and payload { "Note": "Operation successful", "item-id": "item-9838587c-2a3c-4d74-b7c6-097cb8c90939" } 2022-12-24 21:33:16 | [Mutex] waiting for: [published:item:notifieditem-9838587c-2a3c-4d74-b7c6-097cb8c90939:admin@test-domain.com] 2022-12-24 21:33:16 | [Mutex] received everything. 2022-12-24 21:33:16 | [Mutex] isItemNotified: published:item:notifieditem-9838587c-2a3c-4d74-b7c6-097cb8c90939:admin@test-domain.com :: true |
retractItemsFromNodes | 0.051s |
2022-12-24 21:33:16 |
2022-12-24 21:33:16 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-12-24 21:33:16 | ------------------------------------ 2022-12-24 21:33:16 | on localhost executing action delete-item with content type application/json and payload: { "node": "node-6d214f6d-25e1-423b-9363-f249d5cc82c1", "item-id": "item-9838587c-2a3c-4d74-b7c6-097cb8c90939" } 2022-12-24 21:33:16 | from localhost for action delete-item got result code 200 and payload { "Note": "Operation successful", "item-id": "item-9838587c-2a3c-4d74-b7c6-097cb8c90939" } 2022-12-24 21:33:16 | [Mutex] received everything. 2022-12-24 21:33:16 | [Mutex] isItemNotified: retracted:item:notifieditem-9838587c-2a3c-4d74-b7c6-097cb8c90939:admin@test-domain.com :: true |
retrieveItemsFromNodes | 0.027s |
2022-12-24 21:33:16 |
2022-12-24 21:33:16 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-12-24 21:33:16 | ------------------------------------ 2022-12-24 21:33:16 | on localhost executing action retrieve-item with content type application/json and payload: { "node": "node-6d214f6d-25e1-423b-9363-f249d5cc82c1", "item-id": "item-9838587c-2a3c-4d74-b7c6-097cb8c90939" } 2022-12-24 21:33:16 | from localhost for action retrieve-item got result code 200 and payload { "title": "Retrive PubSub node item", "node": "node-6d214f6d-25e1-423b-9363-f249d5cc82c1", "item-id": "item-9838587c-2a3c-4d74-b7c6-097cb8c90939", "item": [ "<item id=\"item-9838587c-2a3c-4d74-b7c6-097cb8c90939\"><test>item-9838587c-2a3c-4d74-b7c6-097cb8c90939</test></item>" ] } 2022-12-24 21:33:16 | [Mutex] notify: [retrieved:item:item-9838587c-2a3c-4d74-b7c6-097cb8c90939:payload-matches:true:localhost] 2022-12-24 21:33:16 | [Mutex] received everything. 2022-12-24 21:33:16 | [Mutex] isItemNotified: retrieved:item:item-9838587c-2a3c-4d74-b7c6-097cb8c90939:payload-matches:true:localhost :: true |
retrieveUserSubscriptions | 0.068s |
2022-12-24 21:33:16 |
2022-12-24 21:33:16 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-12-24 21:33:16 | ------------------------------------ 2022-12-24 21:33:16 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload: { "jid": "admin@test-domain.com" } 2022-12-24 21:33:16 | from localhost for action retrieve-user-subscriptions got result code 200 and payload { "nodes": [ "test", "node-6d214f6d-25e1-423b-9363-f249d5cc82c1", "node-5ff62b74-5bdb-4369-a5d0-0b89f23256a2" ] } |
retrieveUserSubscriptionsWithRegex | 0.047s |
2022-12-24 21:33:16 |
2022-12-24 21:33:16 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-12-24 21:33:16 | ------------------------------------ 2022-12-24 21:33:16 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload: { "jid": "admin@test-domain.com", "node-pattern": "(?!node-6d214f6d-25e1-423b-9363-f249d5cc82c1)" } 2022-12-24 21:33:16 | from localhost for action retrieve-user-subscriptions got result code 200 and payload { "nodes": [ ] } |
subscribeNodes | 1.011s |
2022-12-24 21:33:15 |
2022-12-24 21:33:15 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-12-24 21:33:15 | ------------------------------------ 2022-12-24 21:33:15 | on localhost executing action subscribe-node with content type application/json and payload: { "node": "node-6d214f6d-25e1-423b-9363-f249d5cc82c1", "jids": [ "admin@test-domain.com" ] } 2022-12-24 21:33:15 | from localhost for action subscribe-node got result code 200 and payload { "Note": "Operation successful" } |
unsubscribeNodes | 1.063s |
2022-12-24 21:33:16 |
2022-12-24 21:33:16 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-12-24 21:33:16 | ------------------------------------ 2022-12-24 21:33:16 | on localhost executing action unsubscribe-node with content type application/json and payload: { "node": "node-6d214f6d-25e1-423b-9363-f249d5cc82c1", "jids": [ "admin@test-domain.com" ] } 2022-12-24 21:33:16 | from localhost for action unsubscribe-node got result code 200 and payload { "Note": "Operation successful" } |