Test duration : 9.415s
Passed Tests | ||
---|---|---|
tigase.tests.pubsub.TestRestApiUsingJSON | ||
configureNodes | 1.109s |
2022-02-13 21:36:07 |
2022-02-13 21:36:07 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-02-13 21:36:07 | ------------------------------------ 2022-02-13 21:36:07 | [Mutex] waiting for: [configured:node:node-66b84315-b65e-4346-9152-3bfb33cdd38f:node-e72c783a-4544-46d3-8404-245d5c5c3b1d] 2022-02-13 21:36:07 | [Mutex] received everything. 2022-02-13 21:36:07 | [Mutex] isItemNotified: configured:node:node-66b84315-b65e-4346-9152-3bfb33cdd38f:node-e72c783a-4544-46d3-8404-245d5c5c3b1d :: true 2022-02-13 21:36:08 | [Mutex] waiting for: [received:nodes:712c4f52-c668-40d2-b34a-0d74dc7ba465:localhost] 2022-02-13 21:36:08 | [Mutex] received everything. 2022-02-13 21:36:08 | [Mutex] isItemNotified: received:node:712c4f52-c668-40d2-b34a-0d74dc7ba465:localhost:node-66b84315-b65e-4346-9152-3bfb33cdd38f:Node 66b84315-b65e-4346-9152-3bfb33cdd38f :: true 2022-02-13 21:36:08 | [Mutex] waiting for: [received:nodes:21730c14-5e81-4cba-9c4f-18b225df0e86:localhost] 2022-02-13 21:36:08 | [Mutex] received everything. 2022-02-13 21:36:08 | [Mutex] isItemNotified: received:node:21730c14-5e81-4cba-9c4f-18b225df0e86:localhost:node-66b84315-b65e-4346-9152-3bfb33cdd38f:Node 66b84315-b65e-4346-9152-3bfb33cdd38f :: false |
createNodes | 2.024s |
2022-02-13 21:36:04 |
2022-02-13 21:36:04 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-02-13 21:36:04 | ------------------------------------ 2022-02-13 21:36:05 | on localhost executing action create-node with content type application/json and payload: { "owner": "admin@test-domain.com", "pubsub#node_type": "leaf", "node": "node-66b84315-b65e-4346-9152-3bfb33cdd38f", "pubsub#title": "Node 66b84315-b65e-4346-9152-3bfb33cdd38f" } 2022-02-13 21:36:05 | from localhost for action create-node got result code 200 and payload { "Note": "Operation successful" } 2022-02-13 21:36:06 | [Mutex] waiting for: [received:nodes:b0f66cd1-e908-445c-aa00-1611606a50e0:localhost] 2022-02-13 21:36:06 | [Mutex] received everything. 2022-02-13 21:36:06 | [Mutex] isItemNotified: received:node:b0f66cd1-e908-445c-aa00-1611606a50e0:localhost:node-66b84315-b65e-4346-9152-3bfb33cdd38f:Node 66b84315-b65e-4346-9152-3bfb33cdd38f :: true |
createSubnodes | 1.030s |
2022-02-13 21:36:06 |
2022-02-13 21:36:06 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-02-13 21:36:06 | ------------------------------------ 2022-02-13 21:36:06 | on localhost executing action create-node with content type application/json and payload: { "owner": "admin@test-domain.com", "pubsub#node_type": "collection", "node": "node-e72c783a-4544-46d3-8404-245d5c5c3b1d", "pubsub#title": "Node e72c783a-4544-46d3-8404-245d5c5c3b1d" } 2022-02-13 21:36:06 | from localhost for action create-node got result code 200 and payload { "Note": "Operation successful" } 2022-02-13 21:36:07 | [Mutex] waiting for: [received:nodes:a19b8027-b12a-4645-8df0-0b159b5f4e16:localhost] 2022-02-13 21:36:07 | [Mutex] waiting for: [received:nodes:a19b8027-b12a-4645-8df0-0b159b5f4e16:localhost] 2022-02-13 21:36:07 | [Mutex] waiting for: [received:nodes:a19b8027-b12a-4645-8df0-0b159b5f4e16:localhost] 2022-02-13 21:36:07 | [Mutex] received everything. 2022-02-13 21:36:07 | [Mutex] isItemNotified: received:node:a19b8027-b12a-4645-8df0-0b159b5f4e16:localhost:node-e72c783a-4544-46d3-8404-245d5c5c3b1d:Node e72c783a-4544-46d3-8404-245d5c5c3b1d :: true |
deleteNodes | 1.034s |
2022-02-13 21:36:12 |
2022-02-13 21:36:12 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-02-13 21:36:12 | ------------------------------------ 2022-02-13 21:36:12 | on localhost executing action delete-node with content type application/json and payload: { "node": "node-e72c783a-4544-46d3-8404-245d5c5c3b1d" } 2022-02-13 21:36:12 | from localhost for action delete-node got result code 200 and payload { "Note": "Operation successful" } 2022-02-13 21:36:13 | [Mutex] waiting for: [received:nodes:8551a2e6-4bd8-4d69-a184-8a6f3143bd77:localhost] 2022-02-13 21:36:13 | [Mutex] received everything. 2022-02-13 21:36:13 | [Mutex] isItemNotified: received:node:8551a2e6-4bd8-4d69-a184-8a6f3143bd77:localhost:node-e72c783a-4544-46d3-8404-245d5c5c3b1d:Node e72c783a-4544-46d3-8404-245d5c5c3b1d :: false |
deleteSubnodes | 1.027s |
2022-02-13 21:36:11 |
2022-02-13 21:36:11 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-02-13 21:36:11 | ------------------------------------ 2022-02-13 21:36:11 | on localhost executing action delete-node with content type application/json and payload: { "node": "node-66b84315-b65e-4346-9152-3bfb33cdd38f" } 2022-02-13 21:36:11 | from localhost for action delete-node got result code 200 and payload { "Note": "Operation successful" } 2022-02-13 21:36:12 | [Mutex] waiting for: [received:nodes:d128f92f-4acf-468d-977a-33321bc7f3b2:localhost] 2022-02-13 21:36:12 | [Mutex] received everything. 2022-02-13 21:36:12 | [Mutex] isItemNotified: received:node:d128f92f-4acf-468d-977a-33321bc7f3b2:localhost:node-66b84315-b65e-4346-9152-3bfb33cdd38f:Node 66b84315-b65e-4346-9152-3bfb33cdd38f :: false 2022-02-13 21:36:12 | [Mutex] waiting for: [received:nodes:727fe4e8-ab1d-4b35-b850-e091879bc0b3:localhost] 2022-02-13 21:36:12 | [Mutex] received everything. 2022-02-13 21:36:12 | [Mutex] isItemNotified: received:node:727fe4e8-ab1d-4b35-b850-e091879bc0b3:localhost:node-66b84315-b65e-4346-9152-3bfb33cdd38f:Node 66b84315-b65e-4346-9152-3bfb33cdd38f :: false |
publishItemsToNodes | 0.045s |
2022-02-13 21:36:09 |
2022-02-13 21:36:09 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-02-13 21:36:09 | ------------------------------------ 2022-02-13 21:36:09 | on localhost executing action publish-item with content type application/json and payload: { "node": "node-66b84315-b65e-4346-9152-3bfb33cdd38f", "entry": "<test>item-ca79c90f-d614-410b-a8cb-c174db7cf9a3</test>", "item-id": "item-ca79c90f-d614-410b-a8cb-c174db7cf9a3" } 2022-02-13 21:36:09 | from localhost for action publish-item got result code 200 and payload { "Note": "Operation successful", "item-id": "item-ca79c90f-d614-410b-a8cb-c174db7cf9a3" } 2022-02-13 21:36:09 | [Mutex] waiting for: [published:item:notifieditem-ca79c90f-d614-410b-a8cb-c174db7cf9a3:admin@test-domain.com] 2022-02-13 21:36:09 | [Mutex] received everything. 2022-02-13 21:36:09 | [Mutex] isItemNotified: published:item:notifieditem-ca79c90f-d614-410b-a8cb-c174db7cf9a3:admin@test-domain.com :: true |
retractItemsFromNodes | 0.063s |
2022-02-13 21:36:10 |
2022-02-13 21:36:10 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-02-13 21:36:10 | ------------------------------------ 2022-02-13 21:36:10 | on localhost executing action delete-item with content type application/json and payload: { "node": "node-66b84315-b65e-4346-9152-3bfb33cdd38f", "item-id": "item-ca79c90f-d614-410b-a8cb-c174db7cf9a3" } 2022-02-13 21:36:10 | from localhost for action delete-item got result code 200 and payload { "Note": "Operation successful", "item-id": "item-ca79c90f-d614-410b-a8cb-c174db7cf9a3" } 2022-02-13 21:36:10 | [Mutex] received everything. 2022-02-13 21:36:10 | [Mutex] isItemNotified: retracted:item:notifieditem-ca79c90f-d614-410b-a8cb-c174db7cf9a3:admin@test-domain.com :: true |
retrieveItemsFromNodes | 0.089s |
2022-02-13 21:36:09 |
2022-02-13 21:36:09 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-02-13 21:36:09 | ------------------------------------ 2022-02-13 21:36:09 | on localhost executing action retrieve-item with content type application/json and payload: { "node": "node-66b84315-b65e-4346-9152-3bfb33cdd38f", "item-id": "item-ca79c90f-d614-410b-a8cb-c174db7cf9a3" } 2022-02-13 21:36:09 | from localhost for action retrieve-item got result code 200 and payload { "title": "Retrive PubSub node item", "node": "node-66b84315-b65e-4346-9152-3bfb33cdd38f", "item-id": "item-ca79c90f-d614-410b-a8cb-c174db7cf9a3", "item": [ "<item id=\"item-ca79c90f-d614-410b-a8cb-c174db7cf9a3\"><test>item-ca79c90f-d614-410b-a8cb-c174db7cf9a3</test></item>" ] } 2022-02-13 21:36:09 | [Mutex] notify: [retrieved:item:item-ca79c90f-d614-410b-a8cb-c174db7cf9a3:payload-matches:true:localhost] 2022-02-13 21:36:09 | [Mutex] received everything. 2022-02-13 21:36:09 | [Mutex] isItemNotified: retrieved:item:item-ca79c90f-d614-410b-a8cb-c174db7cf9a3:payload-matches:true:localhost :: true |
retrieveUserSubscriptions | 0.051s |
2022-02-13 21:36:09 |
2022-02-13 21:36:09 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-02-13 21:36:09 | ------------------------------------ 2022-02-13 21:36:09 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload: { "jid": "admin@test-domain.com" } 2022-02-13 21:36:09 | from localhost for action retrieve-user-subscriptions got result code 200 and payload { "nodes": [ "test", "node-66b84315-b65e-4346-9152-3bfb33cdd38f", "node-e72c783a-4544-46d3-8404-245d5c5c3b1d" ] } |
retrieveUserSubscriptionsWithRegex | 0.051s |
2022-02-13 21:36:09 |
2022-02-13 21:36:09 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-02-13 21:36:09 | ------------------------------------ 2022-02-13 21:36:09 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload: { "jid": "admin@test-domain.com", "node-pattern": "(?!node-66b84315-b65e-4346-9152-3bfb33cdd38f)" } 2022-02-13 21:36:10 | from localhost for action retrieve-user-subscriptions got result code 200 and payload { "nodes": [ ] } |
subscribeNodes | 1.011s |
2022-02-13 21:36:08 |
2022-02-13 21:36:08 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-02-13 21:36:08 | ------------------------------------ 2022-02-13 21:36:08 | on localhost executing action subscribe-node with content type application/json and payload: { "node": "node-66b84315-b65e-4346-9152-3bfb33cdd38f", "jids": [ "admin@test-domain.com" ] } 2022-02-13 21:36:08 | from localhost for action subscribe-node got result code 200 and payload { "Note": "Operation successful" } |
unsubscribeNodes | 1.064s |
2022-02-13 21:36:10 |
2022-02-13 21:36:10 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-02-13 21:36:10 | ------------------------------------ 2022-02-13 21:36:10 | on localhost executing action unsubscribe-node with content type application/json and payload: { "node": "node-66b84315-b65e-4346-9152-3bfb33cdd38f", "jids": [ "admin@test-domain.com" ] } 2022-02-13 21:36:10 | from localhost for action unsubscribe-node got result code 200 and payload { "Note": "Operation successful" } |