Test duration : 8.963s
Passed Tests | ||
---|---|---|
tigase.tests.pubsub.TestRestApiUsingJSON | ||
configureNodes | 1.095s |
2021-09-22 22:38:43 |
2021-09-22 22:38:43 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-09-22 22:38:43 | ------------------------------------ 2021-09-22 22:38:43 | [Mutex] waiting for: [configured:node:node-810c80aa-d4a2-4eb1-889e-2b5990b110d3:node-6c87d319-d502-4b07-a561-d63a77a54b10] 2021-09-22 22:38:43 | [Mutex] received everything. 2021-09-22 22:38:43 | [Mutex] isItemNotified: configured:node:node-810c80aa-d4a2-4eb1-889e-2b5990b110d3:node-6c87d319-d502-4b07-a561-d63a77a54b10 :: true 2021-09-22 22:38:44 | [Mutex] waiting for: [received:nodes:e5cb41eb-61b3-409b-9931-d2495c17ae85:localhost] 2021-09-22 22:38:44 | [Mutex] received everything. 2021-09-22 22:38:44 | [Mutex] isItemNotified: received:node:e5cb41eb-61b3-409b-9931-d2495c17ae85:localhost:node-810c80aa-d4a2-4eb1-889e-2b5990b110d3:Node 810c80aa-d4a2-4eb1-889e-2b5990b110d3 :: true 2021-09-22 22:38:44 | [Mutex] waiting for: [received:nodes:52e90f83-776f-48ac-afce-09096457113a:localhost] 2021-09-22 22:38:44 | [Mutex] received everything. 2021-09-22 22:38:44 | [Mutex] isItemNotified: received:node:52e90f83-776f-48ac-afce-09096457113a:localhost:node-810c80aa-d4a2-4eb1-889e-2b5990b110d3:Node 810c80aa-d4a2-4eb1-889e-2b5990b110d3 :: false |
createNodes | 1.755s |
2021-09-22 22:38:41 |
2021-09-22 22:38:41 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-09-22 22:38:41 | ------------------------------------ 2021-09-22 22:38:41 | on localhost executing action create-node with content type application/json and payload: { "owner": "admin@test-domain.com", "pubsub#node_type": "leaf", "node": "node-810c80aa-d4a2-4eb1-889e-2b5990b110d3", "pubsub#title": "Node 810c80aa-d4a2-4eb1-889e-2b5990b110d3" } 2021-09-22 22:38:41 | from localhost for action create-node got result code 200 and payload { "Note": "Operation successful" } 2021-09-22 22:38:42 | [Mutex] waiting for: [received:nodes:13e561b6-3f96-45ae-8bb3-3887ea845349:localhost] 2021-09-22 22:38:42 | [Mutex] waiting for: [received:nodes:13e561b6-3f96-45ae-8bb3-3887ea845349:localhost] 2021-09-22 22:38:42 | [Mutex] received everything. 2021-09-22 22:38:42 | [Mutex] isItemNotified: received:node:13e561b6-3f96-45ae-8bb3-3887ea845349:localhost:node-810c80aa-d4a2-4eb1-889e-2b5990b110d3:Node 810c80aa-d4a2-4eb1-889e-2b5990b110d3 :: true |
createSubnodes | 1.021s |
2021-09-22 22:38:42 |
2021-09-22 22:38:42 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-09-22 22:38:42 | ------------------------------------ 2021-09-22 22:38:42 | on localhost executing action create-node with content type application/json and payload: { "owner": "admin@test-domain.com", "pubsub#node_type": "collection", "node": "node-6c87d319-d502-4b07-a561-d63a77a54b10", "pubsub#title": "Node 6c87d319-d502-4b07-a561-d63a77a54b10" } 2021-09-22 22:38:42 | from localhost for action create-node got result code 200 and payload { "Note": "Operation successful" } 2021-09-22 22:38:43 | [Mutex] waiting for: [received:nodes:20f491b9-2874-4b6a-bcbf-b5b5e27b7df0:localhost] 2021-09-22 22:38:43 | [Mutex] received everything. 2021-09-22 22:38:43 | [Mutex] isItemNotified: received:node:20f491b9-2874-4b6a-bcbf-b5b5e27b7df0:localhost:node-6c87d319-d502-4b07-a561-d63a77a54b10:Node 6c87d319-d502-4b07-a561-d63a77a54b10 :: true |
deleteNodes | 1.019s |
2021-09-22 22:38:48 |
2021-09-22 22:38:48 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-09-22 22:38:48 | ------------------------------------ 2021-09-22 22:38:48 | on localhost executing action delete-node with content type application/json and payload: { "node": "node-6c87d319-d502-4b07-a561-d63a77a54b10" } 2021-09-22 22:38:48 | from localhost for action delete-node got result code 200 and payload { "Note": "Operation successful" } 2021-09-22 22:38:49 | [Mutex] waiting for: [received:nodes:30764f9d-5ddd-4ffa-9ad9-fb020f805f70:localhost] 2021-09-22 22:38:49 | [Mutex] received everything. 2021-09-22 22:38:49 | [Mutex] isItemNotified: received:node:30764f9d-5ddd-4ffa-9ad9-fb020f805f70:localhost:node-6c87d319-d502-4b07-a561-d63a77a54b10:Node 6c87d319-d502-4b07-a561-d63a77a54b10 :: false |
deleteSubnodes | 1.029s |
2021-09-22 22:38:47 |
2021-09-22 22:38:47 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-09-22 22:38:47 | ------------------------------------ 2021-09-22 22:38:47 | on localhost executing action delete-node with content type application/json and payload: { "node": "node-810c80aa-d4a2-4eb1-889e-2b5990b110d3" } 2021-09-22 22:38:47 | from localhost for action delete-node got result code 200 and payload { "Note": "Operation successful" } 2021-09-22 22:38:48 | [Mutex] waiting for: [received:nodes:87a96637-46fd-433b-8042-9469a9e03238:localhost] 2021-09-22 22:38:48 | [Mutex] waiting for: [received:nodes:87a96637-46fd-433b-8042-9469a9e03238:localhost] 2021-09-22 22:38:48 | [Mutex] waiting for: [received:nodes:87a96637-46fd-433b-8042-9469a9e03238:localhost] 2021-09-22 22:38:48 | [Mutex] received everything. 2021-09-22 22:38:48 | [Mutex] isItemNotified: received:node:87a96637-46fd-433b-8042-9469a9e03238:localhost:node-810c80aa-d4a2-4eb1-889e-2b5990b110d3:Node 810c80aa-d4a2-4eb1-889e-2b5990b110d3 :: false 2021-09-22 22:38:48 | [Mutex] waiting for: [received:nodes:910fa09e-44f3-4537-8b50-6718ec6ba102:localhost] 2021-09-22 22:38:48 | [Mutex] received everything. 2021-09-22 22:38:48 | [Mutex] isItemNotified: received:node:910fa09e-44f3-4537-8b50-6718ec6ba102:localhost:node-810c80aa-d4a2-4eb1-889e-2b5990b110d3:Node 810c80aa-d4a2-4eb1-889e-2b5990b110d3 :: false |
publishItemsToNodes | 0.079s |
2021-09-22 22:38:45 |
2021-09-22 22:38:45 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-09-22 22:38:45 | ------------------------------------ 2021-09-22 22:38:45 | on localhost executing action publish-item with content type application/json and payload: { "node": "node-810c80aa-d4a2-4eb1-889e-2b5990b110d3", "entry": "<test>item-9c948d48-3f0a-4858-bed4-a10f43c4fed7</test>", "item-id": "item-9c948d48-3f0a-4858-bed4-a10f43c4fed7" } 2021-09-22 22:38:46 | from localhost for action publish-item got result code 200 and payload { "Note": "Operation successful", "item-id": "item-9c948d48-3f0a-4858-bed4-a10f43c4fed7" } 2021-09-22 22:38:46 | [Mutex] waiting for: [published:item:notifieditem-9c948d48-3f0a-4858-bed4-a10f43c4fed7:admin@test-domain.com] 2021-09-22 22:38:46 | [Mutex] received everything. 2021-09-22 22:38:46 | [Mutex] isItemNotified: published:item:notifieditem-9c948d48-3f0a-4858-bed4-a10f43c4fed7:admin@test-domain.com :: true |
retractItemsFromNodes | 0.056s |
2021-09-22 22:38:46 |
2021-09-22 22:38:46 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-09-22 22:38:46 | ------------------------------------ 2021-09-22 22:38:46 | on localhost executing action delete-item with content type application/json and payload: { "node": "node-810c80aa-d4a2-4eb1-889e-2b5990b110d3", "item-id": "item-9c948d48-3f0a-4858-bed4-a10f43c4fed7" } 2021-09-22 22:38:46 | from localhost for action delete-item got result code 200 and payload { "Note": "Operation successful", "item-id": "item-9c948d48-3f0a-4858-bed4-a10f43c4fed7" } 2021-09-22 22:38:46 | [Mutex] received everything. 2021-09-22 22:38:46 | [Mutex] isItemNotified: retracted:item:notifieditem-9c948d48-3f0a-4858-bed4-a10f43c4fed7:admin@test-domain.com :: true |
retrieveItemsFromNodes | 0.056s |
2021-09-22 22:38:46 |
2021-09-22 22:38:46 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-09-22 22:38:46 | ------------------------------------ 2021-09-22 22:38:46 | on localhost executing action retrieve-item with content type application/json and payload: { "node": "node-810c80aa-d4a2-4eb1-889e-2b5990b110d3", "item-id": "item-9c948d48-3f0a-4858-bed4-a10f43c4fed7" } 2021-09-22 22:38:46 | from localhost for action retrieve-item got result code 200 and payload { "title": "Retrive PubSub node item", "node": "node-810c80aa-d4a2-4eb1-889e-2b5990b110d3", "item-id": "item-9c948d48-3f0a-4858-bed4-a10f43c4fed7", "item": [ "<item id=\"item-9c948d48-3f0a-4858-bed4-a10f43c4fed7\"><test>item-9c948d48-3f0a-4858-bed4-a10f43c4fed7</test></item>" ] } 2021-09-22 22:38:46 | [Mutex] notify: [retrieved:item:item-9c948d48-3f0a-4858-bed4-a10f43c4fed7:payload-matches:true:localhost] 2021-09-22 22:38:46 | [Mutex] received everything. 2021-09-22 22:38:46 | [Mutex] isItemNotified: retrieved:item:item-9c948d48-3f0a-4858-bed4-a10f43c4fed7:payload-matches:true:localhost :: true |
retrieveUserSubscriptions | 0.050s |
2021-09-22 22:38:46 |
2021-09-22 22:38:46 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-09-22 22:38:46 | ------------------------------------ 2021-09-22 22:38:46 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload: { "jid": "admin@test-domain.com" } 2021-09-22 22:38:46 | from localhost for action retrieve-user-subscriptions got result code 200 and payload { "nodes": [ "test", "node-810c80aa-d4a2-4eb1-889e-2b5990b110d3", "node-6c87d319-d502-4b07-a561-d63a77a54b10" ] } |
retrieveUserSubscriptionsWithRegex | 0.051s |
2021-09-22 22:38:46 |
2021-09-22 22:38:46 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-09-22 22:38:46 | ------------------------------------ 2021-09-22 22:38:46 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload: { "jid": "admin@test-domain.com", "node-pattern": "(?!node-810c80aa-d4a2-4eb1-889e-2b5990b110d3)" } 2021-09-22 22:38:46 | from localhost for action retrieve-user-subscriptions got result code 200 and payload { "nodes": [ ] } |
subscribeNodes | 1.011s |
2021-09-22 22:38:44 |
2021-09-22 22:38:44 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-09-22 22:38:44 | ------------------------------------ 2021-09-22 22:38:44 | on localhost executing action subscribe-node with content type application/json and payload: { "node": "node-810c80aa-d4a2-4eb1-889e-2b5990b110d3", "jids": [ "admin@test-domain.com" ] } 2021-09-22 22:38:44 | from localhost for action subscribe-node got result code 200 and payload { "Note": "Operation successful" } |
unsubscribeNodes | 1.071s |
2021-09-22 22:38:46 |
2021-09-22 22:38:46 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-09-22 22:38:46 | ------------------------------------ 2021-09-22 22:38:46 | on localhost executing action unsubscribe-node with content type application/json and payload: { "node": "node-810c80aa-d4a2-4eb1-889e-2b5990b110d3", "jids": [ "admin@test-domain.com" ] } 2021-09-22 22:38:46 | from localhost for action unsubscribe-node got result code 200 and payload { "Note": "Operation successful" } |