Test duration : 8.743s
Passed Tests | ||
---|---|---|
tigase.tests.pubsub.TestRestApiUsingJSON | ||
configureNodes | 1.086s |
2022-06-23 22:34:06 |
2022-06-23 22:34:06 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-06-23 22:34:06 | ------------------------------------ 2022-06-23 22:34:06 | [Mutex] waiting for: [configured:node:node-5f40c7a0-4957-4b88-9ccf-3aff990ccd21:node-5e21904c-6c86-41c8-85d8-609eedb4d159] 2022-06-23 22:34:06 | [Mutex] received everything. 2022-06-23 22:34:06 | [Mutex] isItemNotified: configured:node:node-5f40c7a0-4957-4b88-9ccf-3aff990ccd21:node-5e21904c-6c86-41c8-85d8-609eedb4d159 :: true 2022-06-23 22:34:07 | [Mutex] waiting for: [received:nodes:1db7aa9e-710d-4bb3-b5ac-c35052a1c165:localhost] 2022-06-23 22:34:07 | [Mutex] received everything. 2022-06-23 22:34:07 | [Mutex] isItemNotified: received:node:1db7aa9e-710d-4bb3-b5ac-c35052a1c165:localhost:node-5f40c7a0-4957-4b88-9ccf-3aff990ccd21:Node 5f40c7a0-4957-4b88-9ccf-3aff990ccd21 :: true 2022-06-23 22:34:07 | [Mutex] waiting for: [received:nodes:a6830af5-3148-4f8a-b650-b0efe62a1768:localhost] 2022-06-23 22:34:07 | [Mutex] waiting for: [received:nodes:a6830af5-3148-4f8a-b650-b0efe62a1768:localhost] 2022-06-23 22:34:07 | [Mutex] received everything. 2022-06-23 22:34:07 | [Mutex] isItemNotified: received:node:a6830af5-3148-4f8a-b650-b0efe62a1768:localhost:node-5f40c7a0-4957-4b88-9ccf-3aff990ccd21:Node 5f40c7a0-4957-4b88-9ccf-3aff990ccd21 :: false |
createNodes | 1.561s |
2022-06-23 22:34:04 |
2022-06-23 22:34:04 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-06-23 22:34:04 | ------------------------------------ 2022-06-23 22:34:04 | on localhost executing action create-node with content type application/json and payload: { "owner": "admin@test-domain.com", "pubsub#node_type": "leaf", "node": "node-5f40c7a0-4957-4b88-9ccf-3aff990ccd21", "pubsub#title": "Node 5f40c7a0-4957-4b88-9ccf-3aff990ccd21" } 2022-06-23 22:34:04 | from localhost for action create-node got result code 200 and payload { "Note": "Operation successful" } 2022-06-23 22:34:05 | [Mutex] waiting for: [received:nodes:c35d2f88-4a71-4804-9a91-189310406f2d:localhost] 2022-06-23 22:34:05 | [Mutex] received everything. 2022-06-23 22:34:05 | [Mutex] isItemNotified: received:node:c35d2f88-4a71-4804-9a91-189310406f2d:localhost:node-5f40c7a0-4957-4b88-9ccf-3aff990ccd21:Node 5f40c7a0-4957-4b88-9ccf-3aff990ccd21 :: true |
createSubnodes | 1.036s |
2022-06-23 22:34:05 |
2022-06-23 22:34:05 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-06-23 22:34:05 | ------------------------------------ 2022-06-23 22:34:05 | on localhost executing action create-node with content type application/json and payload: { "owner": "admin@test-domain.com", "pubsub#node_type": "collection", "node": "node-5e21904c-6c86-41c8-85d8-609eedb4d159", "pubsub#title": "Node 5e21904c-6c86-41c8-85d8-609eedb4d159" } 2022-06-23 22:34:05 | from localhost for action create-node got result code 200 and payload { "Note": "Operation successful" } 2022-06-23 22:34:06 | [Mutex] waiting for: [received:nodes:23491f47-3072-4cc5-9461-57a97ac382a1:localhost] 2022-06-23 22:34:06 | [Mutex] waiting for: [received:nodes:23491f47-3072-4cc5-9461-57a97ac382a1:localhost] 2022-06-23 22:34:06 | [Mutex] received everything. 2022-06-23 22:34:06 | [Mutex] isItemNotified: received:node:23491f47-3072-4cc5-9461-57a97ac382a1:localhost:node-5e21904c-6c86-41c8-85d8-609eedb4d159:Node 5e21904c-6c86-41c8-85d8-609eedb4d159 :: true |
deleteNodes | 1.024s |
2022-06-23 22:34:11 |
2022-06-23 22:34:11 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-06-23 22:34:11 | ------------------------------------ 2022-06-23 22:34:11 | on localhost executing action delete-node with content type application/json and payload: { "node": "node-5e21904c-6c86-41c8-85d8-609eedb4d159" } 2022-06-23 22:34:11 | from localhost for action delete-node got result code 200 and payload { "Note": "Operation successful" } 2022-06-23 22:34:12 | [Mutex] waiting for: [received:nodes:88eb02ac-2e66-409f-88a2-55ec3004490d:localhost] 2022-06-23 22:34:12 | [Mutex] waiting for: [received:nodes:88eb02ac-2e66-409f-88a2-55ec3004490d:localhost] 2022-06-23 22:34:12 | [Mutex] received everything. 2022-06-23 22:34:12 | [Mutex] isItemNotified: received:node:88eb02ac-2e66-409f-88a2-55ec3004490d:localhost:node-5e21904c-6c86-41c8-85d8-609eedb4d159:Node 5e21904c-6c86-41c8-85d8-609eedb4d159 :: false |
deleteSubnodes | 1.028s |
2022-06-23 22:34:10 |
2022-06-23 22:34:10 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-06-23 22:34:10 | ------------------------------------ 2022-06-23 22:34:10 | on localhost executing action delete-node with content type application/json and payload: { "node": "node-5f40c7a0-4957-4b88-9ccf-3aff990ccd21" } 2022-06-23 22:34:10 | from localhost for action delete-node got result code 200 and payload { "Note": "Operation successful" } 2022-06-23 22:34:11 | [Mutex] waiting for: [received:nodes:7c5a22c8-2be9-436e-a05a-8e2bbcc0d360:localhost] 2022-06-23 22:34:11 | [Mutex] received everything. 2022-06-23 22:34:11 | [Mutex] isItemNotified: received:node:7c5a22c8-2be9-436e-a05a-8e2bbcc0d360:localhost:node-5f40c7a0-4957-4b88-9ccf-3aff990ccd21:Node 5f40c7a0-4957-4b88-9ccf-3aff990ccd21 :: false 2022-06-23 22:34:11 | [Mutex] waiting for: [received:nodes:c016e674-0f76-4489-a017-fa7b3d266f60:localhost] 2022-06-23 22:34:11 | [Mutex] received everything. 2022-06-23 22:34:11 | [Mutex] isItemNotified: received:node:c016e674-0f76-4489-a017-fa7b3d266f60:localhost:node-5f40c7a0-4957-4b88-9ccf-3aff990ccd21:Node 5f40c7a0-4957-4b88-9ccf-3aff990ccd21 :: false |
publishItemsToNodes | 0.090s |
2022-06-23 22:34:08 |
2022-06-23 22:34:08 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-06-23 22:34:08 | ------------------------------------ 2022-06-23 22:34:08 | on localhost executing action publish-item with content type application/json and payload: { "node": "node-5f40c7a0-4957-4b88-9ccf-3aff990ccd21", "entry": "<test>item-eaff504b-bed0-4b04-aea0-fbc60e891843</test>", "item-id": "item-eaff504b-bed0-4b04-aea0-fbc60e891843" } 2022-06-23 22:34:08 | from localhost for action publish-item got result code 200 and payload { "Note": "Operation successful", "item-id": "item-eaff504b-bed0-4b04-aea0-fbc60e891843" } 2022-06-23 22:34:08 | [Mutex] waiting for: [published:item:notifieditem-eaff504b-bed0-4b04-aea0-fbc60e891843:admin@test-domain.com] 2022-06-23 22:34:08 | [Mutex] received everything. 2022-06-23 22:34:08 | [Mutex] isItemNotified: published:item:notifieditem-eaff504b-bed0-4b04-aea0-fbc60e891843:admin@test-domain.com :: true |
retractItemsFromNodes | 0.066s |
2022-06-23 22:34:09 |
2022-06-23 22:34:09 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-06-23 22:34:09 | ------------------------------------ 2022-06-23 22:34:09 | on localhost executing action delete-item with content type application/json and payload: { "node": "node-5f40c7a0-4957-4b88-9ccf-3aff990ccd21", "item-id": "item-eaff504b-bed0-4b04-aea0-fbc60e891843" } 2022-06-23 22:34:09 | from localhost for action delete-item got result code 200 and payload { "Note": "Operation successful", "item-id": "item-eaff504b-bed0-4b04-aea0-fbc60e891843" } 2022-06-23 22:34:09 | [Mutex] received everything. 2022-06-23 22:34:09 | [Mutex] isItemNotified: retracted:item:notifieditem-eaff504b-bed0-4b04-aea0-fbc60e891843:admin@test-domain.com :: true |
retrieveItemsFromNodes | 0.056s |
2022-06-23 22:34:08 |
2022-06-23 22:34:08 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-06-23 22:34:08 | ------------------------------------ 2022-06-23 22:34:08 | on localhost executing action retrieve-item with content type application/json and payload: { "node": "node-5f40c7a0-4957-4b88-9ccf-3aff990ccd21", "item-id": "item-eaff504b-bed0-4b04-aea0-fbc60e891843" } 2022-06-23 22:34:08 | from localhost for action retrieve-item got result code 200 and payload { "title": "Retrive PubSub node item", "node": "node-5f40c7a0-4957-4b88-9ccf-3aff990ccd21", "item-id": "item-eaff504b-bed0-4b04-aea0-fbc60e891843", "item": [ "<item id=\"item-eaff504b-bed0-4b04-aea0-fbc60e891843\"><test>item-eaff504b-bed0-4b04-aea0-fbc60e891843</test></item>" ] } 2022-06-23 22:34:08 | [Mutex] notify: [retrieved:item:item-eaff504b-bed0-4b04-aea0-fbc60e891843:payload-matches:true:localhost] 2022-06-23 22:34:08 | [Mutex] received everything. 2022-06-23 22:34:08 | [Mutex] isItemNotified: retrieved:item:item-eaff504b-bed0-4b04-aea0-fbc60e891843:payload-matches:true:localhost :: true |
retrieveUserSubscriptions | 0.055s |
2022-06-23 22:34:08 |
2022-06-23 22:34:08 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-06-23 22:34:08 | ------------------------------------ 2022-06-23 22:34:08 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload: { "jid": "admin@test-domain.com" } 2022-06-23 22:34:09 | from localhost for action retrieve-user-subscriptions got result code 200 and payload { "nodes": [ "test", "node-5e21904c-6c86-41c8-85d8-609eedb4d159", "node-5f40c7a0-4957-4b88-9ccf-3aff990ccd21" ] } |
retrieveUserSubscriptionsWithRegex | 0.053s |
2022-06-23 22:34:09 |
2022-06-23 22:34:09 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-06-23 22:34:09 | ------------------------------------ 2022-06-23 22:34:09 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload: { "jid": "admin@test-domain.com", "node-pattern": "(?!node-5f40c7a0-4957-4b88-9ccf-3aff990ccd21)" } 2022-06-23 22:34:09 | from localhost for action retrieve-user-subscriptions got result code 200 and payload { "nodes": [ ] } |
subscribeNodes | 1.014s |
2022-06-23 22:34:07 |
2022-06-23 22:34:07 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-06-23 22:34:07 | ------------------------------------ 2022-06-23 22:34:07 | on localhost executing action subscribe-node with content type application/json and payload: { "node": "node-5f40c7a0-4957-4b88-9ccf-3aff990ccd21", "jids": [ "admin@test-domain.com" ] } 2022-06-23 22:34:07 | from localhost for action subscribe-node got result code 200 and payload { "Note": "Operation successful" } |
unsubscribeNodes | 1.079s |
2022-06-23 22:34:09 |
2022-06-23 22:34:09 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-06-23 22:34:09 | ------------------------------------ 2022-06-23 22:34:09 | on localhost executing action unsubscribe-node with content type application/json and payload: { "node": "node-5f40c7a0-4957-4b88-9ccf-3aff990ccd21", "jids": [ "admin@test-domain.com" ] } 2022-06-23 22:34:09 | from localhost for action unsubscribe-node got result code 200 and payload { "Note": "Operation successful" } |