Test duration : 9.123s
Passed Tests | ||
---|---|---|
tigase.tests.pubsub.TestRestApiUsingJSON | ||
configureNodes | 1.104s |
2021-10-05 22:28:22 |
2021-10-05 22:28:22 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-10-05 22:28:22 | ------------------------------------ 2021-10-05 22:28:22 | [Mutex] waiting for: [configured:node:node-ed22ae93-fd1a-4bdf-96b3-b7cf6964a1f2:node-93cfaef3-4286-4dd5-be19-36bcdead1717] 2021-10-05 22:28:22 | [Mutex] received everything. 2021-10-05 22:28:22 | [Mutex] isItemNotified: configured:node:node-ed22ae93-fd1a-4bdf-96b3-b7cf6964a1f2:node-93cfaef3-4286-4dd5-be19-36bcdead1717 :: true 2021-10-05 22:28:23 | [Mutex] waiting for: [received:nodes:558c995e-a6ea-47de-b523-9a9049258f68:localhost] 2021-10-05 22:28:23 | [Mutex] received everything. 2021-10-05 22:28:23 | [Mutex] isItemNotified: received:node:558c995e-a6ea-47de-b523-9a9049258f68:localhost:node-ed22ae93-fd1a-4bdf-96b3-b7cf6964a1f2:Node ed22ae93-fd1a-4bdf-96b3-b7cf6964a1f2 :: true 2021-10-05 22:28:23 | [Mutex] waiting for: [received:nodes:40424599-762f-41b0-996e-9e2d64422229:localhost] 2021-10-05 22:28:23 | [Mutex] received everything. 2021-10-05 22:28:23 | [Mutex] isItemNotified: received:node:40424599-762f-41b0-996e-9e2d64422229:localhost:node-ed22ae93-fd1a-4bdf-96b3-b7cf6964a1f2:Node ed22ae93-fd1a-4bdf-96b3-b7cf6964a1f2 :: false |
createNodes | 1.800s |
2021-10-05 22:28:19 |
2021-10-05 22:28:19 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-10-05 22:28:19 | ------------------------------------ 2021-10-05 22:28:19 | on localhost executing action create-node with content type application/json and payload: { "owner": "admin@test-domain.com", "pubsub#node_type": "leaf", "node": "node-ed22ae93-fd1a-4bdf-96b3-b7cf6964a1f2", "pubsub#title": "Node ed22ae93-fd1a-4bdf-96b3-b7cf6964a1f2" } 2021-10-05 22:28:19 | from localhost for action create-node got result code 200 and payload { "Note": "Operation successful" } 2021-10-05 22:28:20 | [Mutex] waiting for: [received:nodes:bd9067a9-6dd1-484a-a780-c905d1a434db:localhost] 2021-10-05 22:28:20 | [Mutex] waiting for: [received:nodes:bd9067a9-6dd1-484a-a780-c905d1a434db:localhost] 2021-10-05 22:28:20 | [Mutex] received everything. 2021-10-05 22:28:20 | [Mutex] isItemNotified: received:node:bd9067a9-6dd1-484a-a780-c905d1a434db:localhost:node-ed22ae93-fd1a-4bdf-96b3-b7cf6964a1f2:Node ed22ae93-fd1a-4bdf-96b3-b7cf6964a1f2 :: true |
createSubnodes | 1.023s |
2021-10-05 22:28:20 |
2021-10-05 22:28:20 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-10-05 22:28:20 | ------------------------------------ 2021-10-05 22:28:20 | on localhost executing action create-node with content type application/json and payload: { "owner": "admin@test-domain.com", "pubsub#node_type": "collection", "node": "node-93cfaef3-4286-4dd5-be19-36bcdead1717", "pubsub#title": "Node 93cfaef3-4286-4dd5-be19-36bcdead1717" } 2021-10-05 22:28:21 | from localhost for action create-node got result code 200 and payload { "Note": "Operation successful" } 2021-10-05 22:28:22 | [Mutex] waiting for: [received:nodes:12ad4869-fd91-4b6d-9316-7e686febb053:localhost] 2021-10-05 22:28:22 | [Mutex] waiting for: [received:nodes:12ad4869-fd91-4b6d-9316-7e686febb053:localhost] 2021-10-05 22:28:22 | [Mutex] received everything. 2021-10-05 22:28:22 | [Mutex] isItemNotified: received:node:12ad4869-fd91-4b6d-9316-7e686febb053:localhost:node-93cfaef3-4286-4dd5-be19-36bcdead1717:Node 93cfaef3-4286-4dd5-be19-36bcdead1717 :: true |
deleteNodes | 1.024s |
2021-10-05 22:28:26 |
2021-10-05 22:28:26 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-10-05 22:28:26 | ------------------------------------ 2021-10-05 22:28:26 | on localhost executing action delete-node with content type application/json and payload: { "node": "node-93cfaef3-4286-4dd5-be19-36bcdead1717" } 2021-10-05 22:28:26 | from localhost for action delete-node got result code 200 and payload { "Note": "Operation successful" } 2021-10-05 22:28:27 | [Mutex] waiting for: [received:nodes:7b123a87-5965-4575-a5bf-7b147c1460af:localhost] 2021-10-05 22:28:27 | [Mutex] received everything. 2021-10-05 22:28:27 | [Mutex] isItemNotified: received:node:7b123a87-5965-4575-a5bf-7b147c1460af:localhost:node-93cfaef3-4286-4dd5-be19-36bcdead1717:Node 93cfaef3-4286-4dd5-be19-36bcdead1717 :: false |
deleteSubnodes | 1.024s |
2021-10-05 22:28:25 |
2021-10-05 22:28:25 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-10-05 22:28:25 | ------------------------------------ 2021-10-05 22:28:25 | on localhost executing action delete-node with content type application/json and payload: { "node": "node-ed22ae93-fd1a-4bdf-96b3-b7cf6964a1f2" } 2021-10-05 22:28:25 | from localhost for action delete-node got result code 200 and payload { "Note": "Operation successful" } 2021-10-05 22:28:26 | [Mutex] waiting for: [received:nodes:e1a6106c-f18b-4d64-89ea-b820e3b80e55:localhost] 2021-10-05 22:28:26 | [Mutex] received everything. 2021-10-05 22:28:26 | [Mutex] isItemNotified: received:node:e1a6106c-f18b-4d64-89ea-b820e3b80e55:localhost:node-ed22ae93-fd1a-4bdf-96b3-b7cf6964a1f2:Node ed22ae93-fd1a-4bdf-96b3-b7cf6964a1f2 :: false 2021-10-05 22:28:26 | [Mutex] waiting for: [received:nodes:175f1387-1cc5-4ee0-be87-4fd4331e0976:localhost] 2021-10-05 22:28:26 | [Mutex] received everything. 2021-10-05 22:28:26 | [Mutex] isItemNotified: received:node:175f1387-1cc5-4ee0-be87-4fd4331e0976:localhost:node-ed22ae93-fd1a-4bdf-96b3-b7cf6964a1f2:Node ed22ae93-fd1a-4bdf-96b3-b7cf6964a1f2 :: false |
publishItemsToNodes | 0.090s |
2021-10-05 22:28:24 |
2021-10-05 22:28:24 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-10-05 22:28:24 | ------------------------------------ 2021-10-05 22:28:24 | on localhost executing action publish-item with content type application/json and payload: { "node": "node-ed22ae93-fd1a-4bdf-96b3-b7cf6964a1f2", "entry": "<test>item-9d3a274a-ab72-4591-9d85-3fda02635279</test>", "item-id": "item-9d3a274a-ab72-4591-9d85-3fda02635279" } 2021-10-05 22:28:24 | from localhost for action publish-item got result code 200 and payload { "Note": "Operation successful", "item-id": "item-9d3a274a-ab72-4591-9d85-3fda02635279" } 2021-10-05 22:28:24 | [Mutex] waiting for: [published:item:notifieditem-9d3a274a-ab72-4591-9d85-3fda02635279:admin@test-domain.com] 2021-10-05 22:28:24 | [Mutex] received everything. 2021-10-05 22:28:24 | [Mutex] isItemNotified: published:item:notifieditem-9d3a274a-ab72-4591-9d85-3fda02635279:admin@test-domain.com :: true |
retractItemsFromNodes | 0.056s |
2021-10-05 22:28:24 |
2021-10-05 22:28:24 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-10-05 22:28:24 | ------------------------------------ 2021-10-05 22:28:24 | on localhost executing action delete-item with content type application/json and payload: { "node": "node-ed22ae93-fd1a-4bdf-96b3-b7cf6964a1f2", "item-id": "item-9d3a274a-ab72-4591-9d85-3fda02635279" } 2021-10-05 22:28:24 | from localhost for action delete-item got result code 200 and payload { "Note": "Operation successful", "item-id": "item-9d3a274a-ab72-4591-9d85-3fda02635279" } 2021-10-05 22:28:24 | [Mutex] received everything. 2021-10-05 22:28:24 | [Mutex] isItemNotified: retracted:item:notifieditem-9d3a274a-ab72-4591-9d85-3fda02635279:admin@test-domain.com :: true |
retrieveItemsFromNodes | 0.018s |
2021-10-05 22:28:24 |
2021-10-05 22:28:24 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-10-05 22:28:24 | ------------------------------------ 2021-10-05 22:28:24 | on localhost executing action retrieve-item with content type application/json and payload: { "node": "node-ed22ae93-fd1a-4bdf-96b3-b7cf6964a1f2", "item-id": "item-9d3a274a-ab72-4591-9d85-3fda02635279" } 2021-10-05 22:28:24 | from localhost for action retrieve-item got result code 200 and payload { "title": "Retrive PubSub node item", "node": "node-ed22ae93-fd1a-4bdf-96b3-b7cf6964a1f2", "item-id": "item-9d3a274a-ab72-4591-9d85-3fda02635279", "item": [ "<item id=\"item-9d3a274a-ab72-4591-9d85-3fda02635279\"><test>item-9d3a274a-ab72-4591-9d85-3fda02635279</test></item>" ] } 2021-10-05 22:28:24 | [Mutex] notify: [retrieved:item:item-9d3a274a-ab72-4591-9d85-3fda02635279:payload-matches:true:localhost] 2021-10-05 22:28:24 | [Mutex] received everything. 2021-10-05 22:28:24 | [Mutex] isItemNotified: retrieved:item:item-9d3a274a-ab72-4591-9d85-3fda02635279:payload-matches:true:localhost :: true |
retrieveUserSubscriptions | 0.048s |
2021-10-05 22:28:24 |
2021-10-05 22:28:24 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-10-05 22:28:24 | ------------------------------------ 2021-10-05 22:28:24 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload: { "jid": "admin@test-domain.com" } 2021-10-05 22:28:24 | from localhost for action retrieve-user-subscriptions got result code 200 and payload { "nodes": [ "test", "node-ed22ae93-fd1a-4bdf-96b3-b7cf6964a1f2", "node-93cfaef3-4286-4dd5-be19-36bcdead1717" ] } |
retrieveUserSubscriptionsWithRegex | 0.052s |
2021-10-05 22:28:24 |
2021-10-05 22:28:24 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-10-05 22:28:24 | ------------------------------------ 2021-10-05 22:28:24 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload: { "jid": "admin@test-domain.com", "node-pattern": "(?!node-ed22ae93-fd1a-4bdf-96b3-b7cf6964a1f2)" } 2021-10-05 22:28:24 | from localhost for action retrieve-user-subscriptions got result code 200 and payload { "nodes": [ ] } |
subscribeNodes | 1.011s |
2021-10-05 22:28:23 |
2021-10-05 22:28:23 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-10-05 22:28:23 | ------------------------------------ 2021-10-05 22:28:23 | on localhost executing action subscribe-node with content type application/json and payload: { "node": "node-ed22ae93-fd1a-4bdf-96b3-b7cf6964a1f2", "jids": [ "admin@test-domain.com" ] } 2021-10-05 22:28:23 | from localhost for action subscribe-node got result code 200 and payload { "Note": "Operation successful" } |
unsubscribeNodes | 1.152s |
2021-10-05 22:28:24 |
2021-10-05 22:28:24 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-10-05 22:28:24 | ------------------------------------ 2021-10-05 22:28:24 | on localhost executing action unsubscribe-node with content type application/json and payload: { "node": "node-ed22ae93-fd1a-4bdf-96b3-b7cf6964a1f2", "jids": [ "admin@test-domain.com" ] } 2021-10-05 22:28:24 | from localhost for action unsubscribe-node got result code 200 and payload { "Note": "Operation successful" } |