Test duration : 9.523s
Passed Tests | ||
---|---|---|
tigase.tests.pubsub.TestRestApiUsingJSON | ||
configureNodes | 1.119s |
2021-01-21 21:31:00 |
2021-01-21 21:31:00 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-01-21 21:31:00 | ------------------------------------ 2021-01-21 21:31:00 | [Mutex] waiting for: [configured:node:node-f054d8a9-5c29-4f70-84e6-ced761e89909:node-22e5086c-4b1d-40fc-822c-9d78946267ca] 2021-01-21 21:31:00 | [Mutex] received everything. 2021-01-21 21:31:00 | [Mutex] isItemNotified: configured:node:node-f054d8a9-5c29-4f70-84e6-ced761e89909:node-22e5086c-4b1d-40fc-822c-9d78946267ca :: true 2021-01-21 21:31:01 | [Mutex] waiting for: [received:nodes:1b8cb420-a1d5-49cf-8c62-3a085ee5124d:localhost] 2021-01-21 21:31:01 | [Mutex] received everything. 2021-01-21 21:31:01 | [Mutex] isItemNotified: received:node:1b8cb420-a1d5-49cf-8c62-3a085ee5124d:localhost:node-f054d8a9-5c29-4f70-84e6-ced761e89909:Node f054d8a9-5c29-4f70-84e6-ced761e89909 :: true 2021-01-21 21:31:01 | [Mutex] waiting for: [received:nodes:899958e8-c2d3-4328-ba6f-ddce25fc9f83:localhost] 2021-01-21 21:31:01 | [Mutex] received everything. 2021-01-21 21:31:01 | [Mutex] isItemNotified: received:node:899958e8-c2d3-4328-ba6f-ddce25fc9f83:localhost:node-f054d8a9-5c29-4f70-84e6-ced761e89909:Node f054d8a9-5c29-4f70-84e6-ced761e89909 :: false |
createNodes | 1.858s |
2021-01-21 21:30:57 |
2021-01-21 21:30:57 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-01-21 21:30:57 | ------------------------------------ 2021-01-21 21:30:58 | on localhost executing action create-node with content type application/json and payload: { "owner": "admin@test-domain.com", "pubsub#node_type": "leaf", "node": "node-f054d8a9-5c29-4f70-84e6-ced761e89909", "pubsub#title": "Node f054d8a9-5c29-4f70-84e6-ced761e89909" } 2021-01-21 21:30:58 | from localhost for action create-node got result code 200 and payload { "Note": "Operation successful" } 2021-01-21 21:30:59 | [Mutex] waiting for: [received:nodes:1cb6b6f6-f932-4248-a296-4e3478867038:localhost] 2021-01-21 21:30:59 | [Mutex] received everything. 2021-01-21 21:30:59 | [Mutex] isItemNotified: received:node:1cb6b6f6-f932-4248-a296-4e3478867038:localhost:node-f054d8a9-5c29-4f70-84e6-ced761e89909:Node f054d8a9-5c29-4f70-84e6-ced761e89909 :: true |
createSubnodes | 1.039s |
2021-01-21 21:30:59 |
2021-01-21 21:30:59 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-01-21 21:30:59 | ------------------------------------ 2021-01-21 21:30: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-22e5086c-4b1d-40fc-822c-9d78946267ca", "pubsub#title": "Node 22e5086c-4b1d-40fc-822c-9d78946267ca" } 2021-01-21 21:30:59 | from localhost for action create-node got result code 200 and payload { "Note": "Operation successful" } 2021-01-21 21:31:00 | [Mutex] waiting for: [received:nodes:49ffb018-4804-42ce-89b7-2d640c4058ad:localhost] 2021-01-21 21:31:00 | [Mutex] waiting for: [received:nodes:49ffb018-4804-42ce-89b7-2d640c4058ad:localhost] 2021-01-21 21:31:00 | [Mutex] received everything. 2021-01-21 21:31:00 | [Mutex] isItemNotified: received:node:49ffb018-4804-42ce-89b7-2d640c4058ad:localhost:node-22e5086c-4b1d-40fc-822c-9d78946267ca:Node 22e5086c-4b1d-40fc-822c-9d78946267ca :: true |
deleteNodes | 1.039s |
2021-01-21 21:31:05 |
2021-01-21 21:31:05 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-01-21 21:31:05 | ------------------------------------ 2021-01-21 21:31:05 | on localhost executing action delete-node with content type application/json and payload: { "node": "node-22e5086c-4b1d-40fc-822c-9d78946267ca" } 2021-01-21 21:31:05 | from localhost for action delete-node got result code 200 and payload { "Note": "Operation successful" } 2021-01-21 21:31:06 | [Mutex] waiting for: [received:nodes:5cc645a9-fd03-42a3-a1e6-583d8115108b:localhost] 2021-01-21 21:31:06 | [Mutex] waiting for: [received:nodes:5cc645a9-fd03-42a3-a1e6-583d8115108b:localhost] 2021-01-21 21:31:06 | [Mutex] received everything. 2021-01-21 21:31:06 | [Mutex] isItemNotified: received:node:5cc645a9-fd03-42a3-a1e6-583d8115108b:localhost:node-22e5086c-4b1d-40fc-822c-9d78946267ca:Node 22e5086c-4b1d-40fc-822c-9d78946267ca :: false |
deleteSubnodes | 1.037s |
2021-01-21 21:31:04 |
2021-01-21 21:31:04 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-01-21 21:31:04 | ------------------------------------ 2021-01-21 21:31:04 | on localhost executing action delete-node with content type application/json and payload: { "node": "node-f054d8a9-5c29-4f70-84e6-ced761e89909" } 2021-01-21 21:31:04 | from localhost for action delete-node got result code 200 and payload { "Note": "Operation successful" } 2021-01-21 21:31:05 | [Mutex] waiting for: [received:nodes:aa5ec620-c26e-4702-8507-793fe0a18669:localhost] 2021-01-21 21:31:05 | [Mutex] waiting for: [received:nodes:aa5ec620-c26e-4702-8507-793fe0a18669:localhost] 2021-01-21 21:31:05 | [Mutex] received everything. 2021-01-21 21:31:05 | [Mutex] isItemNotified: received:node:aa5ec620-c26e-4702-8507-793fe0a18669:localhost:node-f054d8a9-5c29-4f70-84e6-ced761e89909:Node f054d8a9-5c29-4f70-84e6-ced761e89909 :: false 2021-01-21 21:31:05 | [Mutex] waiting for: [received:nodes:8a87b76a-99ac-4ea4-8c3b-a305b0f67e0e:localhost] 2021-01-21 21:31:05 | [Mutex] received everything. 2021-01-21 21:31:05 | [Mutex] isItemNotified: received:node:8a87b76a-99ac-4ea4-8c3b-a305b0f67e0e:localhost:node-f054d8a9-5c29-4f70-84e6-ced761e89909:Node f054d8a9-5c29-4f70-84e6-ced761e89909 :: false |
publishItemsToNodes | 0.049s |
2021-01-21 21:31:02 |
2021-01-21 21:31:02 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-01-21 21:31:02 | ------------------------------------ 2021-01-21 21:31:02 | on localhost executing action publish-item with content type application/json and payload: { "node": "node-f054d8a9-5c29-4f70-84e6-ced761e89909", "entry": "<test>item-6d5984ee-42c0-4170-904b-250b9f493b87</test>", "item-id": "item-6d5984ee-42c0-4170-904b-250b9f493b87" } 2021-01-21 21:31:02 | from localhost for action publish-item got result code 200 and payload { "Note": "Operation successful", "item-id": "item-6d5984ee-42c0-4170-904b-250b9f493b87" } 2021-01-21 21:31:02 | [Mutex] waiting for: [published:item:notifieditem-6d5984ee-42c0-4170-904b-250b9f493b87:admin@test-domain.com] 2021-01-21 21:31:02 | [Mutex] received everything. 2021-01-21 21:31:02 | [Mutex] isItemNotified: published:item:notifieditem-6d5984ee-42c0-4170-904b-250b9f493b87:admin@test-domain.com :: true |
retractItemsFromNodes | 0.073s |
2021-01-21 21:31:03 |
2021-01-21 21:31:03 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-01-21 21:31:03 | ------------------------------------ 2021-01-21 21:31:03 | on localhost executing action delete-item with content type application/json and payload: { "node": "node-f054d8a9-5c29-4f70-84e6-ced761e89909", "item-id": "item-6d5984ee-42c0-4170-904b-250b9f493b87" } 2021-01-21 21:31:03 | from localhost for action delete-item got result code 200 and payload { "Note": "Operation successful", "item-id": "item-6d5984ee-42c0-4170-904b-250b9f493b87" } 2021-01-21 21:31:03 | [Mutex] received everything. 2021-01-21 21:31:03 | [Mutex] isItemNotified: retracted:item:notifieditem-6d5984ee-42c0-4170-904b-250b9f493b87:admin@test-domain.com :: true |
retrieveItemsFromNodes | 0.070s |
2021-01-21 21:31:02 |
2021-01-21 21:31:02 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-01-21 21:31:02 | ------------------------------------ 2021-01-21 21:31:03 | on localhost executing action retrieve-item with content type application/json and payload: { "node": "node-f054d8a9-5c29-4f70-84e6-ced761e89909", "item-id": "item-6d5984ee-42c0-4170-904b-250b9f493b87" } 2021-01-21 21:31:03 | from localhost for action retrieve-item got result code 200 and payload { "title": "Retrive PubSub node item", "node": "node-f054d8a9-5c29-4f70-84e6-ced761e89909", "item-id": "item-6d5984ee-42c0-4170-904b-250b9f493b87", "item": [ "<item id=\"item-6d5984ee-42c0-4170-904b-250b9f493b87\"><test>item-6d5984ee-42c0-4170-904b-250b9f493b87</test></item>" ] } 2021-01-21 21:31:03 | [Mutex] notify: [retrieved:item:item-6d5984ee-42c0-4170-904b-250b9f493b87:payload-matches:true:localhost] 2021-01-21 21:31:03 | [Mutex] received everything. 2021-01-21 21:31:03 | [Mutex] isItemNotified: retrieved:item:item-6d5984ee-42c0-4170-904b-250b9f493b87:payload-matches:true:localhost :: true |
retrieveUserSubscriptions | 0.087s |
2021-01-21 21:31:03 |
2021-01-21 21:31:03 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-01-21 21:31:03 | ------------------------------------ 2021-01-21 21:31:03 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload: { "jid": "admin@test-domain.com" } 2021-01-21 21:31:03 | from localhost for action retrieve-user-subscriptions got result code 200 and payload { "nodes": [ "node-22e5086c-4b1d-40fc-822c-9d78946267ca", "test", "node-f054d8a9-5c29-4f70-84e6-ced761e89909" ] } |
retrieveUserSubscriptionsWithRegex | 0.055s |
2021-01-21 21:31:03 |
2021-01-21 21:31:03 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-01-21 21:31:03 | ------------------------------------ 2021-01-21 21:31:03 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload: { "jid": "admin@test-domain.com", "node-pattern": "(?!node-f054d8a9-5c29-4f70-84e6-ced761e89909)" } 2021-01-21 21:31:03 | from localhost for action retrieve-user-subscriptions got result code 200 and payload { "nodes": [ ] } |
subscribeNodes | 1.015s |
2021-01-21 21:31:01 |
2021-01-21 21:31:01 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-01-21 21:31:01 | ------------------------------------ 2021-01-21 21:31:01 | on localhost executing action subscribe-node with content type application/json and payload: { "node": "node-f054d8a9-5c29-4f70-84e6-ced761e89909", "jids": [ "admin@test-domain.com" ] } 2021-01-21 21:31:01 | from localhost for action subscribe-node got result code 200 and payload { "Note": "Operation successful" } |
unsubscribeNodes | 1.085s |
2021-01-21 21:31:03 |
2021-01-21 21:31:03 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-01-21 21:31:03 | ------------------------------------ 2021-01-21 21:31:03 | on localhost executing action unsubscribe-node with content type application/json and payload: { "node": "node-f054d8a9-5c29-4f70-84e6-ced761e89909", "jids": [ "admin@test-domain.com" ] } 2021-01-21 21:31:03 | from localhost for action unsubscribe-node got result code 200 and payload { "Note": "Operation successful" } |