Test duration : 8.928s
Passed Tests | ||
---|---|---|
tigase.tests.pubsub.TestRestApiUsingJSON | ||
configureNodes | 1.101s |
2020-09-18 02:08:09 |
2020-09-18 02:08:09 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-09-18 02:08:09 | ------------------------------------ 2020-09-18 02:08:09 | [Mutex] waiting for: [configured:node:node-4b2e9f8a-779d-4981-b891-5b3dcd9278c4:node-c82dbbaa-ab3b-4466-9536-3925f745fa29] 2020-09-18 02:08:09 | [Mutex] received everything. 2020-09-18 02:08:09 | [Mutex] isItemNotified: configured:node:node-4b2e9f8a-779d-4981-b891-5b3dcd9278c4:node-c82dbbaa-ab3b-4466-9536-3925f745fa29 :: true 2020-09-18 02:08:10 | [Mutex] waiting for: [received:nodes:0a14dbcb-ce88-4520-8916-687b19cc94cf:localhost] 2020-09-18 02:08:10 | [Mutex] received everything. 2020-09-18 02:08:10 | [Mutex] isItemNotified: received:node:0a14dbcb-ce88-4520-8916-687b19cc94cf:localhost:node-4b2e9f8a-779d-4981-b891-5b3dcd9278c4:Node 4b2e9f8a-779d-4981-b891-5b3dcd9278c4 :: true 2020-09-18 02:08:10 | [Mutex] waiting for: [received:nodes:571d4622-b300-4d18-b746-068dec1d325d:localhost] 2020-09-18 02:08:10 | [Mutex] received everything. 2020-09-18 02:08:10 | [Mutex] isItemNotified: received:node:571d4622-b300-4d18-b746-068dec1d325d:localhost:node-4b2e9f8a-779d-4981-b891-5b3dcd9278c4:Node 4b2e9f8a-779d-4981-b891-5b3dcd9278c4 :: false |
createNodes | 1.687s |
2020-09-18 02:08:06 |
2020-09-18 02:08:06 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-09-18 02:08:06 | ------------------------------------ 2020-09-18 02:08:07 | on localhost executing action create-node with content type application/json and payload: { "owner": "admin@test-domain.com", "pubsub#node_type": "leaf", "node": "node-4b2e9f8a-779d-4981-b891-5b3dcd9278c4", "pubsub#title": "Node 4b2e9f8a-779d-4981-b891-5b3dcd9278c4" } 2020-09-18 02:08:07 | from localhost for action create-node got result code 200 and payload { "Note": "Operation successful" } 2020-09-18 02:08:08 | [Mutex] waiting for: [received:nodes:d5344800-d9c5-491a-9d30-9284ca7a33c1:localhost] 2020-09-18 02:08:08 | [Mutex] waiting for: [received:nodes:d5344800-d9c5-491a-9d30-9284ca7a33c1:localhost] 2020-09-18 02:08:08 | [Mutex] received everything. 2020-09-18 02:08:08 | [Mutex] isItemNotified: received:node:d5344800-d9c5-491a-9d30-9284ca7a33c1:localhost:node-4b2e9f8a-779d-4981-b891-5b3dcd9278c4:Node 4b2e9f8a-779d-4981-b891-5b3dcd9278c4 :: true |
createSubnodes | 1.026s |
2020-09-18 02:08:08 |
2020-09-18 02:08:08 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-09-18 02:08:08 | ------------------------------------ 2020-09-18 02:08:08 | on localhost executing action create-node with content type application/json and payload: { "owner": "admin@test-domain.com", "pubsub#node_type": "collection", "node": "node-c82dbbaa-ab3b-4466-9536-3925f745fa29", "pubsub#title": "Node c82dbbaa-ab3b-4466-9536-3925f745fa29" } 2020-09-18 02:08:08 | from localhost for action create-node got result code 200 and payload { "Note": "Operation successful" } 2020-09-18 02:08:09 | [Mutex] waiting for: [received:nodes:dbf0d2e1-363f-476f-baba-eac1fa3a43e9:localhost] 2020-09-18 02:08:09 | [Mutex] received everything. 2020-09-18 02:08:09 | [Mutex] isItemNotified: received:node:dbf0d2e1-363f-476f-baba-eac1fa3a43e9:localhost:node-c82dbbaa-ab3b-4466-9536-3925f745fa29:Node c82dbbaa-ab3b-4466-9536-3925f745fa29 :: true |
deleteNodes | 1.032s |
2020-09-18 02:08:14 |
2020-09-18 02:08:14 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-09-18 02:08:14 | ------------------------------------ 2020-09-18 02:08:14 | on localhost executing action delete-node with content type application/json and payload: { "node": "node-c82dbbaa-ab3b-4466-9536-3925f745fa29" } 2020-09-18 02:08:14 | from localhost for action delete-node got result code 200 and payload { "Note": "Operation successful" } 2020-09-18 02:08:15 | [Mutex] waiting for: [received:nodes:78bf1559-8be2-4d8c-9f96-16511bf0ef62:localhost] 2020-09-18 02:08:15 | [Mutex] received everything. 2020-09-18 02:08:15 | [Mutex] isItemNotified: received:node:78bf1559-8be2-4d8c-9f96-16511bf0ef62:localhost:node-c82dbbaa-ab3b-4466-9536-3925f745fa29:Node c82dbbaa-ab3b-4466-9536-3925f745fa29 :: false |
deleteSubnodes | 1.026s |
2020-09-18 02:08:13 |
2020-09-18 02:08:13 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-09-18 02:08:13 | ------------------------------------ 2020-09-18 02:08:13 | on localhost executing action delete-node with content type application/json and payload: { "node": "node-4b2e9f8a-779d-4981-b891-5b3dcd9278c4" } 2020-09-18 02:08:13 | from localhost for action delete-node got result code 200 and payload { "Note": "Operation successful" } 2020-09-18 02:08:14 | [Mutex] waiting for: [received:nodes:f7eada59-d702-418f-a6c5-26715731deb9:localhost] 2020-09-18 02:08:14 | [Mutex] waiting for: [received:nodes:f7eada59-d702-418f-a6c5-26715731deb9:localhost] 2020-09-18 02:08:14 | [Mutex] received everything. 2020-09-18 02:08:14 | [Mutex] isItemNotified: received:node:f7eada59-d702-418f-a6c5-26715731deb9:localhost:node-4b2e9f8a-779d-4981-b891-5b3dcd9278c4:Node 4b2e9f8a-779d-4981-b891-5b3dcd9278c4 :: false 2020-09-18 02:08:14 | [Mutex] waiting for: [received:nodes:ea035475-a964-493e-8f11-88c22aebb903:localhost] 2020-09-18 02:08:14 | [Mutex] received everything. 2020-09-18 02:08:14 | [Mutex] isItemNotified: received:node:ea035475-a964-493e-8f11-88c22aebb903:localhost:node-4b2e9f8a-779d-4981-b891-5b3dcd9278c4:Node 4b2e9f8a-779d-4981-b891-5b3dcd9278c4 :: false |
publishItemsToNodes | 0.044s |
2020-09-18 02:08:11 |
2020-09-18 02:08:11 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-09-18 02:08:11 | ------------------------------------ 2020-09-18 02:08:11 | on localhost executing action publish-item with content type application/json and payload: { "node": "node-4b2e9f8a-779d-4981-b891-5b3dcd9278c4", "entry": "<test>item-c4e76a3a-c637-4f5c-866f-521688906603</test>", "item-id": "item-c4e76a3a-c637-4f5c-866f-521688906603" } 2020-09-18 02:08:11 | from localhost for action publish-item got result code 200 and payload { "Note": "Operation successful", "item-id": "item-c4e76a3a-c637-4f5c-866f-521688906603" } 2020-09-18 02:08:11 | [Mutex] waiting for: [published:item:notifieditem-c4e76a3a-c637-4f5c-866f-521688906603:admin@test-domain.com] 2020-09-18 02:08:11 | [Mutex] received everything. 2020-09-18 02:08:11 | [Mutex] isItemNotified: published:item:notifieditem-c4e76a3a-c637-4f5c-866f-521688906603:admin@test-domain.com :: true |
retractItemsFromNodes | 0.066s |
2020-09-18 02:08:11 |
2020-09-18 02:08:11 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-09-18 02:08:11 | ------------------------------------ 2020-09-18 02:08:11 | on localhost executing action delete-item with content type application/json and payload: { "node": "node-4b2e9f8a-779d-4981-b891-5b3dcd9278c4", "item-id": "item-c4e76a3a-c637-4f5c-866f-521688906603" } 2020-09-18 02:08:11 | from localhost for action delete-item got result code 200 and payload { "Note": "Operation successful", "item-id": "item-c4e76a3a-c637-4f5c-866f-521688906603" } 2020-09-18 02:08:11 | [Mutex] received everything. 2020-09-18 02:08:11 | [Mutex] isItemNotified: retracted:item:notifieditem-c4e76a3a-c637-4f5c-866f-521688906603:admin@test-domain.com :: true |
retrieveItemsFromNodes | 0.065s |
2020-09-18 02:08:11 |
2020-09-18 02:08:11 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-09-18 02:08:11 | ------------------------------------ 2020-09-18 02:08:11 | on localhost executing action retrieve-item with content type application/json and payload: { "node": "node-4b2e9f8a-779d-4981-b891-5b3dcd9278c4", "item-id": "item-c4e76a3a-c637-4f5c-866f-521688906603" } 2020-09-18 02:08:11 | from localhost for action retrieve-item got result code 200 and payload { "title": "Retrive PubSub node item", "node": "node-4b2e9f8a-779d-4981-b891-5b3dcd9278c4", "item-id": "item-c4e76a3a-c637-4f5c-866f-521688906603", "item": [ "<item id=\"item-c4e76a3a-c637-4f5c-866f-521688906603\"><test>item-c4e76a3a-c637-4f5c-866f-521688906603</test></item>" ] } 2020-09-18 02:08:11 | [Mutex] notify: [retrieved:item:item-c4e76a3a-c637-4f5c-866f-521688906603:payload-matches:true:localhost] 2020-09-18 02:08:11 | [Mutex] received everything. 2020-09-18 02:08:11 | [Mutex] isItemNotified: retrieved:item:item-c4e76a3a-c637-4f5c-866f-521688906603:payload-matches:true:localhost :: true |
retrieveUserSubscriptions | 0.047s |
2020-09-18 02:08:11 |
2020-09-18 02:08:11 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-09-18 02:08:11 | ------------------------------------ 2020-09-18 02:08:11 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload: { "jid": "admin@test-domain.com" } 2020-09-18 02:08:11 | from localhost for action retrieve-user-subscriptions got result code 200 and payload { "nodes": [ "test", "node-c82dbbaa-ab3b-4466-9536-3925f745fa29", "node-4b2e9f8a-779d-4981-b891-5b3dcd9278c4" ] } |
retrieveUserSubscriptionsWithRegex | 0.051s |
2020-09-18 02:08:11 |
2020-09-18 02:08:11 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-09-18 02:08:11 | ------------------------------------ 2020-09-18 02:08:11 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload: { "jid": "admin@test-domain.com", "node-pattern": "(?!node-4b2e9f8a-779d-4981-b891-5b3dcd9278c4)" } 2020-09-18 02:08:11 | from localhost for action retrieve-user-subscriptions got result code 200 and payload { "nodes": [ ] } |
subscribeNodes | 1.018s |
2020-09-18 02:08:10 |
2020-09-18 02:08:10 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-09-18 02:08:10 | ------------------------------------ 2020-09-18 02:08:10 | on localhost executing action subscribe-node with content type application/json and payload: { "node": "node-4b2e9f8a-779d-4981-b891-5b3dcd9278c4", "jids": [ "admin@test-domain.com" ] } 2020-09-18 02:08:10 | from localhost for action subscribe-node got result code 200 and payload { "Note": "Operation successful" } |
unsubscribeNodes | 1.052s |
2020-09-18 02:08:11 |
2020-09-18 02:08:11 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-09-18 02:08:11 | ------------------------------------ 2020-09-18 02:08:11 | on localhost executing action unsubscribe-node with content type application/json and payload: { "node": "node-4b2e9f8a-779d-4981-b891-5b3dcd9278c4", "jids": [ "admin@test-domain.com" ] } 2020-09-18 02:08:12 | from localhost for action unsubscribe-node got result code 200 and payload { "Note": "Operation successful" } |