Test duration : 8.769s
Passed Tests | ||
---|---|---|
tigase.tests.pubsub.TestRestApiUsingJSON | ||
configureNodes | 1.108s |
2022-05-22 22:38:56 |
2022-05-22 22:38:56 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-05-22 22:38:56 | ------------------------------------ 2022-05-22 22:38:56 | [Mutex] waiting for: [configured:node:node-c21829d4-d0bd-4d00-b2be-d8d8e0571488:node-5b037987-2daf-408e-b6a6-d775f0393ab6] 2022-05-22 22:38:56 | [Mutex] received everything. 2022-05-22 22:38:56 | [Mutex] isItemNotified: configured:node:node-c21829d4-d0bd-4d00-b2be-d8d8e0571488:node-5b037987-2daf-408e-b6a6-d775f0393ab6 :: true 2022-05-22 22:38:57 | [Mutex] waiting for: [received:nodes:86434b40-c8b4-4bcc-9c12-91fc9863e1da:localhost] 2022-05-22 22:38:57 | [Mutex] received everything. 2022-05-22 22:38:57 | [Mutex] isItemNotified: received:node:86434b40-c8b4-4bcc-9c12-91fc9863e1da:localhost:node-c21829d4-d0bd-4d00-b2be-d8d8e0571488:Node c21829d4-d0bd-4d00-b2be-d8d8e0571488 :: true 2022-05-22 22:38:57 | [Mutex] waiting for: [received:nodes:12b30ce3-5e26-4dbb-b465-c47ff72aef3b:localhost] 2022-05-22 22:38:57 | [Mutex] received everything. 2022-05-22 22:38:57 | [Mutex] isItemNotified: received:node:12b30ce3-5e26-4dbb-b465-c47ff72aef3b:localhost:node-c21829d4-d0bd-4d00-b2be-d8d8e0571488:Node c21829d4-d0bd-4d00-b2be-d8d8e0571488 :: false |
createNodes | 1.644s |
2022-05-22 22:38:53 |
2022-05-22 22:38:53 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-05-22 22:38:53 | ------------------------------------ 2022-05-22 22:38: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-c21829d4-d0bd-4d00-b2be-d8d8e0571488", "pubsub#title": "Node c21829d4-d0bd-4d00-b2be-d8d8e0571488" } 2022-05-22 22:38:54 | from localhost for action create-node got result code 200 and payload { "Note": "Operation successful" } 2022-05-22 22:38:55 | [Mutex] waiting for: [received:nodes:0ad57516-3b68-4f1b-b495-107408ea7f92:localhost] 2022-05-22 22:38:55 | [Mutex] waiting for: [received:nodes:0ad57516-3b68-4f1b-b495-107408ea7f92:localhost] 2022-05-22 22:38:55 | [Mutex] received everything. 2022-05-22 22:38:55 | [Mutex] isItemNotified: received:node:0ad57516-3b68-4f1b-b495-107408ea7f92:localhost:node-c21829d4-d0bd-4d00-b2be-d8d8e0571488:Node c21829d4-d0bd-4d00-b2be-d8d8e0571488 :: true |
createSubnodes | 1.029s |
2022-05-22 22:38:55 |
2022-05-22 22:38:55 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-05-22 22:38:55 | ------------------------------------ 2022-05-22 22:38:55 | on localhost executing action create-node with content type application/json and payload: { "owner": "admin@test-domain.com", "pubsub#node_type": "collection", "node": "node-5b037987-2daf-408e-b6a6-d775f0393ab6", "pubsub#title": "Node 5b037987-2daf-408e-b6a6-d775f0393ab6" } 2022-05-22 22:38:55 | from localhost for action create-node got result code 200 and payload { "Note": "Operation successful" } 2022-05-22 22:38:56 | [Mutex] waiting for: [received:nodes:4c83f8ec-cdcb-4eb2-9fdb-c9054101e400:localhost] 2022-05-22 22:38:56 | [Mutex] received everything. 2022-05-22 22:38:56 | [Mutex] isItemNotified: received:node:4c83f8ec-cdcb-4eb2-9fdb-c9054101e400:localhost:node-5b037987-2daf-408e-b6a6-d775f0393ab6:Node 5b037987-2daf-408e-b6a6-d775f0393ab6 :: true |
deleteNodes | 1.025s |
2022-05-22 22:39:00 |
2022-05-22 22:39:00 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-05-22 22:39:00 | ------------------------------------ 2022-05-22 22:39:00 | on localhost executing action delete-node with content type application/json and payload: { "node": "node-5b037987-2daf-408e-b6a6-d775f0393ab6" } 2022-05-22 22:39:00 | from localhost for action delete-node got result code 200 and payload { "Note": "Operation successful" } 2022-05-22 22:39:01 | [Mutex] waiting for: [received:nodes:3ad4a23c-e5a0-4004-b4a4-246e4853b94c:localhost] 2022-05-22 22:39:01 | [Mutex] received everything. 2022-05-22 22:39:01 | [Mutex] isItemNotified: received:node:3ad4a23c-e5a0-4004-b4a4-246e4853b94c:localhost:node-5b037987-2daf-408e-b6a6-d775f0393ab6:Node 5b037987-2daf-408e-b6a6-d775f0393ab6 :: false |
deleteSubnodes | 1.032s |
2022-05-22 22:38:59 |
2022-05-22 22:38:59 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-05-22 22:38:59 | ------------------------------------ 2022-05-22 22:38:59 | on localhost executing action delete-node with content type application/json and payload: { "node": "node-c21829d4-d0bd-4d00-b2be-d8d8e0571488" } 2022-05-22 22:38:59 | from localhost for action delete-node got result code 200 and payload { "Note": "Operation successful" } 2022-05-22 22:39:00 | [Mutex] waiting for: [received:nodes:4e8e0574-0d88-43ff-af53-5536c18f807b:localhost] 2022-05-22 22:39:00 | [Mutex] received everything. 2022-05-22 22:39:00 | [Mutex] isItemNotified: received:node:4e8e0574-0d88-43ff-af53-5536c18f807b:localhost:node-c21829d4-d0bd-4d00-b2be-d8d8e0571488:Node c21829d4-d0bd-4d00-b2be-d8d8e0571488 :: false 2022-05-22 22:39:00 | [Mutex] waiting for: [received:nodes:de1cd4c0-9ea8-428b-92ec-87196c6cc2ea:localhost] 2022-05-22 22:39:00 | [Mutex] received everything. 2022-05-22 22:39:00 | [Mutex] isItemNotified: received:node:de1cd4c0-9ea8-428b-92ec-87196c6cc2ea:localhost:node-c21829d4-d0bd-4d00-b2be-d8d8e0571488:Node c21829d4-d0bd-4d00-b2be-d8d8e0571488 :: false |
publishItemsToNodes | 0.065s |
2022-05-22 22:38:58 |
2022-05-22 22:38:58 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-05-22 22:38:58 | ------------------------------------ 2022-05-22 22:38:58 | on localhost executing action publish-item with content type application/json and payload: { "node": "node-c21829d4-d0bd-4d00-b2be-d8d8e0571488", "entry": "<test>item-4b75fb1c-cdca-4150-933e-1241b8d8382c</test>", "item-id": "item-4b75fb1c-cdca-4150-933e-1241b8d8382c" } 2022-05-22 22:38:58 | from localhost for action publish-item got result code 200 and payload { "Note": "Operation successful", "item-id": "item-4b75fb1c-cdca-4150-933e-1241b8d8382c" } 2022-05-22 22:38:58 | [Mutex] received everything. 2022-05-22 22:38:58 | [Mutex] isItemNotified: published:item:notifieditem-4b75fb1c-cdca-4150-933e-1241b8d8382c:admin@test-domain.com :: true |
retractItemsFromNodes | 0.079s |
2022-05-22 22:38:58 |
2022-05-22 22:38:58 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-05-22 22:38:58 | ------------------------------------ 2022-05-22 22:38:58 | on localhost executing action delete-item with content type application/json and payload: { "node": "node-c21829d4-d0bd-4d00-b2be-d8d8e0571488", "item-id": "item-4b75fb1c-cdca-4150-933e-1241b8d8382c" } 2022-05-22 22:38:58 | from localhost for action delete-item got result code 200 and payload { "Note": "Operation successful", "item-id": "item-4b75fb1c-cdca-4150-933e-1241b8d8382c" } 2022-05-22 22:38:58 | [Mutex] received everything. 2022-05-22 22:38:58 | [Mutex] isItemNotified: retracted:item:notifieditem-4b75fb1c-cdca-4150-933e-1241b8d8382c:admin@test-domain.com :: true |
retrieveItemsFromNodes | 0.066s |
2022-05-22 22:38:58 |
2022-05-22 22:38:58 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-05-22 22:38:58 | ------------------------------------ 2022-05-22 22:38:58 | on localhost executing action retrieve-item with content type application/json and payload: { "node": "node-c21829d4-d0bd-4d00-b2be-d8d8e0571488", "item-id": "item-4b75fb1c-cdca-4150-933e-1241b8d8382c" } 2022-05-22 22:38:58 | from localhost for action retrieve-item got result code 200 and payload { "title": "Retrive PubSub node item", "node": "node-c21829d4-d0bd-4d00-b2be-d8d8e0571488", "item-id": "item-4b75fb1c-cdca-4150-933e-1241b8d8382c", "item": [ "<item id=\"item-4b75fb1c-cdca-4150-933e-1241b8d8382c\"><test>item-4b75fb1c-cdca-4150-933e-1241b8d8382c</test></item>" ] } 2022-05-22 22:38:58 | [Mutex] notify: [retrieved:item:item-4b75fb1c-cdca-4150-933e-1241b8d8382c:payload-matches:true:localhost] 2022-05-22 22:38:58 | [Mutex] received everything. 2022-05-22 22:38:58 | [Mutex] isItemNotified: retrieved:item:item-4b75fb1c-cdca-4150-933e-1241b8d8382c:payload-matches:true:localhost :: true |
retrieveUserSubscriptions | 0.050s |
2022-05-22 22:38:58 |
2022-05-22 22:38:58 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-05-22 22:38:58 | ------------------------------------ 2022-05-22 22:38:58 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload: { "jid": "admin@test-domain.com" } 2022-05-22 22:38:58 | from localhost for action retrieve-user-subscriptions got result code 200 and payload { "nodes": [ "test", "node-5b037987-2daf-408e-b6a6-d775f0393ab6", "node-c21829d4-d0bd-4d00-b2be-d8d8e0571488" ] } |
retrieveUserSubscriptionsWithRegex | 0.047s |
2022-05-22 22:38:58 |
2022-05-22 22:38:58 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-05-22 22:38:58 | ------------------------------------ 2022-05-22 22:38:58 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload: { "jid": "admin@test-domain.com", "node-pattern": "(?!node-c21829d4-d0bd-4d00-b2be-d8d8e0571488)" } 2022-05-22 22:38:58 | from localhost for action retrieve-user-subscriptions got result code 200 and payload { "nodes": [ ] } |
subscribeNodes | 1.013s |
2022-05-22 22:38:57 |
2022-05-22 22:38:57 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-05-22 22:38:57 | ------------------------------------ 2022-05-22 22:38:57 | on localhost executing action subscribe-node with content type application/json and payload: { "node": "node-c21829d4-d0bd-4d00-b2be-d8d8e0571488", "jids": [ "admin@test-domain.com" ] } 2022-05-22 22:38:57 | from localhost for action subscribe-node got result code 200 and payload { "Note": "Operation successful" } |
unsubscribeNodes | 1.055s |
2022-05-22 22:38:58 |
2022-05-22 22:38:58 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-05-22 22:38:58 | ------------------------------------ 2022-05-22 22:38:58 | on localhost executing action unsubscribe-node with content type application/json and payload: { "node": "node-c21829d4-d0bd-4d00-b2be-d8d8e0571488", "jids": [ "admin@test-domain.com" ] } 2022-05-22 22:38:58 | from localhost for action unsubscribe-node got result code 200 and payload { "Note": "Operation successful" } |