Test duration : 8.967s
Passed Tests | ||
---|---|---|
tigase.tests.pubsub.TestRestApiUsingJSON | ||
configureNodes | 1.134s |
2021-03-05 04:14:09 |
2021-03-05 04:14:09 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-03-05 04:14:09 | ------------------------------------ 2021-03-05 04:14:09 | [Mutex] waiting for: [configured:node:node-8d393c7a-40ad-4910-8519-9014659a40a4:node-7ac06cfd-25a9-4465-9c5a-aef4c6ba9a23] 2021-03-05 04:14:09 | [Mutex] received everything. 2021-03-05 04:14:09 | [Mutex] isItemNotified: configured:node:node-8d393c7a-40ad-4910-8519-9014659a40a4:node-7ac06cfd-25a9-4465-9c5a-aef4c6ba9a23 :: true 2021-03-05 04:14:10 | [Mutex] waiting for: [received:nodes:4bae8804-b177-4e7f-b14c-3d33ccc18496:localhost] 2021-03-05 04:14:10 | [Mutex] received everything. 2021-03-05 04:14:10 | [Mutex] isItemNotified: received:node:4bae8804-b177-4e7f-b14c-3d33ccc18496:localhost:node-8d393c7a-40ad-4910-8519-9014659a40a4:Node 8d393c7a-40ad-4910-8519-9014659a40a4 :: true 2021-03-05 04:14:10 | [Mutex] waiting for: [received:nodes:3b5e2241-b898-46e6-b7d0-e63c59872517:localhost] 2021-03-05 04:14:10 | [Mutex] received everything. 2021-03-05 04:14:10 | [Mutex] isItemNotified: received:node:3b5e2241-b898-46e6-b7d0-e63c59872517:localhost:node-8d393c7a-40ad-4910-8519-9014659a40a4:Node 8d393c7a-40ad-4910-8519-9014659a40a4 :: false |
createNodes | 1.587s |
2021-03-05 04:14:07 |
2021-03-05 04:14:07 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-03-05 04:14:07 | ------------------------------------ 2021-03-05 04:14: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-8d393c7a-40ad-4910-8519-9014659a40a4", "pubsub#title": "Node 8d393c7a-40ad-4910-8519-9014659a40a4" } 2021-03-05 04:14:07 | from localhost for action create-node got result code 200 and payload { "Note": "Operation successful" } 2021-03-05 04:14:08 | [Mutex] waiting for: [received:nodes:1968eb5c-4341-49c3-ba11-b2c407fa85bc:localhost] 2021-03-05 04:14:08 | [Mutex] received everything. 2021-03-05 04:14:08 | [Mutex] isItemNotified: received:node:1968eb5c-4341-49c3-ba11-b2c407fa85bc:localhost:node-8d393c7a-40ad-4910-8519-9014659a40a4:Node 8d393c7a-40ad-4910-8519-9014659a40a4 :: true |
createSubnodes | 1.024s |
2021-03-05 04:14:08 |
2021-03-05 04:14:08 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-03-05 04:14:08 | ------------------------------------ 2021-03-05 04:14: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-7ac06cfd-25a9-4465-9c5a-aef4c6ba9a23", "pubsub#title": "Node 7ac06cfd-25a9-4465-9c5a-aef4c6ba9a23" } 2021-03-05 04:14:08 | from localhost for action create-node got result code 200 and payload { "Note": "Operation successful" } 2021-03-05 04:14:09 | [Mutex] waiting for: [received:nodes:15e8ddfd-d66d-454a-99fc-fca9f649a173:localhost] 2021-03-05 04:14:09 | [Mutex] received everything. 2021-03-05 04:14:09 | [Mutex] isItemNotified: received:node:15e8ddfd-d66d-454a-99fc-fca9f649a173:localhost:node-7ac06cfd-25a9-4465-9c5a-aef4c6ba9a23:Node 7ac06cfd-25a9-4465-9c5a-aef4c6ba9a23 :: true |
deleteNodes | 1.027s |
2021-03-05 04:14:14 |
2021-03-05 04:14:14 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-03-05 04:14:14 | ------------------------------------ 2021-03-05 04:14:14 | on localhost executing action delete-node with content type application/json and payload: { "node": "node-7ac06cfd-25a9-4465-9c5a-aef4c6ba9a23" } 2021-03-05 04:14:14 | from localhost for action delete-node got result code 200 and payload { "Note": "Operation successful" } 2021-03-05 04:14:15 | [Mutex] waiting for: [received:nodes:7f3a21ee-e953-45ca-b2d7-2542c84704d4:localhost] 2021-03-05 04:14:15 | [Mutex] waiting for: [received:nodes:7f3a21ee-e953-45ca-b2d7-2542c84704d4:localhost] 2021-03-05 04:14:15 | [Mutex] received everything. 2021-03-05 04:14:15 | [Mutex] isItemNotified: received:node:7f3a21ee-e953-45ca-b2d7-2542c84704d4:localhost:node-7ac06cfd-25a9-4465-9c5a-aef4c6ba9a23:Node 7ac06cfd-25a9-4465-9c5a-aef4c6ba9a23 :: false |
deleteSubnodes | 1.026s |
2021-03-05 04:14:13 |
2021-03-05 04:14:13 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-03-05 04:14:13 | ------------------------------------ 2021-03-05 04:14:13 | on localhost executing action delete-node with content type application/json and payload: { "node": "node-8d393c7a-40ad-4910-8519-9014659a40a4" } 2021-03-05 04:14:13 | from localhost for action delete-node got result code 200 and payload { "Note": "Operation successful" } 2021-03-05 04:14:14 | [Mutex] waiting for: [received:nodes:176f7b3d-40b5-4253-8479-2132beb657ba:localhost] 2021-03-05 04:14:14 | [Mutex] received everything. 2021-03-05 04:14:14 | [Mutex] isItemNotified: received:node:176f7b3d-40b5-4253-8479-2132beb657ba:localhost:node-8d393c7a-40ad-4910-8519-9014659a40a4:Node 8d393c7a-40ad-4910-8519-9014659a40a4 :: false 2021-03-05 04:14:14 | [Mutex] waiting for: [received:nodes:a4d8a745-10bd-416d-8f6f-f9e9612f4991:localhost] 2021-03-05 04:14:14 | [Mutex] received everything. 2021-03-05 04:14:14 | [Mutex] isItemNotified: received:node:a4d8a745-10bd-416d-8f6f-f9e9612f4991:localhost:node-8d393c7a-40ad-4910-8519-9014659a40a4:Node 8d393c7a-40ad-4910-8519-9014659a40a4 :: false |
publishItemsToNodes | 0.083s |
2021-03-05 04:14:11 |
2021-03-05 04:14:11 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-03-05 04:14:11 | ------------------------------------ 2021-03-05 04:14:11 | on localhost executing action publish-item with content type application/json and payload: { "node": "node-8d393c7a-40ad-4910-8519-9014659a40a4", "entry": "<test>item-d555c9e6-0842-4d4d-8fc4-996e645aa088</test>", "item-id": "item-d555c9e6-0842-4d4d-8fc4-996e645aa088" } 2021-03-05 04:14:12 | from localhost for action publish-item got result code 200 and payload { "Note": "Operation successful", "item-id": "item-d555c9e6-0842-4d4d-8fc4-996e645aa088" } 2021-03-05 04:14:12 | [Mutex] waiting for: [published:item:notifieditem-d555c9e6-0842-4d4d-8fc4-996e645aa088:admin@test-domain.com] 2021-03-05 04:14:12 | [Mutex] received everything. 2021-03-05 04:14:12 | [Mutex] isItemNotified: published:item:notifieditem-d555c9e6-0842-4d4d-8fc4-996e645aa088:admin@test-domain.com :: true |
retractItemsFromNodes | 0.060s |
2021-03-05 04:14:12 |
2021-03-05 04:14:12 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-03-05 04:14:12 | ------------------------------------ 2021-03-05 04:14:12 | on localhost executing action delete-item with content type application/json and payload: { "node": "node-8d393c7a-40ad-4910-8519-9014659a40a4", "item-id": "item-d555c9e6-0842-4d4d-8fc4-996e645aa088" } 2021-03-05 04:14:12 | from localhost for action delete-item got result code 200 and payload { "Note": "Operation successful", "item-id": "item-d555c9e6-0842-4d4d-8fc4-996e645aa088" } 2021-03-05 04:14:12 | [Mutex] received everything. 2021-03-05 04:14:12 | [Mutex] isItemNotified: retracted:item:notifieditem-d555c9e6-0842-4d4d-8fc4-996e645aa088:admin@test-domain.com :: true |
retrieveItemsFromNodes | 0.068s |
2021-03-05 04:14:12 |
2021-03-05 04:14:12 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-03-05 04:14:12 | ------------------------------------ 2021-03-05 04:14:12 | on localhost executing action retrieve-item with content type application/json and payload: { "node": "node-8d393c7a-40ad-4910-8519-9014659a40a4", "item-id": "item-d555c9e6-0842-4d4d-8fc4-996e645aa088" } 2021-03-05 04:14:12 | from localhost for action retrieve-item got result code 200 and payload { "title": "Retrive PubSub node item", "node": "node-8d393c7a-40ad-4910-8519-9014659a40a4", "item-id": "item-d555c9e6-0842-4d4d-8fc4-996e645aa088", "item": [ "<item id=\"item-d555c9e6-0842-4d4d-8fc4-996e645aa088\"><test>item-d555c9e6-0842-4d4d-8fc4-996e645aa088</test></item>" ] } 2021-03-05 04:14:12 | [Mutex] notify: [retrieved:item:item-d555c9e6-0842-4d4d-8fc4-996e645aa088:payload-matches:true:localhost] 2021-03-05 04:14:12 | [Mutex] received everything. 2021-03-05 04:14:12 | [Mutex] isItemNotified: retrieved:item:item-d555c9e6-0842-4d4d-8fc4-996e645aa088:payload-matches:true:localhost :: true |
retrieveUserSubscriptions | 0.047s |
2021-03-05 04:14:12 |
2021-03-05 04:14:12 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-03-05 04:14:12 | ------------------------------------ 2021-03-05 04:14:12 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload: { "jid": "admin@test-domain.com" } 2021-03-05 04:14:12 | from localhost for action retrieve-user-subscriptions got result code 200 and payload { "nodes": [ "test", "node-8d393c7a-40ad-4910-8519-9014659a40a4", "node-7ac06cfd-25a9-4465-9c5a-aef4c6ba9a23" ] } |
retrieveUserSubscriptionsWithRegex | 0.052s |
2021-03-05 04:14:12 |
2021-03-05 04:14:12 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-03-05 04:14:12 | ------------------------------------ 2021-03-05 04:14:12 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload: { "jid": "admin@test-domain.com", "node-pattern": "(?!node-8d393c7a-40ad-4910-8519-9014659a40a4)" } 2021-03-05 04:14:12 | from localhost for action retrieve-user-subscriptions got result code 200 and payload { "nodes": [ ] } |
subscribeNodes | 1.018s |
2021-03-05 04:14:10 |
2021-03-05 04:14:10 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-03-05 04:14:10 | ------------------------------------ 2021-03-05 04:14:10 | on localhost executing action subscribe-node with content type application/json and payload: { "node": "node-8d393c7a-40ad-4910-8519-9014659a40a4", "jids": [ "admin@test-domain.com" ] } 2021-03-05 04:14:10 | from localhost for action subscribe-node got result code 200 and payload { "Note": "Operation successful" } |
unsubscribeNodes | 1.083s |
2021-03-05 04:14:12 |
2021-03-05 04:14:12 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-03-05 04:14:12 | ------------------------------------ 2021-03-05 04:14:12 | on localhost executing action unsubscribe-node with content type application/json and payload: { "node": "node-8d393c7a-40ad-4910-8519-9014659a40a4", "jids": [ "admin@test-domain.com" ] } 2021-03-05 04:14:12 | from localhost for action unsubscribe-node got result code 200 and payload { "Note": "Operation successful" } |