Test duration : 9.019s
Passed Tests | ||
---|---|---|
tigase.tests.pubsub.TestRestApiUsingJSON | ||
configureNodes | 1.095s |
2022-02-23 22:03:50 |
2022-02-23 22:03:50 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-02-23 22:03:50 | ------------------------------------ 2022-02-23 22:03:50 | [Mutex] waiting for: [configured:node:node-5b7f58a2-6372-499e-ba56-7adabdc0e716:node-edcdb967-304d-476a-a679-a446e0204dd8] 2022-02-23 22:03:50 | [Mutex] received everything. 2022-02-23 22:03:50 | [Mutex] isItemNotified: configured:node:node-5b7f58a2-6372-499e-ba56-7adabdc0e716:node-edcdb967-304d-476a-a679-a446e0204dd8 :: true 2022-02-23 22:03:51 | [Mutex] waiting for: [received:nodes:cce48af9-e3ed-4a81-ab92-d32a6bdc1a90:localhost] 2022-02-23 22:03:51 | [Mutex] received everything. 2022-02-23 22:03:51 | [Mutex] isItemNotified: received:node:cce48af9-e3ed-4a81-ab92-d32a6bdc1a90:localhost:node-5b7f58a2-6372-499e-ba56-7adabdc0e716:Node 5b7f58a2-6372-499e-ba56-7adabdc0e716 :: true 2022-02-23 22:03:51 | [Mutex] waiting for: [received:nodes:239b9a25-a97d-47c4-a4fc-7a1493e83912:localhost] 2022-02-23 22:03:51 | [Mutex] waiting for: [received:nodes:239b9a25-a97d-47c4-a4fc-7a1493e83912:localhost] 2022-02-23 22:03:51 | [Mutex] received everything. 2022-02-23 22:03:51 | [Mutex] isItemNotified: received:node:239b9a25-a97d-47c4-a4fc-7a1493e83912:localhost:node-5b7f58a2-6372-499e-ba56-7adabdc0e716:Node 5b7f58a2-6372-499e-ba56-7adabdc0e716 :: false |
createNodes | 1.694s |
2022-02-23 22:03:47 |
2022-02-23 22:03:47 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-02-23 22:03:47 | ------------------------------------ 2022-02-23 22:03:48 | on localhost executing action create-node with content type application/json and payload: { "owner": "admin@test-domain.com", "pubsub#node_type": "leaf", "node": "node-5b7f58a2-6372-499e-ba56-7adabdc0e716", "pubsub#title": "Node 5b7f58a2-6372-499e-ba56-7adabdc0e716" } 2022-02-23 22:03:48 | from localhost for action create-node got result code 200 and payload { "Note": "Operation successful" } 2022-02-23 22:03:49 | [Mutex] waiting for: [received:nodes:667e17a5-aff2-4035-8b34-5ce393fc54f5:localhost] 2022-02-23 22:03:49 | [Mutex] waiting for: [received:nodes:667e17a5-aff2-4035-8b34-5ce393fc54f5:localhost] 2022-02-23 22:03:49 | [Mutex] received everything. 2022-02-23 22:03:49 | [Mutex] isItemNotified: received:node:667e17a5-aff2-4035-8b34-5ce393fc54f5:localhost:node-5b7f58a2-6372-499e-ba56-7adabdc0e716:Node 5b7f58a2-6372-499e-ba56-7adabdc0e716 :: true |
createSubnodes | 1.030s |
2022-02-23 22:03:49 |
2022-02-23 22:03:49 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-02-23 22:03:49 | ------------------------------------ 2022-02-23 22:03:49 | on localhost executing action create-node with content type application/json and payload: { "owner": "admin@test-domain.com", "pubsub#node_type": "collection", "node": "node-edcdb967-304d-476a-a679-a446e0204dd8", "pubsub#title": "Node edcdb967-304d-476a-a679-a446e0204dd8" } 2022-02-23 22:03:49 | from localhost for action create-node got result code 200 and payload { "Note": "Operation successful" } 2022-02-23 22:03:50 | [Mutex] waiting for: [received:nodes:72d125b7-b702-4d15-af89-d0ecf2b3006c:localhost] 2022-02-23 22:03:50 | [Mutex] received everything. 2022-02-23 22:03:50 | [Mutex] isItemNotified: received:node:72d125b7-b702-4d15-af89-d0ecf2b3006c:localhost:node-edcdb967-304d-476a-a679-a446e0204dd8:Node edcdb967-304d-476a-a679-a446e0204dd8 :: true |
deleteNodes | 1.057s |
2022-02-23 22:03:54 |
2022-02-23 22:03:54 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-02-23 22:03:54 | ------------------------------------ 2022-02-23 22:03:54 | on localhost executing action delete-node with content type application/json and payload: { "node": "node-edcdb967-304d-476a-a679-a446e0204dd8" } 2022-02-23 22:03:54 | from localhost for action delete-node got result code 200 and payload { "Note": "Operation successful" } 2022-02-23 22:03:55 | [Mutex] waiting for: [received:nodes:34b8ba98-1e53-4de6-b92b-a3c0f5764522:localhost] 2022-02-23 22:03:55 | [Mutex] waiting for: [received:nodes:34b8ba98-1e53-4de6-b92b-a3c0f5764522:localhost] 2022-02-23 22:03:55 | [Mutex] received everything. 2022-02-23 22:03:55 | [Mutex] isItemNotified: received:node:34b8ba98-1e53-4de6-b92b-a3c0f5764522:localhost:node-edcdb967-304d-476a-a679-a446e0204dd8:Node edcdb967-304d-476a-a679-a446e0204dd8 :: false |
deleteSubnodes | 1.027s |
2022-02-23 22:03:53 |
2022-02-23 22:03:53 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-02-23 22:03:53 | ------------------------------------ 2022-02-23 22:03:53 | on localhost executing action delete-node with content type application/json and payload: { "node": "node-5b7f58a2-6372-499e-ba56-7adabdc0e716" } 2022-02-23 22:03:53 | from localhost for action delete-node got result code 200 and payload { "Note": "Operation successful" } 2022-02-23 22:03:54 | [Mutex] waiting for: [received:nodes:42a98820-2d07-4e8a-b23a-b8d7be6f9085:localhost] 2022-02-23 22:03:54 | [Mutex] received everything. 2022-02-23 22:03:54 | [Mutex] isItemNotified: received:node:42a98820-2d07-4e8a-b23a-b8d7be6f9085:localhost:node-5b7f58a2-6372-499e-ba56-7adabdc0e716:Node 5b7f58a2-6372-499e-ba56-7adabdc0e716 :: false 2022-02-23 22:03:54 | [Mutex] waiting for: [received:nodes:df62b2b1-3d28-4489-954a-eec1261d490a:localhost] 2022-02-23 22:03:54 | [Mutex] received everything. 2022-02-23 22:03:54 | [Mutex] isItemNotified: received:node:df62b2b1-3d28-4489-954a-eec1261d490a:localhost:node-5b7f58a2-6372-499e-ba56-7adabdc0e716:Node 5b7f58a2-6372-499e-ba56-7adabdc0e716 :: false |
publishItemsToNodes | 0.063s |
2022-02-23 22:03:52 |
2022-02-23 22:03:52 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-02-23 22:03:52 | ------------------------------------ 2022-02-23 22:03:52 | on localhost executing action publish-item with content type application/json and payload: { "node": "node-5b7f58a2-6372-499e-ba56-7adabdc0e716", "entry": "<test>item-f386c55b-c32b-470d-af77-3ba430f08fb8</test>", "item-id": "item-f386c55b-c32b-470d-af77-3ba430f08fb8" } 2022-02-23 22:03:52 | from localhost for action publish-item got result code 200 and payload { "Note": "Operation successful", "item-id": "item-f386c55b-c32b-470d-af77-3ba430f08fb8" } 2022-02-23 22:03:52 | [Mutex] waiting for: [published:item:notifieditem-f386c55b-c32b-470d-af77-3ba430f08fb8:admin@test-domain.com] 2022-02-23 22:03:52 | [Mutex] received everything. 2022-02-23 22:03:52 | [Mutex] isItemNotified: published:item:notifieditem-f386c55b-c32b-470d-af77-3ba430f08fb8:admin@test-domain.com :: true |
retractItemsFromNodes | 0.067s |
2022-02-23 22:03:52 |
2022-02-23 22:03:52 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-02-23 22:03:52 | ------------------------------------ 2022-02-23 22:03:52 | on localhost executing action delete-item with content type application/json and payload: { "node": "node-5b7f58a2-6372-499e-ba56-7adabdc0e716", "item-id": "item-f386c55b-c32b-470d-af77-3ba430f08fb8" } 2022-02-23 22:03:52 | from localhost for action delete-item got result code 200 and payload { "Note": "Operation successful", "item-id": "item-f386c55b-c32b-470d-af77-3ba430f08fb8" } 2022-02-23 22:03:52 | [Mutex] received everything. 2022-02-23 22:03:52 | [Mutex] isItemNotified: retracted:item:notifieditem-f386c55b-c32b-470d-af77-3ba430f08fb8:admin@test-domain.com :: true |
retrieveItemsFromNodes | 0.063s |
2022-02-23 22:03:52 |
2022-02-23 22:03:52 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-02-23 22:03:52 | ------------------------------------ 2022-02-23 22:03:52 | on localhost executing action retrieve-item with content type application/json and payload: { "node": "node-5b7f58a2-6372-499e-ba56-7adabdc0e716", "item-id": "item-f386c55b-c32b-470d-af77-3ba430f08fb8" } 2022-02-23 22:03:52 | from localhost for action retrieve-item got result code 200 and payload { "title": "Retrive PubSub node item", "node": "node-5b7f58a2-6372-499e-ba56-7adabdc0e716", "item-id": "item-f386c55b-c32b-470d-af77-3ba430f08fb8", "item": [ "<item id=\"item-f386c55b-c32b-470d-af77-3ba430f08fb8\"><test>item-f386c55b-c32b-470d-af77-3ba430f08fb8</test></item>" ] } 2022-02-23 22:03:52 | [Mutex] notify: [retrieved:item:item-f386c55b-c32b-470d-af77-3ba430f08fb8:payload-matches:true:localhost] 2022-02-23 22:03:52 | [Mutex] received everything. 2022-02-23 22:03:52 | [Mutex] isItemNotified: retrieved:item:item-f386c55b-c32b-470d-af77-3ba430f08fb8:payload-matches:true:localhost :: true |
retrieveUserSubscriptions | 0.055s |
2022-02-23 22:03:52 |
2022-02-23 22:03:52 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-02-23 22:03:52 | ------------------------------------ 2022-02-23 22:03:52 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload: { "jid": "admin@test-domain.com" } 2022-02-23 22:03:52 | from localhost for action retrieve-user-subscriptions got result code 200 and payload { "nodes": [ "test", "node-5b7f58a2-6372-499e-ba56-7adabdc0e716", "node-edcdb967-304d-476a-a679-a446e0204dd8" ] } |
retrieveUserSubscriptionsWithRegex | 0.059s |
2022-02-23 22:03:52 |
2022-02-23 22:03:52 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-02-23 22:03:52 | ------------------------------------ 2022-02-23 22:03:52 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload: { "jid": "admin@test-domain.com", "node-pattern": "(?!node-5b7f58a2-6372-499e-ba56-7adabdc0e716)" } 2022-02-23 22:03:52 | from localhost for action retrieve-user-subscriptions got result code 200 and payload { "nodes": [ ] } |
subscribeNodes | 1.010s |
2022-02-23 22:03:51 |
2022-02-23 22:03:51 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-02-23 22:03:51 | ------------------------------------ 2022-02-23 22:03:51 | on localhost executing action subscribe-node with content type application/json and payload: { "node": "node-5b7f58a2-6372-499e-ba56-7adabdc0e716", "jids": [ "admin@test-domain.com" ] } 2022-02-23 22:03:51 | from localhost for action subscribe-node got result code 200 and payload { "Note": "Operation successful" } |
unsubscribeNodes | 1.087s |
2022-02-23 22:03:52 |
2022-02-23 22:03:52 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-02-23 22:03:52 | ------------------------------------ 2022-02-23 22:03:52 | on localhost executing action unsubscribe-node with content type application/json and payload: { "node": "node-5b7f58a2-6372-499e-ba56-7adabdc0e716", "jids": [ "admin@test-domain.com" ] } 2022-02-23 22:03:52 | from localhost for action unsubscribe-node got result code 200 and payload { "Note": "Operation successful" } |