Test duration : 9.045s
Passed Tests | ||
---|---|---|
tigase.tests.pubsub.TestRestApiUsingJSON | ||
configureNodes | 1.126s |
2021-03-05 04:31:40 |
2021-03-05 04:31:40 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-03-05 04:31:40 | ------------------------------------ 2021-03-05 04:31:40 | [Mutex] waiting for: [configured:node:node-67f5abca-5658-49a6-bea4-c2d5c8f610ab:node-bcac71b5-72c3-412d-945d-4166f5003882] 2021-03-05 04:31:40 | [Mutex] received everything. 2021-03-05 04:31:40 | [Mutex] isItemNotified: configured:node:node-67f5abca-5658-49a6-bea4-c2d5c8f610ab:node-bcac71b5-72c3-412d-945d-4166f5003882 :: true 2021-03-05 04:31:41 | [Mutex] waiting for: [received:nodes:56c5fff7-cd59-4024-bb51-20ca8280237a:localhost] 2021-03-05 04:31:41 | [Mutex] received everything. 2021-03-05 04:31:41 | [Mutex] isItemNotified: received:node:56c5fff7-cd59-4024-bb51-20ca8280237a:localhost:node-67f5abca-5658-49a6-bea4-c2d5c8f610ab:Node 67f5abca-5658-49a6-bea4-c2d5c8f610ab :: true 2021-03-05 04:31:41 | [Mutex] waiting for: [received:nodes:a5acea49-418d-422a-99ce-172033392339:localhost] 2021-03-05 04:31:41 | [Mutex] received everything. 2021-03-05 04:31:41 | [Mutex] isItemNotified: received:node:a5acea49-418d-422a-99ce-172033392339:localhost:node-67f5abca-5658-49a6-bea4-c2d5c8f610ab:Node 67f5abca-5658-49a6-bea4-c2d5c8f610ab :: false |
createNodes | 1.666s |
2021-03-05 04:31:38 |
2021-03-05 04:31:38 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-03-05 04:31:38 | ------------------------------------ 2021-03-05 04:31:38 | on localhost executing action create-node with content type application/json and payload: { "owner": "admin@test-domain.com", "pubsub#node_type": "leaf", "node": "node-67f5abca-5658-49a6-bea4-c2d5c8f610ab", "pubsub#title": "Node 67f5abca-5658-49a6-bea4-c2d5c8f610ab" } 2021-03-05 04:31:38 | from localhost for action create-node got result code 200 and payload { "Note": "Operation successful" } 2021-03-05 04:31:39 | [Mutex] waiting for: [received:nodes:8abe9c40-7466-4cd2-b3a4-5b8defd54dcf:localhost] 2021-03-05 04:31:39 | [Mutex] received everything. 2021-03-05 04:31:39 | [Mutex] isItemNotified: received:node:8abe9c40-7466-4cd2-b3a4-5b8defd54dcf:localhost:node-67f5abca-5658-49a6-bea4-c2d5c8f610ab:Node 67f5abca-5658-49a6-bea4-c2d5c8f610ab :: true |
createSubnodes | 1.036s |
2021-03-05 04:31:39 |
2021-03-05 04:31:39 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-03-05 04:31:39 | ------------------------------------ 2021-03-05 04:31:39 | on localhost executing action create-node with content type application/json and payload: { "owner": "admin@test-domain.com", "pubsub#node_type": "collection", "node": "node-bcac71b5-72c3-412d-945d-4166f5003882", "pubsub#title": "Node bcac71b5-72c3-412d-945d-4166f5003882" } 2021-03-05 04:31:39 | from localhost for action create-node got result code 200 and payload { "Note": "Operation successful" } 2021-03-05 04:31:40 | [Mutex] waiting for: [received:nodes:9ddfed13-ac52-498f-80ff-cc3f30b5b1fb:localhost] 2021-03-05 04:31:40 | [Mutex] received everything. 2021-03-05 04:31:40 | [Mutex] isItemNotified: received:node:9ddfed13-ac52-498f-80ff-cc3f30b5b1fb:localhost:node-bcac71b5-72c3-412d-945d-4166f5003882:Node bcac71b5-72c3-412d-945d-4166f5003882 :: true |
deleteNodes | 1.026s |
2021-03-05 04:31:45 |
2021-03-05 04:31:45 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-03-05 04:31:45 | ------------------------------------ 2021-03-05 04:31:45 | on localhost executing action delete-node with content type application/json and payload: { "node": "node-bcac71b5-72c3-412d-945d-4166f5003882" } 2021-03-05 04:31:45 | from localhost for action delete-node got result code 200 and payload { "Note": "Operation successful" } 2021-03-05 04:31:46 | [Mutex] waiting for: [received:nodes:ab2ee2a3-8d79-463e-8195-59f989793217:localhost] 2021-03-05 04:31:46 | [Mutex] received everything. 2021-03-05 04:31:46 | [Mutex] isItemNotified: received:node:ab2ee2a3-8d79-463e-8195-59f989793217:localhost:node-bcac71b5-72c3-412d-945d-4166f5003882:Node bcac71b5-72c3-412d-945d-4166f5003882 :: false |
deleteSubnodes | 1.030s |
2021-03-05 04:31:44 |
2021-03-05 04:31:44 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-03-05 04:31:44 | ------------------------------------ 2021-03-05 04:31:44 | on localhost executing action delete-node with content type application/json and payload: { "node": "node-67f5abca-5658-49a6-bea4-c2d5c8f610ab" } 2021-03-05 04:31:44 | from localhost for action delete-node got result code 200 and payload { "Note": "Operation successful" } 2021-03-05 04:31:45 | [Mutex] waiting for: [received:nodes:82ff37d9-a61d-4a8e-88fd-935b37920416:localhost] 2021-03-05 04:31:45 | [Mutex] waiting for: [received:nodes:82ff37d9-a61d-4a8e-88fd-935b37920416:localhost] 2021-03-05 04:31:45 | [Mutex] received everything. 2021-03-05 04:31:45 | [Mutex] isItemNotified: received:node:82ff37d9-a61d-4a8e-88fd-935b37920416:localhost:node-67f5abca-5658-49a6-bea4-c2d5c8f610ab:Node 67f5abca-5658-49a6-bea4-c2d5c8f610ab :: false 2021-03-05 04:31:45 | [Mutex] waiting for: [received:nodes:6e03c9d7-3c9c-4a79-9fcd-c6e5888b8fdf:localhost] 2021-03-05 04:31:45 | [Mutex] received everything. 2021-03-05 04:31:45 | [Mutex] isItemNotified: received:node:6e03c9d7-3c9c-4a79-9fcd-c6e5888b8fdf:localhost:node-67f5abca-5658-49a6-bea4-c2d5c8f610ab:Node 67f5abca-5658-49a6-bea4-c2d5c8f610ab :: false |
publishItemsToNodes | 0.048s |
2021-03-05 04:31:42 |
2021-03-05 04:31:42 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-03-05 04:31:42 | ------------------------------------ 2021-03-05 04:31:42 | on localhost executing action publish-item with content type application/json and payload: { "node": "node-67f5abca-5658-49a6-bea4-c2d5c8f610ab", "entry": "<test>item-73ed09a7-0207-4ee8-a68a-7130ccadad44</test>", "item-id": "item-73ed09a7-0207-4ee8-a68a-7130ccadad44" } 2021-03-05 04:31:43 | from localhost for action publish-item got result code 200 and payload { "Note": "Operation successful", "item-id": "item-73ed09a7-0207-4ee8-a68a-7130ccadad44" } 2021-03-05 04:31:43 | [Mutex] waiting for: [published:item:notifieditem-73ed09a7-0207-4ee8-a68a-7130ccadad44:admin@test-domain.com] 2021-03-05 04:31:43 | [Mutex] received everything. 2021-03-05 04:31:43 | [Mutex] isItemNotified: published:item:notifieditem-73ed09a7-0207-4ee8-a68a-7130ccadad44:admin@test-domain.com :: true |
retractItemsFromNodes | 0.064s |
2021-03-05 04:31:43 |
2021-03-05 04:31:43 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-03-05 04:31:43 | ------------------------------------ 2021-03-05 04:31:43 | on localhost executing action delete-item with content type application/json and payload: { "node": "node-67f5abca-5658-49a6-bea4-c2d5c8f610ab", "item-id": "item-73ed09a7-0207-4ee8-a68a-7130ccadad44" } 2021-03-05 04:31:43 | from localhost for action delete-item got result code 200 and payload { "Note": "Operation successful", "item-id": "item-73ed09a7-0207-4ee8-a68a-7130ccadad44" } 2021-03-05 04:31:43 | [Mutex] received everything. 2021-03-05 04:31:43 | [Mutex] isItemNotified: retracted:item:notifieditem-73ed09a7-0207-4ee8-a68a-7130ccadad44:admin@test-domain.com :: true |
retrieveItemsFromNodes | 0.064s |
2021-03-05 04:31:43 |
2021-03-05 04:31:43 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-03-05 04:31:43 | ------------------------------------ 2021-03-05 04:31:43 | on localhost executing action retrieve-item with content type application/json and payload: { "node": "node-67f5abca-5658-49a6-bea4-c2d5c8f610ab", "item-id": "item-73ed09a7-0207-4ee8-a68a-7130ccadad44" } 2021-03-05 04:31:43 | from localhost for action retrieve-item got result code 200 and payload { "title": "Retrive PubSub node item", "node": "node-67f5abca-5658-49a6-bea4-c2d5c8f610ab", "item-id": "item-73ed09a7-0207-4ee8-a68a-7130ccadad44", "item": [ "<item id=\"item-73ed09a7-0207-4ee8-a68a-7130ccadad44\"><test>item-73ed09a7-0207-4ee8-a68a-7130ccadad44</test></item>" ] } 2021-03-05 04:31:43 | [Mutex] notify: [retrieved:item:item-73ed09a7-0207-4ee8-a68a-7130ccadad44:payload-matches:true:localhost] 2021-03-05 04:31:43 | [Mutex] received everything. 2021-03-05 04:31:43 | [Mutex] isItemNotified: retrieved:item:item-73ed09a7-0207-4ee8-a68a-7130ccadad44:payload-matches:true:localhost :: true |
retrieveUserSubscriptions | 0.051s |
2021-03-05 04:31:43 |
2021-03-05 04:31:43 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-03-05 04:31:43 | ------------------------------------ 2021-03-05 04:31:43 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload: { "jid": "admin@test-domain.com" } 2021-03-05 04:31:43 | from localhost for action retrieve-user-subscriptions got result code 200 and payload { "nodes": [ "test", "node-67f5abca-5658-49a6-bea4-c2d5c8f610ab", "node-bcac71b5-72c3-412d-945d-4166f5003882" ] } |
retrieveUserSubscriptionsWithRegex | 0.051s |
2021-03-05 04:31:43 |
2021-03-05 04:31:43 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-03-05 04:31:43 | ------------------------------------ 2021-03-05 04:31:43 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload: { "jid": "admin@test-domain.com", "node-pattern": "(?!node-67f5abca-5658-49a6-bea4-c2d5c8f610ab)" } 2021-03-05 04:31:43 | from localhost for action retrieve-user-subscriptions got result code 200 and payload { "nodes": [ ] } |
subscribeNodes | 1.011s |
2021-03-05 04:31:41 |
2021-03-05 04:31:41 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-03-05 04:31:41 | ------------------------------------ 2021-03-05 04:31:41 | on localhost executing action subscribe-node with content type application/json and payload: { "node": "node-67f5abca-5658-49a6-bea4-c2d5c8f610ab", "jids": [ "admin@test-domain.com" ] } 2021-03-05 04:31:41 | from localhost for action subscribe-node got result code 200 and payload { "Note": "Operation successful" } |
unsubscribeNodes | 1.076s |
2021-03-05 04:31:43 |
2021-03-05 04:31:43 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-03-05 04:31:43 | ------------------------------------ 2021-03-05 04:31:43 | on localhost executing action unsubscribe-node with content type application/json and payload: { "node": "node-67f5abca-5658-49a6-bea4-c2d5c8f610ab", "jids": [ "admin@test-domain.com" ] } 2021-03-05 04:31:43 | from localhost for action unsubscribe-node got result code 200 and payload { "Note": "Operation successful" } |