Test duration : 8.980s
Passed Tests | ||
---|---|---|
tigase.tests.pubsub.TestRestApiUsingJSON | ||
configureNodes | 1.091s |
2022-02-14 22:04:42 |
2022-02-14 22:04:42 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-02-14 22:04:42 | ------------------------------------ 2022-02-14 22:04:42 | [Mutex] waiting for: [configured:node:node-16088e76-e460-40f4-9d74-1ffdbb4c16be:node-43a23679-91b6-4841-9c41-b58bc8343167] 2022-02-14 22:04:42 | [Mutex] received everything. 2022-02-14 22:04:42 | [Mutex] isItemNotified: configured:node:node-16088e76-e460-40f4-9d74-1ffdbb4c16be:node-43a23679-91b6-4841-9c41-b58bc8343167 :: true 2022-02-14 22:04:43 | [Mutex] waiting for: [received:nodes:bf33196f-35fc-4d99-bb85-8d451a7cd8c3:localhost] 2022-02-14 22:04:43 | [Mutex] received everything. 2022-02-14 22:04:43 | [Mutex] isItemNotified: received:node:bf33196f-35fc-4d99-bb85-8d451a7cd8c3:localhost:node-16088e76-e460-40f4-9d74-1ffdbb4c16be:Node 16088e76-e460-40f4-9d74-1ffdbb4c16be :: true 2022-02-14 22:04:43 | [Mutex] waiting for: [received:nodes:bd5e81c1-1114-4103-a9f9-2d8b0216cea3:localhost] 2022-02-14 22:04:43 | [Mutex] received everything. 2022-02-14 22:04:43 | [Mutex] isItemNotified: received:node:bd5e81c1-1114-4103-a9f9-2d8b0216cea3:localhost:node-16088e76-e460-40f4-9d74-1ffdbb4c16be:Node 16088e76-e460-40f4-9d74-1ffdbb4c16be :: false |
createNodes | 1.576s |
2022-02-14 22:04:39 |
2022-02-14 22:04:39 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-02-14 22:04:39 | ------------------------------------ 2022-02-14 22:04:40 | on localhost executing action create-node with content type application/json and payload: { "owner": "admin@test-domain.com", "pubsub#node_type": "leaf", "node": "node-16088e76-e460-40f4-9d74-1ffdbb4c16be", "pubsub#title": "Node 16088e76-e460-40f4-9d74-1ffdbb4c16be" } 2022-02-14 22:04:40 | from localhost for action create-node got result code 200 and payload { "Note": "Operation successful" } 2022-02-14 22:04:41 | [Mutex] waiting for: [received:nodes:12c3f90e-8052-40c3-a5e0-d9d4ab889c07:localhost] 2022-02-14 22:04:41 | [Mutex] received everything. 2022-02-14 22:04:41 | [Mutex] isItemNotified: received:node:12c3f90e-8052-40c3-a5e0-d9d4ab889c07:localhost:node-16088e76-e460-40f4-9d74-1ffdbb4c16be:Node 16088e76-e460-40f4-9d74-1ffdbb4c16be :: true |
createSubnodes | 1.028s |
2022-02-14 22:04:41 |
2022-02-14 22:04:41 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-02-14 22:04:41 | ------------------------------------ 2022-02-14 22:04:41 | on localhost executing action create-node with content type application/json and payload: { "owner": "admin@test-domain.com", "pubsub#node_type": "collection", "node": "node-43a23679-91b6-4841-9c41-b58bc8343167", "pubsub#title": "Node 43a23679-91b6-4841-9c41-b58bc8343167" } 2022-02-14 22:04:41 | from localhost for action create-node got result code 200 and payload { "Note": "Operation successful" } 2022-02-14 22:04:42 | [Mutex] waiting for: [received:nodes:c3d39878-cd18-4b66-888a-c8ee0e69ed3f:localhost] 2022-02-14 22:04:42 | [Mutex] received everything. 2022-02-14 22:04:42 | [Mutex] isItemNotified: received:node:c3d39878-cd18-4b66-888a-c8ee0e69ed3f:localhost:node-43a23679-91b6-4841-9c41-b58bc8343167:Node 43a23679-91b6-4841-9c41-b58bc8343167 :: true |
deleteNodes | 1.021s |
2022-02-14 22:04:47 |
2022-02-14 22:04:47 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-02-14 22:04:47 | ------------------------------------ 2022-02-14 22:04:47 | on localhost executing action delete-node with content type application/json and payload: { "node": "node-43a23679-91b6-4841-9c41-b58bc8343167" } 2022-02-14 22:04:47 | from localhost for action delete-node got result code 200 and payload { "Note": "Operation successful" } 2022-02-14 22:04:48 | [Mutex] waiting for: [received:nodes:a96c9e24-1126-4e2a-96b9-fe3635d3d033:localhost] 2022-02-14 22:04:48 | [Mutex] received everything. 2022-02-14 22:04:48 | [Mutex] isItemNotified: received:node:a96c9e24-1126-4e2a-96b9-fe3635d3d033:localhost:node-43a23679-91b6-4841-9c41-b58bc8343167:Node 43a23679-91b6-4841-9c41-b58bc8343167 :: false |
deleteSubnodes | 1.030s |
2022-02-14 22:04:46 |
2022-02-14 22:04:46 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-02-14 22:04:46 | ------------------------------------ 2022-02-14 22:04:46 | on localhost executing action delete-node with content type application/json and payload: { "node": "node-16088e76-e460-40f4-9d74-1ffdbb4c16be" } 2022-02-14 22:04:46 | from localhost for action delete-node got result code 200 and payload { "Note": "Operation successful" } 2022-02-14 22:04:47 | [Mutex] waiting for: [received:nodes:399d21f2-a023-441a-8dc4-7ffb34f43b0b:localhost] 2022-02-14 22:04:47 | [Mutex] waiting for: [received:nodes:399d21f2-a023-441a-8dc4-7ffb34f43b0b:localhost] 2022-02-14 22:04:47 | [Mutex] received everything. 2022-02-14 22:04:47 | [Mutex] isItemNotified: received:node:399d21f2-a023-441a-8dc4-7ffb34f43b0b:localhost:node-16088e76-e460-40f4-9d74-1ffdbb4c16be:Node 16088e76-e460-40f4-9d74-1ffdbb4c16be :: false 2022-02-14 22:04:47 | [Mutex] waiting for: [received:nodes:3fbe188d-8eee-4a3b-81ad-d91ab1737663:localhost] 2022-02-14 22:04:47 | [Mutex] received everything. 2022-02-14 22:04:47 | [Mutex] isItemNotified: received:node:3fbe188d-8eee-4a3b-81ad-d91ab1737663:localhost:node-16088e76-e460-40f4-9d74-1ffdbb4c16be:Node 16088e76-e460-40f4-9d74-1ffdbb4c16be :: false |
publishItemsToNodes | 0.104s |
2022-02-14 22:04:44 |
2022-02-14 22:04:44 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-02-14 22:04:44 | ------------------------------------ 2022-02-14 22:04:44 | on localhost executing action publish-item with content type application/json and payload: { "node": "node-16088e76-e460-40f4-9d74-1ffdbb4c16be", "entry": "<test>item-b7b4e052-9623-4338-a07b-a3abded88e46</test>", "item-id": "item-b7b4e052-9623-4338-a07b-a3abded88e46" } 2022-02-14 22:04:44 | from localhost for action publish-item got result code 200 and payload { "Note": "Operation successful", "item-id": "item-b7b4e052-9623-4338-a07b-a3abded88e46" } 2022-02-14 22:04:44 | [Mutex] waiting for: [published:item:notifieditem-b7b4e052-9623-4338-a07b-a3abded88e46:admin@test-domain.com] 2022-02-14 22:04:44 | [Mutex] received everything. 2022-02-14 22:04:44 | [Mutex] isItemNotified: published:item:notifieditem-b7b4e052-9623-4338-a07b-a3abded88e46:admin@test-domain.com :: true |
retractItemsFromNodes | 0.069s |
2022-02-14 22:04:44 |
2022-02-14 22:04:44 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-02-14 22:04:44 | ------------------------------------ 2022-02-14 22:04:44 | on localhost executing action delete-item with content type application/json and payload: { "node": "node-16088e76-e460-40f4-9d74-1ffdbb4c16be", "item-id": "item-b7b4e052-9623-4338-a07b-a3abded88e46" } 2022-02-14 22:04:45 | from localhost for action delete-item got result code 200 and payload { "Note": "Operation successful", "item-id": "item-b7b4e052-9623-4338-a07b-a3abded88e46" } 2022-02-14 22:04:45 | [Mutex] waiting for: [retracted:item:notifieditem-b7b4e052-9623-4338-a07b-a3abded88e46:admin@test-domain.com] 2022-02-14 22:04:45 | [Mutex] received everything. 2022-02-14 22:04:45 | [Mutex] isItemNotified: retracted:item:notifieditem-b7b4e052-9623-4338-a07b-a3abded88e46:admin@test-domain.com :: true |
retrieveItemsFromNodes | 0.086s |
2022-02-14 22:04:44 |
2022-02-14 22:04:44 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-02-14 22:04:44 | ------------------------------------ 2022-02-14 22:04:44 | on localhost executing action retrieve-item with content type application/json and payload: { "node": "node-16088e76-e460-40f4-9d74-1ffdbb4c16be", "item-id": "item-b7b4e052-9623-4338-a07b-a3abded88e46" } 2022-02-14 22:04:44 | from localhost for action retrieve-item got result code 200 and payload { "title": "Retrive PubSub node item", "node": "node-16088e76-e460-40f4-9d74-1ffdbb4c16be", "item-id": "item-b7b4e052-9623-4338-a07b-a3abded88e46", "item": [ "<item id=\"item-b7b4e052-9623-4338-a07b-a3abded88e46\"><test>item-b7b4e052-9623-4338-a07b-a3abded88e46</test></item>" ] } 2022-02-14 22:04:44 | [Mutex] notify: [retrieved:item:item-b7b4e052-9623-4338-a07b-a3abded88e46:payload-matches:true:localhost] 2022-02-14 22:04:44 | [Mutex] received everything. 2022-02-14 22:04:44 | [Mutex] isItemNotified: retrieved:item:item-b7b4e052-9623-4338-a07b-a3abded88e46:payload-matches:true:localhost :: true |
retrieveUserSubscriptions | 0.050s |
2022-02-14 22:04:44 |
2022-02-14 22:04:44 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-02-14 22:04:44 | ------------------------------------ 2022-02-14 22:04:44 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload: { "jid": "admin@test-domain.com" } 2022-02-14 22:04:44 | from localhost for action retrieve-user-subscriptions got result code 200 and payload { "nodes": [ "node-43a23679-91b6-4841-9c41-b58bc8343167", "test", "node-16088e76-e460-40f4-9d74-1ffdbb4c16be" ] } |
retrieveUserSubscriptionsWithRegex | 0.051s |
2022-02-14 22:04:44 |
2022-02-14 22:04:44 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-02-14 22:04:44 | ------------------------------------ 2022-02-14 22:04:44 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload: { "jid": "admin@test-domain.com", "node-pattern": "(?!node-16088e76-e460-40f4-9d74-1ffdbb4c16be)" } 2022-02-14 22:04:44 | from localhost for action retrieve-user-subscriptions got result code 200 and payload { "nodes": [ ] } |
subscribeNodes | 1.011s |
2022-02-14 22:04:43 |
2022-02-14 22:04:43 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-02-14 22:04:43 | ------------------------------------ 2022-02-14 22:04:43 | on localhost executing action subscribe-node with content type application/json and payload: { "node": "node-16088e76-e460-40f4-9d74-1ffdbb4c16be", "jids": [ "admin@test-domain.com" ] } 2022-02-14 22:04:43 | from localhost for action subscribe-node got result code 200 and payload { "Note": "Operation successful" } |
unsubscribeNodes | 1.053s |
2022-02-14 22:04:45 |
2022-02-14 22:04:45 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-02-14 22:04:45 | ------------------------------------ 2022-02-14 22:04:45 | on localhost executing action unsubscribe-node with content type application/json and payload: { "node": "node-16088e76-e460-40f4-9d74-1ffdbb4c16be", "jids": [ "admin@test-domain.com" ] } 2022-02-14 22:04:45 | from localhost for action unsubscribe-node got result code 200 and payload { "Note": "Operation successful" } |