Test duration : 9.163s
Passed Tests | ||
---|---|---|
tigase.tests.pubsub.TestRestApiUsingJSON | ||
configureNodes | 1.114s |
2021-01-18 21:38:25 |
2021-01-18 21:38:25 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-01-18 21:38:25 | ------------------------------------ 2021-01-18 21:38:25 | [Mutex] waiting for: [configured:node:node-bfbb7a76-d4f5-4dfa-bfbc-f384a41aa2eb:node-3d555472-dd49-4b1c-bace-58e0719e1bce] 2021-01-18 21:38:26 | [Mutex] received everything. 2021-01-18 21:38:26 | [Mutex] isItemNotified: configured:node:node-bfbb7a76-d4f5-4dfa-bfbc-f384a41aa2eb:node-3d555472-dd49-4b1c-bace-58e0719e1bce :: true 2021-01-18 21:38:27 | [Mutex] waiting for: [received:nodes:f7d04b4e-7a16-43fb-ab66-508c178d4260:localhost] 2021-01-18 21:38:27 | [Mutex] received everything. 2021-01-18 21:38:27 | [Mutex] isItemNotified: received:node:f7d04b4e-7a16-43fb-ab66-508c178d4260:localhost:node-bfbb7a76-d4f5-4dfa-bfbc-f384a41aa2eb:Node bfbb7a76-d4f5-4dfa-bfbc-f384a41aa2eb :: true 2021-01-18 21:38:27 | [Mutex] waiting for: [received:nodes:d4ac55d5-62e9-4253-8fe5-913da3158ecd:localhost] 2021-01-18 21:38:27 | [Mutex] received everything. 2021-01-18 21:38:27 | [Mutex] isItemNotified: received:node:d4ac55d5-62e9-4253-8fe5-913da3158ecd:localhost:node-bfbb7a76-d4f5-4dfa-bfbc-f384a41aa2eb:Node bfbb7a76-d4f5-4dfa-bfbc-f384a41aa2eb :: false |
createNodes | 1.720s |
2021-01-18 21:38:23 |
2021-01-18 21:38:23 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-01-18 21:38:23 | ------------------------------------ 2021-01-18 21:38:23 | on localhost executing action create-node with content type application/json and payload: { "owner": "admin@test-domain.com", "pubsub#node_type": "leaf", "node": "node-bfbb7a76-d4f5-4dfa-bfbc-f384a41aa2eb", "pubsub#title": "Node bfbb7a76-d4f5-4dfa-bfbc-f384a41aa2eb" } 2021-01-18 21:38:23 | from localhost for action create-node got result code 200 and payload { "Note": "Operation successful" } 2021-01-18 21:38:24 | [Mutex] waiting for: [received:nodes:d7af57e5-f385-47c8-867b-a43b63bd92cb:localhost] 2021-01-18 21:38:24 | [Mutex] waiting for: [received:nodes:d7af57e5-f385-47c8-867b-a43b63bd92cb:localhost] 2021-01-18 21:38:24 | [Mutex] received everything. 2021-01-18 21:38:24 | [Mutex] isItemNotified: received:node:d7af57e5-f385-47c8-867b-a43b63bd92cb:localhost:node-bfbb7a76-d4f5-4dfa-bfbc-f384a41aa2eb:Node bfbb7a76-d4f5-4dfa-bfbc-f384a41aa2eb :: true |
createSubnodes | 1.029s |
2021-01-18 21:38:24 |
2021-01-18 21:38:24 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-01-18 21:38:24 | ------------------------------------ 2021-01-18 21:38:24 | on localhost executing action create-node with content type application/json and payload: { "owner": "admin@test-domain.com", "pubsub#node_type": "collection", "node": "node-3d555472-dd49-4b1c-bace-58e0719e1bce", "pubsub#title": "Node 3d555472-dd49-4b1c-bace-58e0719e1bce" } 2021-01-18 21:38:24 | from localhost for action create-node got result code 200 and payload { "Note": "Operation successful" } 2021-01-18 21:38:25 | [Mutex] waiting for: [received:nodes:760e5090-1f06-45f2-a1ac-e530f4e4fd0e:localhost] 2021-01-18 21:38:25 | [Mutex] received everything. 2021-01-18 21:38:25 | [Mutex] isItemNotified: received:node:760e5090-1f06-45f2-a1ac-e530f4e4fd0e:localhost:node-3d555472-dd49-4b1c-bace-58e0719e1bce:Node 3d555472-dd49-4b1c-bace-58e0719e1bce :: true |
deleteNodes | 1.025s |
2021-01-18 21:38:30 |
2021-01-18 21:38:30 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-01-18 21:38:30 | ------------------------------------ 2021-01-18 21:38:30 | on localhost executing action delete-node with content type application/json and payload: { "node": "node-3d555472-dd49-4b1c-bace-58e0719e1bce" } 2021-01-18 21:38:30 | from localhost for action delete-node got result code 200 and payload { "Note": "Operation successful" } 2021-01-18 21:38:31 | [Mutex] waiting for: [received:nodes:c526509d-b79d-4791-9d7a-9cdacc46c1a9:localhost] 2021-01-18 21:38:31 | [Mutex] received everything. 2021-01-18 21:38:31 | [Mutex] isItemNotified: received:node:c526509d-b79d-4791-9d7a-9cdacc46c1a9:localhost:node-3d555472-dd49-4b1c-bace-58e0719e1bce:Node 3d555472-dd49-4b1c-bace-58e0719e1bce :: false |
deleteSubnodes | 1.025s |
2021-01-18 21:38:29 |
2021-01-18 21:38:29 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-01-18 21:38:29 | ------------------------------------ 2021-01-18 21:38:29 | on localhost executing action delete-node with content type application/json and payload: { "node": "node-bfbb7a76-d4f5-4dfa-bfbc-f384a41aa2eb" } 2021-01-18 21:38:29 | from localhost for action delete-node got result code 200 and payload { "Note": "Operation successful" } 2021-01-18 21:38:30 | [Mutex] waiting for: [received:nodes:b2958ece-61cc-4ea6-97c9-b3683a0f577e:localhost] 2021-01-18 21:38:30 | [Mutex] received everything. 2021-01-18 21:38:30 | [Mutex] isItemNotified: received:node:b2958ece-61cc-4ea6-97c9-b3683a0f577e:localhost:node-bfbb7a76-d4f5-4dfa-bfbc-f384a41aa2eb:Node bfbb7a76-d4f5-4dfa-bfbc-f384a41aa2eb :: false 2021-01-18 21:38:30 | [Mutex] waiting for: [received:nodes:a89a4c60-5c30-444f-a947-8d5e7d59f186:localhost] 2021-01-18 21:38:30 | [Mutex] received everything. 2021-01-18 21:38:30 | [Mutex] isItemNotified: received:node:a89a4c60-5c30-444f-a947-8d5e7d59f186:localhost:node-bfbb7a76-d4f5-4dfa-bfbc-f384a41aa2eb:Node bfbb7a76-d4f5-4dfa-bfbc-f384a41aa2eb :: false |
publishItemsToNodes | 0.044s |
2021-01-18 21:38:28 |
2021-01-18 21:38:28 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-01-18 21:38:28 | ------------------------------------ 2021-01-18 21:38:28 | on localhost executing action publish-item with content type application/json and payload: { "node": "node-bfbb7a76-d4f5-4dfa-bfbc-f384a41aa2eb", "entry": "<test>item-213416b3-55e2-4490-941e-03f019e405f3</test>", "item-id": "item-213416b3-55e2-4490-941e-03f019e405f3" } 2021-01-18 21:38:28 | from localhost for action publish-item got result code 200 and payload { "Note": "Operation successful", "item-id": "item-213416b3-55e2-4490-941e-03f019e405f3" } 2021-01-18 21:38:28 | [Mutex] waiting for: [published:item:notifieditem-213416b3-55e2-4490-941e-03f019e405f3:admin@test-domain.com] 2021-01-18 21:38:28 | [Mutex] received everything. 2021-01-18 21:38:28 | [Mutex] isItemNotified: published:item:notifieditem-213416b3-55e2-4490-941e-03f019e405f3:admin@test-domain.com :: true |
retractItemsFromNodes | 0.068s |
2021-01-18 21:38:28 |
2021-01-18 21:38:28 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-01-18 21:38:28 | ------------------------------------ 2021-01-18 21:38:28 | on localhost executing action delete-item with content type application/json and payload: { "node": "node-bfbb7a76-d4f5-4dfa-bfbc-f384a41aa2eb", "item-id": "item-213416b3-55e2-4490-941e-03f019e405f3" } 2021-01-18 21:38:28 | from localhost for action delete-item got result code 200 and payload { "Note": "Operation successful", "item-id": "item-213416b3-55e2-4490-941e-03f019e405f3" } 2021-01-18 21:38:28 | [Mutex] received everything. 2021-01-18 21:38:28 | [Mutex] isItemNotified: retracted:item:notifieditem-213416b3-55e2-4490-941e-03f019e405f3:admin@test-domain.com :: true |
retrieveItemsFromNodes | 0.058s |
2021-01-18 21:38:28 |
2021-01-18 21:38:28 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-01-18 21:38:28 | ------------------------------------ 2021-01-18 21:38:28 | on localhost executing action retrieve-item with content type application/json and payload: { "node": "node-bfbb7a76-d4f5-4dfa-bfbc-f384a41aa2eb", "item-id": "item-213416b3-55e2-4490-941e-03f019e405f3" } 2021-01-18 21:38:28 | from localhost for action retrieve-item got result code 200 and payload { "title": "Retrive PubSub node item", "node": "node-bfbb7a76-d4f5-4dfa-bfbc-f384a41aa2eb", "item-id": "item-213416b3-55e2-4490-941e-03f019e405f3", "item": [ "<item id=\"item-213416b3-55e2-4490-941e-03f019e405f3\"><test>item-213416b3-55e2-4490-941e-03f019e405f3</test></item>" ] } 2021-01-18 21:38:28 | [Mutex] notify: [retrieved:item:item-213416b3-55e2-4490-941e-03f019e405f3:payload-matches:true:localhost] 2021-01-18 21:38:28 | [Mutex] received everything. 2021-01-18 21:38:28 | [Mutex] isItemNotified: retrieved:item:item-213416b3-55e2-4490-941e-03f019e405f3:payload-matches:true:localhost :: true |
retrieveUserSubscriptions | 0.052s |
2021-01-18 21:38:28 |
2021-01-18 21:38:28 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-01-18 21:38:28 | ------------------------------------ 2021-01-18 21:38:28 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload: { "jid": "admin@test-domain.com" } 2021-01-18 21:38:28 | from localhost for action retrieve-user-subscriptions got result code 200 and payload { "nodes": [ "test", "node-3d555472-dd49-4b1c-bace-58e0719e1bce", "node-bfbb7a76-d4f5-4dfa-bfbc-f384a41aa2eb" ] } |
retrieveUserSubscriptionsWithRegex | 0.051s |
2021-01-18 21:38:28 |
2021-01-18 21:38:28 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-01-18 21:38:28 | ------------------------------------ 2021-01-18 21:38:28 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload: { "jid": "admin@test-domain.com", "node-pattern": "(?!node-bfbb7a76-d4f5-4dfa-bfbc-f384a41aa2eb)" } 2021-01-18 21:38:28 | from localhost for action retrieve-user-subscriptions got result code 200 and payload { "nodes": [ ] } |
subscribeNodes | 1.012s |
2021-01-18 21:38:27 |
2021-01-18 21:38:27 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-01-18 21:38:27 | ------------------------------------ 2021-01-18 21:38:27 | on localhost executing action subscribe-node with content type application/json and payload: { "node": "node-bfbb7a76-d4f5-4dfa-bfbc-f384a41aa2eb", "jids": [ "admin@test-domain.com" ] } 2021-01-18 21:38:27 | from localhost for action subscribe-node got result code 200 and payload { "Note": "Operation successful" } |
unsubscribeNodes | 1.168s |
2021-01-18 21:38:28 |
2021-01-18 21:38:28 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-01-18 21:38:28 | ------------------------------------ 2021-01-18 21:38:28 | on localhost executing action unsubscribe-node with content type application/json and payload: { "node": "node-bfbb7a76-d4f5-4dfa-bfbc-f384a41aa2eb", "jids": [ "admin@test-domain.com" ] } 2021-01-18 21:38:28 | from localhost for action unsubscribe-node got result code 200 and payload { "Note": "Operation successful" } |