Test duration: 8.984s
Passed Tests | ||
---|---|---|
tigase.tests.pubsub.TestRestApiUsingJSON | ||
configureNodes | 1.098s |
2019-11-25 19:38:50 |
2019-11-25 19:38:50 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2019-11-25 19:38:50 | ------------------------------------ 2019-11-25 19:38:50 | [Mutex] waiting for: [configured:node:node-27ea58c2-479a-4148-9422-1717d7af6b5b:node-cfdea728-4220-4976-8db6-f4727092efeb] 2019-11-25 19:38:50 | [Mutex] received everything. 2019-11-25 19:38:50 | [Mutex] isItemNotified: configured:node:node-27ea58c2-479a-4148-9422-1717d7af6b5b:node-cfdea728-4220-4976-8db6-f4727092efeb :: true 2019-11-25 19:38:51 | [Mutex] waiting for: [received:nodes:b54ff411-e0cf-4573-856d-9a1a47ecbe7f:localhost] 2019-11-25 19:38:51 | [Mutex] received everything. 2019-11-25 19:38:51 | [Mutex] isItemNotified: received:node:b54ff411-e0cf-4573-856d-9a1a47ecbe7f:localhost:node-27ea58c2-479a-4148-9422-1717d7af6b5b:Node 27ea58c2-479a-4148-9422-1717d7af6b5b :: true 2019-11-25 19:38:51 | [Mutex] waiting for: [received:nodes:cac58ede-5563-4df5-8216-82b4dd54d018:localhost] 2019-11-25 19:38:51 | [Mutex] received everything. 2019-11-25 19:38:51 | [Mutex] isItemNotified: received:node:cac58ede-5563-4df5-8216-82b4dd54d018:localhost:node-27ea58c2-479a-4148-9422-1717d7af6b5b:Node 27ea58c2-479a-4148-9422-1717d7af6b5b :: false |
createNodes | 1.752s |
2019-11-25 19:38:47 |
2019-11-25 19:38:47 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2019-11-25 19:38:47 | ------------------------------------ 2019-11-25 19:38:47 | on localhost executing action create-node with content type application/json and payload: { "owner": "admin@localhost", "pubsub#node_type": "leaf", "node": "node-27ea58c2-479a-4148-9422-1717d7af6b5b", "pubsub#title": "Node 27ea58c2-479a-4148-9422-1717d7af6b5b" } 2019-11-25 19:38:48 | from localhost for action create-node got result code 200 and payload { "Note": "Operation successful" } 2019-11-25 19:38:49 | [Mutex] waiting for: [received:nodes:750fa1cf-fcb8-4308-b8e6-2a04cce7d725:localhost] 2019-11-25 19:38:49 | [Mutex] received everything. 2019-11-25 19:38:49 | [Mutex] isItemNotified: received:node:750fa1cf-fcb8-4308-b8e6-2a04cce7d725:localhost:node-27ea58c2-479a-4148-9422-1717d7af6b5b:Node 27ea58c2-479a-4148-9422-1717d7af6b5b :: true |
createSubnodes | 1.025s |
2019-11-25 19:38:49 |
2019-11-25 19:38:49 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2019-11-25 19:38:49 | ------------------------------------ 2019-11-25 19:38:49 | on localhost executing action create-node with content type application/json and payload: { "owner": "admin@localhost", "pubsub#node_type": "collection", "node": "node-cfdea728-4220-4976-8db6-f4727092efeb", "pubsub#title": "Node cfdea728-4220-4976-8db6-f4727092efeb" } 2019-11-25 19:38:49 | from localhost for action create-node got result code 200 and payload { "Note": "Operation successful" } 2019-11-25 19:38:50 | [Mutex] waiting for: [received:nodes:76b06df8-d7c0-4c7d-8a4b-e1e8273cb5bb:localhost] 2019-11-25 19:38:50 | [Mutex] received everything. 2019-11-25 19:38:50 | [Mutex] isItemNotified: received:node:76b06df8-d7c0-4c7d-8a4b-e1e8273cb5bb:localhost:node-cfdea728-4220-4976-8db6-f4727092efeb:Node cfdea728-4220-4976-8db6-f4727092efeb :: true |
deleteNodes | 1.021s |
2019-11-25 19:38:54 |
2019-11-25 19:38:54 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2019-11-25 19:38:54 | ------------------------------------ 2019-11-25 19:38:54 | on localhost executing action delete-node with content type application/json and payload: { "node": "node-cfdea728-4220-4976-8db6-f4727092efeb" } 2019-11-25 19:38:54 | from localhost for action delete-node got result code 200 and payload { "Note": "Operation successful" } 2019-11-25 19:38:55 | [Mutex] waiting for: [received:nodes:428a7b57-ce31-4318-b9e8-78281d625dcb:localhost] 2019-11-25 19:38:55 | [Mutex] received everything. 2019-11-25 19:38:55 | [Mutex] isItemNotified: received:node:428a7b57-ce31-4318-b9e8-78281d625dcb:localhost:node-cfdea728-4220-4976-8db6-f4727092efeb:Node cfdea728-4220-4976-8db6-f4727092efeb :: false |
deleteSubnodes | 1.032s |
2019-11-25 19:38:53 |
2019-11-25 19:38:53 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2019-11-25 19:38:53 | ------------------------------------ 2019-11-25 19:38:53 | on localhost executing action delete-node with content type application/json and payload: { "node": "node-27ea58c2-479a-4148-9422-1717d7af6b5b" } 2019-11-25 19:38:53 | from localhost for action delete-node got result code 200 and payload { "Note": "Operation successful" } 2019-11-25 19:38:54 | [Mutex] waiting for: [received:nodes:c8fc1146-61cd-4a33-9484-eccca9c42819:localhost] 2019-11-25 19:38:54 | [Mutex] received everything. 2019-11-25 19:38:54 | [Mutex] isItemNotified: received:node:c8fc1146-61cd-4a33-9484-eccca9c42819:localhost:node-27ea58c2-479a-4148-9422-1717d7af6b5b:Node 27ea58c2-479a-4148-9422-1717d7af6b5b :: false 2019-11-25 19:38:54 | [Mutex] waiting for: [received:nodes:faeae33b-5189-46ce-b21a-dd3f5d436fb3:localhost] 2019-11-25 19:38:54 | [Mutex] received everything. 2019-11-25 19:38:54 | [Mutex] isItemNotified: received:node:faeae33b-5189-46ce-b21a-dd3f5d436fb3:localhost:node-27ea58c2-479a-4148-9422-1717d7af6b5b:Node 27ea58c2-479a-4148-9422-1717d7af6b5b :: false |
publishItemsToNodes | 0.042s |
2019-11-25 19:38:52 |
2019-11-25 19:38:52 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2019-11-25 19:38:52 | ------------------------------------ 2019-11-25 19:38:52 | on localhost executing action publish-item with content type application/json and payload: { "node": "node-27ea58c2-479a-4148-9422-1717d7af6b5b", "entry": "<test>item-1d8beebf-3797-4cfc-ab06-1bd81d17c0dc</test>", "item-id": "item-1d8beebf-3797-4cfc-ab06-1bd81d17c0dc" } 2019-11-25 19:38:52 | from localhost for action publish-item got result code 200 and payload { "Note": "Operation successful", "item-id": "item-1d8beebf-3797-4cfc-ab06-1bd81d17c0dc" } 2019-11-25 19:38:52 | [Mutex] waiting for: [published:item:notifieditem-1d8beebf-3797-4cfc-ab06-1bd81d17c0dc:admin@localhost] 2019-11-25 19:38:52 | [Mutex] received everything. 2019-11-25 19:38:52 | [Mutex] isItemNotified: published:item:notifieditem-1d8beebf-3797-4cfc-ab06-1bd81d17c0dc:admin@localhost :: true |
retractItemsFromNodes | 0.051s |
2019-11-25 19:38:52 |
2019-11-25 19:38:52 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2019-11-25 19:38:52 | ------------------------------------ 2019-11-25 19:38:52 | on localhost executing action delete-item with content type application/json and payload: { "node": "node-27ea58c2-479a-4148-9422-1717d7af6b5b", "item-id": "item-1d8beebf-3797-4cfc-ab06-1bd81d17c0dc" } 2019-11-25 19:38:52 | from localhost for action delete-item got result code 200 and payload { "Note": "Operation successful", "item-id": "item-1d8beebf-3797-4cfc-ab06-1bd81d17c0dc" } 2019-11-25 19:38:52 | [Mutex] received everything. 2019-11-25 19:38:52 | [Mutex] isItemNotified: retracted:item:notifieditem-1d8beebf-3797-4cfc-ab06-1bd81d17c0dc:admin@localhost :: true |
retrieveItemsFromNodes | 0.062s |
2019-11-25 19:38:52 |
2019-11-25 19:38:52 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2019-11-25 19:38:52 | ------------------------------------ 2019-11-25 19:38:52 | on localhost executing action retrieve-item with content type application/json and payload: { "node": "node-27ea58c2-479a-4148-9422-1717d7af6b5b", "item-id": "item-1d8beebf-3797-4cfc-ab06-1bd81d17c0dc" } 2019-11-25 19:38:52 | from localhost for action retrieve-item got result code 200 and payload { "title": "Retrive PubSub node item", "node": "node-27ea58c2-479a-4148-9422-1717d7af6b5b", "item-id": "item-1d8beebf-3797-4cfc-ab06-1bd81d17c0dc", "item": [ "<item id=\"item-1d8beebf-3797-4cfc-ab06-1bd81d17c0dc\"><test>item-1d8beebf-3797-4cfc-ab06-1bd81d17c0dc</test></item>" ] } 2019-11-25 19:38:52 | [Mutex] notify: [retrieved:item:item-1d8beebf-3797-4cfc-ab06-1bd81d17c0dc:payload-matches:true:localhost] 2019-11-25 19:38:52 | [Mutex] received everything. 2019-11-25 19:38:52 | [Mutex] isItemNotified: retrieved:item:item-1d8beebf-3797-4cfc-ab06-1bd81d17c0dc:payload-matches:true:localhost :: true |
retrieveUserSubscriptions | 0.055s |
2019-11-25 19:38:52 |
2019-11-25 19:38:52 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2019-11-25 19:38:52 | ------------------------------------ 2019-11-25 19:38:52 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload: { "jid": "admin@localhost" } 2019-11-25 19:38:52 | from localhost for action retrieve-user-subscriptions got result code 200 and payload { "nodes": [ "node-cfdea728-4220-4976-8db6-f4727092efeb", "node-27ea58c2-479a-4148-9422-1717d7af6b5b" ] } |
retrieveUserSubscriptionsWithRegex | 0.047s |
2019-11-25 19:38:52 |
2019-11-25 19:38:52 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2019-11-25 19:38:52 | ------------------------------------ 2019-11-25 19:38:52 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload: { "jid": "admin@localhost", "node-pattern": "(?!node-27ea58c2-479a-4148-9422-1717d7af6b5b)" } 2019-11-25 19:38:52 | from localhost for action retrieve-user-subscriptions got result code 200 and payload { "nodes": [ ] } |
subscribeNodes | 1.019s |
2019-11-25 19:38:51 |
2019-11-25 19:38:51 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2019-11-25 19:38:51 | ------------------------------------ 2019-11-25 19:38:51 | on localhost executing action subscribe-node with content type application/json and payload: { "node": "node-27ea58c2-479a-4148-9422-1717d7af6b5b", "jids": [ "admin@localhost" ] } 2019-11-25 19:38:51 | from localhost for action subscribe-node got result code 200 and payload { "Note": "Operation successful" } |
unsubscribeNodes | 1.075s |
2019-11-25 19:38:52 |
2019-11-25 19:38:52 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2019-11-25 19:38:52 | ------------------------------------ 2019-11-25 19:38:52 | on localhost executing action unsubscribe-node with content type application/json and payload: { "node": "node-27ea58c2-479a-4148-9422-1717d7af6b5b", "jids": [ "admin@localhost" ] } 2019-11-25 19:38:52 | from localhost for action unsubscribe-node got result code 200 and payload { "Note": "Operation successful" } |