Test duration : 8.507s
Passed Tests | ||
---|---|---|
tigase.tests.pubsub.TestRestApiUsingJSON | ||
configureNodes | 1.113s |
2023-07-11 23:01:00 |
2023-07-11 23:01:00 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2023-07-11 23:01:00 | ------------------------------------ 2023-07-11 23:01:00 | [Mutex] waiting for: [configured:node:node-baec7340-c683-4a02-9cc7-e2b89aef6cf5:node-b292abc4-12c6-4cd5-87fe-450b0ace90ee] 2023-07-11 23:01:00 | [Mutex] received everything. 2023-07-11 23:01:00 | [Mutex] isItemNotified: configured:node:node-baec7340-c683-4a02-9cc7-e2b89aef6cf5:node-b292abc4-12c6-4cd5-87fe-450b0ace90ee :: true 2023-07-11 23:01:01 | [Mutex] waiting for: [received:nodes:e072f5c8-8555-4dd7-b310-418b43901287:localhost] 2023-07-11 23:01:01 | [Mutex] received everything. 2023-07-11 23:01:01 | [Mutex] isItemNotified: received:node:e072f5c8-8555-4dd7-b310-418b43901287:localhost:node-baec7340-c683-4a02-9cc7-e2b89aef6cf5:Node baec7340-c683-4a02-9cc7-e2b89aef6cf5 :: true 2023-07-11 23:01:01 | [Mutex] waiting for: [received:nodes:e49a6fa8-2a3c-4823-9133-4e56ac47df9f:localhost] 2023-07-11 23:01:01 | [Mutex] waiting for: [received:nodes:e49a6fa8-2a3c-4823-9133-4e56ac47df9f:localhost] 2023-07-11 23:01:01 | [Mutex] waiting for: [received:nodes:e49a6fa8-2a3c-4823-9133-4e56ac47df9f:localhost] 2023-07-11 23:01:01 | [Mutex] received everything. 2023-07-11 23:01:01 | [Mutex] isItemNotified: received:node:e49a6fa8-2a3c-4823-9133-4e56ac47df9f:localhost:node-baec7340-c683-4a02-9cc7-e2b89aef6cf5:Node baec7340-c683-4a02-9cc7-e2b89aef6cf5 :: false |
createNodes | 1.544s |
2023-07-11 23:00:57 |
2023-07-11 23:00:57 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2023-07-11 23:00:57 | ------------------------------------ 2023-07-11 23:00: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-baec7340-c683-4a02-9cc7-e2b89aef6cf5", "pubsub#title": "Node baec7340-c683-4a02-9cc7-e2b89aef6cf5" } 2023-07-11 23:00:57 | from localhost for action create-node got result code 200 and payload { "Note": "Operation successful" } 2023-07-11 23:00:59 | [Mutex] waiting for: [received:nodes:97f9f69c-07c8-4d3e-a782-f39c717dedd6:localhost] 2023-07-11 23:00:59 | [Mutex] received everything. 2023-07-11 23:00:59 | [Mutex] isItemNotified: received:node:97f9f69c-07c8-4d3e-a782-f39c717dedd6:localhost:node-baec7340-c683-4a02-9cc7-e2b89aef6cf5:Node baec7340-c683-4a02-9cc7-e2b89aef6cf5 :: true |
createSubnodes | 1.025s |
2023-07-11 23:00:59 |
2023-07-11 23:00:59 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2023-07-11 23:00:59 | ------------------------------------ 2023-07-11 23:00:59 | on localhost executing action create-node with content type application/json and payload: { "owner": "admin@test-domain.com", "pubsub#node_type": "collection", "node": "node-b292abc4-12c6-4cd5-87fe-450b0ace90ee", "pubsub#title": "Node b292abc4-12c6-4cd5-87fe-450b0ace90ee" } 2023-07-11 23:00:59 | from localhost for action create-node got result code 200 and payload { "Note": "Operation successful" } 2023-07-11 23:01:00 | [Mutex] waiting for: [received:nodes:5b60f7c5-4fba-4c21-89a1-482605d65af9:localhost] 2023-07-11 23:01:00 | [Mutex] waiting for: [received:nodes:5b60f7c5-4fba-4c21-89a1-482605d65af9:localhost] 2023-07-11 23:01:00 | [Mutex] waiting for: [received:nodes:5b60f7c5-4fba-4c21-89a1-482605d65af9:localhost] 2023-07-11 23:01:00 | [Mutex] waiting for: [received:nodes:5b60f7c5-4fba-4c21-89a1-482605d65af9:localhost] 2023-07-11 23:01:00 | [Mutex] received everything. 2023-07-11 23:01:00 | [Mutex] isItemNotified: received:node:5b60f7c5-4fba-4c21-89a1-482605d65af9:localhost:node-b292abc4-12c6-4cd5-87fe-450b0ace90ee:Node b292abc4-12c6-4cd5-87fe-450b0ace90ee :: true |
deleteNodes | 1.016s |
2023-07-11 23:01:04 |
2023-07-11 23:01:04 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2023-07-11 23:01:04 | ------------------------------------ 2023-07-11 23:01:04 | on localhost executing action delete-node with content type application/json and payload: { "node": "node-b292abc4-12c6-4cd5-87fe-450b0ace90ee" } 2023-07-11 23:01:04 | from localhost for action delete-node got result code 200 and payload { "Note": "Operation successful" } 2023-07-11 23:01:05 | [Mutex] waiting for: [received:nodes:fc537ca6-729f-4533-8490-ae04c1828230:localhost] 2023-07-11 23:01:05 | [Mutex] waiting for: [received:nodes:fc537ca6-729f-4533-8490-ae04c1828230:localhost] 2023-07-11 23:01:05 | [Mutex] received everything. 2023-07-11 23:01:05 | [Mutex] isItemNotified: received:node:fc537ca6-729f-4533-8490-ae04c1828230:localhost:node-b292abc4-12c6-4cd5-87fe-450b0ace90ee:Node b292abc4-12c6-4cd5-87fe-450b0ace90ee :: false |
deleteSubnodes | 1.023s |
2023-07-11 23:01:03 |
2023-07-11 23:01:03 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2023-07-11 23:01:03 | ------------------------------------ 2023-07-11 23:01:03 | on localhost executing action delete-node with content type application/json and payload: { "node": "node-baec7340-c683-4a02-9cc7-e2b89aef6cf5" } 2023-07-11 23:01:03 | from localhost for action delete-node got result code 200 and payload { "Note": "Operation successful" } 2023-07-11 23:01:04 | [Mutex] waiting for: [received:nodes:5b1672b5-1b48-4a7d-b462-3dc6fb318c4b:localhost] 2023-07-11 23:01:04 | [Mutex] waiting for: [received:nodes:5b1672b5-1b48-4a7d-b462-3dc6fb318c4b:localhost] 2023-07-11 23:01:04 | [Mutex] waiting for: [received:nodes:5b1672b5-1b48-4a7d-b462-3dc6fb318c4b:localhost] 2023-07-11 23:01:04 | [Mutex] received everything. 2023-07-11 23:01:04 | [Mutex] isItemNotified: received:node:5b1672b5-1b48-4a7d-b462-3dc6fb318c4b:localhost:node-baec7340-c683-4a02-9cc7-e2b89aef6cf5:Node baec7340-c683-4a02-9cc7-e2b89aef6cf5 :: false 2023-07-11 23:01:04 | [Mutex] waiting for: [received:nodes:b98d0e2f-d04f-4fa0-ba75-10e6f0f72e94:localhost] 2023-07-11 23:01:04 | [Mutex] received everything. 2023-07-11 23:01:04 | [Mutex] isItemNotified: received:node:b98d0e2f-d04f-4fa0-ba75-10e6f0f72e94:localhost:node-baec7340-c683-4a02-9cc7-e2b89aef6cf5:Node baec7340-c683-4a02-9cc7-e2b89aef6cf5 :: false |
publishItemsToNodes | 0.040s |
2023-07-11 23:01:02 |
2023-07-11 23:01:02 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2023-07-11 23:01:02 | ------------------------------------ 2023-07-11 23:01:02 | on localhost executing action publish-item with content type application/json and payload: { "node": "node-baec7340-c683-4a02-9cc7-e2b89aef6cf5", "entry": "<test>item-36eabdfe-97d6-4867-849e-34931f478025</test>", "item-id": "item-36eabdfe-97d6-4867-849e-34931f478025" } 2023-07-11 23:01:02 | from localhost for action publish-item got result code 200 and payload { "Note": "Operation successful", "item-id": "item-36eabdfe-97d6-4867-849e-34931f478025" } 2023-07-11 23:01:02 | [Mutex] waiting for: [published:item:notifieditem-36eabdfe-97d6-4867-849e-34931f478025:admin@test-domain.com] 2023-07-11 23:01:02 | [Mutex] received everything. 2023-07-11 23:01:02 | [Mutex] isItemNotified: published:item:notifieditem-36eabdfe-97d6-4867-849e-34931f478025:admin@test-domain.com :: true |
retractItemsFromNodes | 0.079s |
2023-07-11 23:01:02 |
2023-07-11 23:01:02 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2023-07-11 23:01:02 | ------------------------------------ 2023-07-11 23:01:02 | on localhost executing action delete-item with content type application/json and payload: { "node": "node-baec7340-c683-4a02-9cc7-e2b89aef6cf5", "item-id": "item-36eabdfe-97d6-4867-849e-34931f478025" } 2023-07-11 23:01:02 | from localhost for action delete-item got result code 200 and payload { "Note": "Operation successful", "item-id": "item-36eabdfe-97d6-4867-849e-34931f478025" } 2023-07-11 23:01:02 | [Mutex] waiting for: [retracted:item:notifieditem-36eabdfe-97d6-4867-849e-34931f478025:admin@test-domain.com] 2023-07-11 23:01:02 | [Mutex] received everything. 2023-07-11 23:01:02 | [Mutex] isItemNotified: retracted:item:notifieditem-36eabdfe-97d6-4867-849e-34931f478025:admin@test-domain.com :: true |
retrieveItemsFromNodes | 0.069s |
2023-07-11 23:01:02 |
2023-07-11 23:01:02 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2023-07-11 23:01:02 | ------------------------------------ 2023-07-11 23:01:02 | on localhost executing action retrieve-item with content type application/json and payload: { "node": "node-baec7340-c683-4a02-9cc7-e2b89aef6cf5", "item-id": "item-36eabdfe-97d6-4867-849e-34931f478025" } 2023-07-11 23:01:02 | from localhost for action retrieve-item got result code 200 and payload { "title": "Retrive PubSub node item", "node": "node-baec7340-c683-4a02-9cc7-e2b89aef6cf5", "item-id": "item-36eabdfe-97d6-4867-849e-34931f478025", "item": [ "<item id=\"item-36eabdfe-97d6-4867-849e-34931f478025\"><test>item-36eabdfe-97d6-4867-849e-34931f478025</test></item>" ] } 2023-07-11 23:01:02 | [Mutex] notify: [retrieved:item:item-36eabdfe-97d6-4867-849e-34931f478025:payload-matches:true:localhost] 2023-07-11 23:01:02 | [Mutex] received everything. 2023-07-11 23:01:02 | [Mutex] isItemNotified: retrieved:item:item-36eabdfe-97d6-4867-849e-34931f478025:payload-matches:true:localhost :: true |
retrieveUserSubscriptions | 0.046s |
2023-07-11 23:01:02 |
2023-07-11 23:01:02 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2023-07-11 23:01:02 | ------------------------------------ 2023-07-11 23:01:02 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload: { "jid": "admin@test-domain.com" } 2023-07-11 23:01:02 | from localhost for action retrieve-user-subscriptions got result code 200 and payload { "nodes": [ "test", "node-b292abc4-12c6-4cd5-87fe-450b0ace90ee", "node-baec7340-c683-4a02-9cc7-e2b89aef6cf5" ] } |
retrieveUserSubscriptionsWithRegex | 0.052s |
2023-07-11 23:01:02 |
2023-07-11 23:01:02 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2023-07-11 23:01:02 | ------------------------------------ 2023-07-11 23:01:02 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload: { "jid": "admin@test-domain.com", "node-pattern": "(?!node-baec7340-c683-4a02-9cc7-e2b89aef6cf5)" } 2023-07-11 23:01:02 | from localhost for action retrieve-user-subscriptions got result code 200 and payload { "nodes": [ ] } |
subscribeNodes | 1.012s |
2023-07-11 23:01:01 |
2023-07-11 23:01:01 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2023-07-11 23:01:01 | ------------------------------------ 2023-07-11 23:01:01 | on localhost executing action subscribe-node with content type application/json and payload: { "node": "node-baec7340-c683-4a02-9cc7-e2b89aef6cf5", "jids": [ "admin@test-domain.com" ] } 2023-07-11 23:01:01 | from localhost for action subscribe-node got result code 200 and payload { "Note": "Operation successful" } |
unsubscribeNodes | 1.050s |
2023-07-11 23:01:02 |
2023-07-11 23:01:02 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2023-07-11 23:01:02 | ------------------------------------ 2023-07-11 23:01:02 | on localhost executing action unsubscribe-node with content type application/json and payload: { "node": "node-baec7340-c683-4a02-9cc7-e2b89aef6cf5", "jids": [ "admin@test-domain.com" ] } 2023-07-11 23:01:02 | from localhost for action unsubscribe-node got result code 200 and payload { "Note": "Operation successful" } |