Test duration : 8.650s
Passed Tests | ||
---|---|---|
tigase.tests.pubsub.TestRestApiUsingJSON | ||
configureNodes | 1.098s |
2022-09-15 22:35:07 |
2022-09-15 22:35:07 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-09-15 22:35:07 | ------------------------------------ 2022-09-15 22:35:07 | [Mutex] waiting for: [configured:node:node-b564a60d-e9d2-4e0c-b2ef-f7273638c4f4:node-3eb3d448-2254-4a66-8fe4-a0ea5d7872f0] 2022-09-15 22:35:07 | [Mutex] received everything. 2022-09-15 22:35:07 | [Mutex] isItemNotified: configured:node:node-b564a60d-e9d2-4e0c-b2ef-f7273638c4f4:node-3eb3d448-2254-4a66-8fe4-a0ea5d7872f0 :: true 2022-09-15 22:35:08 | [Mutex] waiting for: [received:nodes:6c712ba7-0e59-43a7-b1e3-f511dd372f82:localhost] 2022-09-15 22:35:08 | [Mutex] received everything. 2022-09-15 22:35:08 | [Mutex] isItemNotified: received:node:6c712ba7-0e59-43a7-b1e3-f511dd372f82:localhost:node-b564a60d-e9d2-4e0c-b2ef-f7273638c4f4:Node b564a60d-e9d2-4e0c-b2ef-f7273638c4f4 :: true 2022-09-15 22:35:08 | [Mutex] waiting for: [received:nodes:5c84a90b-73a9-44e6-b379-0606920bea34:localhost] 2022-09-15 22:35:08 | [Mutex] waiting for: [received:nodes:5c84a90b-73a9-44e6-b379-0606920bea34:localhost] 2022-09-15 22:35:08 | [Mutex] received everything. 2022-09-15 22:35:08 | [Mutex] isItemNotified: received:node:5c84a90b-73a9-44e6-b379-0606920bea34:localhost:node-b564a60d-e9d2-4e0c-b2ef-f7273638c4f4:Node b564a60d-e9d2-4e0c-b2ef-f7273638c4f4 :: false |
createNodes | 1.556s |
2022-09-15 22:35:04 |
2022-09-15 22:35:04 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-09-15 22:35:04 | ------------------------------------ 2022-09-15 22:35:05 | on localhost executing action create-node with content type application/json and payload: { "owner": "admin@test-domain.com", "pubsub#node_type": "leaf", "node": "node-b564a60d-e9d2-4e0c-b2ef-f7273638c4f4", "pubsub#title": "Node b564a60d-e9d2-4e0c-b2ef-f7273638c4f4" } 2022-09-15 22:35:05 | from localhost for action create-node got result code 200 and payload { "Note": "Operation successful" } 2022-09-15 22:35:06 | [Mutex] waiting for: [received:nodes:16a0410e-c08e-4248-b808-b9cf9ecacf0f:localhost] 2022-09-15 22:35:06 | [Mutex] received everything. 2022-09-15 22:35:06 | [Mutex] isItemNotified: received:node:16a0410e-c08e-4248-b808-b9cf9ecacf0f:localhost:node-b564a60d-e9d2-4e0c-b2ef-f7273638c4f4:Node b564a60d-e9d2-4e0c-b2ef-f7273638c4f4 :: true |
createSubnodes | 1.025s |
2022-09-15 22:35:06 |
2022-09-15 22:35:06 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-09-15 22:35:06 | ------------------------------------ 2022-09-15 22:35:06 | on localhost executing action create-node with content type application/json and payload: { "owner": "admin@test-domain.com", "pubsub#node_type": "collection", "node": "node-3eb3d448-2254-4a66-8fe4-a0ea5d7872f0", "pubsub#title": "Node 3eb3d448-2254-4a66-8fe4-a0ea5d7872f0" } 2022-09-15 22:35:06 | from localhost for action create-node got result code 200 and payload { "Note": "Operation successful" } 2022-09-15 22:35:07 | [Mutex] waiting for: [received:nodes:71e3bce3-28d3-4161-bdec-6c9000ebcce8:localhost] 2022-09-15 22:35:07 | [Mutex] waiting for: [received:nodes:71e3bce3-28d3-4161-bdec-6c9000ebcce8:localhost] 2022-09-15 22:35:07 | [Mutex] received everything. 2022-09-15 22:35:07 | [Mutex] isItemNotified: received:node:71e3bce3-28d3-4161-bdec-6c9000ebcce8:localhost:node-3eb3d448-2254-4a66-8fe4-a0ea5d7872f0:Node 3eb3d448-2254-4a66-8fe4-a0ea5d7872f0 :: true |
deleteNodes | 1.024s |
2022-09-15 22:35:11 |
2022-09-15 22:35:11 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-09-15 22:35:11 | ------------------------------------ 2022-09-15 22:35:11 | on localhost executing action delete-node with content type application/json and payload: { "node": "node-3eb3d448-2254-4a66-8fe4-a0ea5d7872f0" } 2022-09-15 22:35:11 | from localhost for action delete-node got result code 200 and payload { "Note": "Operation successful" } 2022-09-15 22:35:12 | [Mutex] waiting for: [received:nodes:273f9a6d-1a73-4af5-85aa-4d73695825c3:localhost] 2022-09-15 22:35:12 | [Mutex] received everything. 2022-09-15 22:35:12 | [Mutex] isItemNotified: received:node:273f9a6d-1a73-4af5-85aa-4d73695825c3:localhost:node-3eb3d448-2254-4a66-8fe4-a0ea5d7872f0:Node 3eb3d448-2254-4a66-8fe4-a0ea5d7872f0 :: false |
deleteSubnodes | 1.023s |
2022-09-15 22:35:10 |
2022-09-15 22:35:10 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-09-15 22:35:10 | ------------------------------------ 2022-09-15 22:35:10 | on localhost executing action delete-node with content type application/json and payload: { "node": "node-b564a60d-e9d2-4e0c-b2ef-f7273638c4f4" } 2022-09-15 22:35:10 | from localhost for action delete-node got result code 200 and payload { "Note": "Operation successful" } 2022-09-15 22:35:11 | [Mutex] waiting for: [received:nodes:3a92bc3a-055a-4dde-a9aa-e575e71c46a3:localhost] 2022-09-15 22:35:11 | [Mutex] waiting for: [received:nodes:3a92bc3a-055a-4dde-a9aa-e575e71c46a3:localhost] 2022-09-15 22:35:11 | [Mutex] received everything. 2022-09-15 22:35:11 | [Mutex] isItemNotified: received:node:3a92bc3a-055a-4dde-a9aa-e575e71c46a3:localhost:node-b564a60d-e9d2-4e0c-b2ef-f7273638c4f4:Node b564a60d-e9d2-4e0c-b2ef-f7273638c4f4 :: false 2022-09-15 22:35:11 | [Mutex] waiting for: [received:nodes:d6127584-3b57-4da3-a1f2-2f6bbeee3397:localhost] 2022-09-15 22:35:11 | [Mutex] received everything. 2022-09-15 22:35:11 | [Mutex] isItemNotified: received:node:d6127584-3b57-4da3-a1f2-2f6bbeee3397:localhost:node-b564a60d-e9d2-4e0c-b2ef-f7273638c4f4:Node b564a60d-e9d2-4e0c-b2ef-f7273638c4f4 :: false |
publishItemsToNodes | 0.037s |
2022-09-15 22:35:09 |
2022-09-15 22:35:09 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-09-15 22:35:09 | ------------------------------------ 2022-09-15 22:35:09 | on localhost executing action publish-item with content type application/json and payload: { "node": "node-b564a60d-e9d2-4e0c-b2ef-f7273638c4f4", "entry": "<test>item-8c9d4126-b28b-4ee9-ad3c-6fba969eb76d</test>", "item-id": "item-8c9d4126-b28b-4ee9-ad3c-6fba969eb76d" } 2022-09-15 22:35:09 | from localhost for action publish-item got result code 200 and payload { "Note": "Operation successful", "item-id": "item-8c9d4126-b28b-4ee9-ad3c-6fba969eb76d" } 2022-09-15 22:35:09 | [Mutex] waiting for: [published:item:notifieditem-8c9d4126-b28b-4ee9-ad3c-6fba969eb76d:admin@test-domain.com] 2022-09-15 22:35:09 | [Mutex] received everything. 2022-09-15 22:35:09 | [Mutex] isItemNotified: published:item:notifieditem-8c9d4126-b28b-4ee9-ad3c-6fba969eb76d:admin@test-domain.com :: true |
retractItemsFromNodes | 0.083s |
2022-09-15 22:35:09 |
2022-09-15 22:35:09 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-09-15 22:35:09 | ------------------------------------ 2022-09-15 22:35:09 | on localhost executing action delete-item with content type application/json and payload: { "node": "node-b564a60d-e9d2-4e0c-b2ef-f7273638c4f4", "item-id": "item-8c9d4126-b28b-4ee9-ad3c-6fba969eb76d" } 2022-09-15 22:35:09 | from localhost for action delete-item got result code 200 and payload { "Note": "Operation successful", "item-id": "item-8c9d4126-b28b-4ee9-ad3c-6fba969eb76d" } 2022-09-15 22:35:09 | [Mutex] waiting for: [retracted:item:notifieditem-8c9d4126-b28b-4ee9-ad3c-6fba969eb76d:admin@test-domain.com] 2022-09-15 22:35:09 | [Mutex] received everything. 2022-09-15 22:35:09 | [Mutex] isItemNotified: retracted:item:notifieditem-8c9d4126-b28b-4ee9-ad3c-6fba969eb76d:admin@test-domain.com :: true |
retrieveItemsFromNodes | 0.068s |
2022-09-15 22:35:09 |
2022-09-15 22:35:09 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-09-15 22:35:09 | ------------------------------------ 2022-09-15 22:35:09 | on localhost executing action retrieve-item with content type application/json and payload: { "node": "node-b564a60d-e9d2-4e0c-b2ef-f7273638c4f4", "item-id": "item-8c9d4126-b28b-4ee9-ad3c-6fba969eb76d" } 2022-09-15 22:35:09 | from localhost for action retrieve-item got result code 200 and payload { "title": "Retrive PubSub node item", "node": "node-b564a60d-e9d2-4e0c-b2ef-f7273638c4f4", "item-id": "item-8c9d4126-b28b-4ee9-ad3c-6fba969eb76d", "item": [ "<item id=\"item-8c9d4126-b28b-4ee9-ad3c-6fba969eb76d\"><test>item-8c9d4126-b28b-4ee9-ad3c-6fba969eb76d</test></item>" ] } 2022-09-15 22:35:09 | [Mutex] notify: [retrieved:item:item-8c9d4126-b28b-4ee9-ad3c-6fba969eb76d:payload-matches:true:localhost] 2022-09-15 22:35:09 | [Mutex] received everything. 2022-09-15 22:35:09 | [Mutex] isItemNotified: retrieved:item:item-8c9d4126-b28b-4ee9-ad3c-6fba969eb76d:payload-matches:true:localhost :: true |
retrieveUserSubscriptions | 0.098s |
2022-09-15 22:35:09 |
2022-09-15 22:35:09 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-09-15 22:35:09 | ------------------------------------ 2022-09-15 22:35:09 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload: { "jid": "admin@test-domain.com" } 2022-09-15 22:35:09 | from localhost for action retrieve-user-subscriptions got result code 200 and payload { "nodes": [ "node-3eb3d448-2254-4a66-8fe4-a0ea5d7872f0", "test", "node-b564a60d-e9d2-4e0c-b2ef-f7273638c4f4" ] } |
retrieveUserSubscriptionsWithRegex | 0.047s |
2022-09-15 22:35:09 |
2022-09-15 22:35:09 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-09-15 22:35:09 | ------------------------------------ 2022-09-15 22:35:09 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload: { "jid": "admin@test-domain.com", "node-pattern": "(?!node-b564a60d-e9d2-4e0c-b2ef-f7273638c4f4)" } 2022-09-15 22:35:09 | from localhost for action retrieve-user-subscriptions got result code 200 and payload { "nodes": [ ] } |
subscribeNodes | 1.010s |
2022-09-15 22:35:08 |
2022-09-15 22:35:08 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-09-15 22:35:08 | ------------------------------------ 2022-09-15 22:35:08 | on localhost executing action subscribe-node with content type application/json and payload: { "node": "node-b564a60d-e9d2-4e0c-b2ef-f7273638c4f4", "jids": [ "admin@test-domain.com" ] } 2022-09-15 22:35:08 | from localhost for action subscribe-node got result code 200 and payload { "Note": "Operation successful" } |
unsubscribeNodes | 1.055s |
2022-09-15 22:35:09 |
2022-09-15 22:35:09 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-09-15 22:35:09 | ------------------------------------ 2022-09-15 22:35:09 | on localhost executing action unsubscribe-node with content type application/json and payload: { "node": "node-b564a60d-e9d2-4e0c-b2ef-f7273638c4f4", "jids": [ "admin@test-domain.com" ] } 2022-09-15 22:35:09 | from localhost for action unsubscribe-node got result code 200 and payload { "Note": "Operation successful" } |