Test duration : 8.733s
Passed Tests | ||
---|---|---|
tigase.tests.pubsub.TestRestApiUsingJSON | ||
configureNodes | 1.143s |
2022-06-05 22:51:53 |
2022-06-05 22:51:53 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-06-05 22:51:53 | ------------------------------------ 2022-06-05 22:51:53 | [Mutex] waiting for: [configured:node:node-c6a87ae9-e38f-45a2-bafb-711542c4eb0d:node-d2410c0f-995a-4a69-b33d-3033140c4371] 2022-06-05 22:51:53 | [Mutex] received everything. 2022-06-05 22:51:53 | [Mutex] isItemNotified: configured:node:node-c6a87ae9-e38f-45a2-bafb-711542c4eb0d:node-d2410c0f-995a-4a69-b33d-3033140c4371 :: true 2022-06-05 22:51:54 | [Mutex] waiting for: [received:nodes:5aafe3db-16ba-48e7-ad99-c8f1c15e0f4c:localhost] 2022-06-05 22:51:54 | [Mutex] received everything. 2022-06-05 22:51:54 | [Mutex] isItemNotified: received:node:5aafe3db-16ba-48e7-ad99-c8f1c15e0f4c:localhost:node-c6a87ae9-e38f-45a2-bafb-711542c4eb0d:Node c6a87ae9-e38f-45a2-bafb-711542c4eb0d :: true 2022-06-05 22:51:54 | [Mutex] waiting for: [received:nodes:76056057-ee51-4dcf-a00c-c4ea70cab410:localhost] 2022-06-05 22:51:54 | [Mutex] waiting for: [received:nodes:76056057-ee51-4dcf-a00c-c4ea70cab410:localhost] 2022-06-05 22:51:54 | [Mutex] received everything. 2022-06-05 22:51:54 | [Mutex] isItemNotified: received:node:76056057-ee51-4dcf-a00c-c4ea70cab410:localhost:node-c6a87ae9-e38f-45a2-bafb-711542c4eb0d:Node c6a87ae9-e38f-45a2-bafb-711542c4eb0d :: false |
createNodes | 1.682s |
2022-06-05 22:51:50 |
2022-06-05 22:51:50 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-06-05 22:51:50 | ------------------------------------ 2022-06-05 22:51:51 | on localhost executing action create-node with content type application/json and payload: { "owner": "admin@test-domain.com", "pubsub#node_type": "leaf", "node": "node-c6a87ae9-e38f-45a2-bafb-711542c4eb0d", "pubsub#title": "Node c6a87ae9-e38f-45a2-bafb-711542c4eb0d" } 2022-06-05 22:51:51 | from localhost for action create-node got result code 200 and payload { "Note": "Operation successful" } 2022-06-05 22:51:52 | [Mutex] waiting for: [received:nodes:148b4754-fd6a-468b-82e6-4a325ae8f85e:localhost] 2022-06-05 22:51:52 | [Mutex] received everything. 2022-06-05 22:51:52 | [Mutex] isItemNotified: received:node:148b4754-fd6a-468b-82e6-4a325ae8f85e:localhost:node-c6a87ae9-e38f-45a2-bafb-711542c4eb0d:Node c6a87ae9-e38f-45a2-bafb-711542c4eb0d :: true |
createSubnodes | 1.024s |
2022-06-05 22:51:52 |
2022-06-05 22:51:52 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-06-05 22:51:52 | ------------------------------------ 2022-06-05 22:51:52 | on localhost executing action create-node with content type application/json and payload: { "owner": "admin@test-domain.com", "pubsub#node_type": "collection", "node": "node-d2410c0f-995a-4a69-b33d-3033140c4371", "pubsub#title": "Node d2410c0f-995a-4a69-b33d-3033140c4371" } 2022-06-05 22:51:52 | from localhost for action create-node got result code 200 and payload { "Note": "Operation successful" } 2022-06-05 22:51:53 | [Mutex] waiting for: [received:nodes:02ddffa9-0e59-43e9-a458-94ceea1fcf74:localhost] 2022-06-05 22:51:53 | [Mutex] waiting for: [received:nodes:02ddffa9-0e59-43e9-a458-94ceea1fcf74:localhost] 2022-06-05 22:51:53 | [Mutex] received everything. 2022-06-05 22:51:53 | [Mutex] isItemNotified: received:node:02ddffa9-0e59-43e9-a458-94ceea1fcf74:localhost:node-d2410c0f-995a-4a69-b33d-3033140c4371:Node d2410c0f-995a-4a69-b33d-3033140c4371 :: true |
deleteNodes | 1.026s |
2022-06-05 22:51:57 |
2022-06-05 22:51:57 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-06-05 22:51:57 | ------------------------------------ 2022-06-05 22:51:57 | on localhost executing action delete-node with content type application/json and payload: { "node": "node-d2410c0f-995a-4a69-b33d-3033140c4371" } 2022-06-05 22:51:57 | from localhost for action delete-node got result code 200 and payload { "Note": "Operation successful" } 2022-06-05 22:51:58 | [Mutex] waiting for: [received:nodes:ce429fe6-1cb1-426b-94cc-20f6298ea65d:localhost] 2022-06-05 22:51:58 | [Mutex] received everything. 2022-06-05 22:51:58 | [Mutex] isItemNotified: received:node:ce429fe6-1cb1-426b-94cc-20f6298ea65d:localhost:node-d2410c0f-995a-4a69-b33d-3033140c4371:Node d2410c0f-995a-4a69-b33d-3033140c4371 :: false |
deleteSubnodes | 1.024s |
2022-06-05 22:51:56 |
2022-06-05 22:51:56 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-06-05 22:51:56 | ------------------------------------ 2022-06-05 22:51:56 | on localhost executing action delete-node with content type application/json and payload: { "node": "node-c6a87ae9-e38f-45a2-bafb-711542c4eb0d" } 2022-06-05 22:51:56 | from localhost for action delete-node got result code 200 and payload { "Note": "Operation successful" } 2022-06-05 22:51:57 | [Mutex] waiting for: [received:nodes:e5e3f3e1-7c5d-46e4-b2dc-071e415a01e6:localhost] 2022-06-05 22:51:57 | [Mutex] received everything. 2022-06-05 22:51:57 | [Mutex] isItemNotified: received:node:e5e3f3e1-7c5d-46e4-b2dc-071e415a01e6:localhost:node-c6a87ae9-e38f-45a2-bafb-711542c4eb0d:Node c6a87ae9-e38f-45a2-bafb-711542c4eb0d :: false 2022-06-05 22:51:57 | [Mutex] waiting for: [received:nodes:fc6d69cf-defc-4f93-bed9-23ae37cd6e60:localhost] 2022-06-05 22:51:57 | [Mutex] received everything. 2022-06-05 22:51:57 | [Mutex] isItemNotified: received:node:fc6d69cf-defc-4f93-bed9-23ae37cd6e60:localhost:node-c6a87ae9-e38f-45a2-bafb-711542c4eb0d:Node c6a87ae9-e38f-45a2-bafb-711542c4eb0d :: false |
publishItemsToNodes | 0.034s |
2022-06-05 22:51:55 |
2022-06-05 22:51:55 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-06-05 22:51:55 | ------------------------------------ 2022-06-05 22:51:55 | on localhost executing action publish-item with content type application/json and payload: { "node": "node-c6a87ae9-e38f-45a2-bafb-711542c4eb0d", "entry": "<test>item-ca646095-9b67-4167-ac37-dd87fb18e8e6</test>", "item-id": "item-ca646095-9b67-4167-ac37-dd87fb18e8e6" } 2022-06-05 22:51:55 | from localhost for action publish-item got result code 200 and payload { "Note": "Operation successful", "item-id": "item-ca646095-9b67-4167-ac37-dd87fb18e8e6" } 2022-06-05 22:51:55 | [Mutex] waiting for: [published:item:notifieditem-ca646095-9b67-4167-ac37-dd87fb18e8e6:admin@test-domain.com] 2022-06-05 22:51:55 | [Mutex] received everything. 2022-06-05 22:51:55 | [Mutex] isItemNotified: published:item:notifieditem-ca646095-9b67-4167-ac37-dd87fb18e8e6:admin@test-domain.com :: true |
retractItemsFromNodes | 0.055s |
2022-06-05 22:51:55 |
2022-06-05 22:51:55 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-06-05 22:51:55 | ------------------------------------ 2022-06-05 22:51:55 | on localhost executing action delete-item with content type application/json and payload: { "node": "node-c6a87ae9-e38f-45a2-bafb-711542c4eb0d", "item-id": "item-ca646095-9b67-4167-ac37-dd87fb18e8e6" } 2022-06-05 22:51:55 | from localhost for action delete-item got result code 200 and payload { "Note": "Operation successful", "item-id": "item-ca646095-9b67-4167-ac37-dd87fb18e8e6" } 2022-06-05 22:51:55 | [Mutex] received everything. 2022-06-05 22:51:55 | [Mutex] isItemNotified: retracted:item:notifieditem-ca646095-9b67-4167-ac37-dd87fb18e8e6:admin@test-domain.com :: true |
retrieveItemsFromNodes | 0.066s |
2022-06-05 22:51:55 |
2022-06-05 22:51:55 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-06-05 22:51:55 | ------------------------------------ 2022-06-05 22:51:55 | on localhost executing action retrieve-item with content type application/json and payload: { "node": "node-c6a87ae9-e38f-45a2-bafb-711542c4eb0d", "item-id": "item-ca646095-9b67-4167-ac37-dd87fb18e8e6" } 2022-06-05 22:51:55 | from localhost for action retrieve-item got result code 200 and payload { "title": "Retrive PubSub node item", "node": "node-c6a87ae9-e38f-45a2-bafb-711542c4eb0d", "item-id": "item-ca646095-9b67-4167-ac37-dd87fb18e8e6", "item": [ "<item id=\"item-ca646095-9b67-4167-ac37-dd87fb18e8e6\"><test>item-ca646095-9b67-4167-ac37-dd87fb18e8e6</test></item>" ] } 2022-06-05 22:51:55 | [Mutex] notify: [retrieved:item:item-ca646095-9b67-4167-ac37-dd87fb18e8e6:payload-matches:true:localhost] 2022-06-05 22:51:55 | [Mutex] received everything. 2022-06-05 22:51:55 | [Mutex] isItemNotified: retrieved:item:item-ca646095-9b67-4167-ac37-dd87fb18e8e6:payload-matches:true:localhost :: true |
retrieveUserSubscriptions | 0.051s |
2022-06-05 22:51:55 |
2022-06-05 22:51:55 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-06-05 22:51:55 | ------------------------------------ 2022-06-05 22:51:55 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload: { "jid": "admin@test-domain.com" } 2022-06-05 22:51:55 | from localhost for action retrieve-user-subscriptions got result code 200 and payload { "nodes": [ "test", "node-d2410c0f-995a-4a69-b33d-3033140c4371", "node-c6a87ae9-e38f-45a2-bafb-711542c4eb0d" ] } |
retrieveUserSubscriptionsWithRegex | 0.047s |
2022-06-05 22:51:55 |
2022-06-05 22:51:55 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-06-05 22:51:55 | ------------------------------------ 2022-06-05 22:51:55 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload: { "jid": "admin@test-domain.com", "node-pattern": "(?!node-c6a87ae9-e38f-45a2-bafb-711542c4eb0d)" } 2022-06-05 22:51:55 | from localhost for action retrieve-user-subscriptions got result code 200 and payload { "nodes": [ ] } |
subscribeNodes | 1.009s |
2022-06-05 22:51:54 |
2022-06-05 22:51:54 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-06-05 22:51:54 | ------------------------------------ 2022-06-05 22:51:54 | on localhost executing action subscribe-node with content type application/json and payload: { "node": "node-c6a87ae9-e38f-45a2-bafb-711542c4eb0d", "jids": [ "admin@test-domain.com" ] } 2022-06-05 22:51:54 | from localhost for action subscribe-node got result code 200 and payload { "Note": "Operation successful" } |
unsubscribeNodes | 1.079s |
2022-06-05 22:51:55 |
2022-06-05 22:51:55 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-06-05 22:51:55 | ------------------------------------ 2022-06-05 22:51:55 | on localhost executing action unsubscribe-node with content type application/json and payload: { "node": "node-c6a87ae9-e38f-45a2-bafb-711542c4eb0d", "jids": [ "admin@test-domain.com" ] } 2022-06-05 22:51:55 | from localhost for action unsubscribe-node got result code 200 and payload { "Note": "Operation successful" } |