Test duration : 8.923s
Passed Tests | ||
---|---|---|
tigase.tests.pubsub.TestRestApiUsingJSON | ||
configureNodes | 1.113s |
2020-11-29 21:32:42 |
2020-11-29 21:32:42 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-11-29 21:32:42 | ------------------------------------ 2020-11-29 21:32:42 | [Mutex] waiting for: [configured:node:node-e64b4ab9-f892-4979-8e89-ea6824f47cd7:node-0d3de44a-ae8a-4d7a-9a5d-1cb22b274291] 2020-11-29 21:32:42 | [Mutex] received everything. 2020-11-29 21:32:42 | [Mutex] isItemNotified: configured:node:node-e64b4ab9-f892-4979-8e89-ea6824f47cd7:node-0d3de44a-ae8a-4d7a-9a5d-1cb22b274291 :: true 2020-11-29 21:32:43 | [Mutex] waiting for: [received:nodes:dad24667-612b-45c5-96a0-986d3cec6241:localhost] 2020-11-29 21:32:43 | [Mutex] waiting for: [received:nodes:dad24667-612b-45c5-96a0-986d3cec6241:localhost] 2020-11-29 21:32:43 | [Mutex] received everything. 2020-11-29 21:32:43 | [Mutex] isItemNotified: received:node:dad24667-612b-45c5-96a0-986d3cec6241:localhost:node-e64b4ab9-f892-4979-8e89-ea6824f47cd7:Node e64b4ab9-f892-4979-8e89-ea6824f47cd7 :: true 2020-11-29 21:32:43 | [Mutex] waiting for: [received:nodes:cb76a4ac-eea7-4ac2-b119-7e85ddb31618:localhost] 2020-11-29 21:32:43 | [Mutex] received everything. 2020-11-29 21:32:43 | [Mutex] isItemNotified: received:node:cb76a4ac-eea7-4ac2-b119-7e85ddb31618:localhost:node-e64b4ab9-f892-4979-8e89-ea6824f47cd7:Node e64b4ab9-f892-4979-8e89-ea6824f47cd7 :: false |
createNodes | 1.644s |
2020-11-29 21:32:39 |
2020-11-29 21:32:39 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-11-29 21:32:39 | ------------------------------------ 2020-11-29 21:32:40 | on localhost executing action create-node with content type application/json and payload: { "owner": "admin@test-domain.com", "pubsub#node_type": "leaf", "node": "node-e64b4ab9-f892-4979-8e89-ea6824f47cd7", "pubsub#title": "Node e64b4ab9-f892-4979-8e89-ea6824f47cd7" } 2020-11-29 21:32:40 | from localhost for action create-node got result code 200 and payload { "Note": "Operation successful" } 2020-11-29 21:32:41 | [Mutex] waiting for: [received:nodes:cf572399-fc31-42bd-af1c-c30d8c7e2be1:localhost] 2020-11-29 21:32:41 | [Mutex] received everything. 2020-11-29 21:32:41 | [Mutex] isItemNotified: received:node:cf572399-fc31-42bd-af1c-c30d8c7e2be1:localhost:node-e64b4ab9-f892-4979-8e89-ea6824f47cd7:Node e64b4ab9-f892-4979-8e89-ea6824f47cd7 :: true |
createSubnodes | 1.026s |
2020-11-29 21:32:41 |
2020-11-29 21:32:41 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-11-29 21:32:41 | ------------------------------------ 2020-11-29 21:32:41 | on localhost executing action create-node with content type application/json and payload: { "owner": "admin@test-domain.com", "pubsub#node_type": "collection", "node": "node-0d3de44a-ae8a-4d7a-9a5d-1cb22b274291", "pubsub#title": "Node 0d3de44a-ae8a-4d7a-9a5d-1cb22b274291" } 2020-11-29 21:32:41 | from localhost for action create-node got result code 200 and payload { "Note": "Operation successful" } 2020-11-29 21:32:42 | [Mutex] waiting for: [received:nodes:8e39f1e6-a3e9-4814-85e1-35ccce8c76f8:localhost] 2020-11-29 21:32:42 | [Mutex] received everything. 2020-11-29 21:32:42 | [Mutex] isItemNotified: received:node:8e39f1e6-a3e9-4814-85e1-35ccce8c76f8:localhost:node-0d3de44a-ae8a-4d7a-9a5d-1cb22b274291:Node 0d3de44a-ae8a-4d7a-9a5d-1cb22b274291 :: true |
deleteNodes | 1.023s |
2020-11-29 21:32:46 |
2020-11-29 21:32:46 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-11-29 21:32:46 | ------------------------------------ 2020-11-29 21:32:46 | on localhost executing action delete-node with content type application/json and payload: { "node": "node-0d3de44a-ae8a-4d7a-9a5d-1cb22b274291" } 2020-11-29 21:32:46 | from localhost for action delete-node got result code 200 and payload { "Note": "Operation successful" } 2020-11-29 21:32:47 | [Mutex] waiting for: [received:nodes:476ceaa4-6b0e-4dc7-ad57-b92ac2b6a19b:localhost] 2020-11-29 21:32:47 | [Mutex] received everything. 2020-11-29 21:32:47 | [Mutex] isItemNotified: received:node:476ceaa4-6b0e-4dc7-ad57-b92ac2b6a19b:localhost:node-0d3de44a-ae8a-4d7a-9a5d-1cb22b274291:Node 0d3de44a-ae8a-4d7a-9a5d-1cb22b274291 :: false |
deleteSubnodes | 1.025s |
2020-11-29 21:32:45 |
2020-11-29 21:32:45 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-11-29 21:32:45 | ------------------------------------ 2020-11-29 21:32:45 | on localhost executing action delete-node with content type application/json and payload: { "node": "node-e64b4ab9-f892-4979-8e89-ea6824f47cd7" } 2020-11-29 21:32:45 | from localhost for action delete-node got result code 200 and payload { "Note": "Operation successful" } 2020-11-29 21:32:46 | [Mutex] waiting for: [received:nodes:b69f9119-be43-4e72-8cfd-55e9d46516ff:localhost] 2020-11-29 21:32:46 | [Mutex] waiting for: [received:nodes:b69f9119-be43-4e72-8cfd-55e9d46516ff:localhost] 2020-11-29 21:32:46 | [Mutex] received everything. 2020-11-29 21:32:46 | [Mutex] isItemNotified: received:node:b69f9119-be43-4e72-8cfd-55e9d46516ff:localhost:node-e64b4ab9-f892-4979-8e89-ea6824f47cd7:Node e64b4ab9-f892-4979-8e89-ea6824f47cd7 :: false 2020-11-29 21:32:46 | [Mutex] waiting for: [received:nodes:da550749-e157-4059-8e54-fffd1c5b8b4b:localhost] 2020-11-29 21:32:46 | [Mutex] received everything. 2020-11-29 21:32:46 | [Mutex] isItemNotified: received:node:da550749-e157-4059-8e54-fffd1c5b8b4b:localhost:node-e64b4ab9-f892-4979-8e89-ea6824f47cd7:Node e64b4ab9-f892-4979-8e89-ea6824f47cd7 :: false |
publishItemsToNodes | 0.073s |
2020-11-29 21:32:44 |
2020-11-29 21:32:44 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-11-29 21:32:44 | ------------------------------------ 2020-11-29 21:32:44 | on localhost executing action publish-item with content type application/json and payload: { "node": "node-e64b4ab9-f892-4979-8e89-ea6824f47cd7", "entry": "<test>item-a9ec6fed-3567-46d4-bda6-402d5b540c40</test>", "item-id": "item-a9ec6fed-3567-46d4-bda6-402d5b540c40" } 2020-11-29 21:32:44 | from localhost for action publish-item got result code 200 and payload { "Note": "Operation successful", "item-id": "item-a9ec6fed-3567-46d4-bda6-402d5b540c40" } 2020-11-29 21:32:44 | [Mutex] waiting for: [published:item:notifieditem-a9ec6fed-3567-46d4-bda6-402d5b540c40:admin@test-domain.com] 2020-11-29 21:32:44 | [Mutex] received everything. 2020-11-29 21:32:44 | [Mutex] isItemNotified: published:item:notifieditem-a9ec6fed-3567-46d4-bda6-402d5b540c40:admin@test-domain.com :: true |
retractItemsFromNodes | 0.067s |
2020-11-29 21:32:44 |
2020-11-29 21:32:44 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-11-29 21:32:44 | ------------------------------------ 2020-11-29 21:32:44 | on localhost executing action delete-item with content type application/json and payload: { "node": "node-e64b4ab9-f892-4979-8e89-ea6824f47cd7", "item-id": "item-a9ec6fed-3567-46d4-bda6-402d5b540c40" } 2020-11-29 21:32:44 | from localhost for action delete-item got result code 200 and payload { "Note": "Operation successful", "item-id": "item-a9ec6fed-3567-46d4-bda6-402d5b540c40" } 2020-11-29 21:32:44 | [Mutex] received everything. 2020-11-29 21:32:44 | [Mutex] isItemNotified: retracted:item:notifieditem-a9ec6fed-3567-46d4-bda6-402d5b540c40:admin@test-domain.com :: true |
retrieveItemsFromNodes | 0.044s |
2020-11-29 21:32:44 |
2020-11-29 21:32:44 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-11-29 21:32:44 | ------------------------------------ 2020-11-29 21:32:44 | on localhost executing action retrieve-item with content type application/json and payload: { "node": "node-e64b4ab9-f892-4979-8e89-ea6824f47cd7", "item-id": "item-a9ec6fed-3567-46d4-bda6-402d5b540c40" } 2020-11-29 21:32:44 | from localhost for action retrieve-item got result code 200 and payload { "title": "Retrive PubSub node item", "node": "node-e64b4ab9-f892-4979-8e89-ea6824f47cd7", "item-id": "item-a9ec6fed-3567-46d4-bda6-402d5b540c40", "item": [ "<item id=\"item-a9ec6fed-3567-46d4-bda6-402d5b540c40\"><test>item-a9ec6fed-3567-46d4-bda6-402d5b540c40</test></item>" ] } 2020-11-29 21:32:44 | [Mutex] notify: [retrieved:item:item-a9ec6fed-3567-46d4-bda6-402d5b540c40:payload-matches:true:localhost] 2020-11-29 21:32:44 | [Mutex] received everything. 2020-11-29 21:32:44 | [Mutex] isItemNotified: retrieved:item:item-a9ec6fed-3567-46d4-bda6-402d5b540c40:payload-matches:true:localhost :: true |
retrieveUserSubscriptions | 0.061s |
2020-11-29 21:32:44 |
2020-11-29 21:32:44 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-11-29 21:32:44 | ------------------------------------ 2020-11-29 21:32:44 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload: { "jid": "admin@test-domain.com" } 2020-11-29 21:32:44 | from localhost for action retrieve-user-subscriptions got result code 200 and payload { "nodes": [ "test", "node-e64b4ab9-f892-4979-8e89-ea6824f47cd7", "node-0d3de44a-ae8a-4d7a-9a5d-1cb22b274291" ] } |
retrieveUserSubscriptionsWithRegex | 0.047s |
2020-11-29 21:32:44 |
2020-11-29 21:32:44 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-11-29 21:32:44 | ------------------------------------ 2020-11-29 21:32:44 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload: { "jid": "admin@test-domain.com", "node-pattern": "(?!node-e64b4ab9-f892-4979-8e89-ea6824f47cd7)" } 2020-11-29 21:32:44 | from localhost for action retrieve-user-subscriptions got result code 200 and payload { "nodes": [ ] } |
subscribeNodes | 1.011s |
2020-11-29 21:32:43 |
2020-11-29 21:32:43 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-11-29 21:32:43 | ------------------------------------ 2020-11-29 21:32:43 | on localhost executing action subscribe-node with content type application/json and payload: { "node": "node-e64b4ab9-f892-4979-8e89-ea6824f47cd7", "jids": [ "admin@test-domain.com" ] } 2020-11-29 21:32:43 | from localhost for action subscribe-node got result code 200 and payload { "Note": "Operation successful" } |
unsubscribeNodes | 1.051s |
2020-11-29 21:32:44 |
2020-11-29 21:32:44 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-11-29 21:32:44 | ------------------------------------ 2020-11-29 21:32:44 | on localhost executing action unsubscribe-node with content type application/json and payload: { "node": "node-e64b4ab9-f892-4979-8e89-ea6824f47cd7", "jids": [ "admin@test-domain.com" ] } 2020-11-29 21:32:44 | from localhost for action unsubscribe-node got result code 200 and payload { "Note": "Operation successful" } |