Test duration : 9.251s
Passed Tests | ||
---|---|---|
tigase.tests.pubsub.TestRestApiUsingJSON | ||
configureNodes | 1.115s |
2021-09-28 23:15:04 |
2021-09-28 23:15:04 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-09-28 23:15:04 | ------------------------------------ 2021-09-28 23:15:04 | [Mutex] waiting for: [configured:node:node-cc796371-9d64-4488-8461-259b0dcacb3e:node-59bcc2f3-1ad6-47a3-85b1-87e74bdbacc8] 2021-09-28 23:15:04 | [Mutex] received everything. 2021-09-28 23:15:04 | [Mutex] isItemNotified: configured:node:node-cc796371-9d64-4488-8461-259b0dcacb3e:node-59bcc2f3-1ad6-47a3-85b1-87e74bdbacc8 :: true 2021-09-28 23:15:05 | [Mutex] waiting for: [received:nodes:eb7dc238-7022-4a9b-ae30-652053136110:localhost] 2021-09-28 23:15:05 | [Mutex] received everything. 2021-09-28 23:15:05 | [Mutex] isItemNotified: received:node:eb7dc238-7022-4a9b-ae30-652053136110:localhost:node-cc796371-9d64-4488-8461-259b0dcacb3e:Node cc796371-9d64-4488-8461-259b0dcacb3e :: true 2021-09-28 23:15:05 | [Mutex] waiting for: [received:nodes:00ca16d3-8bf2-4ea5-a860-1ec46333646d:localhost] 2021-09-28 23:15:05 | [Mutex] received everything. 2021-09-28 23:15:05 | [Mutex] isItemNotified: received:node:00ca16d3-8bf2-4ea5-a860-1ec46333646d:localhost:node-cc796371-9d64-4488-8461-259b0dcacb3e:Node cc796371-9d64-4488-8461-259b0dcacb3e :: false |
createNodes | 1.816s |
2021-09-28 23:15:01 |
2021-09-28 23:15:01 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-09-28 23:15:01 | ------------------------------------ 2021-09-28 23:15:02 | on localhost executing action create-node with content type application/json and payload: { "owner": "admin@test-domain.com", "pubsub#node_type": "leaf", "node": "node-cc796371-9d64-4488-8461-259b0dcacb3e", "pubsub#title": "Node cc796371-9d64-4488-8461-259b0dcacb3e" } 2021-09-28 23:15:02 | from localhost for action create-node got result code 200 and payload { "Note": "Operation successful" } 2021-09-28 23:15:03 | [Mutex] waiting for: [received:nodes:cde4f9d2-87fb-4618-b449-03e6dbf2c348:localhost] 2021-09-28 23:15:03 | [Mutex] received everything. 2021-09-28 23:15:03 | [Mutex] isItemNotified: received:node:cde4f9d2-87fb-4618-b449-03e6dbf2c348:localhost:node-cc796371-9d64-4488-8461-259b0dcacb3e:Node cc796371-9d64-4488-8461-259b0dcacb3e :: true |
createSubnodes | 1.020s |
2021-09-28 23:15:03 |
2021-09-28 23:15:03 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-09-28 23:15:03 | ------------------------------------ 2021-09-28 23:15:03 | on localhost executing action create-node with content type application/json and payload: { "owner": "admin@test-domain.com", "pubsub#node_type": "collection", "node": "node-59bcc2f3-1ad6-47a3-85b1-87e74bdbacc8", "pubsub#title": "Node 59bcc2f3-1ad6-47a3-85b1-87e74bdbacc8" } 2021-09-28 23:15:03 | from localhost for action create-node got result code 200 and payload { "Note": "Operation successful" } 2021-09-28 23:15:04 | [Mutex] waiting for: [received:nodes:8d6c671e-e3f8-4b06-bd13-c748071f95da:localhost] 2021-09-28 23:15:04 | [Mutex] received everything. 2021-09-28 23:15:04 | [Mutex] isItemNotified: received:node:8d6c671e-e3f8-4b06-bd13-c748071f95da:localhost:node-59bcc2f3-1ad6-47a3-85b1-87e74bdbacc8:Node 59bcc2f3-1ad6-47a3-85b1-87e74bdbacc8 :: true |
deleteNodes | 1.018s |
2021-09-28 23:15:08 |
2021-09-28 23:15:08 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-09-28 23:15:08 | ------------------------------------ 2021-09-28 23:15:08 | on localhost executing action delete-node with content type application/json and payload: { "node": "node-59bcc2f3-1ad6-47a3-85b1-87e74bdbacc8" } 2021-09-28 23:15:08 | from localhost for action delete-node got result code 200 and payload { "Note": "Operation successful" } 2021-09-28 23:15:09 | [Mutex] waiting for: [received:nodes:fa0ee2d3-f688-45a5-ace4-888bf9f2f2c0:localhost] 2021-09-28 23:15:09 | [Mutex] received everything. 2021-09-28 23:15:09 | [Mutex] isItemNotified: received:node:fa0ee2d3-f688-45a5-ace4-888bf9f2f2c0:localhost:node-59bcc2f3-1ad6-47a3-85b1-87e74bdbacc8:Node 59bcc2f3-1ad6-47a3-85b1-87e74bdbacc8 :: false |
deleteSubnodes | 1.029s |
2021-09-28 23:15:07 |
2021-09-28 23:15:07 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-09-28 23:15:07 | ------------------------------------ 2021-09-28 23:15:07 | on localhost executing action delete-node with content type application/json and payload: { "node": "node-cc796371-9d64-4488-8461-259b0dcacb3e" } 2021-09-28 23:15:07 | from localhost for action delete-node got result code 200 and payload { "Note": "Operation successful" } 2021-09-28 23:15:08 | [Mutex] waiting for: [received:nodes:54381558-992b-4698-b663-c51a4e303981:localhost] 2021-09-28 23:15:08 | [Mutex] received everything. 2021-09-28 23:15:08 | [Mutex] isItemNotified: received:node:54381558-992b-4698-b663-c51a4e303981:localhost:node-cc796371-9d64-4488-8461-259b0dcacb3e:Node cc796371-9d64-4488-8461-259b0dcacb3e :: false 2021-09-28 23:15:08 | [Mutex] waiting for: [received:nodes:bf4f8d5d-6846-4f9a-b2a3-bf63a3ef5aec:localhost] 2021-09-28 23:15:08 | [Mutex] received everything. 2021-09-28 23:15:08 | [Mutex] isItemNotified: received:node:bf4f8d5d-6846-4f9a-b2a3-bf63a3ef5aec:localhost:node-cc796371-9d64-4488-8461-259b0dcacb3e:Node cc796371-9d64-4488-8461-259b0dcacb3e :: false |
publishItemsToNodes | 0.057s |
2021-09-28 23:15:06 |
2021-09-28 23:15:06 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-09-28 23:15:06 | ------------------------------------ 2021-09-28 23:15:06 | on localhost executing action publish-item with content type application/json and payload: { "node": "node-cc796371-9d64-4488-8461-259b0dcacb3e", "entry": "<test>item-85b54717-2cd5-48c5-b494-8aaeab848cf8</test>", "item-id": "item-85b54717-2cd5-48c5-b494-8aaeab848cf8" } 2021-09-28 23:15:06 | from localhost for action publish-item got result code 200 and payload { "Note": "Operation successful", "item-id": "item-85b54717-2cd5-48c5-b494-8aaeab848cf8" } 2021-09-28 23:15:06 | [Mutex] waiting for: [published:item:notifieditem-85b54717-2cd5-48c5-b494-8aaeab848cf8:admin@test-domain.com] 2021-09-28 23:15:06 | [Mutex] received everything. 2021-09-28 23:15:06 | [Mutex] isItemNotified: published:item:notifieditem-85b54717-2cd5-48c5-b494-8aaeab848cf8:admin@test-domain.com :: true |
retractItemsFromNodes | 0.141s |
2021-09-28 23:15:06 |
2021-09-28 23:15:06 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-09-28 23:15:06 | ------------------------------------ 2021-09-28 23:15:06 | on localhost executing action delete-item with content type application/json and payload: { "node": "node-cc796371-9d64-4488-8461-259b0dcacb3e", "item-id": "item-85b54717-2cd5-48c5-b494-8aaeab848cf8" } 2021-09-28 23:15:06 | from localhost for action delete-item got result code 200 and payload { "Note": "Operation successful", "item-id": "item-85b54717-2cd5-48c5-b494-8aaeab848cf8" } 2021-09-28 23:15:06 | [Mutex] waiting for: [retracted:item:notifieditem-85b54717-2cd5-48c5-b494-8aaeab848cf8:admin@test-domain.com] 2021-09-28 23:15:06 | [Mutex] received everything. 2021-09-28 23:15:06 | [Mutex] isItemNotified: retracted:item:notifieditem-85b54717-2cd5-48c5-b494-8aaeab848cf8:admin@test-domain.com :: true |
retrieveItemsFromNodes | 0.042s |
2021-09-28 23:15:06 |
2021-09-28 23:15:06 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-09-28 23:15:06 | ------------------------------------ 2021-09-28 23:15:06 | on localhost executing action retrieve-item with content type application/json and payload: { "node": "node-cc796371-9d64-4488-8461-259b0dcacb3e", "item-id": "item-85b54717-2cd5-48c5-b494-8aaeab848cf8" } 2021-09-28 23:15:06 | from localhost for action retrieve-item got result code 200 and payload { "title": "Retrive PubSub node item", "node": "node-cc796371-9d64-4488-8461-259b0dcacb3e", "item-id": "item-85b54717-2cd5-48c5-b494-8aaeab848cf8", "item": [ "<item id=\"item-85b54717-2cd5-48c5-b494-8aaeab848cf8\"><test>item-85b54717-2cd5-48c5-b494-8aaeab848cf8</test></item>" ] } 2021-09-28 23:15:06 | [Mutex] notify: [retrieved:item:item-85b54717-2cd5-48c5-b494-8aaeab848cf8:payload-matches:true:localhost] 2021-09-28 23:15:06 | [Mutex] received everything. 2021-09-28 23:15:06 | [Mutex] isItemNotified: retrieved:item:item-85b54717-2cd5-48c5-b494-8aaeab848cf8:payload-matches:true:localhost :: true |
retrieveUserSubscriptions | 0.048s |
2021-09-28 23:15:06 |
2021-09-28 23:15:06 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-09-28 23:15:06 | ------------------------------------ 2021-09-28 23:15:06 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload: { "jid": "admin@test-domain.com" } 2021-09-28 23:15:06 | from localhost for action retrieve-user-subscriptions got result code 200 and payload { "nodes": [ "node-cc796371-9d64-4488-8461-259b0dcacb3e", "test", "node-59bcc2f3-1ad6-47a3-85b1-87e74bdbacc8" ] } |
retrieveUserSubscriptionsWithRegex | 0.135s |
2021-09-28 23:15:06 |
2021-09-28 23:15:06 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-09-28 23:15:06 | ------------------------------------ 2021-09-28 23:15:06 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload: { "jid": "admin@test-domain.com", "node-pattern": "(?!node-cc796371-9d64-4488-8461-259b0dcacb3e)" } 2021-09-28 23:15:06 | from localhost for action retrieve-user-subscriptions got result code 200 and payload { "nodes": [ ] } |
subscribeNodes | 1.010s |
2021-09-28 23:15:05 |
2021-09-28 23:15:05 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-09-28 23:15:05 | ------------------------------------ 2021-09-28 23:15:05 | on localhost executing action subscribe-node with content type application/json and payload: { "node": "node-cc796371-9d64-4488-8461-259b0dcacb3e", "jids": [ "admin@test-domain.com" ] } 2021-09-28 23:15:05 | from localhost for action subscribe-node got result code 200 and payload { "Note": "Operation successful" } |
unsubscribeNodes | 1.013s |
2021-09-28 23:15:06 |
2021-09-28 23:15:06 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-09-28 23:15:06 | ------------------------------------ 2021-09-28 23:15:06 | on localhost executing action unsubscribe-node with content type application/json and payload: { "node": "node-cc796371-9d64-4488-8461-259b0dcacb3e", "jids": [ "admin@test-domain.com" ] } 2021-09-28 23:15:06 | from localhost for action unsubscribe-node got result code 200 and payload { "Note": "Operation successful" } |