Test duration : 9.138s
Passed Tests | ||
---|---|---|
tigase.tests.pubsub.TestRestApiUsingJSON | ||
configureNodes | 1.127s |
2021-02-06 22:03:51 |
2021-02-06 22:03:51 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-02-06 22:03:51 | ------------------------------------ 2021-02-06 22:03:51 | [Mutex] waiting for: [configured:node:node-f258a4e5-63e7-48fe-8afa-5be974273b4e:node-9e5cf1a3-fa0f-4987-9409-1723fcfb5217] 2021-02-06 22:03:51 | [Mutex] received everything. 2021-02-06 22:03:51 | [Mutex] isItemNotified: configured:node:node-f258a4e5-63e7-48fe-8afa-5be974273b4e:node-9e5cf1a3-fa0f-4987-9409-1723fcfb5217 :: true 2021-02-06 22:03:52 | [Mutex] waiting for: [received:nodes:21175c5c-9326-4b7a-b2bb-6cb612c0d11a:localhost] 2021-02-06 22:03:52 | [Mutex] received everything. 2021-02-06 22:03:52 | [Mutex] isItemNotified: received:node:21175c5c-9326-4b7a-b2bb-6cb612c0d11a:localhost:node-f258a4e5-63e7-48fe-8afa-5be974273b4e:Node f258a4e5-63e7-48fe-8afa-5be974273b4e :: true 2021-02-06 22:03:52 | [Mutex] waiting for: [received:nodes:cfcb97fa-8e9b-4543-a138-0a9ce110f056:localhost] 2021-02-06 22:03:52 | [Mutex] received everything. 2021-02-06 22:03:52 | [Mutex] isItemNotified: received:node:cfcb97fa-8e9b-4543-a138-0a9ce110f056:localhost:node-f258a4e5-63e7-48fe-8afa-5be974273b4e:Node f258a4e5-63e7-48fe-8afa-5be974273b4e :: false |
createNodes | 1.616s |
2021-02-06 22:03:48 |
2021-02-06 22:03:48 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-02-06 22:03:48 | ------------------------------------ 2021-02-06 22:03:49 | on localhost executing action create-node with content type application/json and payload: { "owner": "admin@test-domain.com", "pubsub#node_type": "leaf", "node": "node-f258a4e5-63e7-48fe-8afa-5be974273b4e", "pubsub#title": "Node f258a4e5-63e7-48fe-8afa-5be974273b4e" } 2021-02-06 22:03:49 | from localhost for action create-node got result code 200 and payload { "Note": "Operation successful" } 2021-02-06 22:03:50 | [Mutex] waiting for: [received:nodes:19b3e79f-e31c-445b-b42c-8829cd3a2536:localhost] 2021-02-06 22:03:50 | [Mutex] received everything. 2021-02-06 22:03:50 | [Mutex] isItemNotified: received:node:19b3e79f-e31c-445b-b42c-8829cd3a2536:localhost:node-f258a4e5-63e7-48fe-8afa-5be974273b4e:Node f258a4e5-63e7-48fe-8afa-5be974273b4e :: true |
createSubnodes | 1.030s |
2021-02-06 22:03:50 |
2021-02-06 22:03:50 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-02-06 22:03:50 | ------------------------------------ 2021-02-06 22:03:50 | on localhost executing action create-node with content type application/json and payload: { "owner": "admin@test-domain.com", "pubsub#node_type": "collection", "node": "node-9e5cf1a3-fa0f-4987-9409-1723fcfb5217", "pubsub#title": "Node 9e5cf1a3-fa0f-4987-9409-1723fcfb5217" } 2021-02-06 22:03:50 | from localhost for action create-node got result code 200 and payload { "Note": "Operation successful" } 2021-02-06 22:03:51 | [Mutex] waiting for: [received:nodes:a96e1106-f656-4c8f-b199-57178f4f77fc:localhost] 2021-02-06 22:03:51 | [Mutex] received everything. 2021-02-06 22:03:51 | [Mutex] isItemNotified: received:node:a96e1106-f656-4c8f-b199-57178f4f77fc:localhost:node-9e5cf1a3-fa0f-4987-9409-1723fcfb5217:Node 9e5cf1a3-fa0f-4987-9409-1723fcfb5217 :: true |
deleteNodes | 1.024s |
2021-02-06 22:03:55 |
2021-02-06 22:03:55 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-02-06 22:03:55 | ------------------------------------ 2021-02-06 22:03:55 | on localhost executing action delete-node with content type application/json and payload: { "node": "node-9e5cf1a3-fa0f-4987-9409-1723fcfb5217" } 2021-02-06 22:03:55 | from localhost for action delete-node got result code 200 and payload { "Note": "Operation successful" } 2021-02-06 22:03:56 | [Mutex] waiting for: [received:nodes:96dea810-987d-4324-9b9c-d795bf21d518:localhost] 2021-02-06 22:03:56 | [Mutex] received everything. 2021-02-06 22:03:56 | [Mutex] isItemNotified: received:node:96dea810-987d-4324-9b9c-d795bf21d518:localhost:node-9e5cf1a3-fa0f-4987-9409-1723fcfb5217:Node 9e5cf1a3-fa0f-4987-9409-1723fcfb5217 :: false |
deleteSubnodes | 1.034s |
2021-02-06 22:03:54 |
2021-02-06 22:03:54 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-02-06 22:03:54 | ------------------------------------ 2021-02-06 22:03:54 | on localhost executing action delete-node with content type application/json and payload: { "node": "node-f258a4e5-63e7-48fe-8afa-5be974273b4e" } 2021-02-06 22:03:54 | from localhost for action delete-node got result code 200 and payload { "Note": "Operation successful" } 2021-02-06 22:03:55 | [Mutex] waiting for: [received:nodes:a959e3a1-c140-4646-8ab8-e363ae16fdca:localhost] 2021-02-06 22:03:55 | [Mutex] received everything. 2021-02-06 22:03:55 | [Mutex] isItemNotified: received:node:a959e3a1-c140-4646-8ab8-e363ae16fdca:localhost:node-f258a4e5-63e7-48fe-8afa-5be974273b4e:Node f258a4e5-63e7-48fe-8afa-5be974273b4e :: false 2021-02-06 22:03:55 | [Mutex] waiting for: [received:nodes:22da8bd8-a5a6-4262-a4f5-55782d664e67:localhost] 2021-02-06 22:03:55 | [Mutex] received everything. 2021-02-06 22:03:55 | [Mutex] isItemNotified: received:node:22da8bd8-a5a6-4262-a4f5-55782d664e67:localhost:node-f258a4e5-63e7-48fe-8afa-5be974273b4e:Node f258a4e5-63e7-48fe-8afa-5be974273b4e :: false |
publishItemsToNodes | 0.043s |
2021-02-06 22:03:53 |
2021-02-06 22:03:53 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-02-06 22:03:53 | ------------------------------------ 2021-02-06 22:03:53 | on localhost executing action publish-item with content type application/json and payload: { "node": "node-f258a4e5-63e7-48fe-8afa-5be974273b4e", "entry": "<test>item-b6bb65e1-59cf-4dac-a623-8f5b966b4f9d</test>", "item-id": "item-b6bb65e1-59cf-4dac-a623-8f5b966b4f9d" } 2021-02-06 22:03:53 | from localhost for action publish-item got result code 200 and payload { "Note": "Operation successful", "item-id": "item-b6bb65e1-59cf-4dac-a623-8f5b966b4f9d" } 2021-02-06 22:03:53 | [Mutex] waiting for: [published:item:notifieditem-b6bb65e1-59cf-4dac-a623-8f5b966b4f9d:admin@test-domain.com] 2021-02-06 22:03:53 | [Mutex] received everything. 2021-02-06 22:03:53 | [Mutex] isItemNotified: published:item:notifieditem-b6bb65e1-59cf-4dac-a623-8f5b966b4f9d:admin@test-domain.com :: true |
retractItemsFromNodes | 0.119s |
2021-02-06 22:03:53 |
2021-02-06 22:03:53 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-02-06 22:03:53 | ------------------------------------ 2021-02-06 22:03:53 | on localhost executing action delete-item with content type application/json and payload: { "node": "node-f258a4e5-63e7-48fe-8afa-5be974273b4e", "item-id": "item-b6bb65e1-59cf-4dac-a623-8f5b966b4f9d" } 2021-02-06 22:03:53 | from localhost for action delete-item got result code 200 and payload { "Note": "Operation successful", "item-id": "item-b6bb65e1-59cf-4dac-a623-8f5b966b4f9d" } 2021-02-06 22:03:53 | [Mutex] waiting for: [retracted:item:notifieditem-b6bb65e1-59cf-4dac-a623-8f5b966b4f9d:admin@test-domain.com] 2021-02-06 22:03:53 | [Mutex] received everything. 2021-02-06 22:03:53 | [Mutex] isItemNotified: retracted:item:notifieditem-b6bb65e1-59cf-4dac-a623-8f5b966b4f9d:admin@test-domain.com :: true |
retrieveItemsFromNodes | 0.078s |
2021-02-06 22:03:53 |
2021-02-06 22:03:53 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-02-06 22:03:53 | ------------------------------------ 2021-02-06 22:03:53 | on localhost executing action retrieve-item with content type application/json and payload: { "node": "node-f258a4e5-63e7-48fe-8afa-5be974273b4e", "item-id": "item-b6bb65e1-59cf-4dac-a623-8f5b966b4f9d" } 2021-02-06 22:03:53 | from localhost for action retrieve-item got result code 200 and payload { "title": "Retrive PubSub node item", "node": "node-f258a4e5-63e7-48fe-8afa-5be974273b4e", "item-id": "item-b6bb65e1-59cf-4dac-a623-8f5b966b4f9d", "item": [ "<item id=\"item-b6bb65e1-59cf-4dac-a623-8f5b966b4f9d\"><test>item-b6bb65e1-59cf-4dac-a623-8f5b966b4f9d</test></item>" ] } 2021-02-06 22:03:53 | [Mutex] notify: [retrieved:item:item-b6bb65e1-59cf-4dac-a623-8f5b966b4f9d:payload-matches:true:localhost] 2021-02-06 22:03:53 | [Mutex] received everything. 2021-02-06 22:03:53 | [Mutex] isItemNotified: retrieved:item:item-b6bb65e1-59cf-4dac-a623-8f5b966b4f9d:payload-matches:true:localhost :: true |
retrieveUserSubscriptions | 0.051s |
2021-02-06 22:03:53 |
2021-02-06 22:03:53 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-02-06 22:03:53 | ------------------------------------ 2021-02-06 22:03:53 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload: { "jid": "admin@test-domain.com" } 2021-02-06 22:03:53 | from localhost for action retrieve-user-subscriptions got result code 200 and payload { "nodes": [ "test", "node-9e5cf1a3-fa0f-4987-9409-1723fcfb5217", "node-f258a4e5-63e7-48fe-8afa-5be974273b4e" ] } |
retrieveUserSubscriptionsWithRegex | 0.051s |
2021-02-06 22:03:53 |
2021-02-06 22:03:53 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-02-06 22:03:53 | ------------------------------------ 2021-02-06 22:03:53 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload: { "jid": "admin@test-domain.com", "node-pattern": "(?!node-f258a4e5-63e7-48fe-8afa-5be974273b4e)" } 2021-02-06 22:03:53 | from localhost for action retrieve-user-subscriptions got result code 200 and payload { "nodes": [ ] } |
subscribeNodes | 1.012s |
2021-02-06 22:03:52 |
2021-02-06 22:03:52 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-02-06 22:03:52 | ------------------------------------ 2021-02-06 22:03:52 | on localhost executing action subscribe-node with content type application/json and payload: { "node": "node-f258a4e5-63e7-48fe-8afa-5be974273b4e", "jids": [ "admin@test-domain.com" ] } 2021-02-06 22:03:52 | from localhost for action subscribe-node got result code 200 and payload { "Note": "Operation successful" } |
unsubscribeNodes | 1.067s |
2021-02-06 22:03:53 |
2021-02-06 22:03:53 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-02-06 22:03:53 | ------------------------------------ 2021-02-06 22:03:53 | on localhost executing action unsubscribe-node with content type application/json and payload: { "node": "node-f258a4e5-63e7-48fe-8afa-5be974273b4e", "jids": [ "admin@test-domain.com" ] } 2021-02-06 22:03:53 | from localhost for action unsubscribe-node got result code 200 and payload { "Note": "Operation successful" } |