Test duration : 9.074s
Passed Tests | ||
---|---|---|
tigase.tests.pubsub.TestRestApiUsingJSON | ||
configureNodes | 1.123s |
2021-05-14 22:41:40 |
2021-05-14 22:41:40 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-05-14 22:41:40 | ------------------------------------ 2021-05-14 22:41:40 | [Mutex] waiting for: [configured:node:node-bbeb9af7-9799-42d8-ba76-cb92df0b8069:node-17344cc1-aeb4-4216-a980-bea367eb6e66] 2021-05-14 22:41:40 | [Mutex] received everything. 2021-05-14 22:41:40 | [Mutex] isItemNotified: configured:node:node-bbeb9af7-9799-42d8-ba76-cb92df0b8069:node-17344cc1-aeb4-4216-a980-bea367eb6e66 :: true 2021-05-14 22:41:41 | [Mutex] waiting for: [received:nodes:06f0a6e9-3513-40c4-9428-716662a6b940:localhost] 2021-05-14 22:41:41 | [Mutex] waiting for: [received:nodes:06f0a6e9-3513-40c4-9428-716662a6b940:localhost] 2021-05-14 22:41:41 | [Mutex] received everything. 2021-05-14 22:41:41 | [Mutex] isItemNotified: received:node:06f0a6e9-3513-40c4-9428-716662a6b940:localhost:node-bbeb9af7-9799-42d8-ba76-cb92df0b8069:Node bbeb9af7-9799-42d8-ba76-cb92df0b8069 :: true 2021-05-14 22:41:41 | [Mutex] waiting for: [received:nodes:b99ac334-f67d-46d0-8c47-f3c62a6e6061:localhost] 2021-05-14 22:41:41 | [Mutex] received everything. 2021-05-14 22:41:41 | [Mutex] isItemNotified: received:node:b99ac334-f67d-46d0-8c47-f3c62a6e6061:localhost:node-bbeb9af7-9799-42d8-ba76-cb92df0b8069:Node bbeb9af7-9799-42d8-ba76-cb92df0b8069 :: false |
createNodes | 1.711s |
2021-05-14 22:41:37 |
2021-05-14 22:41:37 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-05-14 22:41:37 | ------------------------------------ 2021-05-14 22:41:38 | on localhost executing action create-node with content type application/json and payload: { "owner": "admin@test-domain.com", "pubsub#node_type": "leaf", "node": "node-bbeb9af7-9799-42d8-ba76-cb92df0b8069", "pubsub#title": "Node bbeb9af7-9799-42d8-ba76-cb92df0b8069" } 2021-05-14 22:41:38 | from localhost for action create-node got result code 200 and payload { "Note": "Operation successful" } 2021-05-14 22:41:39 | [Mutex] waiting for: [received:nodes:3c303d69-1491-49e1-be65-23d6838f9d9d:localhost] 2021-05-14 22:41:39 | [Mutex] received everything. 2021-05-14 22:41:39 | [Mutex] isItemNotified: received:node:3c303d69-1491-49e1-be65-23d6838f9d9d:localhost:node-bbeb9af7-9799-42d8-ba76-cb92df0b8069:Node bbeb9af7-9799-42d8-ba76-cb92df0b8069 :: true |
createSubnodes | 1.026s |
2021-05-14 22:41:39 |
2021-05-14 22:41:39 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-05-14 22:41:39 | ------------------------------------ 2021-05-14 22:41:39 | on localhost executing action create-node with content type application/json and payload: { "owner": "admin@test-domain.com", "pubsub#node_type": "collection", "node": "node-17344cc1-aeb4-4216-a980-bea367eb6e66", "pubsub#title": "Node 17344cc1-aeb4-4216-a980-bea367eb6e66" } 2021-05-14 22:41:39 | from localhost for action create-node got result code 200 and payload { "Note": "Operation successful" } 2021-05-14 22:41:40 | [Mutex] waiting for: [received:nodes:bcc6597e-aa2b-450c-8694-d28a4645f971:localhost] 2021-05-14 22:41:40 | [Mutex] received everything. 2021-05-14 22:41:40 | [Mutex] isItemNotified: received:node:bcc6597e-aa2b-450c-8694-d28a4645f971:localhost:node-17344cc1-aeb4-4216-a980-bea367eb6e66:Node 17344cc1-aeb4-4216-a980-bea367eb6e66 :: true |
deleteNodes | 1.030s |
2021-05-14 22:41:44 |
2021-05-14 22:41:44 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-05-14 22:41:44 | ------------------------------------ 2021-05-14 22:41:44 | on localhost executing action delete-node with content type application/json and payload: { "node": "node-17344cc1-aeb4-4216-a980-bea367eb6e66" } 2021-05-14 22:41:44 | from localhost for action delete-node got result code 200 and payload { "Note": "Operation successful" } 2021-05-14 22:41:45 | [Mutex] waiting for: [received:nodes:3f59113a-2bd5-4e8c-a6ad-e84601b6a62b:localhost] 2021-05-14 22:41:45 | [Mutex] waiting for: [received:nodes:3f59113a-2bd5-4e8c-a6ad-e84601b6a62b:localhost] 2021-05-14 22:41:45 | [Mutex] received everything. 2021-05-14 22:41:45 | [Mutex] isItemNotified: received:node:3f59113a-2bd5-4e8c-a6ad-e84601b6a62b:localhost:node-17344cc1-aeb4-4216-a980-bea367eb6e66:Node 17344cc1-aeb4-4216-a980-bea367eb6e66 :: false |
deleteSubnodes | 1.031s |
2021-05-14 22:41:43 |
2021-05-14 22:41:43 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-05-14 22:41:43 | ------------------------------------ 2021-05-14 22:41:43 | on localhost executing action delete-node with content type application/json and payload: { "node": "node-bbeb9af7-9799-42d8-ba76-cb92df0b8069" } 2021-05-14 22:41:43 | from localhost for action delete-node got result code 200 and payload { "Note": "Operation successful" } 2021-05-14 22:41:44 | [Mutex] waiting for: [received:nodes:8be17bf3-d6bd-47e2-9ae2-feba6fe470c7:localhost] 2021-05-14 22:41:44 | [Mutex] received everything. 2021-05-14 22:41:44 | [Mutex] isItemNotified: received:node:8be17bf3-d6bd-47e2-9ae2-feba6fe470c7:localhost:node-bbeb9af7-9799-42d8-ba76-cb92df0b8069:Node bbeb9af7-9799-42d8-ba76-cb92df0b8069 :: false 2021-05-14 22:41:44 | [Mutex] waiting for: [received:nodes:45caa401-e8b6-4663-8cd4-1b62159576bc:localhost] 2021-05-14 22:41:44 | [Mutex] received everything. 2021-05-14 22:41:44 | [Mutex] isItemNotified: received:node:45caa401-e8b6-4663-8cd4-1b62159576bc:localhost:node-bbeb9af7-9799-42d8-ba76-cb92df0b8069:Node bbeb9af7-9799-42d8-ba76-cb92df0b8069 :: false |
publishItemsToNodes | 0.102s |
2021-05-14 22:41:42 |
2021-05-14 22:41:42 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-05-14 22:41:42 | ------------------------------------ 2021-05-14 22:41:42 | on localhost executing action publish-item with content type application/json and payload: { "node": "node-bbeb9af7-9799-42d8-ba76-cb92df0b8069", "entry": "<test>item-af44cd31-ae53-4f76-8592-da1e61f15b88</test>", "item-id": "item-af44cd31-ae53-4f76-8592-da1e61f15b88" } 2021-05-14 22:41:42 | from localhost for action publish-item got result code 200 and payload { "Note": "Operation successful", "item-id": "item-af44cd31-ae53-4f76-8592-da1e61f15b88" } 2021-05-14 22:41:42 | [Mutex] waiting for: [published:item:notifieditem-af44cd31-ae53-4f76-8592-da1e61f15b88:admin@test-domain.com] 2021-05-14 22:41:42 | [Mutex] received everything. 2021-05-14 22:41:42 | [Mutex] isItemNotified: published:item:notifieditem-af44cd31-ae53-4f76-8592-da1e61f15b88:admin@test-domain.com :: true |
retractItemsFromNodes | 0.064s |
2021-05-14 22:41:42 |
2021-05-14 22:41:42 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-05-14 22:41:42 | ------------------------------------ 2021-05-14 22:41:42 | on localhost executing action delete-item with content type application/json and payload: { "node": "node-bbeb9af7-9799-42d8-ba76-cb92df0b8069", "item-id": "item-af44cd31-ae53-4f76-8592-da1e61f15b88" } 2021-05-14 22:41:42 | from localhost for action delete-item got result code 200 and payload { "Note": "Operation successful", "item-id": "item-af44cd31-ae53-4f76-8592-da1e61f15b88" } 2021-05-14 22:41:42 | [Mutex] waiting for: [retracted:item:notifieditem-af44cd31-ae53-4f76-8592-da1e61f15b88:admin@test-domain.com] 2021-05-14 22:41:42 | [Mutex] received everything. 2021-05-14 22:41:42 | [Mutex] isItemNotified: retracted:item:notifieditem-af44cd31-ae53-4f76-8592-da1e61f15b88:admin@test-domain.com :: true |
retrieveItemsFromNodes | 0.039s |
2021-05-14 22:41:42 |
2021-05-14 22:41:42 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-05-14 22:41:42 | ------------------------------------ 2021-05-14 22:41:42 | on localhost executing action retrieve-item with content type application/json and payload: { "node": "node-bbeb9af7-9799-42d8-ba76-cb92df0b8069", "item-id": "item-af44cd31-ae53-4f76-8592-da1e61f15b88" } 2021-05-14 22:41:42 | from localhost for action retrieve-item got result code 200 and payload { "title": "Retrive PubSub node item", "node": "node-bbeb9af7-9799-42d8-ba76-cb92df0b8069", "item-id": "item-af44cd31-ae53-4f76-8592-da1e61f15b88", "item": [ "<item id=\"item-af44cd31-ae53-4f76-8592-da1e61f15b88\"><test>item-af44cd31-ae53-4f76-8592-da1e61f15b88</test></item>" ] } 2021-05-14 22:41:42 | [Mutex] notify: [retrieved:item:item-af44cd31-ae53-4f76-8592-da1e61f15b88:payload-matches:true:localhost] 2021-05-14 22:41:42 | [Mutex] received everything. 2021-05-14 22:41:42 | [Mutex] isItemNotified: retrieved:item:item-af44cd31-ae53-4f76-8592-da1e61f15b88:payload-matches:true:localhost :: true |
retrieveUserSubscriptions | 0.054s |
2021-05-14 22:41:42 |
2021-05-14 22:41:42 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-05-14 22:41:42 | ------------------------------------ 2021-05-14 22:41:42 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload: { "jid": "admin@test-domain.com" } 2021-05-14 22:41:42 | from localhost for action retrieve-user-subscriptions got result code 200 and payload { "nodes": [ "test", "node-bbeb9af7-9799-42d8-ba76-cb92df0b8069", "node-17344cc1-aeb4-4216-a980-bea367eb6e66" ] } |
retrieveUserSubscriptionsWithRegex | 0.052s |
2021-05-14 22:41:42 |
2021-05-14 22:41:42 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-05-14 22:41:42 | ------------------------------------ 2021-05-14 22:41:42 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload: { "jid": "admin@test-domain.com", "node-pattern": "(?!node-bbeb9af7-9799-42d8-ba76-cb92df0b8069)" } 2021-05-14 22:41:42 | from localhost for action retrieve-user-subscriptions got result code 200 and payload { "nodes": [ ] } |
subscribeNodes | 1.012s |
2021-05-14 22:41:41 |
2021-05-14 22:41:41 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-05-14 22:41:41 | ------------------------------------ 2021-05-14 22:41:41 | on localhost executing action subscribe-node with content type application/json and payload: { "node": "node-bbeb9af7-9799-42d8-ba76-cb92df0b8069", "jids": [ "admin@test-domain.com" ] } 2021-05-14 22:41:41 | from localhost for action subscribe-node got result code 200 and payload { "Note": "Operation successful" } |
unsubscribeNodes | 1.078s |
2021-05-14 22:41:42 |
2021-05-14 22:41:42 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-05-14 22:41:42 | ------------------------------------ 2021-05-14 22:41:42 | on localhost executing action unsubscribe-node with content type application/json and payload: { "node": "node-bbeb9af7-9799-42d8-ba76-cb92df0b8069", "jids": [ "admin@test-domain.com" ] } 2021-05-14 22:41:42 | from localhost for action unsubscribe-node got result code 200 and payload { "Note": "Operation successful" } |