Test duration : 9.120s
Passed Tests | ||
---|---|---|
tigase.tests.pubsub.TestRestApiUsingJSON | ||
configureNodes | 1.128s |
2020-10-19 23:11:51 |
2020-10-19 23:11:51 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-10-19 23:11:51 | ------------------------------------ 2020-10-19 23:11:51 | [Mutex] waiting for: [configured:node:node-7e687926-fe7b-4647-ba54-fc7582742285:node-7d9ce7d9-1832-490e-be57-6b1adbe26780] 2020-10-19 23:11:51 | [Mutex] received everything. 2020-10-19 23:11:51 | [Mutex] isItemNotified: configured:node:node-7e687926-fe7b-4647-ba54-fc7582742285:node-7d9ce7d9-1832-490e-be57-6b1adbe26780 :: true 2020-10-19 23:11:52 | [Mutex] waiting for: [received:nodes:e99d8bda-009e-403f-b1a3-ca6f10aba2ce:localhost] 2020-10-19 23:11:52 | [Mutex] waiting for: [received:nodes:e99d8bda-009e-403f-b1a3-ca6f10aba2ce:localhost] 2020-10-19 23:11:52 | [Mutex] received everything. 2020-10-19 23:11:52 | [Mutex] isItemNotified: received:node:e99d8bda-009e-403f-b1a3-ca6f10aba2ce:localhost:node-7e687926-fe7b-4647-ba54-fc7582742285:Node 7e687926-fe7b-4647-ba54-fc7582742285 :: true 2020-10-19 23:11:52 | [Mutex] waiting for: [received:nodes:cec3ff7f-a682-4ffd-9979-f0e81948b5b5:localhost] 2020-10-19 23:11:52 | [Mutex] waiting for: [received:nodes:cec3ff7f-a682-4ffd-9979-f0e81948b5b5:localhost] 2020-10-19 23:11:52 | [Mutex] received everything. 2020-10-19 23:11:52 | [Mutex] isItemNotified: received:node:cec3ff7f-a682-4ffd-9979-f0e81948b5b5:localhost:node-7e687926-fe7b-4647-ba54-fc7582742285:Node 7e687926-fe7b-4647-ba54-fc7582742285 :: false |
createNodes | 1.655s |
2020-10-19 23:11:48 |
2020-10-19 23:11:48 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-10-19 23:11:48 | ------------------------------------ 2020-10-19 23:11:49 | on localhost executing action create-node with content type application/json and payload: { "owner": "admin@test-domain.com", "pubsub#node_type": "leaf", "node": "node-7e687926-fe7b-4647-ba54-fc7582742285", "pubsub#title": "Node 7e687926-fe7b-4647-ba54-fc7582742285" } 2020-10-19 23:11:49 | from localhost for action create-node got result code 200 and payload { "Note": "Operation successful" } 2020-10-19 23:11:50 | [Mutex] waiting for: [received:nodes:f6a2aa44-b0f3-4acc-9f89-810895ca75a8:localhost] 2020-10-19 23:11:50 | [Mutex] received everything. 2020-10-19 23:11:50 | [Mutex] isItemNotified: received:node:f6a2aa44-b0f3-4acc-9f89-810895ca75a8:localhost:node-7e687926-fe7b-4647-ba54-fc7582742285:Node 7e687926-fe7b-4647-ba54-fc7582742285 :: true |
createSubnodes | 1.029s |
2020-10-19 23:11:50 |
2020-10-19 23:11:50 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-10-19 23:11:50 | ------------------------------------ 2020-10-19 23:11:50 | on localhost executing action create-node with content type application/json and payload: { "owner": "admin@test-domain.com", "pubsub#node_type": "collection", "node": "node-7d9ce7d9-1832-490e-be57-6b1adbe26780", "pubsub#title": "Node 7d9ce7d9-1832-490e-be57-6b1adbe26780" } 2020-10-19 23:11:50 | from localhost for action create-node got result code 200 and payload { "Note": "Operation successful" } 2020-10-19 23:11:51 | [Mutex] waiting for: [received:nodes:531a5fc6-500a-4ad0-b7ab-4bf0ac2d0667:localhost] 2020-10-19 23:11:51 | [Mutex] received everything. 2020-10-19 23:11:51 | [Mutex] isItemNotified: received:node:531a5fc6-500a-4ad0-b7ab-4bf0ac2d0667:localhost:node-7d9ce7d9-1832-490e-be57-6b1adbe26780:Node 7d9ce7d9-1832-490e-be57-6b1adbe26780 :: true |
deleteNodes | 1.035s |
2020-10-19 23:11:56 |
2020-10-19 23:11:56 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-10-19 23:11:56 | ------------------------------------ 2020-10-19 23:11:56 | on localhost executing action delete-node with content type application/json and payload: { "node": "node-7d9ce7d9-1832-490e-be57-6b1adbe26780" } 2020-10-19 23:11:56 | from localhost for action delete-node got result code 200 and payload { "Note": "Operation successful" } 2020-10-19 23:11:57 | [Mutex] waiting for: [received:nodes:2c5091e6-4537-49e0-a0ea-f8f5acfc0d17:localhost] 2020-10-19 23:11:57 | [Mutex] received everything. 2020-10-19 23:11:57 | [Mutex] isItemNotified: received:node:2c5091e6-4537-49e0-a0ea-f8f5acfc0d17:localhost:node-7d9ce7d9-1832-490e-be57-6b1adbe26780:Node 7d9ce7d9-1832-490e-be57-6b1adbe26780 :: false |
deleteSubnodes | 1.031s |
2020-10-19 23:11:55 |
2020-10-19 23:11:55 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-10-19 23:11:55 | ------------------------------------ 2020-10-19 23:11:55 | on localhost executing action delete-node with content type application/json and payload: { "node": "node-7e687926-fe7b-4647-ba54-fc7582742285" } 2020-10-19 23:11:55 | from localhost for action delete-node got result code 200 and payload { "Note": "Operation successful" } 2020-10-19 23:11:56 | [Mutex] waiting for: [received:nodes:ceaa1c45-30a6-48f5-91e5-5da9943db29d:localhost] 2020-10-19 23:11:56 | [Mutex] received everything. 2020-10-19 23:11:56 | [Mutex] isItemNotified: received:node:ceaa1c45-30a6-48f5-91e5-5da9943db29d:localhost:node-7e687926-fe7b-4647-ba54-fc7582742285:Node 7e687926-fe7b-4647-ba54-fc7582742285 :: false 2020-10-19 23:11:56 | [Mutex] waiting for: [received:nodes:55b54a97-f65b-4113-9be4-6683758ddb80:localhost] 2020-10-19 23:11:56 | [Mutex] received everything. 2020-10-19 23:11:56 | [Mutex] isItemNotified: received:node:55b54a97-f65b-4113-9be4-6683758ddb80:localhost:node-7e687926-fe7b-4647-ba54-fc7582742285:Node 7e687926-fe7b-4647-ba54-fc7582742285 :: false |
publishItemsToNodes | 0.058s |
2020-10-19 23:11:53 |
2020-10-19 23:11:53 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-10-19 23:11:53 | ------------------------------------ 2020-10-19 23:11:53 | on localhost executing action publish-item with content type application/json and payload: { "node": "node-7e687926-fe7b-4647-ba54-fc7582742285", "entry": "<test>item-231c5707-8a7c-4318-97a6-f8b24a8dd77e</test>", "item-id": "item-231c5707-8a7c-4318-97a6-f8b24a8dd77e" } 2020-10-19 23:11:53 | from localhost for action publish-item got result code 200 and payload { "Note": "Operation successful", "item-id": "item-231c5707-8a7c-4318-97a6-f8b24a8dd77e" } 2020-10-19 23:11:53 | [Mutex] waiting for: [published:item:notifieditem-231c5707-8a7c-4318-97a6-f8b24a8dd77e:admin@test-domain.com] 2020-10-19 23:11:53 | [Mutex] received everything. 2020-10-19 23:11:53 | [Mutex] isItemNotified: published:item:notifieditem-231c5707-8a7c-4318-97a6-f8b24a8dd77e:admin@test-domain.com :: true |
retractItemsFromNodes | 0.067s |
2020-10-19 23:11:53 |
2020-10-19 23:11:53 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-10-19 23:11:53 | ------------------------------------ 2020-10-19 23:11:53 | on localhost executing action delete-item with content type application/json and payload: { "node": "node-7e687926-fe7b-4647-ba54-fc7582742285", "item-id": "item-231c5707-8a7c-4318-97a6-f8b24a8dd77e" } 2020-10-19 23:11:54 | from localhost for action delete-item got result code 200 and payload { "Note": "Operation successful", "item-id": "item-231c5707-8a7c-4318-97a6-f8b24a8dd77e" } 2020-10-19 23:11:54 | [Mutex] waiting for: [retracted:item:notifieditem-231c5707-8a7c-4318-97a6-f8b24a8dd77e:admin@test-domain.com] 2020-10-19 23:11:54 | [Mutex] received everything. 2020-10-19 23:11:54 | [Mutex] isItemNotified: retracted:item:notifieditem-231c5707-8a7c-4318-97a6-f8b24a8dd77e:admin@test-domain.com :: true |
retrieveItemsFromNodes | 0.036s |
2020-10-19 23:11:53 |
2020-10-19 23:11:53 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-10-19 23:11:53 | ------------------------------------ 2020-10-19 23:11:53 | on localhost executing action retrieve-item with content type application/json and payload: { "node": "node-7e687926-fe7b-4647-ba54-fc7582742285", "item-id": "item-231c5707-8a7c-4318-97a6-f8b24a8dd77e" } 2020-10-19 23:11:53 | from localhost for action retrieve-item got result code 200 and payload { "title": "Retrive PubSub node item", "node": "node-7e687926-fe7b-4647-ba54-fc7582742285", "item-id": "item-231c5707-8a7c-4318-97a6-f8b24a8dd77e", "item": [ "<item id=\"item-231c5707-8a7c-4318-97a6-f8b24a8dd77e\"><test>item-231c5707-8a7c-4318-97a6-f8b24a8dd77e</test></item>" ] } 2020-10-19 23:11:53 | [Mutex] notify: [retrieved:item:item-231c5707-8a7c-4318-97a6-f8b24a8dd77e:payload-matches:true:localhost] 2020-10-19 23:11:53 | [Mutex] received everything. 2020-10-19 23:11:53 | [Mutex] isItemNotified: retrieved:item:item-231c5707-8a7c-4318-97a6-f8b24a8dd77e:payload-matches:true:localhost :: true |
retrieveUserSubscriptions | 0.076s |
2020-10-19 23:11:53 |
2020-10-19 23:11:53 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-10-19 23:11:53 | ------------------------------------ 2020-10-19 23:11:53 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload: { "jid": "admin@test-domain.com" } 2020-10-19 23:11:53 | from localhost for action retrieve-user-subscriptions got result code 200 and payload { "nodes": [ "test", "node-7d9ce7d9-1832-490e-be57-6b1adbe26780", "node-7e687926-fe7b-4647-ba54-fc7582742285" ] } |
retrieveUserSubscriptionsWithRegex | 0.051s |
2020-10-19 23:11:53 |
2020-10-19 23:11:53 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-10-19 23:11:53 | ------------------------------------ 2020-10-19 23:11:53 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload: { "jid": "admin@test-domain.com", "node-pattern": "(?!node-7e687926-fe7b-4647-ba54-fc7582742285)" } 2020-10-19 23:11:53 | from localhost for action retrieve-user-subscriptions got result code 200 and payload { "nodes": [ ] } |
subscribeNodes | 1.026s |
2020-10-19 23:11:52 |
2020-10-19 23:11:52 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-10-19 23:11:52 | ------------------------------------ 2020-10-19 23:11:52 | on localhost executing action subscribe-node with content type application/json and payload: { "node": "node-7e687926-fe7b-4647-ba54-fc7582742285", "jids": [ "admin@test-domain.com" ] } 2020-10-19 23:11:52 | from localhost for action subscribe-node got result code 200 and payload { "Note": "Operation successful" } |
unsubscribeNodes | 1.092s |
2020-10-19 23:11:54 |
2020-10-19 23:11:54 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-10-19 23:11:54 | ------------------------------------ 2020-10-19 23:11:54 | on localhost executing action unsubscribe-node with content type application/json and payload: { "node": "node-7e687926-fe7b-4647-ba54-fc7582742285", "jids": [ "admin@test-domain.com" ] } 2020-10-19 23:11:54 | from localhost for action unsubscribe-node got result code 200 and payload { "Note": "Operation successful" } |