Test duration : 8.616s
Passed Tests | ||
---|---|---|
tigase.tests.pubsub.TestRestApiUsingJSON | ||
configureNodes | 1.091s |
2023-03-17 22:29:57 |
2023-03-17 22:29:57 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2023-03-17 22:29:57 | ------------------------------------ 2023-03-17 22:29:57 | [Mutex] waiting for: [configured:node:node-3d6c504d-b6de-4cd4-a54d-37ad223eb96c:node-d266a335-2aca-4114-b3dd-d03bdd4e4faf] 2023-03-17 22:29:57 | [Mutex] received everything. 2023-03-17 22:29:57 | [Mutex] isItemNotified: configured:node:node-3d6c504d-b6de-4cd4-a54d-37ad223eb96c:node-d266a335-2aca-4114-b3dd-d03bdd4e4faf :: true 2023-03-17 22:29:58 | [Mutex] waiting for: [received:nodes:685e3b92-f41f-4264-81c3-ae95a01c1993:localhost] 2023-03-17 22:29:58 | [Mutex] received everything. 2023-03-17 22:29:58 | [Mutex] isItemNotified: received:node:685e3b92-f41f-4264-81c3-ae95a01c1993:localhost:node-3d6c504d-b6de-4cd4-a54d-37ad223eb96c:Node 3d6c504d-b6de-4cd4-a54d-37ad223eb96c :: true 2023-03-17 22:29:58 | [Mutex] waiting for: [received:nodes:07921ec4-f375-4c24-b89b-c6172a347ab6:localhost] 2023-03-17 22:29:58 | [Mutex] waiting for: [received:nodes:07921ec4-f375-4c24-b89b-c6172a347ab6:localhost] 2023-03-17 22:29:58 | [Mutex] waiting for: [received:nodes:07921ec4-f375-4c24-b89b-c6172a347ab6:localhost] 2023-03-17 22:29:58 | [Mutex] waiting for: [received:nodes:07921ec4-f375-4c24-b89b-c6172a347ab6:localhost] 2023-03-17 22:29:58 | [Mutex] received everything. 2023-03-17 22:29:58 | [Mutex] isItemNotified: received:node:07921ec4-f375-4c24-b89b-c6172a347ab6:localhost:node-3d6c504d-b6de-4cd4-a54d-37ad223eb96c:Node 3d6c504d-b6de-4cd4-a54d-37ad223eb96c :: false |
createNodes | 1.544s |
2023-03-17 22:29:54 |
2023-03-17 22:29:54 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2023-03-17 22:29:54 | ------------------------------------ 2023-03-17 22:29:54 | on localhost executing action create-node with content type application/json and payload: { "owner": "admin@test-domain.com", "pubsub#node_type": "leaf", "node": "node-3d6c504d-b6de-4cd4-a54d-37ad223eb96c", "pubsub#title": "Node 3d6c504d-b6de-4cd4-a54d-37ad223eb96c" } 2023-03-17 22:29:55 | from localhost for action create-node got result code 200 and payload { "Note": "Operation successful" } 2023-03-17 22:29:56 | [Mutex] waiting for: [received:nodes:b9a6f4d0-4e1e-4fda-be54-f11bcf792944:localhost] 2023-03-17 22:29:56 | [Mutex] waiting for: [received:nodes:b9a6f4d0-4e1e-4fda-be54-f11bcf792944:localhost] 2023-03-17 22:29:56 | [Mutex] received everything. 2023-03-17 22:29:56 | [Mutex] isItemNotified: received:node:b9a6f4d0-4e1e-4fda-be54-f11bcf792944:localhost:node-3d6c504d-b6de-4cd4-a54d-37ad223eb96c:Node 3d6c504d-b6de-4cd4-a54d-37ad223eb96c :: true |
createSubnodes | 1.025s |
2023-03-17 22:29:56 |
2023-03-17 22:29:56 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2023-03-17 22:29:56 | ------------------------------------ 2023-03-17 22:29:56 | on localhost executing action create-node with content type application/json and payload: { "owner": "admin@test-domain.com", "pubsub#node_type": "collection", "node": "node-d266a335-2aca-4114-b3dd-d03bdd4e4faf", "pubsub#title": "Node d266a335-2aca-4114-b3dd-d03bdd4e4faf" } 2023-03-17 22:29:56 | from localhost for action create-node got result code 200 and payload { "Note": "Operation successful" } 2023-03-17 22:29:57 | [Mutex] waiting for: [received:nodes:0e355699-769a-48f4-b2eb-b3c1fe268045:localhost] 2023-03-17 22:29:57 | [Mutex] waiting for: [received:nodes:0e355699-769a-48f4-b2eb-b3c1fe268045:localhost] 2023-03-17 22:29:57 | [Mutex] waiting for: [received:nodes:0e355699-769a-48f4-b2eb-b3c1fe268045:localhost] 2023-03-17 22:29:57 | [Mutex] waiting for: [received:nodes:0e355699-769a-48f4-b2eb-b3c1fe268045:localhost] 2023-03-17 22:29:57 | [Mutex] waiting for: [received:nodes:0e355699-769a-48f4-b2eb-b3c1fe268045:localhost] 2023-03-17 22:29:57 | [Mutex] received everything. 2023-03-17 22:29:57 | [Mutex] isItemNotified: received:node:0e355699-769a-48f4-b2eb-b3c1fe268045:localhost:node-d266a335-2aca-4114-b3dd-d03bdd4e4faf:Node d266a335-2aca-4114-b3dd-d03bdd4e4faf :: true |
deleteNodes | 1.030s |
2023-03-17 22:30:01 |
2023-03-17 22:30:01 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2023-03-17 22:30:01 | ------------------------------------ 2023-03-17 22:30:01 | on localhost executing action delete-node with content type application/json and payload: { "node": "node-d266a335-2aca-4114-b3dd-d03bdd4e4faf" } 2023-03-17 22:30:01 | from localhost for action delete-node got result code 200 and payload { "Note": "Operation successful" } 2023-03-17 22:30:02 | [Mutex] waiting for: [received:nodes:81637c02-52f3-42db-bf7e-2e6b1d61fff7:localhost] 2023-03-17 22:30:02 | [Mutex] waiting for: [received:nodes:81637c02-52f3-42db-bf7e-2e6b1d61fff7:localhost] 2023-03-17 22:30:02 | [Mutex] waiting for: [received:nodes:81637c02-52f3-42db-bf7e-2e6b1d61fff7:localhost] 2023-03-17 22:30:02 | [Mutex] received everything. 2023-03-17 22:30:02 | [Mutex] isItemNotified: received:node:81637c02-52f3-42db-bf7e-2e6b1d61fff7:localhost:node-d266a335-2aca-4114-b3dd-d03bdd4e4faf:Node d266a335-2aca-4114-b3dd-d03bdd4e4faf :: false |
deleteSubnodes | 1.069s |
2023-03-17 22:30:00 |
2023-03-17 22:30:00 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2023-03-17 22:30:00 | ------------------------------------ 2023-03-17 22:30:00 | on localhost executing action delete-node with content type application/json and payload: { "node": "node-3d6c504d-b6de-4cd4-a54d-37ad223eb96c" } 2023-03-17 22:30:00 | from localhost for action delete-node got result code 200 and payload { "Note": "Operation successful" } 2023-03-17 22:30:01 | [Mutex] waiting for: [received:nodes:f8dcd35c-aa06-498e-92bf-67538d32ea76:localhost] 2023-03-17 22:30:01 | [Mutex] received everything. 2023-03-17 22:30:01 | [Mutex] isItemNotified: received:node:f8dcd35c-aa06-498e-92bf-67538d32ea76:localhost:node-3d6c504d-b6de-4cd4-a54d-37ad223eb96c:Node 3d6c504d-b6de-4cd4-a54d-37ad223eb96c :: false 2023-03-17 22:30:01 | [Mutex] waiting for: [received:nodes:7d178c92-d7ce-44ed-aad1-b21c6cd699c7:localhost] 2023-03-17 22:30:01 | [Mutex] received everything. 2023-03-17 22:30:01 | [Mutex] isItemNotified: received:node:7d178c92-d7ce-44ed-aad1-b21c6cd699c7:localhost:node-3d6c504d-b6de-4cd4-a54d-37ad223eb96c:Node 3d6c504d-b6de-4cd4-a54d-37ad223eb96c :: false |
publishItemsToNodes | 0.066s |
2023-03-17 22:29:59 |
2023-03-17 22:29:59 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2023-03-17 22:29:59 | ------------------------------------ 2023-03-17 22:29:59 | on localhost executing action publish-item with content type application/json and payload: { "node": "node-3d6c504d-b6de-4cd4-a54d-37ad223eb96c", "entry": "<test>item-757a9a54-f486-4a32-aebe-b18470ad16e1</test>", "item-id": "item-757a9a54-f486-4a32-aebe-b18470ad16e1" } 2023-03-17 22:29:59 | from localhost for action publish-item got result code 200 and payload { "Note": "Operation successful", "item-id": "item-757a9a54-f486-4a32-aebe-b18470ad16e1" } 2023-03-17 22:29:59 | [Mutex] waiting for: [published:item:notifieditem-757a9a54-f486-4a32-aebe-b18470ad16e1:admin@test-domain.com] 2023-03-17 22:29:59 | [Mutex] received everything. 2023-03-17 22:29:59 | [Mutex] isItemNotified: published:item:notifieditem-757a9a54-f486-4a32-aebe-b18470ad16e1:admin@test-domain.com :: true |
retractItemsFromNodes | 0.063s |
2023-03-17 22:29:59 |
2023-03-17 22:29:59 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2023-03-17 22:29:59 | ------------------------------------ 2023-03-17 22:29:59 | on localhost executing action delete-item with content type application/json and payload: { "node": "node-3d6c504d-b6de-4cd4-a54d-37ad223eb96c", "item-id": "item-757a9a54-f486-4a32-aebe-b18470ad16e1" } 2023-03-17 22:29:59 | from localhost for action delete-item got result code 200 and payload { "Note": "Operation successful", "item-id": "item-757a9a54-f486-4a32-aebe-b18470ad16e1" } 2023-03-17 22:29:59 | [Mutex] waiting for: [retracted:item:notifieditem-757a9a54-f486-4a32-aebe-b18470ad16e1:admin@test-domain.com] 2023-03-17 22:29:59 | [Mutex] received everything. 2023-03-17 22:29:59 | [Mutex] isItemNotified: retracted:item:notifieditem-757a9a54-f486-4a32-aebe-b18470ad16e1:admin@test-domain.com :: true |
retrieveItemsFromNodes | 0.023s |
2023-03-17 22:29:59 |
2023-03-17 22:29:59 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2023-03-17 22:29:59 | ------------------------------------ 2023-03-17 22:29:59 | on localhost executing action retrieve-item with content type application/json and payload: { "node": "node-3d6c504d-b6de-4cd4-a54d-37ad223eb96c", "item-id": "item-757a9a54-f486-4a32-aebe-b18470ad16e1" } 2023-03-17 22:29:59 | from localhost for action retrieve-item got result code 200 and payload { "title": "Retrive PubSub node item", "node": "node-3d6c504d-b6de-4cd4-a54d-37ad223eb96c", "item-id": "item-757a9a54-f486-4a32-aebe-b18470ad16e1", "item": [ "<item id=\"item-757a9a54-f486-4a32-aebe-b18470ad16e1\"><test>item-757a9a54-f486-4a32-aebe-b18470ad16e1</test></item>" ] } 2023-03-17 22:29:59 | [Mutex] notify: [retrieved:item:item-757a9a54-f486-4a32-aebe-b18470ad16e1:payload-matches:true:localhost] 2023-03-17 22:29:59 | [Mutex] received everything. 2023-03-17 22:29:59 | [Mutex] isItemNotified: retrieved:item:item-757a9a54-f486-4a32-aebe-b18470ad16e1:payload-matches:true:localhost :: true |
retrieveUserSubscriptions | 0.051s |
2023-03-17 22:29:59 |
2023-03-17 22:29:59 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2023-03-17 22:29:59 | ------------------------------------ 2023-03-17 22:29:59 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload: { "jid": "admin@test-domain.com" } 2023-03-17 22:29:59 | from localhost for action retrieve-user-subscriptions got result code 200 and payload { "nodes": [ "test", "node-d266a335-2aca-4114-b3dd-d03bdd4e4faf", "node-3d6c504d-b6de-4cd4-a54d-37ad223eb96c" ] } |
retrieveUserSubscriptionsWithRegex | 0.047s |
2023-03-17 22:29:59 |
2023-03-17 22:29:59 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2023-03-17 22:29:59 | ------------------------------------ 2023-03-17 22:29:59 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload: { "jid": "admin@test-domain.com", "node-pattern": "(?!node-3d6c504d-b6de-4cd4-a54d-37ad223eb96c)" } 2023-03-17 22:29:59 | from localhost for action retrieve-user-subscriptions got result code 200 and payload { "nodes": [ ] } |
subscribeNodes | 1.012s |
2023-03-17 22:29:58 |
2023-03-17 22:29:58 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2023-03-17 22:29:58 | ------------------------------------ 2023-03-17 22:29:58 | on localhost executing action subscribe-node with content type application/json and payload: { "node": "node-3d6c504d-b6de-4cd4-a54d-37ad223eb96c", "jids": [ "admin@test-domain.com" ] } 2023-03-17 22:29:58 | from localhost for action subscribe-node got result code 200 and payload { "Note": "Operation successful" } |
unsubscribeNodes | 1.076s |
2023-03-17 22:29:59 |
2023-03-17 22:29:59 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2023-03-17 22:29:59 | ------------------------------------ 2023-03-17 22:29:59 | on localhost executing action unsubscribe-node with content type application/json and payload: { "node": "node-3d6c504d-b6de-4cd4-a54d-37ad223eb96c", "jids": [ "admin@test-domain.com" ] } 2023-03-17 22:29:59 | from localhost for action unsubscribe-node got result code 200 and payload { "Note": "Operation successful" } |