Test duration : 8.653s
Passed Tests | ||
---|---|---|
tigase.tests.pubsub.TestRestApiUsingJSON | ||
configureNodes | 1.083s |
2022-06-23 23:04:53 |
2022-06-23 23:04:53 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-06-23 23:04:53 | ------------------------------------ 2022-06-23 23:04:53 | [Mutex] waiting for: [configured:node:node-44b52088-5354-42d9-b402-cf397548a91c:node-fd173146-c746-450e-9d64-d8d6c21f9d79] 2022-06-23 23:04:53 | [Mutex] received everything. 2022-06-23 23:04:53 | [Mutex] isItemNotified: configured:node:node-44b52088-5354-42d9-b402-cf397548a91c:node-fd173146-c746-450e-9d64-d8d6c21f9d79 :: true 2022-06-23 23:04:54 | [Mutex] waiting for: [received:nodes:568cc901-75bc-4752-856d-adfda0737410:localhost] 2022-06-23 23:04:54 | [Mutex] received everything. 2022-06-23 23:04:54 | [Mutex] isItemNotified: received:node:568cc901-75bc-4752-856d-adfda0737410:localhost:node-44b52088-5354-42d9-b402-cf397548a91c:Node 44b52088-5354-42d9-b402-cf397548a91c :: true 2022-06-23 23:04:54 | [Mutex] waiting for: [received:nodes:8d52fabc-d7f4-4213-a1f7-70f7b392fdfa:localhost] 2022-06-23 23:04:54 | [Mutex] received everything. 2022-06-23 23:04:54 | [Mutex] isItemNotified: received:node:8d52fabc-d7f4-4213-a1f7-70f7b392fdfa:localhost:node-44b52088-5354-42d9-b402-cf397548a91c:Node 44b52088-5354-42d9-b402-cf397548a91c :: false |
createNodes | 1.696s |
2022-06-23 23:04:50 |
2022-06-23 23:04:50 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-06-23 23:04:50 | ------------------------------------ 2022-06-23 23:04:51 | on localhost executing action create-node with content type application/json and payload: { "owner": "admin@test-domain.com", "pubsub#node_type": "leaf", "node": "node-44b52088-5354-42d9-b402-cf397548a91c", "pubsub#title": "Node 44b52088-5354-42d9-b402-cf397548a91c" } 2022-06-23 23:04:51 | from localhost for action create-node got result code 200 and payload { "Note": "Operation successful" } 2022-06-23 23:04:52 | [Mutex] waiting for: [received:nodes:f86e032c-3dca-44b8-ad8a-089884881241:localhost] 2022-06-23 23:04:52 | [Mutex] waiting for: [received:nodes:f86e032c-3dca-44b8-ad8a-089884881241:localhost] 2022-06-23 23:04:52 | [Mutex] received everything. 2022-06-23 23:04:52 | [Mutex] isItemNotified: received:node:f86e032c-3dca-44b8-ad8a-089884881241:localhost:node-44b52088-5354-42d9-b402-cf397548a91c:Node 44b52088-5354-42d9-b402-cf397548a91c :: true |
createSubnodes | 1.025s |
2022-06-23 23:04:52 |
2022-06-23 23:04:52 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-06-23 23:04:52 | ------------------------------------ 2022-06-23 23:04:52 | on localhost executing action create-node with content type application/json and payload: { "owner": "admin@test-domain.com", "pubsub#node_type": "collection", "node": "node-fd173146-c746-450e-9d64-d8d6c21f9d79", "pubsub#title": "Node fd173146-c746-450e-9d64-d8d6c21f9d79" } 2022-06-23 23:04:52 | from localhost for action create-node got result code 200 and payload { "Note": "Operation successful" } 2022-06-23 23:04:53 | [Mutex] waiting for: [received:nodes:872d7c27-b79b-4d15-8679-4fe1b3368795:localhost] 2022-06-23 23:04:53 | [Mutex] received everything. 2022-06-23 23:04:53 | [Mutex] isItemNotified: received:node:872d7c27-b79b-4d15-8679-4fe1b3368795:localhost:node-fd173146-c746-450e-9d64-d8d6c21f9d79:Node fd173146-c746-450e-9d64-d8d6c21f9d79 :: true |
deleteNodes | 1.017s |
2022-06-23 23:04:57 |
2022-06-23 23:04:57 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-06-23 23:04:57 | ------------------------------------ 2022-06-23 23:04:57 | on localhost executing action delete-node with content type application/json and payload: { "node": "node-fd173146-c746-450e-9d64-d8d6c21f9d79" } 2022-06-23 23:04:57 | from localhost for action delete-node got result code 200 and payload { "Note": "Operation successful" } 2022-06-23 23:04:58 | [Mutex] waiting for: [received:nodes:854a8649-c3f5-4bf2-89e6-b04bef5f4fd8:localhost] 2022-06-23 23:04:58 | [Mutex] waiting for: [received:nodes:854a8649-c3f5-4bf2-89e6-b04bef5f4fd8:localhost] 2022-06-23 23:04:58 | [Mutex] received everything. 2022-06-23 23:04:58 | [Mutex] isItemNotified: received:node:854a8649-c3f5-4bf2-89e6-b04bef5f4fd8:localhost:node-fd173146-c746-450e-9d64-d8d6c21f9d79:Node fd173146-c746-450e-9d64-d8d6c21f9d79 :: false |
deleteSubnodes | 1.022s |
2022-06-23 23:04:56 |
2022-06-23 23:04:56 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-06-23 23:04:56 | ------------------------------------ 2022-06-23 23:04:56 | on localhost executing action delete-node with content type application/json and payload: { "node": "node-44b52088-5354-42d9-b402-cf397548a91c" } 2022-06-23 23:04:56 | from localhost for action delete-node got result code 200 and payload { "Note": "Operation successful" } 2022-06-23 23:04:57 | [Mutex] waiting for: [received:nodes:796129c0-8c29-44aa-8419-ff52396d0db7:localhost] 2022-06-23 23:04:57 | [Mutex] waiting for: [received:nodes:796129c0-8c29-44aa-8419-ff52396d0db7:localhost] 2022-06-23 23:04:57 | [Mutex] waiting for: [received:nodes:796129c0-8c29-44aa-8419-ff52396d0db7:localhost] 2022-06-23 23:04:57 | [Mutex] received everything. 2022-06-23 23:04:57 | [Mutex] isItemNotified: received:node:796129c0-8c29-44aa-8419-ff52396d0db7:localhost:node-44b52088-5354-42d9-b402-cf397548a91c:Node 44b52088-5354-42d9-b402-cf397548a91c :: false 2022-06-23 23:04:57 | [Mutex] waiting for: [received:nodes:8f3ce8e2-5837-4117-ae0d-bac59250e71a:localhost] 2022-06-23 23:04:57 | [Mutex] received everything. 2022-06-23 23:04:57 | [Mutex] isItemNotified: received:node:8f3ce8e2-5837-4117-ae0d-bac59250e71a:localhost:node-44b52088-5354-42d9-b402-cf397548a91c:Node 44b52088-5354-42d9-b402-cf397548a91c :: false |
publishItemsToNodes | 0.046s |
2022-06-23 23:04:55 |
2022-06-23 23:04:55 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-06-23 23:04:55 | ------------------------------------ 2022-06-23 23:04:55 | on localhost executing action publish-item with content type application/json and payload: { "node": "node-44b52088-5354-42d9-b402-cf397548a91c", "entry": "<test>item-31a01a82-b4fb-4754-b0eb-6157c6144a93</test>", "item-id": "item-31a01a82-b4fb-4754-b0eb-6157c6144a93" } 2022-06-23 23:04:55 | from localhost for action publish-item got result code 200 and payload { "Note": "Operation successful", "item-id": "item-31a01a82-b4fb-4754-b0eb-6157c6144a93" } 2022-06-23 23:04:55 | [Mutex] waiting for: [published:item:notifieditem-31a01a82-b4fb-4754-b0eb-6157c6144a93:admin@test-domain.com] 2022-06-23 23:04:55 | [Mutex] received everything. 2022-06-23 23:04:55 | [Mutex] isItemNotified: published:item:notifieditem-31a01a82-b4fb-4754-b0eb-6157c6144a93:admin@test-domain.com :: true |
retractItemsFromNodes | 0.056s |
2022-06-23 23:04:55 |
2022-06-23 23:04:55 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-06-23 23:04:55 | ------------------------------------ 2022-06-23 23:04:55 | on localhost executing action delete-item with content type application/json and payload: { "node": "node-44b52088-5354-42d9-b402-cf397548a91c", "item-id": "item-31a01a82-b4fb-4754-b0eb-6157c6144a93" } 2022-06-23 23:04:55 | from localhost for action delete-item got result code 200 and payload { "Note": "Operation successful", "item-id": "item-31a01a82-b4fb-4754-b0eb-6157c6144a93" } 2022-06-23 23:04:55 | [Mutex] waiting for: [retracted:item:notifieditem-31a01a82-b4fb-4754-b0eb-6157c6144a93:admin@test-domain.com] 2022-06-23 23:04:55 | [Mutex] received everything. 2022-06-23 23:04:55 | [Mutex] isItemNotified: retracted:item:notifieditem-31a01a82-b4fb-4754-b0eb-6157c6144a93:admin@test-domain.com :: true |
retrieveItemsFromNodes | 0.057s |
2022-06-23 23:04:55 |
2022-06-23 23:04:55 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-06-23 23:04:55 | ------------------------------------ 2022-06-23 23:04:55 | on localhost executing action retrieve-item with content type application/json and payload: { "node": "node-44b52088-5354-42d9-b402-cf397548a91c", "item-id": "item-31a01a82-b4fb-4754-b0eb-6157c6144a93" } 2022-06-23 23:04:55 | from localhost for action retrieve-item got result code 200 and payload { "title": "Retrive PubSub node item", "node": "node-44b52088-5354-42d9-b402-cf397548a91c", "item-id": "item-31a01a82-b4fb-4754-b0eb-6157c6144a93", "item": [ "<item id=\"item-31a01a82-b4fb-4754-b0eb-6157c6144a93\"><test>item-31a01a82-b4fb-4754-b0eb-6157c6144a93</test></item>" ] } 2022-06-23 23:04:55 | [Mutex] notify: [retrieved:item:item-31a01a82-b4fb-4754-b0eb-6157c6144a93:payload-matches:true:localhost] 2022-06-23 23:04:55 | [Mutex] received everything. 2022-06-23 23:04:55 | [Mutex] isItemNotified: retrieved:item:item-31a01a82-b4fb-4754-b0eb-6157c6144a93:payload-matches:true:localhost :: true |
retrieveUserSubscriptions | 0.051s |
2022-06-23 23:04:55 |
2022-06-23 23:04:55 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-06-23 23:04:55 | ------------------------------------ 2022-06-23 23:04:55 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload: { "jid": "admin@test-domain.com" } 2022-06-23 23:04:55 | from localhost for action retrieve-user-subscriptions got result code 200 and payload { "nodes": [ "node-fd173146-c746-450e-9d64-d8d6c21f9d79", "test", "node-44b52088-5354-42d9-b402-cf397548a91c" ] } |
retrieveUserSubscriptionsWithRegex | 0.047s |
2022-06-23 23:04:55 |
2022-06-23 23:04:55 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-06-23 23:04:55 | ------------------------------------ 2022-06-23 23:04:55 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload: { "jid": "admin@test-domain.com", "node-pattern": "(?!node-44b52088-5354-42d9-b402-cf397548a91c)" } 2022-06-23 23:04:55 | from localhost for action retrieve-user-subscriptions got result code 200 and payload { "nodes": [ ] } |
subscribeNodes | 1.009s |
2022-06-23 23:04:54 |
2022-06-23 23:04:54 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-06-23 23:04:54 | ------------------------------------ 2022-06-23 23:04:54 | on localhost executing action subscribe-node with content type application/json and payload: { "node": "node-44b52088-5354-42d9-b402-cf397548a91c", "jids": [ "admin@test-domain.com" ] } 2022-06-23 23:04:54 | from localhost for action subscribe-node got result code 200 and payload { "Note": "Operation successful" } |
unsubscribeNodes | 1.057s |
2022-06-23 23:04:55 |
2022-06-23 23:04:55 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-06-23 23:04:55 | ------------------------------------ 2022-06-23 23:04:55 | on localhost executing action unsubscribe-node with content type application/json and payload: { "node": "node-44b52088-5354-42d9-b402-cf397548a91c", "jids": [ "admin@test-domain.com" ] } 2022-06-23 23:04:55 | from localhost for action unsubscribe-node got result code 200 and payload { "Note": "Operation successful" } |