Test duration : 8.571s
Passed Tests | ||
---|---|---|
tigase.tests.pubsub.TestRestApiUsingJSON | ||
configureNodes | 1.103s |
2023-05-24 23:00:53 |
2023-05-24 23:00:53 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2023-05-24 23:00:53 | ------------------------------------ 2023-05-24 23:00:53 | [Mutex] waiting for: [configured:node:node-82fa8f84-7844-41c4-8605-3213b589d471:node-42bfe268-a98e-4ccf-ab33-f5b150b14a4a] 2023-05-24 23:00:53 | [Mutex] received everything. 2023-05-24 23:00:53 | [Mutex] isItemNotified: configured:node:node-82fa8f84-7844-41c4-8605-3213b589d471:node-42bfe268-a98e-4ccf-ab33-f5b150b14a4a :: true 2023-05-24 23:00:54 | [Mutex] waiting for: [received:nodes:ec55ec67-d845-4e9a-bb9a-7faa27417f30:localhost] 2023-05-24 23:00:54 | [Mutex] received everything. 2023-05-24 23:00:54 | [Mutex] isItemNotified: received:node:ec55ec67-d845-4e9a-bb9a-7faa27417f30:localhost:node-82fa8f84-7844-41c4-8605-3213b589d471:Node 82fa8f84-7844-41c4-8605-3213b589d471 :: true 2023-05-24 23:00:54 | [Mutex] waiting for: [received:nodes:53de80c9-66c3-452c-aeed-14ee8e1db70f:localhost] 2023-05-24 23:00:54 | [Mutex] received everything. 2023-05-24 23:00:54 | [Mutex] isItemNotified: received:node:53de80c9-66c3-452c-aeed-14ee8e1db70f:localhost:node-82fa8f84-7844-41c4-8605-3213b589d471:Node 82fa8f84-7844-41c4-8605-3213b589d471 :: false |
createNodes | 1.612s |
2023-05-24 23:00:50 |
2023-05-24 23:00:50 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2023-05-24 23:00:50 | ------------------------------------ 2023-05-24 23:00: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-82fa8f84-7844-41c4-8605-3213b589d471", "pubsub#title": "Node 82fa8f84-7844-41c4-8605-3213b589d471" } 2023-05-24 23:00:51 | from localhost for action create-node got result code 200 and payload { "Note": "Operation successful" } 2023-05-24 23:00:52 | [Mutex] waiting for: [received:nodes:579dc444-1c90-4314-ac37-2d28463cf262:localhost] 2023-05-24 23:00:52 | [Mutex] waiting for: [received:nodes:579dc444-1c90-4314-ac37-2d28463cf262:localhost] 2023-05-24 23:00:52 | [Mutex] waiting for: [received:nodes:579dc444-1c90-4314-ac37-2d28463cf262:localhost] 2023-05-24 23:00:52 | [Mutex] waiting for: [received:nodes:579dc444-1c90-4314-ac37-2d28463cf262:localhost] 2023-05-24 23:00:52 | [Mutex] received everything. 2023-05-24 23:00:52 | [Mutex] isItemNotified: received:node:579dc444-1c90-4314-ac37-2d28463cf262:localhost:node-82fa8f84-7844-41c4-8605-3213b589d471:Node 82fa8f84-7844-41c4-8605-3213b589d471 :: true |
createSubnodes | 1.018s |
2023-05-24 23:00:52 |
2023-05-24 23:00:52 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2023-05-24 23:00:52 | ------------------------------------ 2023-05-24 23:00: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-42bfe268-a98e-4ccf-ab33-f5b150b14a4a", "pubsub#title": "Node 42bfe268-a98e-4ccf-ab33-f5b150b14a4a" } 2023-05-24 23:00:52 | from localhost for action create-node got result code 200 and payload { "Note": "Operation successful" } 2023-05-24 23:00:53 | [Mutex] waiting for: [received:nodes:1769360f-15e8-4695-9232-0dbb9f445958:localhost] 2023-05-24 23:00:53 | [Mutex] received everything. 2023-05-24 23:00:53 | [Mutex] isItemNotified: received:node:1769360f-15e8-4695-9232-0dbb9f445958:localhost:node-42bfe268-a98e-4ccf-ab33-f5b150b14a4a:Node 42bfe268-a98e-4ccf-ab33-f5b150b14a4a :: true |
deleteNodes | 1.017s |
2023-05-24 23:00:57 |
2023-05-24 23:00:57 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2023-05-24 23:00:57 | ------------------------------------ 2023-05-24 23:00:57 | on localhost executing action delete-node with content type application/json and payload: { "node": "node-42bfe268-a98e-4ccf-ab33-f5b150b14a4a" } 2023-05-24 23:00:57 | from localhost for action delete-node got result code 200 and payload { "Note": "Operation successful" } 2023-05-24 23:00:58 | [Mutex] waiting for: [received:nodes:363d3fa8-327d-447f-93ef-3038f8855022:localhost] 2023-05-24 23:00:58 | [Mutex] received everything. 2023-05-24 23:00:58 | [Mutex] isItemNotified: received:node:363d3fa8-327d-447f-93ef-3038f8855022:localhost:node-42bfe268-a98e-4ccf-ab33-f5b150b14a4a:Node 42bfe268-a98e-4ccf-ab33-f5b150b14a4a :: false |
deleteSubnodes | 1.024s |
2023-05-24 23:00:56 |
2023-05-24 23:00:56 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2023-05-24 23:00:56 | ------------------------------------ 2023-05-24 23:00:56 | on localhost executing action delete-node with content type application/json and payload: { "node": "node-82fa8f84-7844-41c4-8605-3213b589d471" } 2023-05-24 23:00:56 | from localhost for action delete-node got result code 200 and payload { "Note": "Operation successful" } 2023-05-24 23:00:57 | [Mutex] waiting for: [received:nodes:d836e71c-1452-4683-b69b-2a710182e323:localhost] 2023-05-24 23:00:57 | [Mutex] waiting for: [received:nodes:d836e71c-1452-4683-b69b-2a710182e323:localhost] 2023-05-24 23:00:57 | [Mutex] waiting for: [received:nodes:d836e71c-1452-4683-b69b-2a710182e323:localhost] 2023-05-24 23:00:57 | [Mutex] waiting for: [received:nodes:d836e71c-1452-4683-b69b-2a710182e323:localhost] 2023-05-24 23:00:57 | [Mutex] received everything. 2023-05-24 23:00:57 | [Mutex] isItemNotified: received:node:d836e71c-1452-4683-b69b-2a710182e323:localhost:node-82fa8f84-7844-41c4-8605-3213b589d471:Node 82fa8f84-7844-41c4-8605-3213b589d471 :: false 2023-05-24 23:00:57 | [Mutex] waiting for: [received:nodes:434852d0-0856-4039-b4cc-5294ddf2917a:localhost] 2023-05-24 23:00:57 | [Mutex] received everything. 2023-05-24 23:00:57 | [Mutex] isItemNotified: received:node:434852d0-0856-4039-b4cc-5294ddf2917a:localhost:node-82fa8f84-7844-41c4-8605-3213b589d471:Node 82fa8f84-7844-41c4-8605-3213b589d471 :: false |
publishItemsToNodes | 0.043s |
2023-05-24 23:00:55 |
2023-05-24 23:00:55 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2023-05-24 23:00:55 | ------------------------------------ 2023-05-24 23:00:55 | on localhost executing action publish-item with content type application/json and payload: { "node": "node-82fa8f84-7844-41c4-8605-3213b589d471", "entry": "<test>item-33b94663-fdfd-4c18-8fc8-97b8dbc68a14</test>", "item-id": "item-33b94663-fdfd-4c18-8fc8-97b8dbc68a14" } 2023-05-24 23:00:55 | from localhost for action publish-item got result code 200 and payload { "Note": "Operation successful", "item-id": "item-33b94663-fdfd-4c18-8fc8-97b8dbc68a14" } 2023-05-24 23:00:55 | [Mutex] waiting for: [published:item:notifieditem-33b94663-fdfd-4c18-8fc8-97b8dbc68a14:admin@test-domain.com] 2023-05-24 23:00:55 | [Mutex] received everything. 2023-05-24 23:00:55 | [Mutex] isItemNotified: published:item:notifieditem-33b94663-fdfd-4c18-8fc8-97b8dbc68a14:admin@test-domain.com :: true |
retractItemsFromNodes | 0.057s |
2023-05-24 23:00:55 |
2023-05-24 23:00:55 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2023-05-24 23:00:55 | ------------------------------------ 2023-05-24 23:00:55 | on localhost executing action delete-item with content type application/json and payload: { "node": "node-82fa8f84-7844-41c4-8605-3213b589d471", "item-id": "item-33b94663-fdfd-4c18-8fc8-97b8dbc68a14" } 2023-05-24 23:00:55 | from localhost for action delete-item got result code 200 and payload { "Note": "Operation successful", "item-id": "item-33b94663-fdfd-4c18-8fc8-97b8dbc68a14" } 2023-05-24 23:00:55 | [Mutex] waiting for: [retracted:item:notifieditem-33b94663-fdfd-4c18-8fc8-97b8dbc68a14:admin@test-domain.com] 2023-05-24 23:00:55 | [Mutex] received everything. 2023-05-24 23:00:55 | [Mutex] isItemNotified: retracted:item:notifieditem-33b94663-fdfd-4c18-8fc8-97b8dbc68a14:admin@test-domain.com :: true |
retrieveItemsFromNodes | 0.054s |
2023-05-24 23:00:55 |
2023-05-24 23:00:55 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2023-05-24 23:00:55 | ------------------------------------ 2023-05-24 23:00:55 | on localhost executing action retrieve-item with content type application/json and payload: { "node": "node-82fa8f84-7844-41c4-8605-3213b589d471", "item-id": "item-33b94663-fdfd-4c18-8fc8-97b8dbc68a14" } 2023-05-24 23:00:55 | from localhost for action retrieve-item got result code 200 and payload { "title": "Retrive PubSub node item", "node": "node-82fa8f84-7844-41c4-8605-3213b589d471", "item-id": "item-33b94663-fdfd-4c18-8fc8-97b8dbc68a14", "item": [ "<item id=\"item-33b94663-fdfd-4c18-8fc8-97b8dbc68a14\"><test>item-33b94663-fdfd-4c18-8fc8-97b8dbc68a14</test></item>" ] } 2023-05-24 23:00:55 | [Mutex] notify: [retrieved:item:item-33b94663-fdfd-4c18-8fc8-97b8dbc68a14:payload-matches:true:localhost] 2023-05-24 23:00:55 | [Mutex] received everything. 2023-05-24 23:00:55 | [Mutex] isItemNotified: retrieved:item:item-33b94663-fdfd-4c18-8fc8-97b8dbc68a14:payload-matches:true:localhost :: true |
retrieveUserSubscriptions | 0.087s |
2023-05-24 23:00:55 |
2023-05-24 23:00:55 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2023-05-24 23:00:55 | ------------------------------------ 2023-05-24 23:00:55 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload: { "jid": "admin@test-domain.com" } 2023-05-24 23:00:55 | from localhost for action retrieve-user-subscriptions got result code 200 and payload { "nodes": [ "test", "node-42bfe268-a98e-4ccf-ab33-f5b150b14a4a", "node-82fa8f84-7844-41c4-8605-3213b589d471" ] } |
retrieveUserSubscriptionsWithRegex | 0.047s |
2023-05-24 23:00:55 |
2023-05-24 23:00:55 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2023-05-24 23:00:55 | ------------------------------------ 2023-05-24 23:00:55 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload: { "jid": "admin@test-domain.com", "node-pattern": "(?!node-82fa8f84-7844-41c4-8605-3213b589d471)" } 2023-05-24 23:00:55 | from localhost for action retrieve-user-subscriptions got result code 200 and payload { "nodes": [ ] } |
subscribeNodes | 1.011s |
2023-05-24 23:00:54 |
2023-05-24 23:00:54 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2023-05-24 23:00:54 | ------------------------------------ 2023-05-24 23:00:54 | on localhost executing action subscribe-node with content type application/json and payload: { "node": "node-82fa8f84-7844-41c4-8605-3213b589d471", "jids": [ "admin@test-domain.com" ] } 2023-05-24 23:00:54 | from localhost for action subscribe-node got result code 200 and payload { "Note": "Operation successful" } |
unsubscribeNodes | 1.048s |
2023-05-24 23:00:55 |
2023-05-24 23:00:55 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2023-05-24 23:00:55 | ------------------------------------ 2023-05-24 23:00:55 | on localhost executing action unsubscribe-node with content type application/json and payload: { "node": "node-82fa8f84-7844-41c4-8605-3213b589d471", "jids": [ "admin@test-domain.com" ] } 2023-05-24 23:00:55 | from localhost for action unsubscribe-node got result code 200 and payload { "Note": "Operation successful" } |