Test duration : 8.674s
Passed Tests | ||
---|---|---|
tigase.tests.pubsub.TestRestApiUsingJSON | ||
configureNodes | 1.114s |
2022-07-20 22:32:28 |
2022-07-20 22:32:28 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-07-20 22:32:28 | ------------------------------------ 2022-07-20 22:32:28 | [Mutex] waiting for: [configured:node:node-2e319088-6186-4c9e-929f-bc7a16f85d56:node-7b1d9aaa-dd3d-4079-8ca2-488e16ec671b] 2022-07-20 22:32:28 | [Mutex] received everything. 2022-07-20 22:32:28 | [Mutex] isItemNotified: configured:node:node-2e319088-6186-4c9e-929f-bc7a16f85d56:node-7b1d9aaa-dd3d-4079-8ca2-488e16ec671b :: true 2022-07-20 22:32:29 | [Mutex] waiting for: [received:nodes:68a9b595-efc4-4f20-b08b-26787dd34bae:localhost] 2022-07-20 22:32:29 | [Mutex] received everything. 2022-07-20 22:32:29 | [Mutex] isItemNotified: received:node:68a9b595-efc4-4f20-b08b-26787dd34bae:localhost:node-2e319088-6186-4c9e-929f-bc7a16f85d56:Node 2e319088-6186-4c9e-929f-bc7a16f85d56 :: true 2022-07-20 22:32:29 | [Mutex] waiting for: [received:nodes:d687d6c2-c4fc-4a90-8cca-c98e4261eb5c:localhost] 2022-07-20 22:32:29 | [Mutex] received everything. 2022-07-20 22:32:29 | [Mutex] isItemNotified: received:node:d687d6c2-c4fc-4a90-8cca-c98e4261eb5c:localhost:node-2e319088-6186-4c9e-929f-bc7a16f85d56:Node 2e319088-6186-4c9e-929f-bc7a16f85d56 :: false |
createNodes | 1.559s |
2022-07-20 22:32:25 |
2022-07-20 22:32:25 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-07-20 22:32:25 | ------------------------------------ 2022-07-20 22:32:26 | on localhost executing action create-node with content type application/json and payload: { "owner": "admin@test-domain.com", "pubsub#node_type": "leaf", "node": "node-2e319088-6186-4c9e-929f-bc7a16f85d56", "pubsub#title": "Node 2e319088-6186-4c9e-929f-bc7a16f85d56" } 2022-07-20 22:32:26 | from localhost for action create-node got result code 200 and payload { "Note": "Operation successful" } 2022-07-20 22:32:27 | [Mutex] waiting for: [received:nodes:4f914d7e-f951-4e01-8788-7cf25bb18fd3:localhost] 2022-07-20 22:32:27 | [Mutex] received everything. 2022-07-20 22:32:27 | [Mutex] isItemNotified: received:node:4f914d7e-f951-4e01-8788-7cf25bb18fd3:localhost:node-2e319088-6186-4c9e-929f-bc7a16f85d56:Node 2e319088-6186-4c9e-929f-bc7a16f85d56 :: true |
createSubnodes | 1.024s |
2022-07-20 22:32:27 |
2022-07-20 22:32:27 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-07-20 22:32:27 | ------------------------------------ 2022-07-20 22:32:27 | on localhost executing action create-node with content type application/json and payload: { "owner": "admin@test-domain.com", "pubsub#node_type": "collection", "node": "node-7b1d9aaa-dd3d-4079-8ca2-488e16ec671b", "pubsub#title": "Node 7b1d9aaa-dd3d-4079-8ca2-488e16ec671b" } 2022-07-20 22:32:27 | from localhost for action create-node got result code 200 and payload { "Note": "Operation successful" } 2022-07-20 22:32:28 | [Mutex] waiting for: [received:nodes:88fb68c9-7199-4dcb-a6bd-4cf1c2e83993:localhost] 2022-07-20 22:32:28 | [Mutex] received everything. 2022-07-20 22:32:28 | [Mutex] isItemNotified: received:node:88fb68c9-7199-4dcb-a6bd-4cf1c2e83993:localhost:node-7b1d9aaa-dd3d-4079-8ca2-488e16ec671b:Node 7b1d9aaa-dd3d-4079-8ca2-488e16ec671b :: true |
deleteNodes | 1.026s |
2022-07-20 22:32:32 |
2022-07-20 22:32:32 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-07-20 22:32:32 | ------------------------------------ 2022-07-20 22:32:32 | on localhost executing action delete-node with content type application/json and payload: { "node": "node-7b1d9aaa-dd3d-4079-8ca2-488e16ec671b" } 2022-07-20 22:32:32 | from localhost for action delete-node got result code 200 and payload { "Note": "Operation successful" } 2022-07-20 22:32:33 | [Mutex] waiting for: [received:nodes:6f22e5be-ccf5-48d7-a377-adcd51c06baa:localhost] 2022-07-20 22:32:33 | [Mutex] waiting for: [received:nodes:6f22e5be-ccf5-48d7-a377-adcd51c06baa:localhost] 2022-07-20 22:32:33 | [Mutex] received everything. 2022-07-20 22:32:33 | [Mutex] isItemNotified: received:node:6f22e5be-ccf5-48d7-a377-adcd51c06baa:localhost:node-7b1d9aaa-dd3d-4079-8ca2-488e16ec671b:Node 7b1d9aaa-dd3d-4079-8ca2-488e16ec671b :: false |
deleteSubnodes | 1.025s |
2022-07-20 22:32:31 |
2022-07-20 22:32:31 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-07-20 22:32:31 | ------------------------------------ 2022-07-20 22:32:31 | on localhost executing action delete-node with content type application/json and payload: { "node": "node-2e319088-6186-4c9e-929f-bc7a16f85d56" } 2022-07-20 22:32:31 | from localhost for action delete-node got result code 200 and payload { "Note": "Operation successful" } 2022-07-20 22:32:32 | [Mutex] waiting for: [received:nodes:a52c4a54-5d8c-44a9-8a0b-fb559b1fee6d:localhost] 2022-07-20 22:32:32 | [Mutex] waiting for: [received:nodes:a52c4a54-5d8c-44a9-8a0b-fb559b1fee6d:localhost] 2022-07-20 22:32:32 | [Mutex] received everything. 2022-07-20 22:32:32 | [Mutex] isItemNotified: received:node:a52c4a54-5d8c-44a9-8a0b-fb559b1fee6d:localhost:node-2e319088-6186-4c9e-929f-bc7a16f85d56:Node 2e319088-6186-4c9e-929f-bc7a16f85d56 :: false 2022-07-20 22:32:32 | [Mutex] waiting for: [received:nodes:bafd5cf6-d899-4e40-8259-ce83a54d98ed:localhost] 2022-07-20 22:32:32 | [Mutex] received everything. 2022-07-20 22:32:32 | [Mutex] isItemNotified: received:node:bafd5cf6-d899-4e40-8259-ce83a54d98ed:localhost:node-2e319088-6186-4c9e-929f-bc7a16f85d56:Node 2e319088-6186-4c9e-929f-bc7a16f85d56 :: false |
publishItemsToNodes | 0.037s |
2022-07-20 22:32:30 |
2022-07-20 22:32:30 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-07-20 22:32:30 | ------------------------------------ 2022-07-20 22:32:30 | on localhost executing action publish-item with content type application/json and payload: { "node": "node-2e319088-6186-4c9e-929f-bc7a16f85d56", "entry": "<test>item-5081abb5-4485-4f34-b0d9-0aaaca900b18</test>", "item-id": "item-5081abb5-4485-4f34-b0d9-0aaaca900b18" } 2022-07-20 22:32:30 | from localhost for action publish-item got result code 200 and payload { "Note": "Operation successful", "item-id": "item-5081abb5-4485-4f34-b0d9-0aaaca900b18" } 2022-07-20 22:32:30 | [Mutex] waiting for: [published:item:notifieditem-5081abb5-4485-4f34-b0d9-0aaaca900b18:admin@test-domain.com] 2022-07-20 22:32:30 | [Mutex] received everything. 2022-07-20 22:32:30 | [Mutex] isItemNotified: published:item:notifieditem-5081abb5-4485-4f34-b0d9-0aaaca900b18:admin@test-domain.com :: true |
retractItemsFromNodes | 0.051s |
2022-07-20 22:32:30 |
2022-07-20 22:32:30 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-07-20 22:32:30 | ------------------------------------ 2022-07-20 22:32:30 | on localhost executing action delete-item with content type application/json and payload: { "node": "node-2e319088-6186-4c9e-929f-bc7a16f85d56", "item-id": "item-5081abb5-4485-4f34-b0d9-0aaaca900b18" } 2022-07-20 22:32:30 | from localhost for action delete-item got result code 200 and payload { "Note": "Operation successful", "item-id": "item-5081abb5-4485-4f34-b0d9-0aaaca900b18" } 2022-07-20 22:32:30 | [Mutex] received everything. 2022-07-20 22:32:30 | [Mutex] isItemNotified: retracted:item:notifieditem-5081abb5-4485-4f34-b0d9-0aaaca900b18:admin@test-domain.com :: true |
retrieveItemsFromNodes | 0.118s |
2022-07-20 22:32:30 |
2022-07-20 22:32:30 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-07-20 22:32:30 | ------------------------------------ 2022-07-20 22:32:30 | on localhost executing action retrieve-item with content type application/json and payload: { "node": "node-2e319088-6186-4c9e-929f-bc7a16f85d56", "item-id": "item-5081abb5-4485-4f34-b0d9-0aaaca900b18" } 2022-07-20 22:32:30 | from localhost for action retrieve-item got result code 200 and payload { "title": "Retrive PubSub node item", "node": "node-2e319088-6186-4c9e-929f-bc7a16f85d56", "item-id": "item-5081abb5-4485-4f34-b0d9-0aaaca900b18", "item": [ "<item id=\"item-5081abb5-4485-4f34-b0d9-0aaaca900b18\"><test>item-5081abb5-4485-4f34-b0d9-0aaaca900b18</test></item>" ] } 2022-07-20 22:32:30 | [Mutex] notify: [retrieved:item:item-5081abb5-4485-4f34-b0d9-0aaaca900b18:payload-matches:true:localhost] 2022-07-20 22:32:30 | [Mutex] received everything. 2022-07-20 22:32:30 | [Mutex] isItemNotified: retrieved:item:item-5081abb5-4485-4f34-b0d9-0aaaca900b18:payload-matches:true:localhost :: true |
retrieveUserSubscriptions | 0.047s |
2022-07-20 22:32:30 |
2022-07-20 22:32:30 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-07-20 22:32:30 | ------------------------------------ 2022-07-20 22:32:30 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload: { "jid": "admin@test-domain.com" } 2022-07-20 22:32:30 | from localhost for action retrieve-user-subscriptions got result code 200 and payload { "nodes": [ "test", "node-2e319088-6186-4c9e-929f-bc7a16f85d56", "node-7b1d9aaa-dd3d-4079-8ca2-488e16ec671b" ] } |
retrieveUserSubscriptionsWithRegex | 0.048s |
2022-07-20 22:32:30 |
2022-07-20 22:32:30 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-07-20 22:32:30 | ------------------------------------ 2022-07-20 22:32:30 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload: { "jid": "admin@test-domain.com", "node-pattern": "(?!node-2e319088-6186-4c9e-929f-bc7a16f85d56)" } 2022-07-20 22:32:30 | from localhost for action retrieve-user-subscriptions got result code 200 and payload { "nodes": [ ] } |
subscribeNodes | 1.015s |
2022-07-20 22:32:29 |
2022-07-20 22:32:29 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-07-20 22:32:29 | ------------------------------------ 2022-07-20 22:32:29 | on localhost executing action subscribe-node with content type application/json and payload: { "node": "node-2e319088-6186-4c9e-929f-bc7a16f85d56", "jids": [ "admin@test-domain.com" ] } 2022-07-20 22:32:29 | from localhost for action subscribe-node got result code 200 and payload { "Note": "Operation successful" } |
unsubscribeNodes | 1.055s |
2022-07-20 22:32:30 |
2022-07-20 22:32:30 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-07-20 22:32:30 | ------------------------------------ 2022-07-20 22:32:30 | on localhost executing action unsubscribe-node with content type application/json and payload: { "node": "node-2e319088-6186-4c9e-929f-bc7a16f85d56", "jids": [ "admin@test-domain.com" ] } 2022-07-20 22:32:30 | from localhost for action unsubscribe-node got result code 200 and payload { "Note": "Operation successful" } |