Test duration : 9.116s
Passed Tests | ||
---|---|---|
tigase.tests.pubsub.TestRestApiUsingJSON | ||
configureNodes | 1.109s |
2021-09-28 22:30:03 |
2021-09-28 22:30:03 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-09-28 22:30:03 | ------------------------------------ 2021-09-28 22:30:03 | [Mutex] waiting for: [configured:node:node-ac4095d4-46b4-48f3-8b8c-0a8d5d99404b:node-662f3bc5-e3da-4180-ac8f-8c54fa2e55fe] 2021-09-28 22:30:03 | [Mutex] received everything. 2021-09-28 22:30:03 | [Mutex] isItemNotified: configured:node:node-ac4095d4-46b4-48f3-8b8c-0a8d5d99404b:node-662f3bc5-e3da-4180-ac8f-8c54fa2e55fe :: true 2021-09-28 22:30:04 | [Mutex] waiting for: [received:nodes:9a99dc9d-bfee-4375-ae29-5fc2d404e6ce:localhost] 2021-09-28 22:30:04 | [Mutex] received everything. 2021-09-28 22:30:04 | [Mutex] isItemNotified: received:node:9a99dc9d-bfee-4375-ae29-5fc2d404e6ce:localhost:node-ac4095d4-46b4-48f3-8b8c-0a8d5d99404b:Node ac4095d4-46b4-48f3-8b8c-0a8d5d99404b :: true 2021-09-28 22:30:04 | [Mutex] waiting for: [received:nodes:32f32f50-4294-4b45-aab6-d717a2f5f2c2:localhost] 2021-09-28 22:30:04 | [Mutex] waiting for: [received:nodes:32f32f50-4294-4b45-aab6-d717a2f5f2c2:localhost] 2021-09-28 22:30:04 | [Mutex] received everything. 2021-09-28 22:30:04 | [Mutex] isItemNotified: received:node:32f32f50-4294-4b45-aab6-d717a2f5f2c2:localhost:node-ac4095d4-46b4-48f3-8b8c-0a8d5d99404b:Node ac4095d4-46b4-48f3-8b8c-0a8d5d99404b :: false |
createNodes | 1.714s |
2021-09-28 22:30:00 |
2021-09-28 22:30:00 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-09-28 22:30:00 | ------------------------------------ 2021-09-28 22:30:01 | on localhost executing action create-node with content type application/json and payload: { "owner": "admin@test-domain.com", "pubsub#node_type": "leaf", "node": "node-ac4095d4-46b4-48f3-8b8c-0a8d5d99404b", "pubsub#title": "Node ac4095d4-46b4-48f3-8b8c-0a8d5d99404b" } 2021-09-28 22:30:01 | from localhost for action create-node got result code 200 and payload { "Note": "Operation successful" } 2021-09-28 22:30:02 | [Mutex] waiting for: [received:nodes:1a9106a0-ad53-45f0-aa89-e923beadbe57:localhost] 2021-09-28 22:30:02 | [Mutex] received everything. 2021-09-28 22:30:02 | [Mutex] isItemNotified: received:node:1a9106a0-ad53-45f0-aa89-e923beadbe57:localhost:node-ac4095d4-46b4-48f3-8b8c-0a8d5d99404b:Node ac4095d4-46b4-48f3-8b8c-0a8d5d99404b :: true |
createSubnodes | 1.029s |
2021-09-28 22:30:02 |
2021-09-28 22:30:02 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-09-28 22:30:02 | ------------------------------------ 2021-09-28 22:30:02 | on localhost executing action create-node with content type application/json and payload: { "owner": "admin@test-domain.com", "pubsub#node_type": "collection", "node": "node-662f3bc5-e3da-4180-ac8f-8c54fa2e55fe", "pubsub#title": "Node 662f3bc5-e3da-4180-ac8f-8c54fa2e55fe" } 2021-09-28 22:30:02 | from localhost for action create-node got result code 200 and payload { "Note": "Operation successful" } 2021-09-28 22:30:03 | [Mutex] waiting for: [received:nodes:5e017127-8a93-4bb7-b0f7-d0960502dbec:localhost] 2021-09-28 22:30:03 | [Mutex] received everything. 2021-09-28 22:30:03 | [Mutex] isItemNotified: received:node:5e017127-8a93-4bb7-b0f7-d0960502dbec:localhost:node-662f3bc5-e3da-4180-ac8f-8c54fa2e55fe:Node 662f3bc5-e3da-4180-ac8f-8c54fa2e55fe :: true |
deleteNodes | 1.025s |
2021-09-28 22:30:08 |
2021-09-28 22:30:08 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-09-28 22:30:08 | ------------------------------------ 2021-09-28 22:30:08 | on localhost executing action delete-node with content type application/json and payload: { "node": "node-662f3bc5-e3da-4180-ac8f-8c54fa2e55fe" } 2021-09-28 22:30:08 | from localhost for action delete-node got result code 200 and payload { "Note": "Operation successful" } 2021-09-28 22:30:09 | [Mutex] waiting for: [received:nodes:b25306ba-5da6-44c7-9c24-2cdfbac7b75f:localhost] 2021-09-28 22:30:09 | [Mutex] received everything. 2021-09-28 22:30:09 | [Mutex] isItemNotified: received:node:b25306ba-5da6-44c7-9c24-2cdfbac7b75f:localhost:node-662f3bc5-e3da-4180-ac8f-8c54fa2e55fe:Node 662f3bc5-e3da-4180-ac8f-8c54fa2e55fe :: false |
deleteSubnodes | 1.029s |
2021-09-28 22:30:07 |
2021-09-28 22:30:07 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-09-28 22:30:07 | ------------------------------------ 2021-09-28 22:30:07 | on localhost executing action delete-node with content type application/json and payload: { "node": "node-ac4095d4-46b4-48f3-8b8c-0a8d5d99404b" } 2021-09-28 22:30:07 | from localhost for action delete-node got result code 200 and payload { "Note": "Operation successful" } 2021-09-28 22:30:08 | [Mutex] waiting for: [received:nodes:5676463c-f4e7-454e-b087-bc75673da155:localhost] 2021-09-28 22:30:08 | [Mutex] received everything. 2021-09-28 22:30:08 | [Mutex] isItemNotified: received:node:5676463c-f4e7-454e-b087-bc75673da155:localhost:node-ac4095d4-46b4-48f3-8b8c-0a8d5d99404b:Node ac4095d4-46b4-48f3-8b8c-0a8d5d99404b :: false 2021-09-28 22:30:08 | [Mutex] waiting for: [received:nodes:78b82811-cfbc-422c-b8da-5720b409401a:localhost] 2021-09-28 22:30:08 | [Mutex] received everything. 2021-09-28 22:30:08 | [Mutex] isItemNotified: received:node:78b82811-cfbc-422c-b8da-5720b409401a:localhost:node-ac4095d4-46b4-48f3-8b8c-0a8d5d99404b:Node ac4095d4-46b4-48f3-8b8c-0a8d5d99404b :: false |
publishItemsToNodes | 0.066s |
2021-09-28 22:30:05 |
2021-09-28 22:30:05 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-09-28 22:30:05 | ------------------------------------ 2021-09-28 22:30:05 | on localhost executing action publish-item with content type application/json and payload: { "node": "node-ac4095d4-46b4-48f3-8b8c-0a8d5d99404b", "entry": "<test>item-f28ed93f-eb88-4954-b120-8e733ddcafa0</test>", "item-id": "item-f28ed93f-eb88-4954-b120-8e733ddcafa0" } 2021-09-28 22:30:05 | from localhost for action publish-item got result code 200 and payload { "Note": "Operation successful", "item-id": "item-f28ed93f-eb88-4954-b120-8e733ddcafa0" } 2021-09-28 22:30:05 | [Mutex] waiting for: [published:item:notifieditem-f28ed93f-eb88-4954-b120-8e733ddcafa0:admin@test-domain.com] 2021-09-28 22:30:05 | [Mutex] received everything. 2021-09-28 22:30:05 | [Mutex] isItemNotified: published:item:notifieditem-f28ed93f-eb88-4954-b120-8e733ddcafa0:admin@test-domain.com :: true |
retractItemsFromNodes | 0.075s |
2021-09-28 22:30:05 |
2021-09-28 22:30:05 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-09-28 22:30:05 | ------------------------------------ 2021-09-28 22:30:05 | on localhost executing action delete-item with content type application/json and payload: { "node": "node-ac4095d4-46b4-48f3-8b8c-0a8d5d99404b", "item-id": "item-f28ed93f-eb88-4954-b120-8e733ddcafa0" } 2021-09-28 22:30:05 | from localhost for action delete-item got result code 200 and payload { "Note": "Operation successful", "item-id": "item-f28ed93f-eb88-4954-b120-8e733ddcafa0" } 2021-09-28 22:30:05 | [Mutex] received everything. 2021-09-28 22:30:05 | [Mutex] isItemNotified: retracted:item:notifieditem-f28ed93f-eb88-4954-b120-8e733ddcafa0:admin@test-domain.com :: true |
retrieveItemsFromNodes | 0.051s |
2021-09-28 22:30:05 |
2021-09-28 22:30:05 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-09-28 22:30:05 | ------------------------------------ 2021-09-28 22:30:05 | on localhost executing action retrieve-item with content type application/json and payload: { "node": "node-ac4095d4-46b4-48f3-8b8c-0a8d5d99404b", "item-id": "item-f28ed93f-eb88-4954-b120-8e733ddcafa0" } 2021-09-28 22:30:05 | from localhost for action retrieve-item got result code 200 and payload { "title": "Retrive PubSub node item", "node": "node-ac4095d4-46b4-48f3-8b8c-0a8d5d99404b", "item-id": "item-f28ed93f-eb88-4954-b120-8e733ddcafa0", "item": [ "<item id=\"item-f28ed93f-eb88-4954-b120-8e733ddcafa0\"><test>item-f28ed93f-eb88-4954-b120-8e733ddcafa0</test></item>" ] } 2021-09-28 22:30:05 | [Mutex] notify: [retrieved:item:item-f28ed93f-eb88-4954-b120-8e733ddcafa0:payload-matches:true:localhost] 2021-09-28 22:30:05 | [Mutex] received everything. 2021-09-28 22:30:05 | [Mutex] isItemNotified: retrieved:item:item-f28ed93f-eb88-4954-b120-8e733ddcafa0:payload-matches:true:localhost :: true |
retrieveUserSubscriptions | 0.054s |
2021-09-28 22:30:05 |
2021-09-28 22:30:05 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-09-28 22:30:05 | ------------------------------------ 2021-09-28 22:30:05 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload: { "jid": "admin@test-domain.com" } 2021-09-28 22:30:05 | from localhost for action retrieve-user-subscriptions got result code 200 and payload { "nodes": [ "node-ac4095d4-46b4-48f3-8b8c-0a8d5d99404b", "test", "node-662f3bc5-e3da-4180-ac8f-8c54fa2e55fe" ] } |
retrieveUserSubscriptionsWithRegex | 0.051s |
2021-09-28 22:30:05 |
2021-09-28 22:30:05 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-09-28 22:30:05 | ------------------------------------ 2021-09-28 22:30:05 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload: { "jid": "admin@test-domain.com", "node-pattern": "(?!node-ac4095d4-46b4-48f3-8b8c-0a8d5d99404b)" } 2021-09-28 22:30:05 | from localhost for action retrieve-user-subscriptions got result code 200 and payload { "nodes": [ ] } |
subscribeNodes | 1.010s |
2021-09-28 22:30:04 |
2021-09-28 22:30:04 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-09-28 22:30:04 | ------------------------------------ 2021-09-28 22:30:04 | on localhost executing action subscribe-node with content type application/json and payload: { "node": "node-ac4095d4-46b4-48f3-8b8c-0a8d5d99404b", "jids": [ "admin@test-domain.com" ] } 2021-09-28 22:30:04 | from localhost for action subscribe-node got result code 200 and payload { "Note": "Operation successful" } |
unsubscribeNodes | 1.075s |
2021-09-28 22:30:05 |
2021-09-28 22:30:05 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-09-28 22:30:05 | ------------------------------------ 2021-09-28 22:30:05 | on localhost executing action unsubscribe-node with content type application/json and payload: { "node": "node-ac4095d4-46b4-48f3-8b8c-0a8d5d99404b", "jids": [ "admin@test-domain.com" ] } 2021-09-28 22:30:06 | from localhost for action unsubscribe-node got result code 200 and payload { "Note": "Operation successful" } |