Test duration : 9.376s
Passed Tests | ||
---|---|---|
tigase.tests.pubsub.TestRestApiUsingJSON | ||
configureNodes | 1.160s |
2020-10-27 23:00:36 |
2020-10-27 23:00:36 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-10-27 23:00:36 | ------------------------------------ 2020-10-27 23:00:36 | [Mutex] waiting for: [configured:node:node-63a9dc86-adaf-492e-b67b-20de442e6836:node-52c5f282-fe60-451b-9d82-68d471d9ea43] 2020-10-27 23:00:36 | [Mutex] received everything. 2020-10-27 23:00:36 | [Mutex] isItemNotified: configured:node:node-63a9dc86-adaf-492e-b67b-20de442e6836:node-52c5f282-fe60-451b-9d82-68d471d9ea43 :: true 2020-10-27 23:00:37 | [Mutex] waiting for: [received:nodes:1438d4d8-5e85-4187-a863-c43503fc2ac6:localhost] 2020-10-27 23:00:37 | [Mutex] received everything. 2020-10-27 23:00:37 | [Mutex] isItemNotified: received:node:1438d4d8-5e85-4187-a863-c43503fc2ac6:localhost:node-63a9dc86-adaf-492e-b67b-20de442e6836:Node 63a9dc86-adaf-492e-b67b-20de442e6836 :: true 2020-10-27 23:00:37 | [Mutex] waiting for: [received:nodes:e6195fd4-7570-4afa-93ba-6ac29389bea1:localhost] 2020-10-27 23:00:37 | [Mutex] received everything. 2020-10-27 23:00:37 | [Mutex] isItemNotified: received:node:e6195fd4-7570-4afa-93ba-6ac29389bea1:localhost:node-63a9dc86-adaf-492e-b67b-20de442e6836:Node 63a9dc86-adaf-492e-b67b-20de442e6836 :: false |
createNodes | 1.734s |
2020-10-27 23:00:33 |
2020-10-27 23:00:33 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-10-27 23:00:33 | ------------------------------------ 2020-10-27 23:00:34 | on localhost executing action create-node with content type application/json and payload: { "owner": "admin@test-domain.com", "pubsub#node_type": "leaf", "node": "node-63a9dc86-adaf-492e-b67b-20de442e6836", "pubsub#title": "Node 63a9dc86-adaf-492e-b67b-20de442e6836" } 2020-10-27 23:00:34 | from localhost for action create-node got result code 200 and payload { "Note": "Operation successful" } 2020-10-27 23:00:35 | [Mutex] waiting for: [received:nodes:7cf16037-cf4b-47a1-84ae-8565ff9631ad:localhost] 2020-10-27 23:00:35 | [Mutex] received everything. 2020-10-27 23:00:35 | [Mutex] isItemNotified: received:node:7cf16037-cf4b-47a1-84ae-8565ff9631ad:localhost:node-63a9dc86-adaf-492e-b67b-20de442e6836:Node 63a9dc86-adaf-492e-b67b-20de442e6836 :: true |
createSubnodes | 1.038s |
2020-10-27 23:00:35 |
2020-10-27 23:00:35 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-10-27 23:00:35 | ------------------------------------ 2020-10-27 23:00:35 | on localhost executing action create-node with content type application/json and payload: { "owner": "admin@test-domain.com", "pubsub#node_type": "collection", "node": "node-52c5f282-fe60-451b-9d82-68d471d9ea43", "pubsub#title": "Node 52c5f282-fe60-451b-9d82-68d471d9ea43" } 2020-10-27 23:00:35 | from localhost for action create-node got result code 200 and payload { "Note": "Operation successful" } 2020-10-27 23:00:36 | [Mutex] waiting for: [received:nodes:5c845718-5594-4fdd-a08a-28a2438f52f1:localhost] 2020-10-27 23:00:36 | [Mutex] received everything. 2020-10-27 23:00:36 | [Mutex] isItemNotified: received:node:5c845718-5594-4fdd-a08a-28a2438f52f1:localhost:node-52c5f282-fe60-451b-9d82-68d471d9ea43:Node 52c5f282-fe60-451b-9d82-68d471d9ea43 :: true |
deleteNodes | 1.022s |
2020-10-27 23:00:41 |
2020-10-27 23:00:41 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-10-27 23:00:41 | ------------------------------------ 2020-10-27 23:00:41 | on localhost executing action delete-node with content type application/json and payload: { "node": "node-52c5f282-fe60-451b-9d82-68d471d9ea43" } 2020-10-27 23:00:41 | from localhost for action delete-node got result code 200 and payload { "Note": "Operation successful" } 2020-10-27 23:00:42 | [Mutex] waiting for: [received:nodes:670832e7-bb4a-4778-8956-307810a4f359:localhost] 2020-10-27 23:00:42 | [Mutex] received everything. 2020-10-27 23:00:42 | [Mutex] isItemNotified: received:node:670832e7-bb4a-4778-8956-307810a4f359:localhost:node-52c5f282-fe60-451b-9d82-68d471d9ea43:Node 52c5f282-fe60-451b-9d82-68d471d9ea43 :: false |
deleteSubnodes | 1.045s |
2020-10-27 23:00:40 |
2020-10-27 23:00:40 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-10-27 23:00:40 | ------------------------------------ 2020-10-27 23:00:40 | on localhost executing action delete-node with content type application/json and payload: { "node": "node-63a9dc86-adaf-492e-b67b-20de442e6836" } 2020-10-27 23:00:40 | from localhost for action delete-node got result code 200 and payload { "Note": "Operation successful" } 2020-10-27 23:00:41 | [Mutex] waiting for: [received:nodes:4a5bf518-b590-4636-b0b1-e53878d1984e:localhost] 2020-10-27 23:00:41 | [Mutex] waiting for: [received:nodes:4a5bf518-b590-4636-b0b1-e53878d1984e:localhost] 2020-10-27 23:00:41 | [Mutex] received everything. 2020-10-27 23:00:41 | [Mutex] isItemNotified: received:node:4a5bf518-b590-4636-b0b1-e53878d1984e:localhost:node-63a9dc86-adaf-492e-b67b-20de442e6836:Node 63a9dc86-adaf-492e-b67b-20de442e6836 :: false 2020-10-27 23:00:41 | [Mutex] waiting for: [received:nodes:965a04c7-9752-4671-887f-00bbc48af240:localhost] 2020-10-27 23:00:41 | [Mutex] received everything. 2020-10-27 23:00:41 | [Mutex] isItemNotified: received:node:965a04c7-9752-4671-887f-00bbc48af240:localhost:node-63a9dc86-adaf-492e-b67b-20de442e6836:Node 63a9dc86-adaf-492e-b67b-20de442e6836 :: false |
publishItemsToNodes | 0.057s |
2020-10-27 23:00:38 |
2020-10-27 23:00:38 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-10-27 23:00:38 | ------------------------------------ 2020-10-27 23:00:38 | on localhost executing action publish-item with content type application/json and payload: { "node": "node-63a9dc86-adaf-492e-b67b-20de442e6836", "entry": "<test>item-2d31feab-f863-4806-8a76-501c33ef3f15</test>", "item-id": "item-2d31feab-f863-4806-8a76-501c33ef3f15" } 2020-10-27 23:00:38 | from localhost for action publish-item got result code 200 and payload { "Note": "Operation successful", "item-id": "item-2d31feab-f863-4806-8a76-501c33ef3f15" } 2020-10-27 23:00:38 | [Mutex] received everything. 2020-10-27 23:00:38 | [Mutex] isItemNotified: published:item:notifieditem-2d31feab-f863-4806-8a76-501c33ef3f15:admin@test-domain.com :: true |
retractItemsFromNodes | 0.087s |
2020-10-27 23:00:39 |
2020-10-27 23:00:39 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-10-27 23:00:39 | ------------------------------------ 2020-10-27 23:00:39 | on localhost executing action delete-item with content type application/json and payload: { "node": "node-63a9dc86-adaf-492e-b67b-20de442e6836", "item-id": "item-2d31feab-f863-4806-8a76-501c33ef3f15" } 2020-10-27 23:00:39 | from localhost for action delete-item got result code 200 and payload { "Note": "Operation successful", "item-id": "item-2d31feab-f863-4806-8a76-501c33ef3f15" } 2020-10-27 23:00:39 | [Mutex] received everything. 2020-10-27 23:00:39 | [Mutex] isItemNotified: retracted:item:notifieditem-2d31feab-f863-4806-8a76-501c33ef3f15:admin@test-domain.com :: true |
retrieveItemsFromNodes | 0.074s |
2020-10-27 23:00:38 |
2020-10-27 23:00:38 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-10-27 23:00:38 | ------------------------------------ 2020-10-27 23:00:38 | on localhost executing action retrieve-item with content type application/json and payload: { "node": "node-63a9dc86-adaf-492e-b67b-20de442e6836", "item-id": "item-2d31feab-f863-4806-8a76-501c33ef3f15" } 2020-10-27 23:00:38 | from localhost for action retrieve-item got result code 200 and payload { "title": "Retrive PubSub node item", "node": "node-63a9dc86-adaf-492e-b67b-20de442e6836", "item-id": "item-2d31feab-f863-4806-8a76-501c33ef3f15", "item": [ "<item id=\"item-2d31feab-f863-4806-8a76-501c33ef3f15\"><test>item-2d31feab-f863-4806-8a76-501c33ef3f15</test></item>" ] } 2020-10-27 23:00:38 | [Mutex] notify: [retrieved:item:item-2d31feab-f863-4806-8a76-501c33ef3f15:payload-matches:true:localhost] 2020-10-27 23:00:38 | [Mutex] received everything. 2020-10-27 23:00:38 | [Mutex] isItemNotified: retrieved:item:item-2d31feab-f863-4806-8a76-501c33ef3f15:payload-matches:true:localhost :: true |
retrieveUserSubscriptions | 0.075s |
2020-10-27 23:00:38 |
2020-10-27 23:00:38 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-10-27 23:00:38 | ------------------------------------ 2020-10-27 23:00:38 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload: { "jid": "admin@test-domain.com" } 2020-10-27 23:00:39 | from localhost for action retrieve-user-subscriptions got result code 200 and payload { "nodes": [ "test", "node-52c5f282-fe60-451b-9d82-68d471d9ea43", "node-63a9dc86-adaf-492e-b67b-20de442e6836" ] } |
retrieveUserSubscriptionsWithRegex | 0.055s |
2020-10-27 23:00:39 |
2020-10-27 23:00:39 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-10-27 23:00:39 | ------------------------------------ 2020-10-27 23:00:39 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload: { "jid": "admin@test-domain.com", "node-pattern": "(?!node-63a9dc86-adaf-492e-b67b-20de442e6836)" } 2020-10-27 23:00:39 | from localhost for action retrieve-user-subscriptions got result code 200 and payload { "nodes": [ ] } |
subscribeNodes | 1.018s |
2020-10-27 23:00:37 |
2020-10-27 23:00:37 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-10-27 23:00:37 | ------------------------------------ 2020-10-27 23:00:37 | on localhost executing action subscribe-node with content type application/json and payload: { "node": "node-63a9dc86-adaf-492e-b67b-20de442e6836", "jids": [ "admin@test-domain.com" ] } 2020-10-27 23:00:37 | from localhost for action subscribe-node got result code 200 and payload { "Note": "Operation successful" } |
unsubscribeNodes | 1.118s |
2020-10-27 23:00:39 |
2020-10-27 23:00:39 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-10-27 23:00:39 | ------------------------------------ 2020-10-27 23:00:39 | on localhost executing action unsubscribe-node with content type application/json and payload: { "node": "node-63a9dc86-adaf-492e-b67b-20de442e6836", "jids": [ "admin@test-domain.com" ] } 2020-10-27 23:00:39 | from localhost for action unsubscribe-node got result code 200 and payload { "Note": "Operation successful" } |