Test duration : 9.048s
Passed Tests | ||
---|---|---|
tigase.tests.pubsub.TestRestApiUsingJSON | ||
configureNodes | 1.128s |
2021-10-05 22:31:47 |
2021-10-05 22:31:47 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-10-05 22:31:47 | ------------------------------------ 2021-10-05 22:31:47 | [Mutex] waiting for: [configured:node:node-6661c88f-3e13-4e70-b85c-e2c7669c3775:node-8b579318-68dd-4053-bfa4-f21b4ae1eb92] 2021-10-05 22:31:47 | [Mutex] received everything. 2021-10-05 22:31:47 | [Mutex] isItemNotified: configured:node:node-6661c88f-3e13-4e70-b85c-e2c7669c3775:node-8b579318-68dd-4053-bfa4-f21b4ae1eb92 :: true 2021-10-05 22:31:48 | [Mutex] waiting for: [received:nodes:0937a14f-04db-4797-af0c-440f543903ea:localhost] 2021-10-05 22:31:48 | [Mutex] received everything. 2021-10-05 22:31:48 | [Mutex] isItemNotified: received:node:0937a14f-04db-4797-af0c-440f543903ea:localhost:node-6661c88f-3e13-4e70-b85c-e2c7669c3775:Node 6661c88f-3e13-4e70-b85c-e2c7669c3775 :: true 2021-10-05 22:31:48 | [Mutex] waiting for: [received:nodes:eb7aae65-6c59-47ae-acda-b0cc32db7d36:localhost] 2021-10-05 22:31:48 | [Mutex] received everything. 2021-10-05 22:31:48 | [Mutex] isItemNotified: received:node:eb7aae65-6c59-47ae-acda-b0cc32db7d36:localhost:node-6661c88f-3e13-4e70-b85c-e2c7669c3775:Node 6661c88f-3e13-4e70-b85c-e2c7669c3775 :: false |
createNodes | 1.565s |
2021-10-05 22:31:44 |
2021-10-05 22:31:44 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-10-05 22:31:44 | ------------------------------------ 2021-10-05 22:31:44 | on localhost executing action create-node with content type application/json and payload: { "owner": "admin@test-domain.com", "pubsub#node_type": "leaf", "node": "node-6661c88f-3e13-4e70-b85c-e2c7669c3775", "pubsub#title": "Node 6661c88f-3e13-4e70-b85c-e2c7669c3775" } 2021-10-05 22:31:44 | from localhost for action create-node got result code 200 and payload { "Note": "Operation successful" } 2021-10-05 22:31:46 | [Mutex] waiting for: [received:nodes:cd56648d-969c-4e8c-946b-6bed0736398f:localhost] 2021-10-05 22:31:46 | [Mutex] received everything. 2021-10-05 22:31:46 | [Mutex] isItemNotified: received:node:cd56648d-969c-4e8c-946b-6bed0736398f:localhost:node-6661c88f-3e13-4e70-b85c-e2c7669c3775:Node 6661c88f-3e13-4e70-b85c-e2c7669c3775 :: true |
createSubnodes | 1.031s |
2021-10-05 22:31:46 |
2021-10-05 22:31:46 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-10-05 22:31:46 | ------------------------------------ 2021-10-05 22:31:46 | on localhost executing action create-node with content type application/json and payload: { "owner": "admin@test-domain.com", "pubsub#node_type": "collection", "node": "node-8b579318-68dd-4053-bfa4-f21b4ae1eb92", "pubsub#title": "Node 8b579318-68dd-4053-bfa4-f21b4ae1eb92" } 2021-10-05 22:31:46 | from localhost for action create-node got result code 200 and payload { "Note": "Operation successful" } 2021-10-05 22:31:47 | [Mutex] waiting for: [received:nodes:4c536584-7e9c-4f79-a6c5-1c65f56ed2b3:localhost] 2021-10-05 22:31:47 | [Mutex] received everything. 2021-10-05 22:31:47 | [Mutex] isItemNotified: received:node:4c536584-7e9c-4f79-a6c5-1c65f56ed2b3:localhost:node-8b579318-68dd-4053-bfa4-f21b4ae1eb92:Node 8b579318-68dd-4053-bfa4-f21b4ae1eb92 :: true |
deleteNodes | 1.030s |
2021-10-05 22:31:51 |
2021-10-05 22:31:51 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-10-05 22:31:51 | ------------------------------------ 2021-10-05 22:31:51 | on localhost executing action delete-node with content type application/json and payload: { "node": "node-8b579318-68dd-4053-bfa4-f21b4ae1eb92" } 2021-10-05 22:31:51 | from localhost for action delete-node got result code 200 and payload { "Note": "Operation successful" } 2021-10-05 22:31:52 | [Mutex] waiting for: [received:nodes:86c7f599-1dfc-43bf-8c52-ee800f14c4d3:localhost] 2021-10-05 22:31:52 | [Mutex] waiting for: [received:nodes:86c7f599-1dfc-43bf-8c52-ee800f14c4d3:localhost] 2021-10-05 22:31:52 | [Mutex] received everything. 2021-10-05 22:31:52 | [Mutex] isItemNotified: received:node:86c7f599-1dfc-43bf-8c52-ee800f14c4d3:localhost:node-8b579318-68dd-4053-bfa4-f21b4ae1eb92:Node 8b579318-68dd-4053-bfa4-f21b4ae1eb92 :: false |
deleteSubnodes | 1.030s |
2021-10-05 22:31:50 |
2021-10-05 22:31:50 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-10-05 22:31:50 | ------------------------------------ 2021-10-05 22:31:50 | on localhost executing action delete-node with content type application/json and payload: { "node": "node-6661c88f-3e13-4e70-b85c-e2c7669c3775" } 2021-10-05 22:31:50 | from localhost for action delete-node got result code 200 and payload { "Note": "Operation successful" } 2021-10-05 22:31:51 | [Mutex] waiting for: [received:nodes:70a67bed-d908-4bf1-9bb6-697de1352f97:localhost] 2021-10-05 22:31:51 | [Mutex] waiting for: [received:nodes:70a67bed-d908-4bf1-9bb6-697de1352f97:localhost] 2021-10-05 22:31:51 | [Mutex] waiting for: [received:nodes:70a67bed-d908-4bf1-9bb6-697de1352f97:localhost] 2021-10-05 22:31:51 | [Mutex] waiting for: [received:nodes:70a67bed-d908-4bf1-9bb6-697de1352f97:localhost] 2021-10-05 22:31:51 | [Mutex] received everything. 2021-10-05 22:31:51 | [Mutex] isItemNotified: received:node:70a67bed-d908-4bf1-9bb6-697de1352f97:localhost:node-6661c88f-3e13-4e70-b85c-e2c7669c3775:Node 6661c88f-3e13-4e70-b85c-e2c7669c3775 :: false 2021-10-05 22:31:51 | [Mutex] waiting for: [received:nodes:afd0fb75-51f6-4cdd-8b1b-28281f7b088d:localhost] 2021-10-05 22:31:51 | [Mutex] received everything. 2021-10-05 22:31:51 | [Mutex] isItemNotified: received:node:afd0fb75-51f6-4cdd-8b1b-28281f7b088d:localhost:node-6661c88f-3e13-4e70-b85c-e2c7669c3775:Node 6661c88f-3e13-4e70-b85c-e2c7669c3775 :: false |
publishItemsToNodes | 0.057s |
2021-10-05 22:31:49 |
2021-10-05 22:31:49 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-10-05 22:31:49 | ------------------------------------ 2021-10-05 22:31:49 | on localhost executing action publish-item with content type application/json and payload: { "node": "node-6661c88f-3e13-4e70-b85c-e2c7669c3775", "entry": "<test>item-05c53932-621f-4a17-af41-2696eb19dfd5</test>", "item-id": "item-05c53932-621f-4a17-af41-2696eb19dfd5" } 2021-10-05 22:31:49 | from localhost for action publish-item got result code 200 and payload { "Note": "Operation successful", "item-id": "item-05c53932-621f-4a17-af41-2696eb19dfd5" } 2021-10-05 22:31:49 | [Mutex] waiting for: [published:item:notifieditem-05c53932-621f-4a17-af41-2696eb19dfd5:admin@test-domain.com] 2021-10-05 22:31:49 | [Mutex] received everything. 2021-10-05 22:31:49 | [Mutex] isItemNotified: published:item:notifieditem-05c53932-621f-4a17-af41-2696eb19dfd5:admin@test-domain.com :: true |
retractItemsFromNodes | 0.063s |
2021-10-05 22:31:49 |
2021-10-05 22:31:49 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-10-05 22:31:49 | ------------------------------------ 2021-10-05 22:31:49 | on localhost executing action delete-item with content type application/json and payload: { "node": "node-6661c88f-3e13-4e70-b85c-e2c7669c3775", "item-id": "item-05c53932-621f-4a17-af41-2696eb19dfd5" } 2021-10-05 22:31:49 | from localhost for action delete-item got result code 200 and payload { "Note": "Operation successful", "item-id": "item-05c53932-621f-4a17-af41-2696eb19dfd5" } 2021-10-05 22:31:49 | [Mutex] received everything. 2021-10-05 22:31:49 | [Mutex] isItemNotified: retracted:item:notifieditem-05c53932-621f-4a17-af41-2696eb19dfd5:admin@test-domain.com :: true |
retrieveItemsFromNodes | 0.083s |
2021-10-05 22:31:49 |
2021-10-05 22:31:49 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-10-05 22:31:49 | ------------------------------------ 2021-10-05 22:31:49 | on localhost executing action retrieve-item with content type application/json and payload: { "node": "node-6661c88f-3e13-4e70-b85c-e2c7669c3775", "item-id": "item-05c53932-621f-4a17-af41-2696eb19dfd5" } 2021-10-05 22:31:49 | from localhost for action retrieve-item got result code 200 and payload { "title": "Retrive PubSub node item", "node": "node-6661c88f-3e13-4e70-b85c-e2c7669c3775", "item-id": "item-05c53932-621f-4a17-af41-2696eb19dfd5", "item": [ "<item id=\"item-05c53932-621f-4a17-af41-2696eb19dfd5\"><test>item-05c53932-621f-4a17-af41-2696eb19dfd5</test></item>" ] } 2021-10-05 22:31:49 | [Mutex] notify: [retrieved:item:item-05c53932-621f-4a17-af41-2696eb19dfd5:payload-matches:true:localhost] 2021-10-05 22:31:49 | [Mutex] received everything. 2021-10-05 22:31:49 | [Mutex] isItemNotified: retrieved:item:item-05c53932-621f-4a17-af41-2696eb19dfd5:payload-matches:true:localhost :: true |
retrieveUserSubscriptions | 0.051s |
2021-10-05 22:31:49 |
2021-10-05 22:31:49 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-10-05 22:31:49 | ------------------------------------ 2021-10-05 22:31:49 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload: { "jid": "admin@test-domain.com" } 2021-10-05 22:31:49 | from localhost for action retrieve-user-subscriptions got result code 200 and payload { "nodes": [ "test", "node-8b579318-68dd-4053-bfa4-f21b4ae1eb92", "node-6661c88f-3e13-4e70-b85c-e2c7669c3775" ] } |
retrieveUserSubscriptionsWithRegex | 0.051s |
2021-10-05 22:31:49 |
2021-10-05 22:31:49 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-10-05 22:31:49 | ------------------------------------ 2021-10-05 22:31:49 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload: { "jid": "admin@test-domain.com", "node-pattern": "(?!node-6661c88f-3e13-4e70-b85c-e2c7669c3775)" } 2021-10-05 22:31:49 | from localhost for action retrieve-user-subscriptions got result code 200 and payload { "nodes": [ ] } |
subscribeNodes | 1.014s |
2021-10-05 22:31:48 |
2021-10-05 22:31:48 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-10-05 22:31:48 | ------------------------------------ 2021-10-05 22:31:48 | on localhost executing action subscribe-node with content type application/json and payload: { "node": "node-6661c88f-3e13-4e70-b85c-e2c7669c3775", "jids": [ "admin@test-domain.com" ] } 2021-10-05 22:31:48 | from localhost for action subscribe-node got result code 200 and payload { "Note": "Operation successful" } |
unsubscribeNodes | 1.155s |
2021-10-05 22:31:49 |
2021-10-05 22:31:49 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-10-05 22:31:49 | ------------------------------------ 2021-10-05 22:31:49 | on localhost executing action unsubscribe-node with content type application/json and payload: { "node": "node-6661c88f-3e13-4e70-b85c-e2c7669c3775", "jids": [ "admin@test-domain.com" ] } 2021-10-05 22:31:49 | from localhost for action unsubscribe-node got result code 200 and payload { "Note": "Operation successful" } |