Test duration: 8.877s
Passed Tests | ||
---|---|---|
tigase.tests.pubsub.TestRestApiUsingJSON | ||
configureNodes | 1.109s |
2019-10-13 19:54:41 |
2019-10-13 19:54:41 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2019-10-13 19:54:41 | ------------------------------------ 2019-10-13 19:54:41 | [Mutex] waiting for: [configured:node:node-74c0b3e9-25ec-465b-991c-c013b4997086:node-da6b8d47-2687-4f08-89f2-3cd517fd5b90] 2019-10-13 19:54:41 | [Mutex] received everything. 2019-10-13 19:54:41 | [Mutex] isItemNotified: configured:node:node-74c0b3e9-25ec-465b-991c-c013b4997086:node-da6b8d47-2687-4f08-89f2-3cd517fd5b90 :: true 2019-10-13 19:54:42 | [Mutex] waiting for: [received:nodes:794d499c-96ff-439f-823d-437b48c5b3cd:localhost] 2019-10-13 19:54:42 | [Mutex] received everything. 2019-10-13 19:54:42 | [Mutex] isItemNotified: received:node:794d499c-96ff-439f-823d-437b48c5b3cd:localhost:node-74c0b3e9-25ec-465b-991c-c013b4997086:Node 74c0b3e9-25ec-465b-991c-c013b4997086 :: true 2019-10-13 19:54:42 | [Mutex] waiting for: [received:nodes:c02e0d2b-6b41-49e7-98d6-8ff925b01c9e:localhost] 2019-10-13 19:54:42 | [Mutex] received everything. 2019-10-13 19:54:42 | [Mutex] isItemNotified: received:node:c02e0d2b-6b41-49e7-98d6-8ff925b01c9e:localhost:node-74c0b3e9-25ec-465b-991c-c013b4997086:Node 74c0b3e9-25ec-465b-991c-c013b4997086 :: false |
createNodes | 1.591s |
2019-10-13 19:54:38 |
2019-10-13 19:54:38 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2019-10-13 19:54:38 | ------------------------------------ 2019-10-13 19:54:39 | on localhost executing action create-node with content type application/json and payload: { "owner": "admin@localhost", "pubsub#node_type": "leaf", "node": "node-74c0b3e9-25ec-465b-991c-c013b4997086", "pubsub#title": "Node 74c0b3e9-25ec-465b-991c-c013b4997086" } 2019-10-13 19:54:39 | from localhost for action create-node got result code 200 and payload { "Note": "Operation successful" } 2019-10-13 19:54:40 | [Mutex] waiting for: [received:nodes:1d353c9a-18ec-4309-a218-3c596859f3ae:localhost] 2019-10-13 19:54:40 | [Mutex] waiting for: [received:nodes:1d353c9a-18ec-4309-a218-3c596859f3ae:localhost] 2019-10-13 19:54:40 | [Mutex] received everything. 2019-10-13 19:54:40 | [Mutex] isItemNotified: received:node:1d353c9a-18ec-4309-a218-3c596859f3ae:localhost:node-74c0b3e9-25ec-465b-991c-c013b4997086:Node 74c0b3e9-25ec-465b-991c-c013b4997086 :: true |
createSubnodes | 1.028s |
2019-10-13 19:54:40 |
2019-10-13 19:54:40 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2019-10-13 19:54:40 | ------------------------------------ 2019-10-13 19:54:40 | on localhost executing action create-node with content type application/json and payload: { "owner": "admin@localhost", "pubsub#node_type": "collection", "node": "node-da6b8d47-2687-4f08-89f2-3cd517fd5b90", "pubsub#title": "Node da6b8d47-2687-4f08-89f2-3cd517fd5b90" } 2019-10-13 19:54:40 | from localhost for action create-node got result code 200 and payload { "Note": "Operation successful" } 2019-10-13 19:54:41 | [Mutex] waiting for: [received:nodes:982b8d72-43d5-4f01-b200-f23cda92f497:localhost] 2019-10-13 19:54:41 | [Mutex] waiting for: [received:nodes:982b8d72-43d5-4f01-b200-f23cda92f497:localhost] 2019-10-13 19:54:41 | [Mutex] received everything. 2019-10-13 19:54:41 | [Mutex] isItemNotified: received:node:982b8d72-43d5-4f01-b200-f23cda92f497:localhost:node-da6b8d47-2687-4f08-89f2-3cd517fd5b90:Node da6b8d47-2687-4f08-89f2-3cd517fd5b90 :: true |
deleteNodes | 1.025s |
2019-10-13 19:54:45 |
2019-10-13 19:54:45 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2019-10-13 19:54:45 | ------------------------------------ 2019-10-13 19:54:45 | on localhost executing action delete-node with content type application/json and payload: { "node": "node-da6b8d47-2687-4f08-89f2-3cd517fd5b90" } 2019-10-13 19:54:45 | from localhost for action delete-node got result code 200 and payload { "Note": "Operation successful" } 2019-10-13 19:54:46 | [Mutex] waiting for: [received:nodes:8d0526e0-65a8-435d-9249-2ef93e7ec95d:localhost] 2019-10-13 19:54:46 | [Mutex] received everything. 2019-10-13 19:54:46 | [Mutex] isItemNotified: received:node:8d0526e0-65a8-435d-9249-2ef93e7ec95d:localhost:node-da6b8d47-2687-4f08-89f2-3cd517fd5b90:Node da6b8d47-2687-4f08-89f2-3cd517fd5b90 :: false |
deleteSubnodes | 1.026s |
2019-10-13 19:54:44 |
2019-10-13 19:54:44 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2019-10-13 19:54:44 | ------------------------------------ 2019-10-13 19:54:44 | on localhost executing action delete-node with content type application/json and payload: { "node": "node-74c0b3e9-25ec-465b-991c-c013b4997086" } 2019-10-13 19:54:44 | from localhost for action delete-node got result code 200 and payload { "Note": "Operation successful" } 2019-10-13 19:54:45 | [Mutex] waiting for: [received:nodes:fc206d2b-e263-4f10-a0fc-78481a69158d:localhost] 2019-10-13 19:54:45 | [Mutex] received everything. 2019-10-13 19:54:45 | [Mutex] isItemNotified: received:node:fc206d2b-e263-4f10-a0fc-78481a69158d:localhost:node-74c0b3e9-25ec-465b-991c-c013b4997086:Node 74c0b3e9-25ec-465b-991c-c013b4997086 :: false 2019-10-13 19:54:45 | [Mutex] waiting for: [received:nodes:9bf6d964-3856-4489-9cb7-72d78e0c8274:localhost] 2019-10-13 19:54:45 | [Mutex] received everything. 2019-10-13 19:54:45 | [Mutex] isItemNotified: received:node:9bf6d964-3856-4489-9cb7-72d78e0c8274:localhost:node-74c0b3e9-25ec-465b-991c-c013b4997086:Node 74c0b3e9-25ec-465b-991c-c013b4997086 :: false |
publishItemsToNodes | 0.031s |
2019-10-13 19:54:43 |
2019-10-13 19:54:43 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2019-10-13 19:54:43 | ------------------------------------ 2019-10-13 19:54:43 | on localhost executing action publish-item with content type application/json and payload: { "node": "node-74c0b3e9-25ec-465b-991c-c013b4997086", "entry": "<test>item-d2b83aa8-e7a1-4d51-8dbf-f6612bff498b</test>", "item-id": "item-d2b83aa8-e7a1-4d51-8dbf-f6612bff498b" } 2019-10-13 19:54:43 | from localhost for action publish-item got result code 200 and payload { "Note": "Operation successful", "item-id": "item-d2b83aa8-e7a1-4d51-8dbf-f6612bff498b" } 2019-10-13 19:54:43 | [Mutex] waiting for: [published:item:notifieditem-d2b83aa8-e7a1-4d51-8dbf-f6612bff498b:admin@localhost] 2019-10-13 19:54:43 | [Mutex] received everything. 2019-10-13 19:54:43 | [Mutex] isItemNotified: published:item:notifieditem-d2b83aa8-e7a1-4d51-8dbf-f6612bff498b:admin@localhost :: true |
retractItemsFromNodes | 0.051s |
2019-10-13 19:54:43 |
2019-10-13 19:54:43 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2019-10-13 19:54:43 | ------------------------------------ 2019-10-13 19:54:43 | on localhost executing action delete-item with content type application/json and payload: { "node": "node-74c0b3e9-25ec-465b-991c-c013b4997086", "item-id": "item-d2b83aa8-e7a1-4d51-8dbf-f6612bff498b" } 2019-10-13 19:54:43 | from localhost for action delete-item got result code 200 and payload { "Note": "Operation successful", "item-id": "item-d2b83aa8-e7a1-4d51-8dbf-f6612bff498b" } 2019-10-13 19:54:43 | [Mutex] received everything. 2019-10-13 19:54:43 | [Mutex] isItemNotified: retracted:item:notifieditem-d2b83aa8-e7a1-4d51-8dbf-f6612bff498b:admin@localhost :: true |
retrieveItemsFromNodes | 0.069s |
2019-10-13 19:54:43 |
2019-10-13 19:54:43 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2019-10-13 19:54:43 | ------------------------------------ 2019-10-13 19:54:43 | on localhost executing action retrieve-item with content type application/json and payload: { "node": "node-74c0b3e9-25ec-465b-991c-c013b4997086", "item-id": "item-d2b83aa8-e7a1-4d51-8dbf-f6612bff498b" } 2019-10-13 19:54:43 | from localhost for action retrieve-item got result code 200 and payload { "title": "Retrive PubSub node item", "node": "node-74c0b3e9-25ec-465b-991c-c013b4997086", "item-id": "item-d2b83aa8-e7a1-4d51-8dbf-f6612bff498b", "item": [ "<item id=\"item-d2b83aa8-e7a1-4d51-8dbf-f6612bff498b\"><test>item-d2b83aa8-e7a1-4d51-8dbf-f6612bff498b</test></item>" ] } 2019-10-13 19:54:43 | [Mutex] notify: [retrieved:item:item-d2b83aa8-e7a1-4d51-8dbf-f6612bff498b:payload-matches:true:localhost] 2019-10-13 19:54:43 | [Mutex] received everything. 2019-10-13 19:54:43 | [Mutex] isItemNotified: retrieved:item:item-d2b83aa8-e7a1-4d51-8dbf-f6612bff498b:payload-matches:true:localhost :: true |
retrieveUserSubscriptions | 0.051s |
2019-10-13 19:54:43 |
2019-10-13 19:54:43 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2019-10-13 19:54:43 | ------------------------------------ 2019-10-13 19:54:43 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload: { "jid": "admin@localhost" } 2019-10-13 19:54:43 | from localhost for action retrieve-user-subscriptions got result code 200 and payload { "nodes": [ "node-da6b8d47-2687-4f08-89f2-3cd517fd5b90", "node-74c0b3e9-25ec-465b-991c-c013b4997086" ] } |
retrieveUserSubscriptionsWithRegex | 0.047s |
2019-10-13 19:54:43 |
2019-10-13 19:54:43 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2019-10-13 19:54:43 | ------------------------------------ 2019-10-13 19:54:43 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload: { "jid": "admin@localhost", "node-pattern": "(?!node-74c0b3e9-25ec-465b-991c-c013b4997086)" } 2019-10-13 19:54:43 | from localhost for action retrieve-user-subscriptions got result code 200 and payload { "nodes": [ ] } |
subscribeNodes | 1.009s |
2019-10-13 19:54:42 |
2019-10-13 19:54:42 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2019-10-13 19:54:42 | ------------------------------------ 2019-10-13 19:54:42 | on localhost executing action subscribe-node with content type application/json and payload: { "node": "node-74c0b3e9-25ec-465b-991c-c013b4997086", "jids": [ "admin@localhost" ] } 2019-10-13 19:54:42 | from localhost for action subscribe-node got result code 200 and payload { "Note": "Operation successful" } |
unsubscribeNodes | 1.071s |
2019-10-13 19:54:43 |
2019-10-13 19:54:43 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2019-10-13 19:54:43 | ------------------------------------ 2019-10-13 19:54:43 | on localhost executing action unsubscribe-node with content type application/json and payload: { "node": "node-74c0b3e9-25ec-465b-991c-c013b4997086", "jids": [ "admin@localhost" ] } 2019-10-13 19:54:43 | from localhost for action unsubscribe-node got result code 200 and payload { "Note": "Operation successful" } |