Test duration : 8.723s
Passed Tests | ||
---|---|---|
tigase.tests.pubsub.TestRestApiUsingJSON | ||
configureNodes | 1.091s |
2022-07-12 22:32:07 |
2022-07-12 22:32:07 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-07-12 22:32:07 | ------------------------------------ 2022-07-12 22:32:07 | [Mutex] waiting for: [configured:node:node-121a9b56-bf74-47af-b6bb-35da30c5d653:node-14191e79-885d-4486-b8e6-1fd8caf8f6fc] 2022-07-12 22:32:07 | [Mutex] received everything. 2022-07-12 22:32:07 | [Mutex] isItemNotified: configured:node:node-121a9b56-bf74-47af-b6bb-35da30c5d653:node-14191e79-885d-4486-b8e6-1fd8caf8f6fc :: true 2022-07-12 22:32:08 | [Mutex] waiting for: [received:nodes:2fe3a249-a3ea-4cea-b85a-c6881e1f5777:localhost] 2022-07-12 22:32:08 | [Mutex] received everything. 2022-07-12 22:32:08 | [Mutex] isItemNotified: received:node:2fe3a249-a3ea-4cea-b85a-c6881e1f5777:localhost:node-121a9b56-bf74-47af-b6bb-35da30c5d653:Node 121a9b56-bf74-47af-b6bb-35da30c5d653 :: true 2022-07-12 22:32:08 | [Mutex] waiting for: [received:nodes:069c18d7-5e52-4db1-beb7-7198b797331a:localhost] 2022-07-12 22:32:08 | [Mutex] received everything. 2022-07-12 22:32:08 | [Mutex] isItemNotified: received:node:069c18d7-5e52-4db1-beb7-7198b797331a:localhost:node-121a9b56-bf74-47af-b6bb-35da30c5d653:Node 121a9b56-bf74-47af-b6bb-35da30c5d653 :: false |
createNodes | 1.661s |
2022-07-12 22:32:04 |
2022-07-12 22:32:04 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-07-12 22:32:04 | ------------------------------------ 2022-07-12 22:32:05 | on localhost executing action create-node with content type application/json and payload: { "owner": "admin@test-domain.com", "pubsub#node_type": "leaf", "node": "node-121a9b56-bf74-47af-b6bb-35da30c5d653", "pubsub#title": "Node 121a9b56-bf74-47af-b6bb-35da30c5d653" } 2022-07-12 22:32:05 | from localhost for action create-node got result code 200 and payload { "Note": "Operation successful" } 2022-07-12 22:32:06 | [Mutex] waiting for: [received:nodes:885e554b-ccd0-4685-98b8-1b3774710b99:localhost] 2022-07-12 22:32:06 | [Mutex] waiting for: [received:nodes:885e554b-ccd0-4685-98b8-1b3774710b99:localhost] 2022-07-12 22:32:06 | [Mutex] received everything. 2022-07-12 22:32:06 | [Mutex] isItemNotified: received:node:885e554b-ccd0-4685-98b8-1b3774710b99:localhost:node-121a9b56-bf74-47af-b6bb-35da30c5d653:Node 121a9b56-bf74-47af-b6bb-35da30c5d653 :: true |
createSubnodes | 1.024s |
2022-07-12 22:32:06 |
2022-07-12 22:32:06 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-07-12 22:32:06 | ------------------------------------ 2022-07-12 22:32:06 | on localhost executing action create-node with content type application/json and payload: { "owner": "admin@test-domain.com", "pubsub#node_type": "collection", "node": "node-14191e79-885d-4486-b8e6-1fd8caf8f6fc", "pubsub#title": "Node 14191e79-885d-4486-b8e6-1fd8caf8f6fc" } 2022-07-12 22:32:06 | from localhost for action create-node got result code 200 and payload { "Note": "Operation successful" } 2022-07-12 22:32:07 | [Mutex] waiting for: [received:nodes:0e01c9b2-7975-4b97-9135-54b267ac8f97:localhost] 2022-07-12 22:32:07 | [Mutex] received everything. 2022-07-12 22:32:07 | [Mutex] isItemNotified: received:node:0e01c9b2-7975-4b97-9135-54b267ac8f97:localhost:node-14191e79-885d-4486-b8e6-1fd8caf8f6fc:Node 14191e79-885d-4486-b8e6-1fd8caf8f6fc :: true |
deleteNodes | 1.018s |
2022-07-12 22:32:11 |
2022-07-12 22:32:11 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-07-12 22:32:11 | ------------------------------------ 2022-07-12 22:32:11 | on localhost executing action delete-node with content type application/json and payload: { "node": "node-14191e79-885d-4486-b8e6-1fd8caf8f6fc" } 2022-07-12 22:32:11 | from localhost for action delete-node got result code 200 and payload { "Note": "Operation successful" } 2022-07-12 22:32:12 | [Mutex] waiting for: [received:nodes:8585c10a-805c-4af4-bd36-e0a8eb0d7591:localhost] 2022-07-12 22:32:12 | [Mutex] received everything. 2022-07-12 22:32:12 | [Mutex] isItemNotified: received:node:8585c10a-805c-4af4-bd36-e0a8eb0d7591:localhost:node-14191e79-885d-4486-b8e6-1fd8caf8f6fc:Node 14191e79-885d-4486-b8e6-1fd8caf8f6fc :: false |
deleteSubnodes | 1.027s |
2022-07-12 22:32:10 |
2022-07-12 22:32:10 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-07-12 22:32:10 | ------------------------------------ 2022-07-12 22:32:10 | on localhost executing action delete-node with content type application/json and payload: { "node": "node-121a9b56-bf74-47af-b6bb-35da30c5d653" } 2022-07-12 22:32:10 | from localhost for action delete-node got result code 200 and payload { "Note": "Operation successful" } 2022-07-12 22:32:11 | [Mutex] waiting for: [received:nodes:159d7029-29b3-48f8-afe0-de15a19d8181:localhost] 2022-07-12 22:32:11 | [Mutex] received everything. 2022-07-12 22:32:11 | [Mutex] isItemNotified: received:node:159d7029-29b3-48f8-afe0-de15a19d8181:localhost:node-121a9b56-bf74-47af-b6bb-35da30c5d653:Node 121a9b56-bf74-47af-b6bb-35da30c5d653 :: false 2022-07-12 22:32:11 | [Mutex] waiting for: [received:nodes:2d2d26f6-f488-4ab8-978e-9ef8509f6a7f:localhost] 2022-07-12 22:32:11 | [Mutex] received everything. 2022-07-12 22:32:11 | [Mutex] isItemNotified: received:node:2d2d26f6-f488-4ab8-978e-9ef8509f6a7f:localhost:node-121a9b56-bf74-47af-b6bb-35da30c5d653:Node 121a9b56-bf74-47af-b6bb-35da30c5d653 :: false |
publishItemsToNodes | 0.054s |
2022-07-12 22:32:09 |
2022-07-12 22:32:09 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-07-12 22:32:09 | ------------------------------------ 2022-07-12 22:32:09 | on localhost executing action publish-item with content type application/json and payload: { "node": "node-121a9b56-bf74-47af-b6bb-35da30c5d653", "entry": "<test>item-e42f51d4-e3f8-445d-ac73-58e65f5bb674</test>", "item-id": "item-e42f51d4-e3f8-445d-ac73-58e65f5bb674" } 2022-07-12 22:32:09 | from localhost for action publish-item got result code 200 and payload { "Note": "Operation successful", "item-id": "item-e42f51d4-e3f8-445d-ac73-58e65f5bb674" } 2022-07-12 22:32:09 | [Mutex] waiting for: [published:item:notifieditem-e42f51d4-e3f8-445d-ac73-58e65f5bb674:admin@test-domain.com] 2022-07-12 22:32:09 | [Mutex] received everything. 2022-07-12 22:32:09 | [Mutex] isItemNotified: published:item:notifieditem-e42f51d4-e3f8-445d-ac73-58e65f5bb674:admin@test-domain.com :: true |
retractItemsFromNodes | 0.078s |
2022-07-12 22:32:09 |
2022-07-12 22:32:09 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-07-12 22:32:09 | ------------------------------------ 2022-07-12 22:32:09 | on localhost executing action delete-item with content type application/json and payload: { "node": "node-121a9b56-bf74-47af-b6bb-35da30c5d653", "item-id": "item-e42f51d4-e3f8-445d-ac73-58e65f5bb674" } 2022-07-12 22:32:09 | from localhost for action delete-item got result code 200 and payload { "Note": "Operation successful", "item-id": "item-e42f51d4-e3f8-445d-ac73-58e65f5bb674" } 2022-07-12 22:32:09 | [Mutex] waiting for: [retracted:item:notifieditem-e42f51d4-e3f8-445d-ac73-58e65f5bb674:admin@test-domain.com] 2022-07-12 22:32:09 | [Mutex] received everything. 2022-07-12 22:32:09 | [Mutex] isItemNotified: retracted:item:notifieditem-e42f51d4-e3f8-445d-ac73-58e65f5bb674:admin@test-domain.com :: true |
retrieveItemsFromNodes | 0.068s |
2022-07-12 22:32:09 |
2022-07-12 22:32:09 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-07-12 22:32:09 | ------------------------------------ 2022-07-12 22:32:09 | on localhost executing action retrieve-item with content type application/json and payload: { "node": "node-121a9b56-bf74-47af-b6bb-35da30c5d653", "item-id": "item-e42f51d4-e3f8-445d-ac73-58e65f5bb674" } 2022-07-12 22:32:09 | from localhost for action retrieve-item got result code 200 and payload { "title": "Retrive PubSub node item", "node": "node-121a9b56-bf74-47af-b6bb-35da30c5d653", "item-id": "item-e42f51d4-e3f8-445d-ac73-58e65f5bb674", "item": [ "<item id=\"item-e42f51d4-e3f8-445d-ac73-58e65f5bb674\"><test>item-e42f51d4-e3f8-445d-ac73-58e65f5bb674</test></item>" ] } 2022-07-12 22:32:09 | [Mutex] notify: [retrieved:item:item-e42f51d4-e3f8-445d-ac73-58e65f5bb674:payload-matches:true:localhost] 2022-07-12 22:32:09 | [Mutex] received everything. 2022-07-12 22:32:09 | [Mutex] isItemNotified: retrieved:item:item-e42f51d4-e3f8-445d-ac73-58e65f5bb674:payload-matches:true:localhost :: true |
retrieveUserSubscriptions | 0.050s |
2022-07-12 22:32:09 |
2022-07-12 22:32:09 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-07-12 22:32:09 | ------------------------------------ 2022-07-12 22:32:09 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload: { "jid": "admin@test-domain.com" } 2022-07-12 22:32:09 | from localhost for action retrieve-user-subscriptions got result code 200 and payload { "nodes": [ "test", "node-14191e79-885d-4486-b8e6-1fd8caf8f6fc", "node-121a9b56-bf74-47af-b6bb-35da30c5d653" ] } |
retrieveUserSubscriptionsWithRegex | 0.047s |
2022-07-12 22:32:09 |
2022-07-12 22:32:09 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-07-12 22:32:09 | ------------------------------------ 2022-07-12 22:32:09 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload: { "jid": "admin@test-domain.com", "node-pattern": "(?!node-121a9b56-bf74-47af-b6bb-35da30c5d653)" } 2022-07-12 22:32:09 | from localhost for action retrieve-user-subscriptions got result code 200 and payload { "nodes": [ ] } |
subscribeNodes | 1.015s |
2022-07-12 22:32:08 |
2022-07-12 22:32:08 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-07-12 22:32:08 | ------------------------------------ 2022-07-12 22:32:08 | on localhost executing action subscribe-node with content type application/json and payload: { "node": "node-121a9b56-bf74-47af-b6bb-35da30c5d653", "jids": [ "admin@test-domain.com" ] } 2022-07-12 22:32:08 | from localhost for action subscribe-node got result code 200 and payload { "Note": "Operation successful" } |
unsubscribeNodes | 1.070s |
2022-07-12 22:32:09 |
2022-07-12 22:32:09 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-07-12 22:32:09 | ------------------------------------ 2022-07-12 22:32:09 | on localhost executing action unsubscribe-node with content type application/json and payload: { "node": "node-121a9b56-bf74-47af-b6bb-35da30c5d653", "jids": [ "admin@test-domain.com" ] } 2022-07-12 22:32:09 | from localhost for action unsubscribe-node got result code 200 and payload { "Note": "Operation successful" } |