Test duration: 8.981s
Passed Tests | ||
---|---|---|
tigase.tests.pubsub.TestRestApiUsingJSON | ||
configureNodes | 1.104s |
2019-10-13 20:34:40 |
2019-10-13 20:34:40 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2019-10-13 20:34:40 | ------------------------------------ 2019-10-13 20:34:40 | [Mutex] waiting for: [configured:node:node-6b52505f-e75b-4875-94a1-5816a5ba353a:node-b9910dc7-4eec-4640-8426-d6df5e3eb8e2] 2019-10-13 20:34:40 | [Mutex] received everything. 2019-10-13 20:34:40 | [Mutex] isItemNotified: configured:node:node-6b52505f-e75b-4875-94a1-5816a5ba353a:node-b9910dc7-4eec-4640-8426-d6df5e3eb8e2 :: true 2019-10-13 20:34:41 | [Mutex] waiting for: [received:nodes:cef227ee-1b36-40c6-8e09-49e606df211f:localhost] 2019-10-13 20:34:41 | [Mutex] received everything. 2019-10-13 20:34:41 | [Mutex] isItemNotified: received:node:cef227ee-1b36-40c6-8e09-49e606df211f:localhost:node-6b52505f-e75b-4875-94a1-5816a5ba353a:Node 6b52505f-e75b-4875-94a1-5816a5ba353a :: true 2019-10-13 20:34:41 | [Mutex] waiting for: [received:nodes:3408b1f9-17b7-4187-966f-f9f9eea89e85:localhost] 2019-10-13 20:34:42 | [Mutex] waiting for: [received:nodes:3408b1f9-17b7-4187-966f-f9f9eea89e85:localhost] 2019-10-13 20:34:42 | [Mutex] received everything. 2019-10-13 20:34:42 | [Mutex] isItemNotified: received:node:3408b1f9-17b7-4187-966f-f9f9eea89e85:localhost:node-6b52505f-e75b-4875-94a1-5816a5ba353a:Node 6b52505f-e75b-4875-94a1-5816a5ba353a :: false |
createNodes | 1.687s |
2019-10-13 20:34:38 |
2019-10-13 20:34:38 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2019-10-13 20:34:38 | ------------------------------------ 2019-10-13 20:34:38 | on localhost executing action create-node with content type application/json and payload: { "owner": "admin@localhost", "pubsub#node_type": "leaf", "node": "node-6b52505f-e75b-4875-94a1-5816a5ba353a", "pubsub#title": "Node 6b52505f-e75b-4875-94a1-5816a5ba353a" } 2019-10-13 20:34:38 | from localhost for action create-node got result code 200 and payload { "Note": "Operation successful" } 2019-10-13 20:34:39 | [Mutex] waiting for: [received:nodes:0e7c03aa-7da1-46c2-8849-f8d0501e961d:localhost] 2019-10-13 20:34:39 | [Mutex] received everything. 2019-10-13 20:34:39 | [Mutex] isItemNotified: received:node:0e7c03aa-7da1-46c2-8849-f8d0501e961d:localhost:node-6b52505f-e75b-4875-94a1-5816a5ba353a:Node 6b52505f-e75b-4875-94a1-5816a5ba353a :: true |
createSubnodes | 1.032s |
2019-10-13 20:34:39 |
2019-10-13 20:34:39 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2019-10-13 20:34:39 | ------------------------------------ 2019-10-13 20:34:39 | on localhost executing action create-node with content type application/json and payload: { "owner": "admin@localhost", "pubsub#node_type": "collection", "node": "node-b9910dc7-4eec-4640-8426-d6df5e3eb8e2", "pubsub#title": "Node b9910dc7-4eec-4640-8426-d6df5e3eb8e2" } 2019-10-13 20:34:39 | from localhost for action create-node got result code 200 and payload { "Note": "Operation successful" } 2019-10-13 20:34:40 | [Mutex] waiting for: [received:nodes:3da0a74c-8c6e-42d2-93f7-e427be6e4cc5:localhost] 2019-10-13 20:34:40 | [Mutex] waiting for: [received:nodes:3da0a74c-8c6e-42d2-93f7-e427be6e4cc5:localhost] 2019-10-13 20:34:40 | [Mutex] received everything. 2019-10-13 20:34:40 | [Mutex] isItemNotified: received:node:3da0a74c-8c6e-42d2-93f7-e427be6e4cc5:localhost:node-b9910dc7-4eec-4640-8426-d6df5e3eb8e2:Node b9910dc7-4eec-4640-8426-d6df5e3eb8e2 :: true |
deleteNodes | 1.026s |
2019-10-13 20:34:45 |
2019-10-13 20:34:45 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2019-10-13 20:34:45 | ------------------------------------ 2019-10-13 20:34:45 | on localhost executing action delete-node with content type application/json and payload: { "node": "node-b9910dc7-4eec-4640-8426-d6df5e3eb8e2" } 2019-10-13 20:34:45 | from localhost for action delete-node got result code 200 and payload { "Note": "Operation successful" } 2019-10-13 20:34:46 | [Mutex] waiting for: [received:nodes:32bb91a0-9b53-4865-b095-d78b55da9c03:localhost] 2019-10-13 20:34:46 | [Mutex] received everything. 2019-10-13 20:34:46 | [Mutex] isItemNotified: received:node:32bb91a0-9b53-4865-b095-d78b55da9c03:localhost:node-b9910dc7-4eec-4640-8426-d6df5e3eb8e2:Node b9910dc7-4eec-4640-8426-d6df5e3eb8e2 :: false |
deleteSubnodes | 1.028s |
2019-10-13 20:34:44 |
2019-10-13 20:34:44 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2019-10-13 20:34:44 | ------------------------------------ 2019-10-13 20:34:44 | on localhost executing action delete-node with content type application/json and payload: { "node": "node-6b52505f-e75b-4875-94a1-5816a5ba353a" } 2019-10-13 20:34:44 | from localhost for action delete-node got result code 200 and payload { "Note": "Operation successful" } 2019-10-13 20:34:45 | [Mutex] waiting for: [received:nodes:96c29788-ce0d-4d20-bddf-f6fe34c83158:localhost] 2019-10-13 20:34:45 | [Mutex] received everything. 2019-10-13 20:34:45 | [Mutex] isItemNotified: received:node:96c29788-ce0d-4d20-bddf-f6fe34c83158:localhost:node-6b52505f-e75b-4875-94a1-5816a5ba353a:Node 6b52505f-e75b-4875-94a1-5816a5ba353a :: false 2019-10-13 20:34:45 | [Mutex] waiting for: [received:nodes:4ee45df0-7ed0-4569-b2ab-d4e82541c5b6:localhost] 2019-10-13 20:34:45 | [Mutex] received everything. 2019-10-13 20:34:45 | [Mutex] isItemNotified: received:node:4ee45df0-7ed0-4569-b2ab-d4e82541c5b6:localhost:node-6b52505f-e75b-4875-94a1-5816a5ba353a:Node 6b52505f-e75b-4875-94a1-5816a5ba353a :: false |
publishItemsToNodes | 0.084s |
2019-10-13 20:34:43 |
2019-10-13 20:34:43 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2019-10-13 20:34:43 | ------------------------------------ 2019-10-13 20:34:43 | on localhost executing action publish-item with content type application/json and payload: { "node": "node-6b52505f-e75b-4875-94a1-5816a5ba353a", "entry": "<test>item-5d8f46d2-3310-444b-860b-94ed72f94648</test>", "item-id": "item-5d8f46d2-3310-444b-860b-94ed72f94648" } 2019-10-13 20:34:43 | from localhost for action publish-item got result code 200 and payload { "Note": "Operation successful", "item-id": "item-5d8f46d2-3310-444b-860b-94ed72f94648" } 2019-10-13 20:34:43 | [Mutex] waiting for: [published:item:notifieditem-5d8f46d2-3310-444b-860b-94ed72f94648:admin@localhost] 2019-10-13 20:34:43 | [Mutex] received everything. 2019-10-13 20:34:43 | [Mutex] isItemNotified: published:item:notifieditem-5d8f46d2-3310-444b-860b-94ed72f94648:admin@localhost :: true |
retractItemsFromNodes | 0.055s |
2019-10-13 20:34:43 |
2019-10-13 20:34:43 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2019-10-13 20:34:43 | ------------------------------------ 2019-10-13 20:34:43 | on localhost executing action delete-item with content type application/json and payload: { "node": "node-6b52505f-e75b-4875-94a1-5816a5ba353a", "item-id": "item-5d8f46d2-3310-444b-860b-94ed72f94648" } 2019-10-13 20:34:43 | from localhost for action delete-item got result code 200 and payload { "Note": "Operation successful", "item-id": "item-5d8f46d2-3310-444b-860b-94ed72f94648" } 2019-10-13 20:34:43 | [Mutex] received everything. 2019-10-13 20:34:43 | [Mutex] isItemNotified: retracted:item:notifieditem-5d8f46d2-3310-444b-860b-94ed72f94648:admin@localhost :: true |
retrieveItemsFromNodes | 0.018s |
2019-10-13 20:34:43 |
2019-10-13 20:34:43 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2019-10-13 20:34:43 | ------------------------------------ 2019-10-13 20:34:43 | on localhost executing action retrieve-item with content type application/json and payload: { "node": "node-6b52505f-e75b-4875-94a1-5816a5ba353a", "item-id": "item-5d8f46d2-3310-444b-860b-94ed72f94648" } 2019-10-13 20:34:43 | from localhost for action retrieve-item got result code 200 and payload { "title": "Retrive PubSub node item", "node": "node-6b52505f-e75b-4875-94a1-5816a5ba353a", "item-id": "item-5d8f46d2-3310-444b-860b-94ed72f94648", "item": [ "<item id=\"item-5d8f46d2-3310-444b-860b-94ed72f94648\"><test>item-5d8f46d2-3310-444b-860b-94ed72f94648</test></item>" ] } 2019-10-13 20:34:43 | [Mutex] notify: [retrieved:item:item-5d8f46d2-3310-444b-860b-94ed72f94648:payload-matches:true:localhost] 2019-10-13 20:34:43 | [Mutex] received everything. 2019-10-13 20:34:43 | [Mutex] isItemNotified: retrieved:item:item-5d8f46d2-3310-444b-860b-94ed72f94648:payload-matches:true:localhost :: true |
retrieveUserSubscriptions | 0.050s |
2019-10-13 20:34:43 |
2019-10-13 20:34:43 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2019-10-13 20:34:43 | ------------------------------------ 2019-10-13 20:34:43 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload: { "jid": "admin@localhost" } 2019-10-13 20:34:43 | from localhost for action retrieve-user-subscriptions got result code 200 and payload { "nodes": [ "node-6b52505f-e75b-4875-94a1-5816a5ba353a", "node-b9910dc7-4eec-4640-8426-d6df5e3eb8e2" ] } |
retrieveUserSubscriptionsWithRegex | 0.051s |
2019-10-13 20:34:43 |
2019-10-13 20:34:43 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2019-10-13 20:34:43 | ------------------------------------ 2019-10-13 20:34:43 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload: { "jid": "admin@localhost", "node-pattern": "(?!node-6b52505f-e75b-4875-94a1-5816a5ba353a)" } 2019-10-13 20:34:43 | from localhost for action retrieve-user-subscriptions got result code 200 and payload { "nodes": [ ] } |
subscribeNodes | 1.018s |
2019-10-13 20:34:42 |
2019-10-13 20:34:42 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2019-10-13 20:34:42 | ------------------------------------ 2019-10-13 20:34:42 | on localhost executing action subscribe-node with content type application/json and payload: { "node": "node-6b52505f-e75b-4875-94a1-5816a5ba353a", "jids": [ "admin@localhost" ] } 2019-10-13 20:34:42 | from localhost for action subscribe-node got result code 200 and payload { "Note": "Operation successful" } |
unsubscribeNodes | 1.051s |
2019-10-13 20:34:43 |
2019-10-13 20:34:43 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2019-10-13 20:34:43 | ------------------------------------ 2019-10-13 20:34:43 | on localhost executing action unsubscribe-node with content type application/json and payload: { "node": "node-6b52505f-e75b-4875-94a1-5816a5ba353a", "jids": [ "admin@localhost" ] } 2019-10-13 20:34:43 | from localhost for action unsubscribe-node got result code 200 and payload { "Note": "Operation successful" } |