Test duration : 8.944s
Passed Tests | ||
---|---|---|
tigase.tests.pubsub.TestRestApiUsingJSON | ||
configureNodes | 1.102s |
2021-12-20 22:29:20 |
2021-12-20 22:29:20 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-12-20 22:29:20 | ------------------------------------ 2021-12-20 22:29:20 | [Mutex] waiting for: [configured:node:node-e9936cf7-eb9b-4d22-b8ff-9ee2617cd07f:node-ab543f3e-42ef-415f-93b2-87fcfb0180b5] 2021-12-20 22:29:20 | [Mutex] received everything. 2021-12-20 22:29:20 | [Mutex] isItemNotified: configured:node:node-e9936cf7-eb9b-4d22-b8ff-9ee2617cd07f:node-ab543f3e-42ef-415f-93b2-87fcfb0180b5 :: true 2021-12-20 22:29:21 | [Mutex] waiting for: [received:nodes:32238d08-3a63-4539-b411-e3407f0feb02:localhost] 2021-12-20 22:29:21 | [Mutex] received everything. 2021-12-20 22:29:21 | [Mutex] isItemNotified: received:node:32238d08-3a63-4539-b411-e3407f0feb02:localhost:node-e9936cf7-eb9b-4d22-b8ff-9ee2617cd07f:Node e9936cf7-eb9b-4d22-b8ff-9ee2617cd07f :: true 2021-12-20 22:29:21 | [Mutex] waiting for: [received:nodes:144ea57c-3dea-4508-9d46-b8bc24ffdbfb:localhost] 2021-12-20 22:29:21 | [Mutex] waiting for: [received:nodes:144ea57c-3dea-4508-9d46-b8bc24ffdbfb:localhost] 2021-12-20 22:29:21 | [Mutex] waiting for: [received:nodes:144ea57c-3dea-4508-9d46-b8bc24ffdbfb:localhost] 2021-12-20 22:29:21 | [Mutex] received everything. 2021-12-20 22:29:21 | [Mutex] isItemNotified: received:node:144ea57c-3dea-4508-9d46-b8bc24ffdbfb:localhost:node-e9936cf7-eb9b-4d22-b8ff-9ee2617cd07f:Node e9936cf7-eb9b-4d22-b8ff-9ee2617cd07f :: false |
createNodes | 1.516s |
2021-12-20 22:29:17 |
2021-12-20 22:29:17 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-12-20 22:29:17 | ------------------------------------ 2021-12-20 22:29:18 | on localhost executing action create-node with content type application/json and payload: { "owner": "admin@test-domain.com", "pubsub#node_type": "leaf", "node": "node-e9936cf7-eb9b-4d22-b8ff-9ee2617cd07f", "pubsub#title": "Node e9936cf7-eb9b-4d22-b8ff-9ee2617cd07f" } 2021-12-20 22:29:18 | from localhost for action create-node got result code 200 and payload { "Note": "Operation successful" } 2021-12-20 22:29:19 | [Mutex] waiting for: [received:nodes:7a0bab95-f3ae-4411-b388-6c8f2f45f6aa:localhost] 2021-12-20 22:29:19 | [Mutex] received everything. 2021-12-20 22:29:19 | [Mutex] isItemNotified: received:node:7a0bab95-f3ae-4411-b388-6c8f2f45f6aa:localhost:node-e9936cf7-eb9b-4d22-b8ff-9ee2617cd07f:Node e9936cf7-eb9b-4d22-b8ff-9ee2617cd07f :: true |
createSubnodes | 1.024s |
2021-12-20 22:29:19 |
2021-12-20 22:29:19 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-12-20 22:29:19 | ------------------------------------ 2021-12-20 22:29:19 | on localhost executing action create-node with content type application/json and payload: { "owner": "admin@test-domain.com", "pubsub#node_type": "collection", "node": "node-ab543f3e-42ef-415f-93b2-87fcfb0180b5", "pubsub#title": "Node ab543f3e-42ef-415f-93b2-87fcfb0180b5" } 2021-12-20 22:29:19 | from localhost for action create-node got result code 200 and payload { "Note": "Operation successful" } 2021-12-20 22:29:20 | [Mutex] waiting for: [received:nodes:ea088de7-18fe-42f3-a7b0-481182b7898e:localhost] 2021-12-20 22:29:20 | [Mutex] received everything. 2021-12-20 22:29:20 | [Mutex] isItemNotified: received:node:ea088de7-18fe-42f3-a7b0-481182b7898e:localhost:node-ab543f3e-42ef-415f-93b2-87fcfb0180b5:Node ab543f3e-42ef-415f-93b2-87fcfb0180b5 :: true |
deleteNodes | 1.020s |
2021-12-20 22:29:24 |
2021-12-20 22:29:24 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-12-20 22:29:24 | ------------------------------------ 2021-12-20 22:29:24 | on localhost executing action delete-node with content type application/json and payload: { "node": "node-ab543f3e-42ef-415f-93b2-87fcfb0180b5" } 2021-12-20 22:29:24 | from localhost for action delete-node got result code 200 and payload { "Note": "Operation successful" } 2021-12-20 22:29:25 | [Mutex] waiting for: [received:nodes:20784bbe-cb04-43cd-a38f-da8d455d5373:localhost] 2021-12-20 22:29:25 | [Mutex] waiting for: [received:nodes:20784bbe-cb04-43cd-a38f-da8d455d5373:localhost] 2021-12-20 22:29:25 | [Mutex] received everything. 2021-12-20 22:29:25 | [Mutex] isItemNotified: received:node:20784bbe-cb04-43cd-a38f-da8d455d5373:localhost:node-ab543f3e-42ef-415f-93b2-87fcfb0180b5:Node ab543f3e-42ef-415f-93b2-87fcfb0180b5 :: false |
deleteSubnodes | 1.024s |
2021-12-20 22:29:23 |
2021-12-20 22:29:23 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-12-20 22:29:23 | ------------------------------------ 2021-12-20 22:29:23 | on localhost executing action delete-node with content type application/json and payload: { "node": "node-e9936cf7-eb9b-4d22-b8ff-9ee2617cd07f" } 2021-12-20 22:29:23 | from localhost for action delete-node got result code 200 and payload { "Note": "Operation successful" } 2021-12-20 22:29:24 | [Mutex] waiting for: [received:nodes:f77784f2-3ead-4d2f-a1d4-dbb65b9d2d4f:localhost] 2021-12-20 22:29:24 | [Mutex] received everything. 2021-12-20 22:29:24 | [Mutex] isItemNotified: received:node:f77784f2-3ead-4d2f-a1d4-dbb65b9d2d4f:localhost:node-e9936cf7-eb9b-4d22-b8ff-9ee2617cd07f:Node e9936cf7-eb9b-4d22-b8ff-9ee2617cd07f :: false 2021-12-20 22:29:24 | [Mutex] waiting for: [received:nodes:89bb67c2-d75a-4d52-8605-bed31bd784e7:localhost] 2021-12-20 22:29:24 | [Mutex] received everything. 2021-12-20 22:29:24 | [Mutex] isItemNotified: received:node:89bb67c2-d75a-4d52-8605-bed31bd784e7:localhost:node-e9936cf7-eb9b-4d22-b8ff-9ee2617cd07f:Node e9936cf7-eb9b-4d22-b8ff-9ee2617cd07f :: false |
publishItemsToNodes | 0.072s |
2021-12-20 22:29:22 |
2021-12-20 22:29:22 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-12-20 22:29:22 | ------------------------------------ 2021-12-20 22:29:22 | on localhost executing action publish-item with content type application/json and payload: { "node": "node-e9936cf7-eb9b-4d22-b8ff-9ee2617cd07f", "entry": "<test>item-c779abb7-b841-41f2-817f-fdd970770699</test>", "item-id": "item-c779abb7-b841-41f2-817f-fdd970770699" } 2021-12-20 22:29:22 | from localhost for action publish-item got result code 200 and payload { "Note": "Operation successful", "item-id": "item-c779abb7-b841-41f2-817f-fdd970770699" } 2021-12-20 22:29:22 | [Mutex] waiting for: [published:item:notifieditem-c779abb7-b841-41f2-817f-fdd970770699:admin@test-domain.com] 2021-12-20 22:29:22 | [Mutex] received everything. 2021-12-20 22:29:22 | [Mutex] isItemNotified: published:item:notifieditem-c779abb7-b841-41f2-817f-fdd970770699:admin@test-domain.com :: true |
retractItemsFromNodes | 0.059s |
2021-12-20 22:29:22 |
2021-12-20 22:29:22 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-12-20 22:29:22 | ------------------------------------ 2021-12-20 22:29:22 | on localhost executing action delete-item with content type application/json and payload: { "node": "node-e9936cf7-eb9b-4d22-b8ff-9ee2617cd07f", "item-id": "item-c779abb7-b841-41f2-817f-fdd970770699" } 2021-12-20 22:29:22 | from localhost for action delete-item got result code 200 and payload { "Note": "Operation successful", "item-id": "item-c779abb7-b841-41f2-817f-fdd970770699" } 2021-12-20 22:29:22 | [Mutex] waiting for: [retracted:item:notifieditem-c779abb7-b841-41f2-817f-fdd970770699:admin@test-domain.com] 2021-12-20 22:29:22 | [Mutex] received everything. 2021-12-20 22:29:22 | [Mutex] isItemNotified: retracted:item:notifieditem-c779abb7-b841-41f2-817f-fdd970770699:admin@test-domain.com :: true |
retrieveItemsFromNodes | 0.036s |
2021-12-20 22:29:22 |
2021-12-20 22:29:22 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-12-20 22:29:22 | ------------------------------------ 2021-12-20 22:29:22 | on localhost executing action retrieve-item with content type application/json and payload: { "node": "node-e9936cf7-eb9b-4d22-b8ff-9ee2617cd07f", "item-id": "item-c779abb7-b841-41f2-817f-fdd970770699" } 2021-12-20 22:29:22 | from localhost for action retrieve-item got result code 200 and payload { "title": "Retrive PubSub node item", "node": "node-e9936cf7-eb9b-4d22-b8ff-9ee2617cd07f", "item-id": "item-c779abb7-b841-41f2-817f-fdd970770699", "item": [ "<item id=\"item-c779abb7-b841-41f2-817f-fdd970770699\"><test>item-c779abb7-b841-41f2-817f-fdd970770699</test></item>" ] } 2021-12-20 22:29:22 | [Mutex] notify: [retrieved:item:item-c779abb7-b841-41f2-817f-fdd970770699:payload-matches:true:localhost] 2021-12-20 22:29:22 | [Mutex] received everything. 2021-12-20 22:29:22 | [Mutex] isItemNotified: retrieved:item:item-c779abb7-b841-41f2-817f-fdd970770699:payload-matches:true:localhost :: true |
retrieveUserSubscriptions | 0.052s |
2021-12-20 22:29:22 |
2021-12-20 22:29:22 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-12-20 22:29:22 | ------------------------------------ 2021-12-20 22:29:22 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload: { "jid": "admin@test-domain.com" } 2021-12-20 22:29:22 | from localhost for action retrieve-user-subscriptions got result code 200 and payload { "nodes": [ "node-ab543f3e-42ef-415f-93b2-87fcfb0180b5", "test", "node-e9936cf7-eb9b-4d22-b8ff-9ee2617cd07f" ] } |
retrieveUserSubscriptionsWithRegex | 0.052s |
2021-12-20 22:29:22 |
2021-12-20 22:29:22 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-12-20 22:29:22 | ------------------------------------ 2021-12-20 22:29:22 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload: { "jid": "admin@test-domain.com", "node-pattern": "(?!node-e9936cf7-eb9b-4d22-b8ff-9ee2617cd07f)" } 2021-12-20 22:29:22 | from localhost for action retrieve-user-subscriptions got result code 200 and payload { "nodes": [ ] } |
subscribeNodes | 1.010s |
2021-12-20 22:29:21 |
2021-12-20 22:29:21 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-12-20 22:29:21 | ------------------------------------ 2021-12-20 22:29:21 | on localhost executing action subscribe-node with content type application/json and payload: { "node": "node-e9936cf7-eb9b-4d22-b8ff-9ee2617cd07f", "jids": [ "admin@test-domain.com" ] } 2021-12-20 22:29:21 | from localhost for action subscribe-node got result code 200 and payload { "Note": "Operation successful" } |
unsubscribeNodes | 1.052s |
2021-12-20 22:29:22 |
2021-12-20 22:29:22 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-12-20 22:29:22 | ------------------------------------ 2021-12-20 22:29:22 | on localhost executing action unsubscribe-node with content type application/json and payload: { "node": "node-e9936cf7-eb9b-4d22-b8ff-9ee2617cd07f", "jids": [ "admin@test-domain.com" ] } 2021-12-20 22:29:22 | from localhost for action unsubscribe-node got result code 200 and payload { "Note": "Operation successful" } |