Test duration : 8.720s
Passed Tests | ||
---|---|---|
tigase.tests.pubsub.TestRestApiUsingJSON | ||
configureNodes | 1.092s |
2022-06-12 23:18:46 |
2022-06-12 23:18:46 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-06-12 23:18:46 | ------------------------------------ 2022-06-12 23:18:46 | [Mutex] waiting for: [configured:node:node-41f4205b-7df2-45be-a5bf-2f90d7d4aaeb:node-8a947d2c-b99e-4b13-a0de-66f186a058b0] 2022-06-12 23:18:46 | [Mutex] received everything. 2022-06-12 23:18:46 | [Mutex] isItemNotified: configured:node:node-41f4205b-7df2-45be-a5bf-2f90d7d4aaeb:node-8a947d2c-b99e-4b13-a0de-66f186a058b0 :: true 2022-06-12 23:18:47 | [Mutex] waiting for: [received:nodes:001f0f2e-fb16-4e84-b53e-886e3eb50d1f:localhost] 2022-06-12 23:18:47 | [Mutex] received everything. 2022-06-12 23:18:47 | [Mutex] isItemNotified: received:node:001f0f2e-fb16-4e84-b53e-886e3eb50d1f:localhost:node-41f4205b-7df2-45be-a5bf-2f90d7d4aaeb:Node 41f4205b-7df2-45be-a5bf-2f90d7d4aaeb :: true 2022-06-12 23:18:47 | [Mutex] waiting for: [received:nodes:052649c6-2d4f-4381-b485-3d097b33cbe7:localhost] 2022-06-12 23:18:47 | [Mutex] received everything. 2022-06-12 23:18:47 | [Mutex] isItemNotified: received:node:052649c6-2d4f-4381-b485-3d097b33cbe7:localhost:node-41f4205b-7df2-45be-a5bf-2f90d7d4aaeb:Node 41f4205b-7df2-45be-a5bf-2f90d7d4aaeb :: false |
createNodes | 1.642s |
2022-06-12 23:18:43 |
2022-06-12 23:18:43 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-06-12 23:18:43 | ------------------------------------ 2022-06-12 23:18: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-41f4205b-7df2-45be-a5bf-2f90d7d4aaeb", "pubsub#title": "Node 41f4205b-7df2-45be-a5bf-2f90d7d4aaeb" } 2022-06-12 23:18:44 | from localhost for action create-node got result code 200 and payload { "Note": "Operation successful" } 2022-06-12 23:18:45 | [Mutex] waiting for: [received:nodes:b90055dd-6b0a-4d03-b2fd-c42653caee9e:localhost] 2022-06-12 23:18:45 | [Mutex] received everything. 2022-06-12 23:18:45 | [Mutex] isItemNotified: received:node:b90055dd-6b0a-4d03-b2fd-c42653caee9e:localhost:node-41f4205b-7df2-45be-a5bf-2f90d7d4aaeb:Node 41f4205b-7df2-45be-a5bf-2f90d7d4aaeb :: true |
createSubnodes | 1.020s |
2022-06-12 23:18:45 |
2022-06-12 23:18:45 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-06-12 23:18:45 | ------------------------------------ 2022-06-12 23:18:45 | on localhost executing action create-node with content type application/json and payload: { "owner": "admin@test-domain.com", "pubsub#node_type": "collection", "node": "node-8a947d2c-b99e-4b13-a0de-66f186a058b0", "pubsub#title": "Node 8a947d2c-b99e-4b13-a0de-66f186a058b0" } 2022-06-12 23:18:45 | from localhost for action create-node got result code 200 and payload { "Note": "Operation successful" } 2022-06-12 23:18:46 | [Mutex] waiting for: [received:nodes:90af5699-8826-491b-bd0d-d981a4a61fda:localhost] 2022-06-12 23:18:46 | [Mutex] received everything. 2022-06-12 23:18:46 | [Mutex] isItemNotified: received:node:90af5699-8826-491b-bd0d-d981a4a61fda:localhost:node-8a947d2c-b99e-4b13-a0de-66f186a058b0:Node 8a947d2c-b99e-4b13-a0de-66f186a058b0 :: true |
deleteNodes | 1.018s |
2022-06-12 23:18:50 |
2022-06-12 23:18:50 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-06-12 23:18:50 | ------------------------------------ 2022-06-12 23:18:50 | on localhost executing action delete-node with content type application/json and payload: { "node": "node-8a947d2c-b99e-4b13-a0de-66f186a058b0" } 2022-06-12 23:18:50 | from localhost for action delete-node got result code 200 and payload { "Note": "Operation successful" } 2022-06-12 23:18:51 | [Mutex] waiting for: [received:nodes:717ee089-972a-49f2-b941-ccb66d8f9f43:localhost] 2022-06-12 23:18:51 | [Mutex] received everything. 2022-06-12 23:18:51 | [Mutex] isItemNotified: received:node:717ee089-972a-49f2-b941-ccb66d8f9f43:localhost:node-8a947d2c-b99e-4b13-a0de-66f186a058b0:Node 8a947d2c-b99e-4b13-a0de-66f186a058b0 :: false |
deleteSubnodes | 1.029s |
2022-06-12 23:18:49 |
2022-06-12 23:18:49 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-06-12 23:18:49 | ------------------------------------ 2022-06-12 23:18:49 | on localhost executing action delete-node with content type application/json and payload: { "node": "node-41f4205b-7df2-45be-a5bf-2f90d7d4aaeb" } 2022-06-12 23:18:49 | from localhost for action delete-node got result code 200 and payload { "Note": "Operation successful" } 2022-06-12 23:18:50 | [Mutex] waiting for: [received:nodes:66b786c1-9d5f-40ff-8e2d-909cbb1878c6:localhost] 2022-06-12 23:18:50 | [Mutex] received everything. 2022-06-12 23:18:50 | [Mutex] isItemNotified: received:node:66b786c1-9d5f-40ff-8e2d-909cbb1878c6:localhost:node-41f4205b-7df2-45be-a5bf-2f90d7d4aaeb:Node 41f4205b-7df2-45be-a5bf-2f90d7d4aaeb :: false 2022-06-12 23:18:50 | [Mutex] waiting for: [received:nodes:9f6f2935-c132-4f4d-af78-21e6d37efe04:localhost] 2022-06-12 23:18:50 | [Mutex] received everything. 2022-06-12 23:18:50 | [Mutex] isItemNotified: received:node:9f6f2935-c132-4f4d-af78-21e6d37efe04:localhost:node-41f4205b-7df2-45be-a5bf-2f90d7d4aaeb:Node 41f4205b-7df2-45be-a5bf-2f90d7d4aaeb :: false |
publishItemsToNodes | 0.073s |
2022-06-12 23:18:48 |
2022-06-12 23:18:48 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-06-12 23:18:48 | ------------------------------------ 2022-06-12 23:18:48 | on localhost executing action publish-item with content type application/json and payload: { "node": "node-41f4205b-7df2-45be-a5bf-2f90d7d4aaeb", "entry": "<test>item-1ce2e8d8-8e49-4791-b04e-beca603297e6</test>", "item-id": "item-1ce2e8d8-8e49-4791-b04e-beca603297e6" } 2022-06-12 23:18:48 | from localhost for action publish-item got result code 200 and payload { "Note": "Operation successful", "item-id": "item-1ce2e8d8-8e49-4791-b04e-beca603297e6" } 2022-06-12 23:18:48 | [Mutex] waiting for: [published:item:notifieditem-1ce2e8d8-8e49-4791-b04e-beca603297e6:admin@test-domain.com] 2022-06-12 23:18:48 | [Mutex] received everything. 2022-06-12 23:18:48 | [Mutex] isItemNotified: published:item:notifieditem-1ce2e8d8-8e49-4791-b04e-beca603297e6:admin@test-domain.com :: true |
retractItemsFromNodes | 0.052s |
2022-06-12 23:18:48 |
2022-06-12 23:18:48 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-06-12 23:18:48 | ------------------------------------ 2022-06-12 23:18:48 | on localhost executing action delete-item with content type application/json and payload: { "node": "node-41f4205b-7df2-45be-a5bf-2f90d7d4aaeb", "item-id": "item-1ce2e8d8-8e49-4791-b04e-beca603297e6" } 2022-06-12 23:18:48 | from localhost for action delete-item got result code 200 and payload { "Note": "Operation successful", "item-id": "item-1ce2e8d8-8e49-4791-b04e-beca603297e6" } 2022-06-12 23:18:48 | [Mutex] received everything. 2022-06-12 23:18:48 | [Mutex] isItemNotified: retracted:item:notifieditem-1ce2e8d8-8e49-4791-b04e-beca603297e6:admin@test-domain.com :: true |
retrieveItemsFromNodes | 0.059s |
2022-06-12 23:18:48 |
2022-06-12 23:18:48 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-06-12 23:18:48 | ------------------------------------ 2022-06-12 23:18:48 | on localhost executing action retrieve-item with content type application/json and payload: { "node": "node-41f4205b-7df2-45be-a5bf-2f90d7d4aaeb", "item-id": "item-1ce2e8d8-8e49-4791-b04e-beca603297e6" } 2022-06-12 23:18:48 | from localhost for action retrieve-item got result code 200 and payload { "title": "Retrive PubSub node item", "node": "node-41f4205b-7df2-45be-a5bf-2f90d7d4aaeb", "item-id": "item-1ce2e8d8-8e49-4791-b04e-beca603297e6", "item": [ "<item id=\"item-1ce2e8d8-8e49-4791-b04e-beca603297e6\"><test>item-1ce2e8d8-8e49-4791-b04e-beca603297e6</test></item>" ] } 2022-06-12 23:18:48 | [Mutex] notify: [retrieved:item:item-1ce2e8d8-8e49-4791-b04e-beca603297e6:payload-matches:true:localhost] 2022-06-12 23:18:48 | [Mutex] received everything. 2022-06-12 23:18:48 | [Mutex] isItemNotified: retrieved:item:item-1ce2e8d8-8e49-4791-b04e-beca603297e6:payload-matches:true:localhost :: true |
retrieveUserSubscriptions | 0.051s |
2022-06-12 23:18:48 |
2022-06-12 23:18:48 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-06-12 23:18:48 | ------------------------------------ 2022-06-12 23:18:48 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload: { "jid": "admin@test-domain.com" } 2022-06-12 23:18:48 | from localhost for action retrieve-user-subscriptions got result code 200 and payload { "nodes": [ "node-8a947d2c-b99e-4b13-a0de-66f186a058b0", "test", "node-41f4205b-7df2-45be-a5bf-2f90d7d4aaeb" ] } |
retrieveUserSubscriptionsWithRegex | 0.048s |
2022-06-12 23:18:48 |
2022-06-12 23:18:48 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-06-12 23:18:48 | ------------------------------------ 2022-06-12 23:18:48 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload: { "jid": "admin@test-domain.com", "node-pattern": "(?!node-41f4205b-7df2-45be-a5bf-2f90d7d4aaeb)" } 2022-06-12 23:18:48 | from localhost for action retrieve-user-subscriptions got result code 200 and payload { "nodes": [ ] } |
subscribeNodes | 1.008s |
2022-06-12 23:18:47 |
2022-06-12 23:18:47 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-06-12 23:18:47 | ------------------------------------ 2022-06-12 23:18:47 | on localhost executing action subscribe-node with content type application/json and payload: { "node": "node-41f4205b-7df2-45be-a5bf-2f90d7d4aaeb", "jids": [ "admin@test-domain.com" ] } 2022-06-12 23:18:47 | from localhost for action subscribe-node got result code 200 and payload { "Note": "Operation successful" } |
unsubscribeNodes | 1.090s |
2022-06-12 23:18:48 |
2022-06-12 23:18:48 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-06-12 23:18:48 | ------------------------------------ 2022-06-12 23:18:48 | on localhost executing action unsubscribe-node with content type application/json and payload: { "node": "node-41f4205b-7df2-45be-a5bf-2f90d7d4aaeb", "jids": [ "admin@test-domain.com" ] } 2022-06-12 23:18:48 | from localhost for action unsubscribe-node got result code 200 and payload { "Note": "Operation successful" } |