Test duration : 8.743s
Passed Tests | ||
---|---|---|
tigase.tests.pubsub.TestRestApiUsingJSON | ||
configureNodes | 1.099s |
2022-08-25 23:07:14 |
2022-08-25 23:07:14 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-08-25 23:07:14 | ------------------------------------ 2022-08-25 23:07:14 | [Mutex] waiting for: [configured:node:node-d1f952a1-eb27-4671-a045-3740dea79db6:node-cc0cbc90-cedd-433c-81a5-e1572d0d69e6] 2022-08-25 23:07:14 | [Mutex] received everything. 2022-08-25 23:07:14 | [Mutex] isItemNotified: configured:node:node-d1f952a1-eb27-4671-a045-3740dea79db6:node-cc0cbc90-cedd-433c-81a5-e1572d0d69e6 :: true 2022-08-25 23:07:15 | [Mutex] waiting for: [received:nodes:f1182421-d4f6-47c2-a285-f0011c25cc3c:localhost] 2022-08-25 23:07:15 | [Mutex] received everything. 2022-08-25 23:07:15 | [Mutex] isItemNotified: received:node:f1182421-d4f6-47c2-a285-f0011c25cc3c:localhost:node-d1f952a1-eb27-4671-a045-3740dea79db6:Node d1f952a1-eb27-4671-a045-3740dea79db6 :: true 2022-08-25 23:07:15 | [Mutex] waiting for: [received:nodes:9f6e9db9-22d1-4896-bd2f-c7adfb4841f6:localhost] 2022-08-25 23:07:15 | [Mutex] received everything. 2022-08-25 23:07:15 | [Mutex] isItemNotified: received:node:9f6e9db9-22d1-4896-bd2f-c7adfb4841f6:localhost:node-d1f952a1-eb27-4671-a045-3740dea79db6:Node d1f952a1-eb27-4671-a045-3740dea79db6 :: false |
createNodes | 1.681s |
2022-08-25 23:07:11 |
2022-08-25 23:07:11 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-08-25 23:07:11 | ------------------------------------ 2022-08-25 23:07:12 | on localhost executing action create-node with content type application/json and payload: { "owner": "admin@test-domain.com", "pubsub#node_type": "leaf", "node": "node-d1f952a1-eb27-4671-a045-3740dea79db6", "pubsub#title": "Node d1f952a1-eb27-4671-a045-3740dea79db6" } 2022-08-25 23:07:12 | from localhost for action create-node got result code 200 and payload { "Note": "Operation successful" } 2022-08-25 23:07:13 | [Mutex] waiting for: [received:nodes:707378e1-6267-4b42-b27d-9052ea52e725:localhost] 2022-08-25 23:07:13 | [Mutex] received everything. 2022-08-25 23:07:13 | [Mutex] isItemNotified: received:node:707378e1-6267-4b42-b27d-9052ea52e725:localhost:node-d1f952a1-eb27-4671-a045-3740dea79db6:Node d1f952a1-eb27-4671-a045-3740dea79db6 :: true |
createSubnodes | 1.067s |
2022-08-25 23:07:13 |
2022-08-25 23:07:13 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-08-25 23:07:13 | ------------------------------------ 2022-08-25 23:07:13 | on localhost executing action create-node with content type application/json and payload: { "owner": "admin@test-domain.com", "pubsub#node_type": "collection", "node": "node-cc0cbc90-cedd-433c-81a5-e1572d0d69e6", "pubsub#title": "Node cc0cbc90-cedd-433c-81a5-e1572d0d69e6" } 2022-08-25 23:07:13 | from localhost for action create-node got result code 200 and payload { "Note": "Operation successful" } 2022-08-25 23:07:14 | [Mutex] waiting for: [received:nodes:3c91d513-28aa-48bc-833f-b364a0cac499:localhost] 2022-08-25 23:07:14 | [Mutex] waiting for: [received:nodes:3c91d513-28aa-48bc-833f-b364a0cac499:localhost] 2022-08-25 23:07:14 | [Mutex] received everything. 2022-08-25 23:07:14 | [Mutex] isItemNotified: received:node:3c91d513-28aa-48bc-833f-b364a0cac499:localhost:node-cc0cbc90-cedd-433c-81a5-e1572d0d69e6:Node cc0cbc90-cedd-433c-81a5-e1572d0d69e6 :: true |
deleteNodes | 1.017s |
2022-08-25 23:07:18 |
2022-08-25 23:07:18 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-08-25 23:07:18 | ------------------------------------ 2022-08-25 23:07:18 | on localhost executing action delete-node with content type application/json and payload: { "node": "node-cc0cbc90-cedd-433c-81a5-e1572d0d69e6" } 2022-08-25 23:07:18 | from localhost for action delete-node got result code 200 and payload { "Note": "Operation successful" } 2022-08-25 23:07:19 | [Mutex] waiting for: [received:nodes:1c3d72b4-9144-43c8-afe4-1c19c9fea4ac:localhost] 2022-08-25 23:07:19 | [Mutex] received everything. 2022-08-25 23:07:19 | [Mutex] isItemNotified: received:node:1c3d72b4-9144-43c8-afe4-1c19c9fea4ac:localhost:node-cc0cbc90-cedd-433c-81a5-e1572d0d69e6:Node cc0cbc90-cedd-433c-81a5-e1572d0d69e6 :: false |
deleteSubnodes | 1.030s |
2022-08-25 23:07:17 |
2022-08-25 23:07:17 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-08-25 23:07:17 | ------------------------------------ 2022-08-25 23:07:17 | on localhost executing action delete-node with content type application/json and payload: { "node": "node-d1f952a1-eb27-4671-a045-3740dea79db6" } 2022-08-25 23:07:17 | from localhost for action delete-node got result code 200 and payload { "Note": "Operation successful" } 2022-08-25 23:07:18 | [Mutex] waiting for: [received:nodes:4cee53a6-f051-4e66-b081-49594994f158:localhost] 2022-08-25 23:07:18 | [Mutex] waiting for: [received:nodes:4cee53a6-f051-4e66-b081-49594994f158:localhost] 2022-08-25 23:07:18 | [Mutex] waiting for: [received:nodes:4cee53a6-f051-4e66-b081-49594994f158:localhost] 2022-08-25 23:07:18 | [Mutex] received everything. 2022-08-25 23:07:18 | [Mutex] isItemNotified: received:node:4cee53a6-f051-4e66-b081-49594994f158:localhost:node-d1f952a1-eb27-4671-a045-3740dea79db6:Node d1f952a1-eb27-4671-a045-3740dea79db6 :: false 2022-08-25 23:07:18 | [Mutex] waiting for: [received:nodes:58a72209-5669-4de5-97f8-d8dde571bda0:localhost] 2022-08-25 23:07:18 | [Mutex] received everything. 2022-08-25 23:07:18 | [Mutex] isItemNotified: received:node:58a72209-5669-4de5-97f8-d8dde571bda0:localhost:node-d1f952a1-eb27-4671-a045-3740dea79db6:Node d1f952a1-eb27-4671-a045-3740dea79db6 :: false |
publishItemsToNodes | 0.035s |
2022-08-25 23:07:16 |
2022-08-25 23:07:16 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-08-25 23:07:16 | ------------------------------------ 2022-08-25 23:07:16 | on localhost executing action publish-item with content type application/json and payload: { "node": "node-d1f952a1-eb27-4671-a045-3740dea79db6", "entry": "<test>item-3380138e-c62f-4a53-af31-e260d31ce9ba</test>", "item-id": "item-3380138e-c62f-4a53-af31-e260d31ce9ba" } 2022-08-25 23:07:16 | from localhost for action publish-item got result code 200 and payload { "Note": "Operation successful", "item-id": "item-3380138e-c62f-4a53-af31-e260d31ce9ba" } 2022-08-25 23:07:16 | [Mutex] waiting for: [published:item:notifieditem-3380138e-c62f-4a53-af31-e260d31ce9ba:admin@test-domain.com] 2022-08-25 23:07:16 | [Mutex] received everything. 2022-08-25 23:07:16 | [Mutex] isItemNotified: published:item:notifieditem-3380138e-c62f-4a53-af31-e260d31ce9ba:admin@test-domain.com :: true |
retractItemsFromNodes | 0.055s |
2022-08-25 23:07:16 |
2022-08-25 23:07:16 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-08-25 23:07:16 | ------------------------------------ 2022-08-25 23:07:16 | on localhost executing action delete-item with content type application/json and payload: { "node": "node-d1f952a1-eb27-4671-a045-3740dea79db6", "item-id": "item-3380138e-c62f-4a53-af31-e260d31ce9ba" } 2022-08-25 23:07:16 | from localhost for action delete-item got result code 200 and payload { "Note": "Operation successful", "item-id": "item-3380138e-c62f-4a53-af31-e260d31ce9ba" } 2022-08-25 23:07:16 | [Mutex] received everything. 2022-08-25 23:07:16 | [Mutex] isItemNotified: retracted:item:notifieditem-3380138e-c62f-4a53-af31-e260d31ce9ba:admin@test-domain.com :: true |
retrieveItemsFromNodes | 0.071s |
2022-08-25 23:07:16 |
2022-08-25 23:07:16 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-08-25 23:07:16 | ------------------------------------ 2022-08-25 23:07:16 | on localhost executing action retrieve-item with content type application/json and payload: { "node": "node-d1f952a1-eb27-4671-a045-3740dea79db6", "item-id": "item-3380138e-c62f-4a53-af31-e260d31ce9ba" } 2022-08-25 23:07:16 | from localhost for action retrieve-item got result code 200 and payload { "title": "Retrive PubSub node item", "node": "node-d1f952a1-eb27-4671-a045-3740dea79db6", "item-id": "item-3380138e-c62f-4a53-af31-e260d31ce9ba", "item": [ "<item id=\"item-3380138e-c62f-4a53-af31-e260d31ce9ba\"><test>item-3380138e-c62f-4a53-af31-e260d31ce9ba</test></item>" ] } 2022-08-25 23:07:16 | [Mutex] notify: [retrieved:item:item-3380138e-c62f-4a53-af31-e260d31ce9ba:payload-matches:true:localhost] 2022-08-25 23:07:16 | [Mutex] received everything. 2022-08-25 23:07:16 | [Mutex] isItemNotified: retrieved:item:item-3380138e-c62f-4a53-af31-e260d31ce9ba:payload-matches:true:localhost :: true |
retrieveUserSubscriptions | 0.047s |
2022-08-25 23:07:16 |
2022-08-25 23:07:16 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-08-25 23:07:16 | ------------------------------------ 2022-08-25 23:07:16 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload: { "jid": "admin@test-domain.com" } 2022-08-25 23:07:16 | from localhost for action retrieve-user-subscriptions got result code 200 and payload { "nodes": [ "test", "node-d1f952a1-eb27-4671-a045-3740dea79db6", "node-cc0cbc90-cedd-433c-81a5-e1572d0d69e6" ] } |
retrieveUserSubscriptionsWithRegex | 0.048s |
2022-08-25 23:07:16 |
2022-08-25 23:07:16 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-08-25 23:07:16 | ------------------------------------ 2022-08-25 23:07:16 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload: { "jid": "admin@test-domain.com", "node-pattern": "(?!node-d1f952a1-eb27-4671-a045-3740dea79db6)" } 2022-08-25 23:07:16 | from localhost for action retrieve-user-subscriptions got result code 200 and payload { "nodes": [ ] } |
subscribeNodes | 1.011s |
2022-08-25 23:07:15 |
2022-08-25 23:07:15 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-08-25 23:07:15 | ------------------------------------ 2022-08-25 23:07:15 | on localhost executing action subscribe-node with content type application/json and payload: { "node": "node-d1f952a1-eb27-4671-a045-3740dea79db6", "jids": [ "admin@test-domain.com" ] } 2022-08-25 23:07:15 | from localhost for action subscribe-node got result code 200 and payload { "Note": "Operation successful" } |
unsubscribeNodes | 1.051s |
2022-08-25 23:07:16 |
2022-08-25 23:07:16 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-08-25 23:07:16 | ------------------------------------ 2022-08-25 23:07:16 | on localhost executing action unsubscribe-node with content type application/json and payload: { "node": "node-d1f952a1-eb27-4671-a045-3740dea79db6", "jids": [ "admin@test-domain.com" ] } 2022-08-25 23:07:16 | from localhost for action unsubscribe-node got result code 200 and payload { "Note": "Operation successful" } |