Test duration : 9.015s
Passed Tests | ||
---|---|---|
tigase.tests.pubsub.TestRestApiUsingJSON | ||
configureNodes | 1.101s |
2021-10-12 23:06:53 |
2021-10-12 23:06:53 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-10-12 23:06:53 | ------------------------------------ 2021-10-12 23:06:53 | [Mutex] waiting for: [configured:node:node-7e90baa3-6f1d-49c3-8c88-50ff5bf3c8d8:node-128b463d-dcc4-4d65-9db8-0752b6e1577f] 2021-10-12 23:06:53 | [Mutex] received everything. 2021-10-12 23:06:53 | [Mutex] isItemNotified: configured:node:node-7e90baa3-6f1d-49c3-8c88-50ff5bf3c8d8:node-128b463d-dcc4-4d65-9db8-0752b6e1577f :: true 2021-10-12 23:06:54 | [Mutex] waiting for: [received:nodes:09152328-9bb7-4fa5-a723-fdb520fe0ee2:localhost] 2021-10-12 23:06:54 | [Mutex] received everything. 2021-10-12 23:06:54 | [Mutex] isItemNotified: received:node:09152328-9bb7-4fa5-a723-fdb520fe0ee2:localhost:node-7e90baa3-6f1d-49c3-8c88-50ff5bf3c8d8:Node 7e90baa3-6f1d-49c3-8c88-50ff5bf3c8d8 :: true 2021-10-12 23:06:54 | [Mutex] waiting for: [received:nodes:1ee70108-8aa2-4ef0-aa36-3192100153e3:localhost] 2021-10-12 23:06:54 | [Mutex] waiting for: [received:nodes:1ee70108-8aa2-4ef0-aa36-3192100153e3:localhost] 2021-10-12 23:06:54 | [Mutex] waiting for: [received:nodes:1ee70108-8aa2-4ef0-aa36-3192100153e3:localhost] 2021-10-12 23:06:54 | [Mutex] received everything. 2021-10-12 23:06:54 | [Mutex] isItemNotified: received:node:1ee70108-8aa2-4ef0-aa36-3192100153e3:localhost:node-7e90baa3-6f1d-49c3-8c88-50ff5bf3c8d8:Node 7e90baa3-6f1d-49c3-8c88-50ff5bf3c8d8 :: false |
createNodes | 1.696s |
2021-10-12 23:06:50 |
2021-10-12 23:06:50 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-10-12 23:06:50 | ------------------------------------ 2021-10-12 23:06:51 | on localhost executing action create-node with content type application/json and payload: { "owner": "admin@test-domain.com", "pubsub#node_type": "leaf", "node": "node-7e90baa3-6f1d-49c3-8c88-50ff5bf3c8d8", "pubsub#title": "Node 7e90baa3-6f1d-49c3-8c88-50ff5bf3c8d8" } 2021-10-12 23:06:51 | from localhost for action create-node got result code 200 and payload { "Note": "Operation successful" } 2021-10-12 23:06:52 | [Mutex] waiting for: [received:nodes:ddae4d83-a977-4447-9f9b-14ce43455d72:localhost] 2021-10-12 23:06:52 | [Mutex] received everything. 2021-10-12 23:06:52 | [Mutex] isItemNotified: received:node:ddae4d83-a977-4447-9f9b-14ce43455d72:localhost:node-7e90baa3-6f1d-49c3-8c88-50ff5bf3c8d8:Node 7e90baa3-6f1d-49c3-8c88-50ff5bf3c8d8 :: true |
createSubnodes | 1.024s |
2021-10-12 23:06:52 |
2021-10-12 23:06:52 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-10-12 23:06:52 | ------------------------------------ 2021-10-12 23:06:52 | on localhost executing action create-node with content type application/json and payload: { "owner": "admin@test-domain.com", "pubsub#node_type": "collection", "node": "node-128b463d-dcc4-4d65-9db8-0752b6e1577f", "pubsub#title": "Node 128b463d-dcc4-4d65-9db8-0752b6e1577f" } 2021-10-12 23:06:52 | from localhost for action create-node got result code 200 and payload { "Note": "Operation successful" } 2021-10-12 23:06:53 | [Mutex] waiting for: [received:nodes:fa7e7bbd-df45-433c-9a34-54bffac86511:localhost] 2021-10-12 23:06:53 | [Mutex] received everything. 2021-10-12 23:06:53 | [Mutex] isItemNotified: received:node:fa7e7bbd-df45-433c-9a34-54bffac86511:localhost:node-128b463d-dcc4-4d65-9db8-0752b6e1577f:Node 128b463d-dcc4-4d65-9db8-0752b6e1577f :: true |
deleteNodes | 1.024s |
2021-10-12 23:06:57 |
2021-10-12 23:06:57 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-10-12 23:06:57 | ------------------------------------ 2021-10-12 23:06:57 | on localhost executing action delete-node with content type application/json and payload: { "node": "node-128b463d-dcc4-4d65-9db8-0752b6e1577f" } 2021-10-12 23:06:57 | from localhost for action delete-node got result code 200 and payload { "Note": "Operation successful" } 2021-10-12 23:06:58 | [Mutex] waiting for: [received:nodes:69f3b3bb-ae55-4f61-a978-93566c6cc7cc:localhost] 2021-10-12 23:06:58 | [Mutex] received everything. 2021-10-12 23:06:58 | [Mutex] isItemNotified: received:node:69f3b3bb-ae55-4f61-a978-93566c6cc7cc:localhost:node-128b463d-dcc4-4d65-9db8-0752b6e1577f:Node 128b463d-dcc4-4d65-9db8-0752b6e1577f :: false |
deleteSubnodes | 1.029s |
2021-10-12 23:06:56 |
2021-10-12 23:06:56 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-10-12 23:06:56 | ------------------------------------ 2021-10-12 23:06:56 | on localhost executing action delete-node with content type application/json and payload: { "node": "node-7e90baa3-6f1d-49c3-8c88-50ff5bf3c8d8" } 2021-10-12 23:06:56 | from localhost for action delete-node got result code 200 and payload { "Note": "Operation successful" } 2021-10-12 23:06:57 | [Mutex] waiting for: [received:nodes:5b3d160c-1ff1-42c1-9878-c8b0bda5953a:localhost] 2021-10-12 23:06:57 | [Mutex] received everything. 2021-10-12 23:06:57 | [Mutex] isItemNotified: received:node:5b3d160c-1ff1-42c1-9878-c8b0bda5953a:localhost:node-7e90baa3-6f1d-49c3-8c88-50ff5bf3c8d8:Node 7e90baa3-6f1d-49c3-8c88-50ff5bf3c8d8 :: false 2021-10-12 23:06:57 | [Mutex] waiting for: [received:nodes:4d758f4e-49c8-4440-a9ce-5925fbb3a588:localhost] 2021-10-12 23:06:57 | [Mutex] received everything. 2021-10-12 23:06:57 | [Mutex] isItemNotified: received:node:4d758f4e-49c8-4440-a9ce-5925fbb3a588:localhost:node-7e90baa3-6f1d-49c3-8c88-50ff5bf3c8d8:Node 7e90baa3-6f1d-49c3-8c88-50ff5bf3c8d8 :: false |
publishItemsToNodes | 0.101s |
2021-10-12 23:06:55 |
2021-10-12 23:06:55 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-10-12 23:06:55 | ------------------------------------ 2021-10-12 23:06:55 | on localhost executing action publish-item with content type application/json and payload: { "node": "node-7e90baa3-6f1d-49c3-8c88-50ff5bf3c8d8", "entry": "<test>item-ba8dbd77-5334-4ac9-a762-81297d2de132</test>", "item-id": "item-ba8dbd77-5334-4ac9-a762-81297d2de132" } 2021-10-12 23:06:55 | from localhost for action publish-item got result code 200 and payload { "Note": "Operation successful", "item-id": "item-ba8dbd77-5334-4ac9-a762-81297d2de132" } 2021-10-12 23:06:55 | [Mutex] waiting for: [published:item:notifieditem-ba8dbd77-5334-4ac9-a762-81297d2de132:admin@test-domain.com] 2021-10-12 23:06:55 | [Mutex] received everything. 2021-10-12 23:06:55 | [Mutex] isItemNotified: published:item:notifieditem-ba8dbd77-5334-4ac9-a762-81297d2de132:admin@test-domain.com :: true |
retractItemsFromNodes | 0.085s |
2021-10-12 23:06:55 |
2021-10-12 23:06:55 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-10-12 23:06:55 | ------------------------------------ 2021-10-12 23:06:55 | on localhost executing action delete-item with content type application/json and payload: { "node": "node-7e90baa3-6f1d-49c3-8c88-50ff5bf3c8d8", "item-id": "item-ba8dbd77-5334-4ac9-a762-81297d2de132" } 2021-10-12 23:06:55 | from localhost for action delete-item got result code 200 and payload { "Note": "Operation successful", "item-id": "item-ba8dbd77-5334-4ac9-a762-81297d2de132" } 2021-10-12 23:06:55 | [Mutex] received everything. 2021-10-12 23:06:55 | [Mutex] isItemNotified: retracted:item:notifieditem-ba8dbd77-5334-4ac9-a762-81297d2de132:admin@test-domain.com :: true |
retrieveItemsFromNodes | 0.034s |
2021-10-12 23:06:55 |
2021-10-12 23:06:55 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-10-12 23:06:55 | ------------------------------------ 2021-10-12 23:06:55 | on localhost executing action retrieve-item with content type application/json and payload: { "node": "node-7e90baa3-6f1d-49c3-8c88-50ff5bf3c8d8", "item-id": "item-ba8dbd77-5334-4ac9-a762-81297d2de132" } 2021-10-12 23:06:55 | from localhost for action retrieve-item got result code 200 and payload { "title": "Retrive PubSub node item", "node": "node-7e90baa3-6f1d-49c3-8c88-50ff5bf3c8d8", "item-id": "item-ba8dbd77-5334-4ac9-a762-81297d2de132", "item": [ "<item id=\"item-ba8dbd77-5334-4ac9-a762-81297d2de132\"><test>item-ba8dbd77-5334-4ac9-a762-81297d2de132</test></item>" ] } 2021-10-12 23:06:55 | [Mutex] notify: [retrieved:item:item-ba8dbd77-5334-4ac9-a762-81297d2de132:payload-matches:true:localhost] 2021-10-12 23:06:55 | [Mutex] received everything. 2021-10-12 23:06:55 | [Mutex] isItemNotified: retrieved:item:item-ba8dbd77-5334-4ac9-a762-81297d2de132:payload-matches:true:localhost :: true |
retrieveUserSubscriptions | 0.069s |
2021-10-12 23:06:55 |
2021-10-12 23:06:55 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-10-12 23:06:55 | ------------------------------------ 2021-10-12 23:06:55 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload: { "jid": "admin@test-domain.com" } 2021-10-12 23:06:55 | from localhost for action retrieve-user-subscriptions got result code 200 and payload { "nodes": [ "node-7e90baa3-6f1d-49c3-8c88-50ff5bf3c8d8", "test", "node-128b463d-dcc4-4d65-9db8-0752b6e1577f" ] } |
retrieveUserSubscriptionsWithRegex | 0.051s |
2021-10-12 23:06:55 |
2021-10-12 23:06:55 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-10-12 23:06:55 | ------------------------------------ 2021-10-12 23:06:55 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload: { "jid": "admin@test-domain.com", "node-pattern": "(?!node-7e90baa3-6f1d-49c3-8c88-50ff5bf3c8d8)" } 2021-10-12 23:06:55 | from localhost for action retrieve-user-subscriptions got result code 200 and payload { "nodes": [ ] } |
subscribeNodes | 1.009s |
2021-10-12 23:06:54 |
2021-10-12 23:06:54 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-10-12 23:06:54 | ------------------------------------ 2021-10-12 23:06:54 | on localhost executing action subscribe-node with content type application/json and payload: { "node": "node-7e90baa3-6f1d-49c3-8c88-50ff5bf3c8d8", "jids": [ "admin@test-domain.com" ] } 2021-10-12 23:06:54 | from localhost for action subscribe-node got result code 200 and payload { "Note": "Operation successful" } |
unsubscribeNodes | 1.062s |
2021-10-12 23:06:55 |
2021-10-12 23:06:55 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-10-12 23:06:55 | ------------------------------------ 2021-10-12 23:06:55 | on localhost executing action unsubscribe-node with content type application/json and payload: { "node": "node-7e90baa3-6f1d-49c3-8c88-50ff5bf3c8d8", "jids": [ "admin@test-domain.com" ] } 2021-10-12 23:06:55 | from localhost for action unsubscribe-node got result code 200 and payload { "Note": "Operation successful" } |