Test duration : 8.498s
Passed Tests | ||
---|---|---|
tigase.tests.pubsub.TestRestApiUsingJSON | ||
configureNodes | 1.101s |
2022-11-13 21:33:20 |
2022-11-13 21:33:20 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-11-13 21:33:20 | ------------------------------------ 2022-11-13 21:33:20 | [Mutex] waiting for: [configured:node:node-663d4c2e-21b4-4ac4-9300-033b1a592baf:node-f1d73129-ef30-417f-9959-453759e744b1] 2022-11-13 21:33:20 | [Mutex] received everything. 2022-11-13 21:33:20 | [Mutex] isItemNotified: configured:node:node-663d4c2e-21b4-4ac4-9300-033b1a592baf:node-f1d73129-ef30-417f-9959-453759e744b1 :: true 2022-11-13 21:33:21 | [Mutex] waiting for: [received:nodes:cf958c05-e462-4e30-b4c2-690328fe9014:localhost] 2022-11-13 21:33:21 | [Mutex] received everything. 2022-11-13 21:33:21 | [Mutex] isItemNotified: received:node:cf958c05-e462-4e30-b4c2-690328fe9014:localhost:node-663d4c2e-21b4-4ac4-9300-033b1a592baf:Node 663d4c2e-21b4-4ac4-9300-033b1a592baf :: true 2022-11-13 21:33:21 | [Mutex] waiting for: [received:nodes:ee0b9cd9-f5ff-421a-8f08-aab1e381b99f:localhost] 2022-11-13 21:33:21 | [Mutex] waiting for: [received:nodes:ee0b9cd9-f5ff-421a-8f08-aab1e381b99f:localhost] 2022-11-13 21:33:21 | [Mutex] waiting for: [received:nodes:ee0b9cd9-f5ff-421a-8f08-aab1e381b99f:localhost] 2022-11-13 21:33:21 | [Mutex] received everything. 2022-11-13 21:33:21 | [Mutex] isItemNotified: received:node:ee0b9cd9-f5ff-421a-8f08-aab1e381b99f:localhost:node-663d4c2e-21b4-4ac4-9300-033b1a592baf:Node 663d4c2e-21b4-4ac4-9300-033b1a592baf :: false |
createNodes | 1.503s |
2022-11-13 21:33:18 |
2022-11-13 21:33:18 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-11-13 21:33:18 | ------------------------------------ 2022-11-13 21:33: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-663d4c2e-21b4-4ac4-9300-033b1a592baf", "pubsub#title": "Node 663d4c2e-21b4-4ac4-9300-033b1a592baf" } 2022-11-13 21:33:18 | from localhost for action create-node got result code 200 and payload { "Note": "Operation successful" } 2022-11-13 21:33:19 | [Mutex] waiting for: [received:nodes:7f204ff7-ef4a-474b-a255-7681ecc1e508:localhost] 2022-11-13 21:33:19 | [Mutex] waiting for: [received:nodes:7f204ff7-ef4a-474b-a255-7681ecc1e508:localhost] 2022-11-13 21:33:19 | [Mutex] received everything. 2022-11-13 21:33:19 | [Mutex] isItemNotified: received:node:7f204ff7-ef4a-474b-a255-7681ecc1e508:localhost:node-663d4c2e-21b4-4ac4-9300-033b1a592baf:Node 663d4c2e-21b4-4ac4-9300-033b1a592baf :: true |
createSubnodes | 1.024s |
2022-11-13 21:33:19 |
2022-11-13 21:33:19 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-11-13 21:33:19 | ------------------------------------ 2022-11-13 21:33: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-f1d73129-ef30-417f-9959-453759e744b1", "pubsub#title": "Node f1d73129-ef30-417f-9959-453759e744b1" } 2022-11-13 21:33:19 | from localhost for action create-node got result code 200 and payload { "Note": "Operation successful" } 2022-11-13 21:33:20 | [Mutex] waiting for: [received:nodes:d7fed1e8-e602-4216-95e8-22c23bc3ac27:localhost] 2022-11-13 21:33:20 | [Mutex] waiting for: [received:nodes:d7fed1e8-e602-4216-95e8-22c23bc3ac27:localhost] 2022-11-13 21:33:20 | [Mutex] received everything. 2022-11-13 21:33:20 | [Mutex] isItemNotified: received:node:d7fed1e8-e602-4216-95e8-22c23bc3ac27:localhost:node-f1d73129-ef30-417f-9959-453759e744b1:Node f1d73129-ef30-417f-9959-453759e744b1 :: true |
deleteNodes | 1.020s |
2022-11-13 21:33:25 |
2022-11-13 21:33:25 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-11-13 21:33:25 | ------------------------------------ 2022-11-13 21:33:25 | on localhost executing action delete-node with content type application/json and payload: { "node": "node-f1d73129-ef30-417f-9959-453759e744b1" } 2022-11-13 21:33:25 | from localhost for action delete-node got result code 200 and payload { "Note": "Operation successful" } 2022-11-13 21:33:26 | [Mutex] waiting for: [received:nodes:1075a669-73dd-4702-980b-36ef11582659:localhost] 2022-11-13 21:33:26 | [Mutex] received everything. 2022-11-13 21:33:26 | [Mutex] isItemNotified: received:node:1075a669-73dd-4702-980b-36ef11582659:localhost:node-f1d73129-ef30-417f-9959-453759e744b1:Node f1d73129-ef30-417f-9959-453759e744b1 :: false |
deleteSubnodes | 1.028s |
2022-11-13 21:33:24 |
2022-11-13 21:33:24 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-11-13 21:33:24 | ------------------------------------ 2022-11-13 21:33:24 | on localhost executing action delete-node with content type application/json and payload: { "node": "node-663d4c2e-21b4-4ac4-9300-033b1a592baf" } 2022-11-13 21:33:24 | from localhost for action delete-node got result code 200 and payload { "Note": "Operation successful" } 2022-11-13 21:33:25 | [Mutex] waiting for: [received:nodes:bbaceb10-2c6e-43db-8d10-324733f7468f:localhost] 2022-11-13 21:33:25 | [Mutex] waiting for: [received:nodes:bbaceb10-2c6e-43db-8d10-324733f7468f:localhost] 2022-11-13 21:33:25 | [Mutex] waiting for: [received:nodes:bbaceb10-2c6e-43db-8d10-324733f7468f:localhost] 2022-11-13 21:33:25 | [Mutex] received everything. 2022-11-13 21:33:25 | [Mutex] isItemNotified: received:node:bbaceb10-2c6e-43db-8d10-324733f7468f:localhost:node-663d4c2e-21b4-4ac4-9300-033b1a592baf:Node 663d4c2e-21b4-4ac4-9300-033b1a592baf :: false 2022-11-13 21:33:25 | [Mutex] waiting for: [received:nodes:856f20fc-e097-4b4a-8465-e383f6f4e2d0:localhost] 2022-11-13 21:33:25 | [Mutex] received everything. 2022-11-13 21:33:25 | [Mutex] isItemNotified: received:node:856f20fc-e097-4b4a-8465-e383f6f4e2d0:localhost:node-663d4c2e-21b4-4ac4-9300-033b1a592baf:Node 663d4c2e-21b4-4ac4-9300-033b1a592baf :: false |
publishItemsToNodes | 0.038s |
2022-11-13 21:33:22 |
2022-11-13 21:33:22 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-11-13 21:33:22 | ------------------------------------ 2022-11-13 21:33:22 | on localhost executing action publish-item with content type application/json and payload: { "node": "node-663d4c2e-21b4-4ac4-9300-033b1a592baf", "entry": "<test>item-3dc836b5-65e6-4f01-b776-90d1e7de4c09</test>", "item-id": "item-3dc836b5-65e6-4f01-b776-90d1e7de4c09" } 2022-11-13 21:33:22 | from localhost for action publish-item got result code 200 and payload { "Note": "Operation successful", "item-id": "item-3dc836b5-65e6-4f01-b776-90d1e7de4c09" } 2022-11-13 21:33:22 | [Mutex] waiting for: [published:item:notifieditem-3dc836b5-65e6-4f01-b776-90d1e7de4c09:admin@test-domain.com] 2022-11-13 21:33:22 | [Mutex] received everything. 2022-11-13 21:33:22 | [Mutex] isItemNotified: published:item:notifieditem-3dc836b5-65e6-4f01-b776-90d1e7de4c09:admin@test-domain.com :: true |
retractItemsFromNodes | 0.074s |
2022-11-13 21:33:23 |
2022-11-13 21:33:23 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-11-13 21:33:23 | ------------------------------------ 2022-11-13 21:33:23 | on localhost executing action delete-item with content type application/json and payload: { "node": "node-663d4c2e-21b4-4ac4-9300-033b1a592baf", "item-id": "item-3dc836b5-65e6-4f01-b776-90d1e7de4c09" } 2022-11-13 21:33:23 | from localhost for action delete-item got result code 200 and payload { "Note": "Operation successful", "item-id": "item-3dc836b5-65e6-4f01-b776-90d1e7de4c09" } 2022-11-13 21:33:23 | [Mutex] received everything. 2022-11-13 21:33:23 | [Mutex] isItemNotified: retracted:item:notifieditem-3dc836b5-65e6-4f01-b776-90d1e7de4c09:admin@test-domain.com :: true |
retrieveItemsFromNodes | 0.067s |
2022-11-13 21:33:22 |
2022-11-13 21:33:22 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-11-13 21:33:22 | ------------------------------------ 2022-11-13 21:33:22 | on localhost executing action retrieve-item with content type application/json and payload: { "node": "node-663d4c2e-21b4-4ac4-9300-033b1a592baf", "item-id": "item-3dc836b5-65e6-4f01-b776-90d1e7de4c09" } 2022-11-13 21:33:22 | from localhost for action retrieve-item got result code 200 and payload { "title": "Retrive PubSub node item", "node": "node-663d4c2e-21b4-4ac4-9300-033b1a592baf", "item-id": "item-3dc836b5-65e6-4f01-b776-90d1e7de4c09", "item": [ "<item id=\"item-3dc836b5-65e6-4f01-b776-90d1e7de4c09\"><test>item-3dc836b5-65e6-4f01-b776-90d1e7de4c09</test></item>" ] } 2022-11-13 21:33:22 | [Mutex] notify: [retrieved:item:item-3dc836b5-65e6-4f01-b776-90d1e7de4c09:payload-matches:true:localhost] 2022-11-13 21:33:22 | [Mutex] received everything. 2022-11-13 21:33:22 | [Mutex] isItemNotified: retrieved:item:item-3dc836b5-65e6-4f01-b776-90d1e7de4c09:payload-matches:true:localhost :: true |
retrieveUserSubscriptions | 0.047s |
2022-11-13 21:33:22 |
2022-11-13 21:33:22 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-11-13 21:33:22 | ------------------------------------ 2022-11-13 21:33:22 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload: { "jid": "admin@test-domain.com" } 2022-11-13 21:33:23 | from localhost for action retrieve-user-subscriptions got result code 200 and payload { "nodes": [ "test", "node-f1d73129-ef30-417f-9959-453759e744b1", "node-663d4c2e-21b4-4ac4-9300-033b1a592baf" ] } |
retrieveUserSubscriptionsWithRegex | 0.048s |
2022-11-13 21:33:23 |
2022-11-13 21:33:23 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-11-13 21:33:23 | ------------------------------------ 2022-11-13 21:33:23 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload: { "jid": "admin@test-domain.com", "node-pattern": "(?!node-663d4c2e-21b4-4ac4-9300-033b1a592baf)" } 2022-11-13 21:33:23 | from localhost for action retrieve-user-subscriptions got result code 200 and payload { "nodes": [ ] } |
subscribeNodes | 1.010s |
2022-11-13 21:33:21 |
2022-11-13 21:33:21 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-11-13 21:33:21 | ------------------------------------ 2022-11-13 21:33:21 | on localhost executing action subscribe-node with content type application/json and payload: { "node": "node-663d4c2e-21b4-4ac4-9300-033b1a592baf", "jids": [ "admin@test-domain.com" ] } 2022-11-13 21:33:21 | from localhost for action subscribe-node got result code 200 and payload { "Note": "Operation successful" } |
unsubscribeNodes | 1.059s |
2022-11-13 21:33:23 |
2022-11-13 21:33:23 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-11-13 21:33:23 | ------------------------------------ 2022-11-13 21:33:23 | on localhost executing action unsubscribe-node with content type application/json and payload: { "node": "node-663d4c2e-21b4-4ac4-9300-033b1a592baf", "jids": [ "admin@test-domain.com" ] } 2022-11-13 21:33:23 | from localhost for action unsubscribe-node got result code 200 and payload { "Note": "Operation successful" } |