Test duration : 9.099s
Passed Tests | ||
---|---|---|
tigase.tests.pubsub.TestRestApiUsingJSON | ||
configureNodes | 1.115s |
2022-02-20 21:35:59 |
2022-02-20 21:35:59 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-02-20 21:35:59 | ------------------------------------ 2022-02-20 21:35:59 | [Mutex] waiting for: [configured:node:node-509c2885-2d67-4c56-878a-72bc3474f70a:node-85a164cb-64e8-4183-9b21-1dfac9e7f38f] 2022-02-20 21:35:59 | [Mutex] received everything. 2022-02-20 21:35:59 | [Mutex] isItemNotified: configured:node:node-509c2885-2d67-4c56-878a-72bc3474f70a:node-85a164cb-64e8-4183-9b21-1dfac9e7f38f :: true 2022-02-20 21:36:00 | [Mutex] waiting for: [received:nodes:326d835e-f500-49b5-949a-d9bfa923e464:localhost] 2022-02-20 21:36:00 | [Mutex] received everything. 2022-02-20 21:36:00 | [Mutex] isItemNotified: received:node:326d835e-f500-49b5-949a-d9bfa923e464:localhost:node-509c2885-2d67-4c56-878a-72bc3474f70a:Node 509c2885-2d67-4c56-878a-72bc3474f70a :: true 2022-02-20 21:36:00 | [Mutex] waiting for: [received:nodes:dbe4b463-3414-4797-8dde-7420e6179ff8:localhost] 2022-02-20 21:36:00 | [Mutex] received everything. 2022-02-20 21:36:00 | [Mutex] isItemNotified: received:node:dbe4b463-3414-4797-8dde-7420e6179ff8:localhost:node-509c2885-2d67-4c56-878a-72bc3474f70a:Node 509c2885-2d67-4c56-878a-72bc3474f70a :: false |
createNodes | 1.698s |
2022-02-20 21:35:57 |
2022-02-20 21:35:57 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-02-20 21:35:57 | ------------------------------------ 2022-02-20 21:35:57 | on localhost executing action create-node with content type application/json and payload: { "owner": "admin@test-domain.com", "pubsub#node_type": "leaf", "node": "node-509c2885-2d67-4c56-878a-72bc3474f70a", "pubsub#title": "Node 509c2885-2d67-4c56-878a-72bc3474f70a" } 2022-02-20 21:35:57 | from localhost for action create-node got result code 200 and payload { "Note": "Operation successful" } 2022-02-20 21:35:58 | [Mutex] waiting for: [received:nodes:e2e37cf6-7e9d-48ac-93a0-4bc9d706fefe:localhost] 2022-02-20 21:35:58 | [Mutex] received everything. 2022-02-20 21:35:58 | [Mutex] isItemNotified: received:node:e2e37cf6-7e9d-48ac-93a0-4bc9d706fefe:localhost:node-509c2885-2d67-4c56-878a-72bc3474f70a:Node 509c2885-2d67-4c56-878a-72bc3474f70a :: true |
createSubnodes | 1.032s |
2022-02-20 21:35:58 |
2022-02-20 21:35:58 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-02-20 21:35:58 | ------------------------------------ 2022-02-20 21:35:58 | on localhost executing action create-node with content type application/json and payload: { "owner": "admin@test-domain.com", "pubsub#node_type": "collection", "node": "node-85a164cb-64e8-4183-9b21-1dfac9e7f38f", "pubsub#title": "Node 85a164cb-64e8-4183-9b21-1dfac9e7f38f" } 2022-02-20 21:35:58 | from localhost for action create-node got result code 200 and payload { "Note": "Operation successful" } 2022-02-20 21:35:59 | [Mutex] waiting for: [received:nodes:4e769b12-3238-42b1-98a0-88569af80dff:localhost] 2022-02-20 21:35:59 | [Mutex] received everything. 2022-02-20 21:35:59 | [Mutex] isItemNotified: received:node:4e769b12-3238-42b1-98a0-88569af80dff:localhost:node-85a164cb-64e8-4183-9b21-1dfac9e7f38f:Node 85a164cb-64e8-4183-9b21-1dfac9e7f38f :: true |
deleteNodes | 1.026s |
2022-02-20 21:36:04 |
2022-02-20 21:36:04 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-02-20 21:36:04 | ------------------------------------ 2022-02-20 21:36:04 | on localhost executing action delete-node with content type application/json and payload: { "node": "node-85a164cb-64e8-4183-9b21-1dfac9e7f38f" } 2022-02-20 21:36:04 | from localhost for action delete-node got result code 200 and payload { "Note": "Operation successful" } 2022-02-20 21:36:05 | [Mutex] waiting for: [received:nodes:21c06196-608a-43f9-bcb9-78d1de1144bd:localhost] 2022-02-20 21:36:05 | [Mutex] received everything. 2022-02-20 21:36:05 | [Mutex] isItemNotified: received:node:21c06196-608a-43f9-bcb9-78d1de1144bd:localhost:node-85a164cb-64e8-4183-9b21-1dfac9e7f38f:Node 85a164cb-64e8-4183-9b21-1dfac9e7f38f :: false |
deleteSubnodes | 1.031s |
2022-02-20 21:36:03 |
2022-02-20 21:36:03 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-02-20 21:36:03 | ------------------------------------ 2022-02-20 21:36:03 | on localhost executing action delete-node with content type application/json and payload: { "node": "node-509c2885-2d67-4c56-878a-72bc3474f70a" } 2022-02-20 21:36:03 | from localhost for action delete-node got result code 200 and payload { "Note": "Operation successful" } 2022-02-20 21:36:04 | [Mutex] waiting for: [received:nodes:b8a7ca6e-5cc2-4ac7-a735-65376999a41e:localhost] 2022-02-20 21:36:04 | [Mutex] received everything. 2022-02-20 21:36:04 | [Mutex] isItemNotified: received:node:b8a7ca6e-5cc2-4ac7-a735-65376999a41e:localhost:node-509c2885-2d67-4c56-878a-72bc3474f70a:Node 509c2885-2d67-4c56-878a-72bc3474f70a :: false 2022-02-20 21:36:04 | [Mutex] waiting for: [received:nodes:9f18027c-f341-4b40-90c5-c106d21def19:localhost] 2022-02-20 21:36:04 | [Mutex] received everything. 2022-02-20 21:36:04 | [Mutex] isItemNotified: received:node:9f18027c-f341-4b40-90c5-c106d21def19:localhost:node-509c2885-2d67-4c56-878a-72bc3474f70a:Node 509c2885-2d67-4c56-878a-72bc3474f70a :: false |
publishItemsToNodes | 0.056s |
2022-02-20 21:36:02 |
2022-02-20 21:36:02 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-02-20 21:36:02 | ------------------------------------ 2022-02-20 21:36:02 | on localhost executing action publish-item with content type application/json and payload: { "node": "node-509c2885-2d67-4c56-878a-72bc3474f70a", "entry": "<test>item-dcc188c0-83e0-47f3-ae96-746384d280a1</test>", "item-id": "item-dcc188c0-83e0-47f3-ae96-746384d280a1" } 2022-02-20 21:36:02 | from localhost for action publish-item got result code 200 and payload { "Note": "Operation successful", "item-id": "item-dcc188c0-83e0-47f3-ae96-746384d280a1" } 2022-02-20 21:36:02 | [Mutex] waiting for: [published:item:notifieditem-dcc188c0-83e0-47f3-ae96-746384d280a1:admin@test-domain.com] 2022-02-20 21:36:02 | [Mutex] received everything. 2022-02-20 21:36:02 | [Mutex] isItemNotified: published:item:notifieditem-dcc188c0-83e0-47f3-ae96-746384d280a1:admin@test-domain.com :: true |
retractItemsFromNodes | 0.088s |
2022-02-20 21:36:02 |
2022-02-20 21:36:02 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-02-20 21:36:02 | ------------------------------------ 2022-02-20 21:36:02 | on localhost executing action delete-item with content type application/json and payload: { "node": "node-509c2885-2d67-4c56-878a-72bc3474f70a", "item-id": "item-dcc188c0-83e0-47f3-ae96-746384d280a1" } 2022-02-20 21:36:02 | from localhost for action delete-item got result code 200 and payload { "Note": "Operation successful", "item-id": "item-dcc188c0-83e0-47f3-ae96-746384d280a1" } 2022-02-20 21:36:02 | [Mutex] received everything. 2022-02-20 21:36:02 | [Mutex] isItemNotified: retracted:item:notifieditem-dcc188c0-83e0-47f3-ae96-746384d280a1:admin@test-domain.com :: true |
retrieveItemsFromNodes | 0.150s |
2022-02-20 21:36:02 |
2022-02-20 21:36:02 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-02-20 21:36:02 | ------------------------------------ 2022-02-20 21:36:02 | on localhost executing action retrieve-item with content type application/json and payload: { "node": "node-509c2885-2d67-4c56-878a-72bc3474f70a", "item-id": "item-dcc188c0-83e0-47f3-ae96-746384d280a1" } 2022-02-20 21:36:02 | from localhost for action retrieve-item got result code 200 and payload { "title": "Retrive PubSub node item", "node": "node-509c2885-2d67-4c56-878a-72bc3474f70a", "item-id": "item-dcc188c0-83e0-47f3-ae96-746384d280a1", "item": [ "<item id=\"item-dcc188c0-83e0-47f3-ae96-746384d280a1\"><test>item-dcc188c0-83e0-47f3-ae96-746384d280a1</test></item>" ] } 2022-02-20 21:36:02 | [Mutex] notify: [retrieved:item:item-dcc188c0-83e0-47f3-ae96-746384d280a1:payload-matches:true:localhost] 2022-02-20 21:36:02 | [Mutex] received everything. 2022-02-20 21:36:02 | [Mutex] isItemNotified: retrieved:item:item-dcc188c0-83e0-47f3-ae96-746384d280a1:payload-matches:true:localhost :: true |
retrieveUserSubscriptions | 0.051s |
2022-02-20 21:36:02 |
2022-02-20 21:36:02 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-02-20 21:36:02 | ------------------------------------ 2022-02-20 21:36:02 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload: { "jid": "admin@test-domain.com" } 2022-02-20 21:36:02 | from localhost for action retrieve-user-subscriptions got result code 200 and payload { "nodes": [ "node-85a164cb-64e8-4183-9b21-1dfac9e7f38f", "node-509c2885-2d67-4c56-878a-72bc3474f70a", "test" ] } |
retrieveUserSubscriptionsWithRegex | 0.051s |
2022-02-20 21:36:02 |
2022-02-20 21:36:02 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-02-20 21:36:02 | ------------------------------------ 2022-02-20 21:36:02 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload: { "jid": "admin@test-domain.com", "node-pattern": "(?!node-509c2885-2d67-4c56-878a-72bc3474f70a)" } 2022-02-20 21:36:02 | from localhost for action retrieve-user-subscriptions got result code 200 and payload { "nodes": [ ] } |
subscribeNodes | 1.011s |
2022-02-20 21:36:00 |
2022-02-20 21:36:00 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-02-20 21:36:00 | ------------------------------------ 2022-02-20 21:36:00 | on localhost executing action subscribe-node with content type application/json and payload: { "node": "node-509c2885-2d67-4c56-878a-72bc3474f70a", "jids": [ "admin@test-domain.com" ] } 2022-02-20 21:36:01 | from localhost for action subscribe-node got result code 200 and payload { "Note": "Operation successful" } |
unsubscribeNodes | 1.058s |
2022-02-20 21:36:02 |
2022-02-20 21:36:02 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-02-20 21:36:02 | ------------------------------------ 2022-02-20 21:36:02 | on localhost executing action unsubscribe-node with content type application/json and payload: { "node": "node-509c2885-2d67-4c56-878a-72bc3474f70a", "jids": [ "admin@test-domain.com" ] } 2022-02-20 21:36:02 | from localhost for action unsubscribe-node got result code 200 and payload { "Note": "Operation successful" } |