Test duration : 8.798s
Passed Tests | ||
---|---|---|
tigase.tests.pubsub.TestRestApiUsingJSON | ||
configureNodes | 1.103s |
2022-05-10 22:49:53 |
2022-05-10 22:49:53 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-05-10 22:49:53 | ------------------------------------ 2022-05-10 22:49:53 | [Mutex] waiting for: [configured:node:node-8b590c3e-180c-440f-8dc5-4a1c6bdad090:node-06ecf648-d765-436c-a3de-c0a61b7be047] 2022-05-10 22:49:53 | [Mutex] received everything. 2022-05-10 22:49:53 | [Mutex] isItemNotified: configured:node:node-8b590c3e-180c-440f-8dc5-4a1c6bdad090:node-06ecf648-d765-436c-a3de-c0a61b7be047 :: true 2022-05-10 22:49:54 | [Mutex] waiting for: [received:nodes:e294ece7-2dae-4afd-805a-dbe5148c4586:localhost] 2022-05-10 22:49:54 | [Mutex] received everything. 2022-05-10 22:49:54 | [Mutex] isItemNotified: received:node:e294ece7-2dae-4afd-805a-dbe5148c4586:localhost:node-8b590c3e-180c-440f-8dc5-4a1c6bdad090:Node 8b590c3e-180c-440f-8dc5-4a1c6bdad090 :: true 2022-05-10 22:49:54 | [Mutex] waiting for: [received:nodes:c58a2fff-1e12-4b07-86bb-66cbebcab5cd:localhost] 2022-05-10 22:49:54 | [Mutex] received everything. 2022-05-10 22:49:54 | [Mutex] isItemNotified: received:node:c58a2fff-1e12-4b07-86bb-66cbebcab5cd:localhost:node-8b590c3e-180c-440f-8dc5-4a1c6bdad090:Node 8b590c3e-180c-440f-8dc5-4a1c6bdad090 :: false |
createNodes | 1.579s |
2022-05-10 22:49:50 |
2022-05-10 22:49:50 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-05-10 22:49:50 | ------------------------------------ 2022-05-10 22:49: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-8b590c3e-180c-440f-8dc5-4a1c6bdad090", "pubsub#title": "Node 8b590c3e-180c-440f-8dc5-4a1c6bdad090" } 2022-05-10 22:49:51 | from localhost for action create-node got result code 200 and payload { "Note": "Operation successful" } 2022-05-10 22:49:52 | [Mutex] waiting for: [received:nodes:f7505955-fb11-4a1d-abac-a502abcecf3b:localhost] 2022-05-10 22:49:52 | [Mutex] received everything. 2022-05-10 22:49:52 | [Mutex] isItemNotified: received:node:f7505955-fb11-4a1d-abac-a502abcecf3b:localhost:node-8b590c3e-180c-440f-8dc5-4a1c6bdad090:Node 8b590c3e-180c-440f-8dc5-4a1c6bdad090 :: true |
createSubnodes | 1.023s |
2022-05-10 22:49:52 |
2022-05-10 22:49:52 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-05-10 22:49:52 | ------------------------------------ 2022-05-10 22:49: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-06ecf648-d765-436c-a3de-c0a61b7be047", "pubsub#title": "Node 06ecf648-d765-436c-a3de-c0a61b7be047" } 2022-05-10 22:49:52 | from localhost for action create-node got result code 200 and payload { "Note": "Operation successful" } 2022-05-10 22:49:53 | [Mutex] waiting for: [received:nodes:91ce4650-aa5a-4d0e-80e6-5613a65d5779:localhost] 2022-05-10 22:49:53 | [Mutex] waiting for: [received:nodes:91ce4650-aa5a-4d0e-80e6-5613a65d5779:localhost] 2022-05-10 22:49:53 | [Mutex] waiting for: [received:nodes:91ce4650-aa5a-4d0e-80e6-5613a65d5779:localhost] 2022-05-10 22:49:53 | [Mutex] received everything. 2022-05-10 22:49:53 | [Mutex] isItemNotified: received:node:91ce4650-aa5a-4d0e-80e6-5613a65d5779:localhost:node-06ecf648-d765-436c-a3de-c0a61b7be047:Node 06ecf648-d765-436c-a3de-c0a61b7be047 :: true |
deleteNodes | 1.031s |
2022-05-10 22:49:57 |
2022-05-10 22:49:57 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-05-10 22:49:57 | ------------------------------------ 2022-05-10 22:49:57 | on localhost executing action delete-node with content type application/json and payload: { "node": "node-06ecf648-d765-436c-a3de-c0a61b7be047" } 2022-05-10 22:49:57 | from localhost for action delete-node got result code 200 and payload { "Note": "Operation successful" } 2022-05-10 22:49:58 | [Mutex] waiting for: [received:nodes:63764cc3-09e3-4158-b9d3-3c583d7851ac:localhost] 2022-05-10 22:49:58 | [Mutex] received everything. 2022-05-10 22:49:58 | [Mutex] isItemNotified: received:node:63764cc3-09e3-4158-b9d3-3c583d7851ac:localhost:node-06ecf648-d765-436c-a3de-c0a61b7be047:Node 06ecf648-d765-436c-a3de-c0a61b7be047 :: false |
deleteSubnodes | 1.024s |
2022-05-10 22:49:56 |
2022-05-10 22:49:56 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-05-10 22:49:56 | ------------------------------------ 2022-05-10 22:49:56 | on localhost executing action delete-node with content type application/json and payload: { "node": "node-8b590c3e-180c-440f-8dc5-4a1c6bdad090" } 2022-05-10 22:49:56 | from localhost for action delete-node got result code 200 and payload { "Note": "Operation successful" } 2022-05-10 22:49:57 | [Mutex] waiting for: [received:nodes:80f31197-0d55-4842-960b-3c8362a51fb5:localhost] 2022-05-10 22:49:57 | [Mutex] received everything. 2022-05-10 22:49:57 | [Mutex] isItemNotified: received:node:80f31197-0d55-4842-960b-3c8362a51fb5:localhost:node-8b590c3e-180c-440f-8dc5-4a1c6bdad090:Node 8b590c3e-180c-440f-8dc5-4a1c6bdad090 :: false 2022-05-10 22:49:57 | [Mutex] waiting for: [received:nodes:b55c4c9c-f279-43b9-a527-b349025c5391:localhost] 2022-05-10 22:49:57 | [Mutex] received everything. 2022-05-10 22:49:57 | [Mutex] isItemNotified: received:node:b55c4c9c-f279-43b9-a527-b349025c5391:localhost:node-8b590c3e-180c-440f-8dc5-4a1c6bdad090:Node 8b590c3e-180c-440f-8dc5-4a1c6bdad090 :: false |
publishItemsToNodes | 0.072s |
2022-05-10 22:49:55 |
2022-05-10 22:49:55 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-05-10 22:49:55 | ------------------------------------ 2022-05-10 22:49:55 | on localhost executing action publish-item with content type application/json and payload: { "node": "node-8b590c3e-180c-440f-8dc5-4a1c6bdad090", "entry": "<test>item-51d89cc3-9b33-48e0-a231-7dd6949c0402</test>", "item-id": "item-51d89cc3-9b33-48e0-a231-7dd6949c0402" } 2022-05-10 22:49:55 | from localhost for action publish-item got result code 200 and payload { "Note": "Operation successful", "item-id": "item-51d89cc3-9b33-48e0-a231-7dd6949c0402" } 2022-05-10 22:49:55 | [Mutex] waiting for: [published:item:notifieditem-51d89cc3-9b33-48e0-a231-7dd6949c0402:admin@test-domain.com] 2022-05-10 22:49:55 | [Mutex] received everything. 2022-05-10 22:49:55 | [Mutex] isItemNotified: published:item:notifieditem-51d89cc3-9b33-48e0-a231-7dd6949c0402:admin@test-domain.com :: true |
retractItemsFromNodes | 0.091s |
2022-05-10 22:49:55 |
2022-05-10 22:49:55 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-05-10 22:49:55 | ------------------------------------ 2022-05-10 22:49:55 | on localhost executing action delete-item with content type application/json and payload: { "node": "node-8b590c3e-180c-440f-8dc5-4a1c6bdad090", "item-id": "item-51d89cc3-9b33-48e0-a231-7dd6949c0402" } 2022-05-10 22:49:55 | from localhost for action delete-item got result code 200 and payload { "Note": "Operation successful", "item-id": "item-51d89cc3-9b33-48e0-a231-7dd6949c0402" } 2022-05-10 22:49:55 | [Mutex] received everything. 2022-05-10 22:49:55 | [Mutex] isItemNotified: retracted:item:notifieditem-51d89cc3-9b33-48e0-a231-7dd6949c0402:admin@test-domain.com :: true |
retrieveItemsFromNodes | 0.041s |
2022-05-10 22:49:55 |
2022-05-10 22:49:55 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-05-10 22:49:55 | ------------------------------------ 2022-05-10 22:49:55 | on localhost executing action retrieve-item with content type application/json and payload: { "node": "node-8b590c3e-180c-440f-8dc5-4a1c6bdad090", "item-id": "item-51d89cc3-9b33-48e0-a231-7dd6949c0402" } 2022-05-10 22:49:55 | from localhost for action retrieve-item got result code 200 and payload { "title": "Retrive PubSub node item", "node": "node-8b590c3e-180c-440f-8dc5-4a1c6bdad090", "item-id": "item-51d89cc3-9b33-48e0-a231-7dd6949c0402", "item": [ "<item id=\"item-51d89cc3-9b33-48e0-a231-7dd6949c0402\"><test>item-51d89cc3-9b33-48e0-a231-7dd6949c0402</test></item>" ] } 2022-05-10 22:49:55 | [Mutex] notify: [retrieved:item:item-51d89cc3-9b33-48e0-a231-7dd6949c0402:payload-matches:true:localhost] 2022-05-10 22:49:55 | [Mutex] received everything. 2022-05-10 22:49:55 | [Mutex] isItemNotified: retrieved:item:item-51d89cc3-9b33-48e0-a231-7dd6949c0402:payload-matches:true:localhost :: true |
retrieveUserSubscriptions | 0.063s |
2022-05-10 22:49:55 |
2022-05-10 22:49:55 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-05-10 22:49:55 | ------------------------------------ 2022-05-10 22:49:55 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload: { "jid": "admin@test-domain.com" } 2022-05-10 22:49:55 | from localhost for action retrieve-user-subscriptions got result code 200 and payload { "nodes": [ "node-8b590c3e-180c-440f-8dc5-4a1c6bdad090", "test", "node-06ecf648-d765-436c-a3de-c0a61b7be047" ] } |
retrieveUserSubscriptionsWithRegex | 0.047s |
2022-05-10 22:49:55 |
2022-05-10 22:49:55 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-05-10 22:49:55 | ------------------------------------ 2022-05-10 22:49:55 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload: { "jid": "admin@test-domain.com", "node-pattern": "(?!node-8b590c3e-180c-440f-8dc5-4a1c6bdad090)" } 2022-05-10 22:49:55 | from localhost for action retrieve-user-subscriptions got result code 200 and payload { "nodes": [ ] } |
subscribeNodes | 1.010s |
2022-05-10 22:49:54 |
2022-05-10 22:49:54 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-05-10 22:49:54 | ------------------------------------ 2022-05-10 22:49:54 | on localhost executing action subscribe-node with content type application/json and payload: { "node": "node-8b590c3e-180c-440f-8dc5-4a1c6bdad090", "jids": [ "admin@test-domain.com" ] } 2022-05-10 22:49:54 | from localhost for action subscribe-node got result code 200 and payload { "Note": "Operation successful" } |
unsubscribeNodes | 1.067s |
2022-05-10 22:49:55 |
2022-05-10 22:49:55 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-05-10 22:49:55 | ------------------------------------ 2022-05-10 22:49:55 | on localhost executing action unsubscribe-node with content type application/json and payload: { "node": "node-8b590c3e-180c-440f-8dc5-4a1c6bdad090", "jids": [ "admin@test-domain.com" ] } 2022-05-10 22:49:55 | from localhost for action unsubscribe-node got result code 200 and payload { "Note": "Operation successful" } |