Test duration : 8.738s
Passed Tests | ||
---|---|---|
tigase.tests.pubsub.TestRestApiUsingJSON | ||
configureNodes | 1.111s |
2022-06-10 22:41:02 |
2022-06-10 22:41:02 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-06-10 22:41:02 | ------------------------------------ 2022-06-10 22:41:02 | [Mutex] waiting for: [configured:node:node-92db293a-b626-4fa3-9f38-b4847874837b:node-4dc224fe-e571-440f-bd23-79efea29753b] 2022-06-10 22:41:02 | [Mutex] received everything. 2022-06-10 22:41:02 | [Mutex] isItemNotified: configured:node:node-92db293a-b626-4fa3-9f38-b4847874837b:node-4dc224fe-e571-440f-bd23-79efea29753b :: true 2022-06-10 22:41:03 | [Mutex] waiting for: [received:nodes:9b3b4861-cf83-49e0-9a93-5964b8bb3c1f:localhost] 2022-06-10 22:41:03 | [Mutex] received everything. 2022-06-10 22:41:03 | [Mutex] isItemNotified: received:node:9b3b4861-cf83-49e0-9a93-5964b8bb3c1f:localhost:node-92db293a-b626-4fa3-9f38-b4847874837b:Node 92db293a-b626-4fa3-9f38-b4847874837b :: true 2022-06-10 22:41:03 | [Mutex] waiting for: [received:nodes:51b03299-860a-448a-88cf-365518c7787f:localhost] 2022-06-10 22:41:03 | [Mutex] received everything. 2022-06-10 22:41:03 | [Mutex] isItemNotified: received:node:51b03299-860a-448a-88cf-365518c7787f:localhost:node-92db293a-b626-4fa3-9f38-b4847874837b:Node 92db293a-b626-4fa3-9f38-b4847874837b :: false |
createNodes | 1.635s |
2022-06-10 22:40:59 |
2022-06-10 22:40:59 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-06-10 22:40:59 | ------------------------------------ 2022-06-10 22:41:00 | on localhost executing action create-node with content type application/json and payload: { "owner": "admin@test-domain.com", "pubsub#node_type": "leaf", "node": "node-92db293a-b626-4fa3-9f38-b4847874837b", "pubsub#title": "Node 92db293a-b626-4fa3-9f38-b4847874837b" } 2022-06-10 22:41:00 | from localhost for action create-node got result code 200 and payload { "Note": "Operation successful" } 2022-06-10 22:41:01 | [Mutex] waiting for: [received:nodes:bf5bf27b-a89c-4a48-bad5-e82f326c3c44:localhost] 2022-06-10 22:41:01 | [Mutex] received everything. 2022-06-10 22:41:01 | [Mutex] isItemNotified: received:node:bf5bf27b-a89c-4a48-bad5-e82f326c3c44:localhost:node-92db293a-b626-4fa3-9f38-b4847874837b:Node 92db293a-b626-4fa3-9f38-b4847874837b :: true |
createSubnodes | 1.032s |
2022-06-10 22:41:01 |
2022-06-10 22:41:01 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-06-10 22:41:01 | ------------------------------------ 2022-06-10 22:41:01 | on localhost executing action create-node with content type application/json and payload: { "owner": "admin@test-domain.com", "pubsub#node_type": "collection", "node": "node-4dc224fe-e571-440f-bd23-79efea29753b", "pubsub#title": "Node 4dc224fe-e571-440f-bd23-79efea29753b" } 2022-06-10 22:41:01 | from localhost for action create-node got result code 200 and payload { "Note": "Operation successful" } 2022-06-10 22:41:02 | [Mutex] waiting for: [received:nodes:7fc68ddd-b991-4eef-ba35-d6f3415f658d:localhost] 2022-06-10 22:41:02 | [Mutex] received everything. 2022-06-10 22:41:02 | [Mutex] isItemNotified: received:node:7fc68ddd-b991-4eef-ba35-d6f3415f658d:localhost:node-4dc224fe-e571-440f-bd23-79efea29753b:Node 4dc224fe-e571-440f-bd23-79efea29753b :: true |
deleteNodes | 1.029s |
2022-06-10 22:41:07 |
2022-06-10 22:41:07 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-06-10 22:41:07 | ------------------------------------ 2022-06-10 22:41:07 | on localhost executing action delete-node with content type application/json and payload: { "node": "node-4dc224fe-e571-440f-bd23-79efea29753b" } 2022-06-10 22:41:07 | from localhost for action delete-node got result code 200 and payload { "Note": "Operation successful" } 2022-06-10 22:41:08 | [Mutex] waiting for: [received:nodes:285622e9-185d-4f62-821a-2dcda6845c92:localhost] 2022-06-10 22:41:08 | [Mutex] received everything. 2022-06-10 22:41:08 | [Mutex] isItemNotified: received:node:285622e9-185d-4f62-821a-2dcda6845c92:localhost:node-4dc224fe-e571-440f-bd23-79efea29753b:Node 4dc224fe-e571-440f-bd23-79efea29753b :: false |
deleteSubnodes | 1.029s |
2022-06-10 22:41:06 |
2022-06-10 22:41:06 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-06-10 22:41:06 | ------------------------------------ 2022-06-10 22:41:06 | on localhost executing action delete-node with content type application/json and payload: { "node": "node-92db293a-b626-4fa3-9f38-b4847874837b" } 2022-06-10 22:41:06 | from localhost for action delete-node got result code 200 and payload { "Note": "Operation successful" } 2022-06-10 22:41:07 | [Mutex] waiting for: [received:nodes:761011fd-6a76-4083-8072-768885058b79:localhost] 2022-06-10 22:41:07 | [Mutex] waiting for: [received:nodes:761011fd-6a76-4083-8072-768885058b79:localhost] 2022-06-10 22:41:07 | [Mutex] received everything. 2022-06-10 22:41:07 | [Mutex] isItemNotified: received:node:761011fd-6a76-4083-8072-768885058b79:localhost:node-92db293a-b626-4fa3-9f38-b4847874837b:Node 92db293a-b626-4fa3-9f38-b4847874837b :: false 2022-06-10 22:41:07 | [Mutex] waiting for: [received:nodes:69e10c36-63fb-473f-bd17-f960bc88d0e2:localhost] 2022-06-10 22:41:07 | [Mutex] received everything. 2022-06-10 22:41:07 | [Mutex] isItemNotified: received:node:69e10c36-63fb-473f-bd17-f960bc88d0e2:localhost:node-92db293a-b626-4fa3-9f38-b4847874837b:Node 92db293a-b626-4fa3-9f38-b4847874837b :: false |
publishItemsToNodes | 0.055s |
2022-06-10 22:41:04 |
2022-06-10 22:41:04 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-06-10 22:41:04 | ------------------------------------ 2022-06-10 22:41:04 | on localhost executing action publish-item with content type application/json and payload: { "node": "node-92db293a-b626-4fa3-9f38-b4847874837b", "entry": "<test>item-f51df5b7-b0cf-4cc2-bc84-ef1aaf56616b</test>", "item-id": "item-f51df5b7-b0cf-4cc2-bc84-ef1aaf56616b" } 2022-06-10 22:41:04 | from localhost for action publish-item got result code 200 and payload { "Note": "Operation successful", "item-id": "item-f51df5b7-b0cf-4cc2-bc84-ef1aaf56616b" } 2022-06-10 22:41:04 | [Mutex] waiting for: [published:item:notifieditem-f51df5b7-b0cf-4cc2-bc84-ef1aaf56616b:admin@test-domain.com] 2022-06-10 22:41:04 | [Mutex] received everything. 2022-06-10 22:41:04 | [Mutex] isItemNotified: published:item:notifieditem-f51df5b7-b0cf-4cc2-bc84-ef1aaf56616b:admin@test-domain.com :: true |
retractItemsFromNodes | 0.116s |
2022-06-10 22:41:04 |
2022-06-10 22:41:04 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-06-10 22:41:04 | ------------------------------------ 2022-06-10 22:41:04 | on localhost executing action delete-item with content type application/json and payload: { "node": "node-92db293a-b626-4fa3-9f38-b4847874837b", "item-id": "item-f51df5b7-b0cf-4cc2-bc84-ef1aaf56616b" } 2022-06-10 22:41:04 | from localhost for action delete-item got result code 200 and payload { "Note": "Operation successful", "item-id": "item-f51df5b7-b0cf-4cc2-bc84-ef1aaf56616b" } 2022-06-10 22:41:04 | [Mutex] waiting for: [retracted:item:notifieditem-f51df5b7-b0cf-4cc2-bc84-ef1aaf56616b:admin@test-domain.com] 2022-06-10 22:41:05 | [Mutex] received everything. 2022-06-10 22:41:05 | [Mutex] isItemNotified: retracted:item:notifieditem-f51df5b7-b0cf-4cc2-bc84-ef1aaf56616b:admin@test-domain.com :: true |
retrieveItemsFromNodes | 0.085s |
2022-06-10 22:41:04 |
2022-06-10 22:41:04 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-06-10 22:41:04 | ------------------------------------ 2022-06-10 22:41:04 | on localhost executing action retrieve-item with content type application/json and payload: { "node": "node-92db293a-b626-4fa3-9f38-b4847874837b", "item-id": "item-f51df5b7-b0cf-4cc2-bc84-ef1aaf56616b" } 2022-06-10 22:41:04 | from localhost for action retrieve-item got result code 200 and payload { "title": "Retrive PubSub node item", "node": "node-92db293a-b626-4fa3-9f38-b4847874837b", "item-id": "item-f51df5b7-b0cf-4cc2-bc84-ef1aaf56616b", "item": [ "<item id=\"item-f51df5b7-b0cf-4cc2-bc84-ef1aaf56616b\"><test>item-f51df5b7-b0cf-4cc2-bc84-ef1aaf56616b</test></item>" ] } 2022-06-10 22:41:04 | [Mutex] notify: [retrieved:item:item-f51df5b7-b0cf-4cc2-bc84-ef1aaf56616b:payload-matches:true:localhost] 2022-06-10 22:41:04 | [Mutex] received everything. 2022-06-10 22:41:04 | [Mutex] isItemNotified: retrieved:item:item-f51df5b7-b0cf-4cc2-bc84-ef1aaf56616b:payload-matches:true:localhost :: true |
retrieveUserSubscriptions | 0.051s |
2022-06-10 22:41:04 |
2022-06-10 22:41:04 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-06-10 22:41:04 | ------------------------------------ 2022-06-10 22:41:04 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload: { "jid": "admin@test-domain.com" } 2022-06-10 22:41:04 | from localhost for action retrieve-user-subscriptions got result code 200 and payload { "nodes": [ "test", "node-92db293a-b626-4fa3-9f38-b4847874837b", "node-4dc224fe-e571-440f-bd23-79efea29753b" ] } |
retrieveUserSubscriptionsWithRegex | 0.051s |
2022-06-10 22:41:04 |
2022-06-10 22:41:04 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-06-10 22:41:04 | ------------------------------------ 2022-06-10 22:41:04 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload: { "jid": "admin@test-domain.com", "node-pattern": "(?!node-92db293a-b626-4fa3-9f38-b4847874837b)" } 2022-06-10 22:41:04 | from localhost for action retrieve-user-subscriptions got result code 200 and payload { "nodes": [ ] } |
subscribeNodes | 1.012s |
2022-06-10 22:41:03 |
2022-06-10 22:41:03 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-06-10 22:41:03 | ------------------------------------ 2022-06-10 22:41:03 | on localhost executing action subscribe-node with content type application/json and payload: { "node": "node-92db293a-b626-4fa3-9f38-b4847874837b", "jids": [ "admin@test-domain.com" ] } 2022-06-10 22:41:03 | from localhost for action subscribe-node got result code 200 and payload { "Note": "Operation successful" } |
unsubscribeNodes | 1.023s |
2022-06-10 22:41:05 |
2022-06-10 22:41:05 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-06-10 22:41:05 | ------------------------------------ 2022-06-10 22:41:05 | on localhost executing action unsubscribe-node with content type application/json and payload: { "node": "node-92db293a-b626-4fa3-9f38-b4847874837b", "jids": [ "admin@test-domain.com" ] } 2022-06-10 22:41:05 | from localhost for action unsubscribe-node got result code 200 and payload { "Note": "Operation successful" } |