Test duration : 9.134s
Passed Tests | ||
---|---|---|
tigase.tests.pubsub.TestRestApiUsingJSON | ||
configureNodes | 1.120s |
2022-02-16 07:40:49 |
2022-02-16 07:40:49 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-02-16 07:40:49 | ------------------------------------ 2022-02-16 07:40:49 | [Mutex] waiting for: [configured:node:node-b5389d9d-5e6e-4552-9ff1-41c0c6996946:node-d63e5abd-f8a2-4b9c-a671-da7e5ec97def] 2022-02-16 07:40:49 | [Mutex] received everything. 2022-02-16 07:40:49 | [Mutex] isItemNotified: configured:node:node-b5389d9d-5e6e-4552-9ff1-41c0c6996946:node-d63e5abd-f8a2-4b9c-a671-da7e5ec97def :: true 2022-02-16 07:40:50 | [Mutex] waiting for: [received:nodes:30dc011c-c3ad-431f-b15e-123c6bbeb082:localhost] 2022-02-16 07:40:50 | [Mutex] received everything. 2022-02-16 07:40:50 | [Mutex] isItemNotified: received:node:30dc011c-c3ad-431f-b15e-123c6bbeb082:localhost:node-b5389d9d-5e6e-4552-9ff1-41c0c6996946:Node b5389d9d-5e6e-4552-9ff1-41c0c6996946 :: true 2022-02-16 07:40:50 | [Mutex] waiting for: [received:nodes:2f171002-b0e5-4429-8efb-2754ff1e6efe:localhost] 2022-02-16 07:40:50 | [Mutex] received everything. 2022-02-16 07:40:50 | [Mutex] isItemNotified: received:node:2f171002-b0e5-4429-8efb-2754ff1e6efe:localhost:node-b5389d9d-5e6e-4552-9ff1-41c0c6996946:Node b5389d9d-5e6e-4552-9ff1-41c0c6996946 :: false |
createNodes | 1.752s |
2022-02-16 07:40:46 |
2022-02-16 07:40:46 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-02-16 07:40:46 | ------------------------------------ 2022-02-16 07:40:46 | on localhost executing action create-node with content type application/json and payload: { "owner": "admin@test-domain.com", "pubsub#node_type": "leaf", "node": "node-b5389d9d-5e6e-4552-9ff1-41c0c6996946", "pubsub#title": "Node b5389d9d-5e6e-4552-9ff1-41c0c6996946" } 2022-02-16 07:40:46 | from localhost for action create-node got result code 200 and payload { "Note": "Operation successful" } 2022-02-16 07:40:47 | [Mutex] waiting for: [received:nodes:8a1a3e4c-63a1-4c28-a649-bc1c98974c1f:localhost] 2022-02-16 07:40:47 | [Mutex] received everything. 2022-02-16 07:40:47 | [Mutex] isItemNotified: received:node:8a1a3e4c-63a1-4c28-a649-bc1c98974c1f:localhost:node-b5389d9d-5e6e-4552-9ff1-41c0c6996946:Node b5389d9d-5e6e-4552-9ff1-41c0c6996946 :: true |
createSubnodes | 1.028s |
2022-02-16 07:40:47 |
2022-02-16 07:40:47 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-02-16 07:40:47 | ------------------------------------ 2022-02-16 07:40:47 | on localhost executing action create-node with content type application/json and payload: { "owner": "admin@test-domain.com", "pubsub#node_type": "collection", "node": "node-d63e5abd-f8a2-4b9c-a671-da7e5ec97def", "pubsub#title": "Node d63e5abd-f8a2-4b9c-a671-da7e5ec97def" } 2022-02-16 07:40:47 | from localhost for action create-node got result code 200 and payload { "Note": "Operation successful" } 2022-02-16 07:40:48 | [Mutex] waiting for: [received:nodes:24538ce4-11ae-4b99-a1fe-fc41410d5d07:localhost] 2022-02-16 07:40:49 | [Mutex] received everything. 2022-02-16 07:40:49 | [Mutex] isItemNotified: received:node:24538ce4-11ae-4b99-a1fe-fc41410d5d07:localhost:node-d63e5abd-f8a2-4b9c-a671-da7e5ec97def:Node d63e5abd-f8a2-4b9c-a671-da7e5ec97def :: true |
deleteNodes | 1.027s |
2022-02-16 07:40:53 |
2022-02-16 07:40:53 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-02-16 07:40:53 | ------------------------------------ 2022-02-16 07:40:53 | on localhost executing action delete-node with content type application/json and payload: { "node": "node-d63e5abd-f8a2-4b9c-a671-da7e5ec97def" } 2022-02-16 07:40:53 | from localhost for action delete-node got result code 200 and payload { "Note": "Operation successful" } 2022-02-16 07:40:54 | [Mutex] waiting for: [received:nodes:f163d874-e5ba-4106-8427-f0e0d24c8fff:localhost] 2022-02-16 07:40:54 | [Mutex] waiting for: [received:nodes:f163d874-e5ba-4106-8427-f0e0d24c8fff:localhost] 2022-02-16 07:40:54 | [Mutex] waiting for: [received:nodes:f163d874-e5ba-4106-8427-f0e0d24c8fff:localhost] 2022-02-16 07:40:54 | [Mutex] received everything. 2022-02-16 07:40:54 | [Mutex] isItemNotified: received:node:f163d874-e5ba-4106-8427-f0e0d24c8fff:localhost:node-d63e5abd-f8a2-4b9c-a671-da7e5ec97def:Node d63e5abd-f8a2-4b9c-a671-da7e5ec97def :: false |
deleteSubnodes | 1.034s |
2022-02-16 07:40:52 |
2022-02-16 07:40:52 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-02-16 07:40:52 | ------------------------------------ 2022-02-16 07:40:52 | on localhost executing action delete-node with content type application/json and payload: { "node": "node-b5389d9d-5e6e-4552-9ff1-41c0c6996946" } 2022-02-16 07:40:52 | from localhost for action delete-node got result code 200 and payload { "Note": "Operation successful" } 2022-02-16 07:40:53 | [Mutex] waiting for: [received:nodes:19f41a29-363b-44cf-b469-31ceb3a7f751:localhost] 2022-02-16 07:40:53 | [Mutex] waiting for: [received:nodes:19f41a29-363b-44cf-b469-31ceb3a7f751:localhost] 2022-02-16 07:40:53 | [Mutex] waiting for: [received:nodes:19f41a29-363b-44cf-b469-31ceb3a7f751:localhost] 2022-02-16 07:40:53 | [Mutex] waiting for: [received:nodes:19f41a29-363b-44cf-b469-31ceb3a7f751:localhost] 2022-02-16 07:40:53 | [Mutex] received everything. 2022-02-16 07:40:53 | [Mutex] isItemNotified: received:node:19f41a29-363b-44cf-b469-31ceb3a7f751:localhost:node-b5389d9d-5e6e-4552-9ff1-41c0c6996946:Node b5389d9d-5e6e-4552-9ff1-41c0c6996946 :: false 2022-02-16 07:40:53 | [Mutex] waiting for: [received:nodes:96d4a96c-f42b-462c-87ec-679dc95e4751:localhost] 2022-02-16 07:40:53 | [Mutex] received everything. 2022-02-16 07:40:53 | [Mutex] isItemNotified: received:node:96d4a96c-f42b-462c-87ec-679dc95e4751:localhost:node-b5389d9d-5e6e-4552-9ff1-41c0c6996946:Node b5389d9d-5e6e-4552-9ff1-41c0c6996946 :: false |
publishItemsToNodes | 0.060s |
2022-02-16 07:40:51 |
2022-02-16 07:40:51 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-02-16 07:40:51 | ------------------------------------ 2022-02-16 07:40:51 | on localhost executing action publish-item with content type application/json and payload: { "node": "node-b5389d9d-5e6e-4552-9ff1-41c0c6996946", "entry": "<test>item-cda482a5-59c3-4780-ad33-d6f765bbb57d</test>", "item-id": "item-cda482a5-59c3-4780-ad33-d6f765bbb57d" } 2022-02-16 07:40:51 | from localhost for action publish-item got result code 200 and payload { "Note": "Operation successful", "item-id": "item-cda482a5-59c3-4780-ad33-d6f765bbb57d" } 2022-02-16 07:40:51 | [Mutex] waiting for: [published:item:notifieditem-cda482a5-59c3-4780-ad33-d6f765bbb57d:admin@test-domain.com] 2022-02-16 07:40:51 | [Mutex] received everything. 2022-02-16 07:40:51 | [Mutex] isItemNotified: published:item:notifieditem-cda482a5-59c3-4780-ad33-d6f765bbb57d:admin@test-domain.com :: true |
retractItemsFromNodes | 0.068s |
2022-02-16 07:40:51 |
2022-02-16 07:40:51 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-02-16 07:40:51 | ------------------------------------ 2022-02-16 07:40:51 | on localhost executing action delete-item with content type application/json and payload: { "node": "node-b5389d9d-5e6e-4552-9ff1-41c0c6996946", "item-id": "item-cda482a5-59c3-4780-ad33-d6f765bbb57d" } 2022-02-16 07:40:51 | from localhost for action delete-item got result code 200 and payload { "Note": "Operation successful", "item-id": "item-cda482a5-59c3-4780-ad33-d6f765bbb57d" } 2022-02-16 07:40:51 | [Mutex] received everything. 2022-02-16 07:40:51 | [Mutex] isItemNotified: retracted:item:notifieditem-cda482a5-59c3-4780-ad33-d6f765bbb57d:admin@test-domain.com :: true |
retrieveItemsFromNodes | 0.062s |
2022-02-16 07:40:51 |
2022-02-16 07:40:51 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-02-16 07:40:51 | ------------------------------------ 2022-02-16 07:40:51 | on localhost executing action retrieve-item with content type application/json and payload: { "node": "node-b5389d9d-5e6e-4552-9ff1-41c0c6996946", "item-id": "item-cda482a5-59c3-4780-ad33-d6f765bbb57d" } 2022-02-16 07:40:51 | from localhost for action retrieve-item got result code 200 and payload { "title": "Retrive PubSub node item", "node": "node-b5389d9d-5e6e-4552-9ff1-41c0c6996946", "item-id": "item-cda482a5-59c3-4780-ad33-d6f765bbb57d", "item": [ "<item id=\"item-cda482a5-59c3-4780-ad33-d6f765bbb57d\"><test>item-cda482a5-59c3-4780-ad33-d6f765bbb57d</test></item>" ] } 2022-02-16 07:40:51 | [Mutex] notify: [retrieved:item:item-cda482a5-59c3-4780-ad33-d6f765bbb57d:payload-matches:true:localhost] 2022-02-16 07:40:51 | [Mutex] received everything. 2022-02-16 07:40:51 | [Mutex] isItemNotified: retrieved:item:item-cda482a5-59c3-4780-ad33-d6f765bbb57d:payload-matches:true:localhost :: true |
retrieveUserSubscriptions | 0.051s |
2022-02-16 07:40:51 |
2022-02-16 07:40:51 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-02-16 07:40:51 | ------------------------------------ 2022-02-16 07:40:51 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload: { "jid": "admin@test-domain.com" } 2022-02-16 07:40:51 | from localhost for action retrieve-user-subscriptions got result code 200 and payload { "nodes": [ "test", "node-b5389d9d-5e6e-4552-9ff1-41c0c6996946", "node-d63e5abd-f8a2-4b9c-a671-da7e5ec97def" ] } |
retrieveUserSubscriptionsWithRegex | 0.047s |
2022-02-16 07:40:51 |
2022-02-16 07:40:51 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-02-16 07:40:51 | ------------------------------------ 2022-02-16 07:40:51 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload: { "jid": "admin@test-domain.com", "node-pattern": "(?!node-b5389d9d-5e6e-4552-9ff1-41c0c6996946)" } 2022-02-16 07:40:51 | from localhost for action retrieve-user-subscriptions got result code 200 and payload { "nodes": [ ] } |
subscribeNodes | 1.013s |
2022-02-16 07:40:50 |
2022-02-16 07:40:50 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-02-16 07:40:50 | ------------------------------------ 2022-02-16 07:40:50 | on localhost executing action subscribe-node with content type application/json and payload: { "node": "node-b5389d9d-5e6e-4552-9ff1-41c0c6996946", "jids": [ "admin@test-domain.com" ] } 2022-02-16 07:40:50 | from localhost for action subscribe-node got result code 200 and payload { "Note": "Operation successful" } |
unsubscribeNodes | 1.055s |
2022-02-16 07:40:51 |
2022-02-16 07:40:51 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-02-16 07:40:51 | ------------------------------------ 2022-02-16 07:40:51 | on localhost executing action unsubscribe-node with content type application/json and payload: { "node": "node-b5389d9d-5e6e-4552-9ff1-41c0c6996946", "jids": [ "admin@test-domain.com" ] } 2022-02-16 07:40:51 | from localhost for action unsubscribe-node got result code 200 and payload { "Note": "Operation successful" } |