Test duration : 8.776s
Passed Tests | ||
---|---|---|
tigase.tests.pubsub.TestRestApiUsingJSON | ||
configureNodes | 1.143s |
2022-11-14 22:06:57 |
2022-11-14 22:06:57 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-11-14 22:06:57 | ------------------------------------ 2022-11-14 22:06:57 | [Mutex] waiting for: [configured:node:node-4e446ca8-4cf3-43d6-a118-5e09653cdb22:node-aa7ac136-c856-4abc-8b25-8f934fdb4e97] 2022-11-14 22:06:57 | [Mutex] received everything. 2022-11-14 22:06:57 | [Mutex] isItemNotified: configured:node:node-4e446ca8-4cf3-43d6-a118-5e09653cdb22:node-aa7ac136-c856-4abc-8b25-8f934fdb4e97 :: true 2022-11-14 22:06:58 | [Mutex] waiting for: [received:nodes:a74809b4-7ccd-4764-b575-87ab1b435922:localhost] 2022-11-14 22:06:58 | [Mutex] received everything. 2022-11-14 22:06:58 | [Mutex] isItemNotified: received:node:a74809b4-7ccd-4764-b575-87ab1b435922:localhost:node-4e446ca8-4cf3-43d6-a118-5e09653cdb22:Node 4e446ca8-4cf3-43d6-a118-5e09653cdb22 :: true 2022-11-14 22:06:58 | [Mutex] waiting for: [received:nodes:fdb854d4-edfa-45cc-aa85-29b79216d3cf:localhost] 2022-11-14 22:06:58 | [Mutex] waiting for: [received:nodes:fdb854d4-edfa-45cc-aa85-29b79216d3cf:localhost] 2022-11-14 22:06:58 | [Mutex] received everything. 2022-11-14 22:06:58 | [Mutex] isItemNotified: received:node:fdb854d4-edfa-45cc-aa85-29b79216d3cf:localhost:node-4e446ca8-4cf3-43d6-a118-5e09653cdb22:Node 4e446ca8-4cf3-43d6-a118-5e09653cdb22 :: false |
createNodes | 1.731s |
2022-11-14 22:06:54 |
2022-11-14 22:06:54 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-11-14 22:06:54 | ------------------------------------ 2022-11-14 22:06:55 | on localhost executing action create-node with content type application/json and payload: { "owner": "admin@test-domain.com", "pubsub#node_type": "leaf", "node": "node-4e446ca8-4cf3-43d6-a118-5e09653cdb22", "pubsub#title": "Node 4e446ca8-4cf3-43d6-a118-5e09653cdb22" } 2022-11-14 22:06:55 | from localhost for action create-node got result code 200 and payload { "Note": "Operation successful" } 2022-11-14 22:06:56 | [Mutex] waiting for: [received:nodes:b96a037a-508e-4960-97f9-6ef065cac874:localhost] 2022-11-14 22:06:56 | [Mutex] received everything. 2022-11-14 22:06:56 | [Mutex] isItemNotified: received:node:b96a037a-508e-4960-97f9-6ef065cac874:localhost:node-4e446ca8-4cf3-43d6-a118-5e09653cdb22:Node 4e446ca8-4cf3-43d6-a118-5e09653cdb22 :: true |
createSubnodes | 1.022s |
2022-11-14 22:06:56 |
2022-11-14 22:06:56 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-11-14 22:06:56 | ------------------------------------ 2022-11-14 22:06: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-aa7ac136-c856-4abc-8b25-8f934fdb4e97", "pubsub#title": "Node aa7ac136-c856-4abc-8b25-8f934fdb4e97" } 2022-11-14 22:06:56 | from localhost for action create-node got result code 200 and payload { "Note": "Operation successful" } 2022-11-14 22:06:57 | [Mutex] waiting for: [received:nodes:063ddc50-bb27-42f9-b9b8-6df94552c126:localhost] 2022-11-14 22:06:57 | [Mutex] received everything. 2022-11-14 22:06:57 | [Mutex] isItemNotified: received:node:063ddc50-bb27-42f9-b9b8-6df94552c126:localhost:node-aa7ac136-c856-4abc-8b25-8f934fdb4e97:Node aa7ac136-c856-4abc-8b25-8f934fdb4e97 :: true |
deleteNodes | 1.022s |
2022-11-14 22:07:01 |
2022-11-14 22:07:01 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-11-14 22:07:01 | ------------------------------------ 2022-11-14 22:07:01 | on localhost executing action delete-node with content type application/json and payload: { "node": "node-aa7ac136-c856-4abc-8b25-8f934fdb4e97" } 2022-11-14 22:07:01 | from localhost for action delete-node got result code 200 and payload { "Note": "Operation successful" } 2022-11-14 22:07:02 | [Mutex] waiting for: [received:nodes:c5be5527-32b3-4b15-84d3-0c440782d213:localhost] 2022-11-14 22:07:02 | [Mutex] waiting for: [received:nodes:c5be5527-32b3-4b15-84d3-0c440782d213:localhost] 2022-11-14 22:07:02 | [Mutex] waiting for: [received:nodes:c5be5527-32b3-4b15-84d3-0c440782d213:localhost] 2022-11-14 22:07:02 | [Mutex] received everything. 2022-11-14 22:07:02 | [Mutex] isItemNotified: received:node:c5be5527-32b3-4b15-84d3-0c440782d213:localhost:node-aa7ac136-c856-4abc-8b25-8f934fdb4e97:Node aa7ac136-c856-4abc-8b25-8f934fdb4e97 :: false |
deleteSubnodes | 1.025s |
2022-11-14 22:07:00 |
2022-11-14 22:07:00 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-11-14 22:07:00 | ------------------------------------ 2022-11-14 22:07:00 | on localhost executing action delete-node with content type application/json and payload: { "node": "node-4e446ca8-4cf3-43d6-a118-5e09653cdb22" } 2022-11-14 22:07:00 | from localhost for action delete-node got result code 200 and payload { "Note": "Operation successful" } 2022-11-14 22:07:01 | [Mutex] waiting for: [received:nodes:1c31042c-b291-4ca8-a388-f1ba99c739d0:localhost] 2022-11-14 22:07:01 | [Mutex] received everything. 2022-11-14 22:07:01 | [Mutex] isItemNotified: received:node:1c31042c-b291-4ca8-a388-f1ba99c739d0:localhost:node-4e446ca8-4cf3-43d6-a118-5e09653cdb22:Node 4e446ca8-4cf3-43d6-a118-5e09653cdb22 :: false 2022-11-14 22:07:01 | [Mutex] waiting for: [received:nodes:0344dde4-9f13-4658-9412-33901e447999:localhost] 2022-11-14 22:07:01 | [Mutex] received everything. 2022-11-14 22:07:01 | [Mutex] isItemNotified: received:node:0344dde4-9f13-4658-9412-33901e447999:localhost:node-4e446ca8-4cf3-43d6-a118-5e09653cdb22:Node 4e446ca8-4cf3-43d6-a118-5e09653cdb22 :: false |
publishItemsToNodes | 0.054s |
2022-11-14 22:06:59 |
2022-11-14 22:06:59 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-11-14 22:06:59 | ------------------------------------ 2022-11-14 22:06:59 | on localhost executing action publish-item with content type application/json and payload: { "node": "node-4e446ca8-4cf3-43d6-a118-5e09653cdb22", "entry": "<test>item-6c64a85a-f14d-467f-912b-50a22f2a4985</test>", "item-id": "item-6c64a85a-f14d-467f-912b-50a22f2a4985" } 2022-11-14 22:06:59 | from localhost for action publish-item got result code 200 and payload { "Note": "Operation successful", "item-id": "item-6c64a85a-f14d-467f-912b-50a22f2a4985" } 2022-11-14 22:06:59 | [Mutex] waiting for: [published:item:notifieditem-6c64a85a-f14d-467f-912b-50a22f2a4985:admin@test-domain.com] 2022-11-14 22:06:59 | [Mutex] received everything. 2022-11-14 22:06:59 | [Mutex] isItemNotified: published:item:notifieditem-6c64a85a-f14d-467f-912b-50a22f2a4985:admin@test-domain.com :: true |
retractItemsFromNodes | 0.055s |
2022-11-14 22:06:59 |
2022-11-14 22:06:59 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-11-14 22:06:59 | ------------------------------------ 2022-11-14 22:06:59 | on localhost executing action delete-item with content type application/json and payload: { "node": "node-4e446ca8-4cf3-43d6-a118-5e09653cdb22", "item-id": "item-6c64a85a-f14d-467f-912b-50a22f2a4985" } 2022-11-14 22:06:59 | from localhost for action delete-item got result code 200 and payload { "Note": "Operation successful", "item-id": "item-6c64a85a-f14d-467f-912b-50a22f2a4985" } 2022-11-14 22:06:59 | [Mutex] received everything. 2022-11-14 22:06:59 | [Mutex] isItemNotified: retracted:item:notifieditem-6c64a85a-f14d-467f-912b-50a22f2a4985:admin@test-domain.com :: true |
retrieveItemsFromNodes | 0.038s |
2022-11-14 22:06:59 |
2022-11-14 22:06:59 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-11-14 22:06:59 | ------------------------------------ 2022-11-14 22:06:59 | on localhost executing action retrieve-item with content type application/json and payload: { "node": "node-4e446ca8-4cf3-43d6-a118-5e09653cdb22", "item-id": "item-6c64a85a-f14d-467f-912b-50a22f2a4985" } 2022-11-14 22:06:59 | from localhost for action retrieve-item got result code 200 and payload { "title": "Retrive PubSub node item", "node": "node-4e446ca8-4cf3-43d6-a118-5e09653cdb22", "item-id": "item-6c64a85a-f14d-467f-912b-50a22f2a4985", "item": [ "<item id=\"item-6c64a85a-f14d-467f-912b-50a22f2a4985\"><test>item-6c64a85a-f14d-467f-912b-50a22f2a4985</test></item>" ] } 2022-11-14 22:06:59 | [Mutex] notify: [retrieved:item:item-6c64a85a-f14d-467f-912b-50a22f2a4985:payload-matches:true:localhost] 2022-11-14 22:06:59 | [Mutex] received everything. 2022-11-14 22:06:59 | [Mutex] isItemNotified: retrieved:item:item-6c64a85a-f14d-467f-912b-50a22f2a4985:payload-matches:true:localhost :: true |
retrieveUserSubscriptions | 0.058s |
2022-11-14 22:06:59 |
2022-11-14 22:06:59 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-11-14 22:06:59 | ------------------------------------ 2022-11-14 22:06:59 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload: { "jid": "admin@test-domain.com" } 2022-11-14 22:06:59 | from localhost for action retrieve-user-subscriptions got result code 200 and payload { "nodes": [ "test", "node-aa7ac136-c856-4abc-8b25-8f934fdb4e97", "node-4e446ca8-4cf3-43d6-a118-5e09653cdb22" ] } |
retrieveUserSubscriptionsWithRegex | 0.048s |
2022-11-14 22:06:59 |
2022-11-14 22:06:59 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-11-14 22:06:59 | ------------------------------------ 2022-11-14 22:06:59 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload: { "jid": "admin@test-domain.com", "node-pattern": "(?!node-4e446ca8-4cf3-43d6-a118-5e09653cdb22)" } 2022-11-14 22:06:59 | from localhost for action retrieve-user-subscriptions got result code 200 and payload { "nodes": [ ] } |
subscribeNodes | 1.009s |
2022-11-14 22:06:58 |
2022-11-14 22:06:58 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-11-14 22:06:58 | ------------------------------------ 2022-11-14 22:06:58 | on localhost executing action subscribe-node with content type application/json and payload: { "node": "node-4e446ca8-4cf3-43d6-a118-5e09653cdb22", "jids": [ "admin@test-domain.com" ] } 2022-11-14 22:06:58 | from localhost for action subscribe-node got result code 200 and payload { "Note": "Operation successful" } |
unsubscribeNodes | 1.059s |
2022-11-14 22:06:59 |
2022-11-14 22:06:59 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-11-14 22:06:59 | ------------------------------------ 2022-11-14 22:06:59 | on localhost executing action unsubscribe-node with content type application/json and payload: { "node": "node-4e446ca8-4cf3-43d6-a118-5e09653cdb22", "jids": [ "admin@test-domain.com" ] } 2022-11-14 22:06:59 | from localhost for action unsubscribe-node got result code 200 and payload { "Note": "Operation successful" } |