Test duration : 8.607s
Passed Tests | ||
---|---|---|
tigase.tests.pubsub.TestRestApiUsingJSON | ||
configureNodes | 1.105s |
2022-12-22 22:02:50 |
2022-12-22 22:02:50 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-12-22 22:02:50 | ------------------------------------ 2022-12-22 22:02:50 | [Mutex] waiting for: [configured:node:node-c4921c10-3e9d-4918-b916-3dbb5e42796a:node-dd9e1128-fdc5-40ee-9abc-aec4c2371e68] 2022-12-22 22:02:50 | [Mutex] received everything. 2022-12-22 22:02:50 | [Mutex] isItemNotified: configured:node:node-c4921c10-3e9d-4918-b916-3dbb5e42796a:node-dd9e1128-fdc5-40ee-9abc-aec4c2371e68 :: true 2022-12-22 22:02:51 | [Mutex] waiting for: [received:nodes:6a57b7b3-e36e-4faf-a470-98ae3867c2b2:localhost] 2022-12-22 22:02:51 | [Mutex] received everything. 2022-12-22 22:02:51 | [Mutex] isItemNotified: received:node:6a57b7b3-e36e-4faf-a470-98ae3867c2b2:localhost:node-c4921c10-3e9d-4918-b916-3dbb5e42796a:Node c4921c10-3e9d-4918-b916-3dbb5e42796a :: true 2022-12-22 22:02:51 | [Mutex] waiting for: [received:nodes:f8474081-851c-4944-b2f9-c5029ddbbd7c:localhost] 2022-12-22 22:02:51 | [Mutex] waiting for: [received:nodes:f8474081-851c-4944-b2f9-c5029ddbbd7c:localhost] 2022-12-22 22:02:51 | [Mutex] waiting for: [received:nodes:f8474081-851c-4944-b2f9-c5029ddbbd7c:localhost] 2022-12-22 22:02:51 | [Mutex] received everything. 2022-12-22 22:02:51 | [Mutex] isItemNotified: received:node:f8474081-851c-4944-b2f9-c5029ddbbd7c:localhost:node-c4921c10-3e9d-4918-b916-3dbb5e42796a:Node c4921c10-3e9d-4918-b916-3dbb5e42796a :: false |
createNodes | 1.561s |
2022-12-22 22:02:47 |
2022-12-22 22:02:47 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-12-22 22:02:47 | ------------------------------------ 2022-12-22 22:02:48 | on localhost executing action create-node with content type application/json and payload: { "owner": "admin@test-domain.com", "pubsub#node_type": "leaf", "node": "node-c4921c10-3e9d-4918-b916-3dbb5e42796a", "pubsub#title": "Node c4921c10-3e9d-4918-b916-3dbb5e42796a" } 2022-12-22 22:02:48 | from localhost for action create-node got result code 200 and payload { "Note": "Operation successful" } 2022-12-22 22:02:49 | [Mutex] waiting for: [received:nodes:246407f5-e6d3-47d9-821e-7681a2644108:localhost] 2022-12-22 22:02:49 | [Mutex] received everything. 2022-12-22 22:02:49 | [Mutex] isItemNotified: received:node:246407f5-e6d3-47d9-821e-7681a2644108:localhost:node-c4921c10-3e9d-4918-b916-3dbb5e42796a:Node c4921c10-3e9d-4918-b916-3dbb5e42796a :: true |
createSubnodes | 1.020s |
2022-12-22 22:02:49 |
2022-12-22 22:02:49 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-12-22 22:02:49 | ------------------------------------ 2022-12-22 22:02:49 | on localhost executing action create-node with content type application/json and payload: { "owner": "admin@test-domain.com", "pubsub#node_type": "collection", "node": "node-dd9e1128-fdc5-40ee-9abc-aec4c2371e68", "pubsub#title": "Node dd9e1128-fdc5-40ee-9abc-aec4c2371e68" } 2022-12-22 22:02:49 | from localhost for action create-node got result code 200 and payload { "Note": "Operation successful" } 2022-12-22 22:02:50 | [Mutex] waiting for: [received:nodes:897d6dec-d235-4672-a483-588b38b2ff6f:localhost] 2022-12-22 22:02:50 | [Mutex] received everything. 2022-12-22 22:02:50 | [Mutex] isItemNotified: received:node:897d6dec-d235-4672-a483-588b38b2ff6f:localhost:node-dd9e1128-fdc5-40ee-9abc-aec4c2371e68:Node dd9e1128-fdc5-40ee-9abc-aec4c2371e68 :: true |
deleteNodes | 1.021s |
2022-12-22 22:02:55 |
2022-12-22 22:02:55 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-12-22 22:02:55 | ------------------------------------ 2022-12-22 22:02:55 | on localhost executing action delete-node with content type application/json and payload: { "node": "node-dd9e1128-fdc5-40ee-9abc-aec4c2371e68" } 2022-12-22 22:02:55 | from localhost for action delete-node got result code 200 and payload { "Note": "Operation successful" } 2022-12-22 22:02:56 | [Mutex] waiting for: [received:nodes:2a3e81d6-9a69-46bd-a98f-4f8796aa4fc2:localhost] 2022-12-22 22:02:56 | [Mutex] waiting for: [received:nodes:2a3e81d6-9a69-46bd-a98f-4f8796aa4fc2:localhost] 2022-12-22 22:02:56 | [Mutex] waiting for: [received:nodes:2a3e81d6-9a69-46bd-a98f-4f8796aa4fc2:localhost] 2022-12-22 22:02:56 | [Mutex] received everything. 2022-12-22 22:02:56 | [Mutex] isItemNotified: received:node:2a3e81d6-9a69-46bd-a98f-4f8796aa4fc2:localhost:node-dd9e1128-fdc5-40ee-9abc-aec4c2371e68:Node dd9e1128-fdc5-40ee-9abc-aec4c2371e68 :: false |
deleteSubnodes | 1.035s |
2022-12-22 22:02:54 |
2022-12-22 22:02:54 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-12-22 22:02:54 | ------------------------------------ 2022-12-22 22:02:54 | on localhost executing action delete-node with content type application/json and payload: { "node": "node-c4921c10-3e9d-4918-b916-3dbb5e42796a" } 2022-12-22 22:02:54 | from localhost for action delete-node got result code 200 and payload { "Note": "Operation successful" } 2022-12-22 22:02:55 | [Mutex] waiting for: [received:nodes:cfb1d35f-12cd-4661-943d-eb978893c678:localhost] 2022-12-22 22:02:55 | [Mutex] received everything. 2022-12-22 22:02:55 | [Mutex] isItemNotified: received:node:cfb1d35f-12cd-4661-943d-eb978893c678:localhost:node-c4921c10-3e9d-4918-b916-3dbb5e42796a:Node c4921c10-3e9d-4918-b916-3dbb5e42796a :: false 2022-12-22 22:02:55 | [Mutex] waiting for: [received:nodes:85000613-c804-4b97-8c00-18915728b57e:localhost] 2022-12-22 22:02:55 | [Mutex] received everything. 2022-12-22 22:02:55 | [Mutex] isItemNotified: received:node:85000613-c804-4b97-8c00-18915728b57e:localhost:node-c4921c10-3e9d-4918-b916-3dbb5e42796a:Node c4921c10-3e9d-4918-b916-3dbb5e42796a :: false |
publishItemsToNodes | 0.134s |
2022-12-22 22:02:52 |
2022-12-22 22:02:52 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-12-22 22:02:52 | ------------------------------------ 2022-12-22 22:02:52 | on localhost executing action publish-item with content type application/json and payload: { "node": "node-c4921c10-3e9d-4918-b916-3dbb5e42796a", "entry": "<test>item-ff869eb2-0cf9-499a-9fbe-eb11eb2db867</test>", "item-id": "item-ff869eb2-0cf9-499a-9fbe-eb11eb2db867" } 2022-12-22 22:02:52 | from localhost for action publish-item got result code 200 and payload { "Note": "Operation successful", "item-id": "item-ff869eb2-0cf9-499a-9fbe-eb11eb2db867" } 2022-12-22 22:02:52 | [Mutex] waiting for: [published:item:notifieditem-ff869eb2-0cf9-499a-9fbe-eb11eb2db867:admin@test-domain.com] 2022-12-22 22:02:52 | [Mutex] received everything. 2022-12-22 22:02:52 | [Mutex] isItemNotified: published:item:notifieditem-ff869eb2-0cf9-499a-9fbe-eb11eb2db867:admin@test-domain.com :: true |
retractItemsFromNodes | 0.063s |
2022-12-22 22:02:52 |
2022-12-22 22:02:52 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-12-22 22:02:52 | ------------------------------------ 2022-12-22 22:02:52 | on localhost executing action delete-item with content type application/json and payload: { "node": "node-c4921c10-3e9d-4918-b916-3dbb5e42796a", "item-id": "item-ff869eb2-0cf9-499a-9fbe-eb11eb2db867" } 2022-12-22 22:02:52 | from localhost for action delete-item got result code 200 and payload { "Note": "Operation successful", "item-id": "item-ff869eb2-0cf9-499a-9fbe-eb11eb2db867" } 2022-12-22 22:02:52 | [Mutex] received everything. 2022-12-22 22:02:52 | [Mutex] isItemNotified: retracted:item:notifieditem-ff869eb2-0cf9-499a-9fbe-eb11eb2db867:admin@test-domain.com :: true |
retrieveItemsFromNodes | 0.012s |
2022-12-22 22:02:52 |
2022-12-22 22:02:52 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-12-22 22:02:52 | ------------------------------------ 2022-12-22 22:02:52 | on localhost executing action retrieve-item with content type application/json and payload: { "node": "node-c4921c10-3e9d-4918-b916-3dbb5e42796a", "item-id": "item-ff869eb2-0cf9-499a-9fbe-eb11eb2db867" } 2022-12-22 22:02:52 | from localhost for action retrieve-item got result code 200 and payload { "title": "Retrive PubSub node item", "node": "node-c4921c10-3e9d-4918-b916-3dbb5e42796a", "item-id": "item-ff869eb2-0cf9-499a-9fbe-eb11eb2db867", "item": [ "<item id=\"item-ff869eb2-0cf9-499a-9fbe-eb11eb2db867\"><test>item-ff869eb2-0cf9-499a-9fbe-eb11eb2db867</test></item>" ] } 2022-12-22 22:02:52 | [Mutex] notify: [retrieved:item:item-ff869eb2-0cf9-499a-9fbe-eb11eb2db867:payload-matches:true:localhost] 2022-12-22 22:02:52 | [Mutex] received everything. 2022-12-22 22:02:52 | [Mutex] isItemNotified: retrieved:item:item-ff869eb2-0cf9-499a-9fbe-eb11eb2db867:payload-matches:true:localhost :: true |
retrieveUserSubscriptions | 0.047s |
2022-12-22 22:02:52 |
2022-12-22 22:02:52 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-12-22 22:02:52 | ------------------------------------ 2022-12-22 22:02:52 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload: { "jid": "admin@test-domain.com" } 2022-12-22 22:02:52 | from localhost for action retrieve-user-subscriptions got result code 200 and payload { "nodes": [ "test", "node-dd9e1128-fdc5-40ee-9abc-aec4c2371e68", "node-c4921c10-3e9d-4918-b916-3dbb5e42796a" ] } |
retrieveUserSubscriptionsWithRegex | 0.048s |
2022-12-22 22:02:52 |
2022-12-22 22:02:52 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-12-22 22:02:52 | ------------------------------------ 2022-12-22 22:02:52 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload: { "jid": "admin@test-domain.com", "node-pattern": "(?!node-c4921c10-3e9d-4918-b916-3dbb5e42796a)" } 2022-12-22 22:02:52 | from localhost for action retrieve-user-subscriptions got result code 200 and payload { "nodes": [ ] } |
subscribeNodes | 1.007s |
2022-12-22 22:02:51 |
2022-12-22 22:02:51 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-12-22 22:02:51 | ------------------------------------ 2022-12-22 22:02:51 | on localhost executing action subscribe-node with content type application/json and payload: { "node": "node-c4921c10-3e9d-4918-b916-3dbb5e42796a", "jids": [ "admin@test-domain.com" ] } 2022-12-22 22:02:51 | from localhost for action subscribe-node got result code 200 and payload { "Note": "Operation successful" } |
unsubscribeNodes | 1.067s |
2022-12-22 22:02:52 |
2022-12-22 22:02:52 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-12-22 22:02:52 | ------------------------------------ 2022-12-22 22:02:52 | on localhost executing action unsubscribe-node with content type application/json and payload: { "node": "node-c4921c10-3e9d-4918-b916-3dbb5e42796a", "jids": [ "admin@test-domain.com" ] } 2022-12-22 22:02:53 | from localhost for action unsubscribe-node got result code 200 and payload { "Note": "Operation successful" } |