Test duration : 9.086s
Passed Tests | ||
---|---|---|
tigase.tests.pubsub.TestRestApiUsingJSON | ||
configureNodes | 1.111s |
2022-02-23 21:46:29 |
2022-02-23 21:46:29 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-02-23 21:46:29 | ------------------------------------ 2022-02-23 21:46:29 | [Mutex] waiting for: [configured:node:node-af8daf92-e0ad-42cf-9ae0-7c33aae2dbed:node-e7e614ff-df8d-4827-97c1-bbf91db7ae80] 2022-02-23 21:46:29 | [Mutex] received everything. 2022-02-23 21:46:29 | [Mutex] isItemNotified: configured:node:node-af8daf92-e0ad-42cf-9ae0-7c33aae2dbed:node-e7e614ff-df8d-4827-97c1-bbf91db7ae80 :: true 2022-02-23 21:46:30 | [Mutex] waiting for: [received:nodes:4b72091b-d812-48ce-8913-32a913239f10:localhost] 2022-02-23 21:46:30 | [Mutex] received everything. 2022-02-23 21:46:30 | [Mutex] isItemNotified: received:node:4b72091b-d812-48ce-8913-32a913239f10:localhost:node-af8daf92-e0ad-42cf-9ae0-7c33aae2dbed:Node af8daf92-e0ad-42cf-9ae0-7c33aae2dbed :: true 2022-02-23 21:46:30 | [Mutex] waiting for: [received:nodes:062791e8-a6d9-4642-9f6c-3e9f4f749c29:localhost] 2022-02-23 21:46:30 | [Mutex] received everything. 2022-02-23 21:46:30 | [Mutex] isItemNotified: received:node:062791e8-a6d9-4642-9f6c-3e9f4f749c29:localhost:node-af8daf92-e0ad-42cf-9ae0-7c33aae2dbed:Node af8daf92-e0ad-42cf-9ae0-7c33aae2dbed :: false |
createNodes | 1.773s |
2022-02-23 21:46:26 |
2022-02-23 21:46:26 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-02-23 21:46:26 | ------------------------------------ 2022-02-23 21:46:27 | on localhost executing action create-node with content type application/json and payload: { "owner": "admin@test-domain.com", "pubsub#node_type": "leaf", "node": "node-af8daf92-e0ad-42cf-9ae0-7c33aae2dbed", "pubsub#title": "Node af8daf92-e0ad-42cf-9ae0-7c33aae2dbed" } 2022-02-23 21:46:27 | from localhost for action create-node got result code 200 and payload { "Note": "Operation successful" } 2022-02-23 21:46:28 | [Mutex] waiting for: [received:nodes:ed1c5784-c88a-4b55-9e75-d852c7cc349f:localhost] 2022-02-23 21:46:28 | [Mutex] waiting for: [received:nodes:ed1c5784-c88a-4b55-9e75-d852c7cc349f:localhost] 2022-02-23 21:46:28 | [Mutex] received everything. 2022-02-23 21:46:28 | [Mutex] isItemNotified: received:node:ed1c5784-c88a-4b55-9e75-d852c7cc349f:localhost:node-af8daf92-e0ad-42cf-9ae0-7c33aae2dbed:Node af8daf92-e0ad-42cf-9ae0-7c33aae2dbed :: true |
createSubnodes | 1.035s |
2022-02-23 21:46:28 |
2022-02-23 21:46:28 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-02-23 21:46:28 | ------------------------------------ 2022-02-23 21:46:28 | on localhost executing action create-node with content type application/json and payload: { "owner": "admin@test-domain.com", "pubsub#node_type": "collection", "node": "node-e7e614ff-df8d-4827-97c1-bbf91db7ae80", "pubsub#title": "Node e7e614ff-df8d-4827-97c1-bbf91db7ae80" } 2022-02-23 21:46:28 | from localhost for action create-node got result code 200 and payload { "Note": "Operation successful" } 2022-02-23 21:46:29 | [Mutex] waiting for: [received:nodes:ae469c92-f2df-47b3-a671-7341ebde9c64:localhost] 2022-02-23 21:46:29 | [Mutex] received everything. 2022-02-23 21:46:29 | [Mutex] isItemNotified: received:node:ae469c92-f2df-47b3-a671-7341ebde9c64:localhost:node-e7e614ff-df8d-4827-97c1-bbf91db7ae80:Node e7e614ff-df8d-4827-97c1-bbf91db7ae80 :: true |
deleteNodes | 1.032s |
2022-02-23 21:46:33 |
2022-02-23 21:46:33 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-02-23 21:46:33 | ------------------------------------ 2022-02-23 21:46:33 | on localhost executing action delete-node with content type application/json and payload: { "node": "node-e7e614ff-df8d-4827-97c1-bbf91db7ae80" } 2022-02-23 21:46:33 | from localhost for action delete-node got result code 200 and payload { "Note": "Operation successful" } 2022-02-23 21:46:34 | [Mutex] waiting for: [received:nodes:ec7cd84c-b323-4446-ae4a-a6282cd96eb3:localhost] 2022-02-23 21:46:34 | [Mutex] received everything. 2022-02-23 21:46:34 | [Mutex] isItemNotified: received:node:ec7cd84c-b323-4446-ae4a-a6282cd96eb3:localhost:node-e7e614ff-df8d-4827-97c1-bbf91db7ae80:Node e7e614ff-df8d-4827-97c1-bbf91db7ae80 :: false |
deleteSubnodes | 1.032s |
2022-02-23 21:46:32 |
2022-02-23 21:46:32 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-02-23 21:46:32 | ------------------------------------ 2022-02-23 21:46:32 | on localhost executing action delete-node with content type application/json and payload: { "node": "node-af8daf92-e0ad-42cf-9ae0-7c33aae2dbed" } 2022-02-23 21:46:32 | from localhost for action delete-node got result code 200 and payload { "Note": "Operation successful" } 2022-02-23 21:46:33 | [Mutex] waiting for: [received:nodes:68cfcdc5-819b-4093-875f-88b04c5ff6cb:localhost] 2022-02-23 21:46:33 | [Mutex] received everything. 2022-02-23 21:46:33 | [Mutex] isItemNotified: received:node:68cfcdc5-819b-4093-875f-88b04c5ff6cb:localhost:node-af8daf92-e0ad-42cf-9ae0-7c33aae2dbed:Node af8daf92-e0ad-42cf-9ae0-7c33aae2dbed :: false 2022-02-23 21:46:33 | [Mutex] waiting for: [received:nodes:4ab349e2-ba1d-43be-b6d4-7c91dc65be34:localhost] 2022-02-23 21:46:33 | [Mutex] received everything. 2022-02-23 21:46:33 | [Mutex] isItemNotified: received:node:4ab349e2-ba1d-43be-b6d4-7c91dc65be34:localhost:node-af8daf92-e0ad-42cf-9ae0-7c33aae2dbed:Node af8daf92-e0ad-42cf-9ae0-7c33aae2dbed :: false |
publishItemsToNodes | 0.055s |
2022-02-23 21:46:31 |
2022-02-23 21:46:31 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-02-23 21:46:31 | ------------------------------------ 2022-02-23 21:46:31 | on localhost executing action publish-item with content type application/json and payload: { "node": "node-af8daf92-e0ad-42cf-9ae0-7c33aae2dbed", "entry": "<test>item-3c7f3b63-f6ff-49d2-aee4-08a46d1b4756</test>", "item-id": "item-3c7f3b63-f6ff-49d2-aee4-08a46d1b4756" } 2022-02-23 21:46:31 | from localhost for action publish-item got result code 200 and payload { "Note": "Operation successful", "item-id": "item-3c7f3b63-f6ff-49d2-aee4-08a46d1b4756" } 2022-02-23 21:46:31 | [Mutex] waiting for: [published:item:notifieditem-3c7f3b63-f6ff-49d2-aee4-08a46d1b4756:admin@test-domain.com] 2022-02-23 21:46:31 | [Mutex] received everything. 2022-02-23 21:46:31 | [Mutex] isItemNotified: published:item:notifieditem-3c7f3b63-f6ff-49d2-aee4-08a46d1b4756:admin@test-domain.com :: true |
retractItemsFromNodes | 0.124s |
2022-02-23 21:46:31 |
2022-02-23 21:46:31 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-02-23 21:46:31 | ------------------------------------ 2022-02-23 21:46:31 | on localhost executing action delete-item with content type application/json and payload: { "node": "node-af8daf92-e0ad-42cf-9ae0-7c33aae2dbed", "item-id": "item-3c7f3b63-f6ff-49d2-aee4-08a46d1b4756" } 2022-02-23 21:46:31 | from localhost for action delete-item got result code 200 and payload { "Note": "Operation successful", "item-id": "item-3c7f3b63-f6ff-49d2-aee4-08a46d1b4756" } 2022-02-23 21:46:31 | [Mutex] waiting for: [retracted:item:notifieditem-3c7f3b63-f6ff-49d2-aee4-08a46d1b4756:admin@test-domain.com] 2022-02-23 21:46:31 | [Mutex] received everything. 2022-02-23 21:46:31 | [Mutex] isItemNotified: retracted:item:notifieditem-3c7f3b63-f6ff-49d2-aee4-08a46d1b4756:admin@test-domain.com :: true |
retrieveItemsFromNodes | 0.062s |
2022-02-23 21:46:31 |
2022-02-23 21:46:31 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-02-23 21:46:31 | ------------------------------------ 2022-02-23 21:46:31 | on localhost executing action retrieve-item with content type application/json and payload: { "node": "node-af8daf92-e0ad-42cf-9ae0-7c33aae2dbed", "item-id": "item-3c7f3b63-f6ff-49d2-aee4-08a46d1b4756" } 2022-02-23 21:46:31 | from localhost for action retrieve-item got result code 200 and payload { "title": "Retrive PubSub node item", "node": "node-af8daf92-e0ad-42cf-9ae0-7c33aae2dbed", "item-id": "item-3c7f3b63-f6ff-49d2-aee4-08a46d1b4756", "item": [ "<item id=\"item-3c7f3b63-f6ff-49d2-aee4-08a46d1b4756\"><test>item-3c7f3b63-f6ff-49d2-aee4-08a46d1b4756</test></item>" ] } 2022-02-23 21:46:31 | [Mutex] notify: [retrieved:item:item-3c7f3b63-f6ff-49d2-aee4-08a46d1b4756:payload-matches:true:localhost] 2022-02-23 21:46:31 | [Mutex] received everything. 2022-02-23 21:46:31 | [Mutex] isItemNotified: retrieved:item:item-3c7f3b63-f6ff-49d2-aee4-08a46d1b4756:payload-matches:true:localhost :: true |
retrieveUserSubscriptions | 0.051s |
2022-02-23 21:46:31 |
2022-02-23 21:46:31 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-02-23 21:46:31 | ------------------------------------ 2022-02-23 21:46:31 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload: { "jid": "admin@test-domain.com" } 2022-02-23 21:46:31 | from localhost for action retrieve-user-subscriptions got result code 200 and payload { "nodes": [ "node-af8daf92-e0ad-42cf-9ae0-7c33aae2dbed", "test", "node-e7e614ff-df8d-4827-97c1-bbf91db7ae80" ] } |
retrieveUserSubscriptionsWithRegex | 0.052s |
2022-02-23 21:46:31 |
2022-02-23 21:46:31 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-02-23 21:46:31 | ------------------------------------ 2022-02-23 21:46:31 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload: { "jid": "admin@test-domain.com", "node-pattern": "(?!node-af8daf92-e0ad-42cf-9ae0-7c33aae2dbed)" } 2022-02-23 21:46:31 | from localhost for action retrieve-user-subscriptions got result code 200 and payload { "nodes": [ ] } |
subscribeNodes | 1.013s |
2022-02-23 21:46:30 |
2022-02-23 21:46:30 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-02-23 21:46:30 | ------------------------------------ 2022-02-23 21:46:30 | on localhost executing action subscribe-node with content type application/json and payload: { "node": "node-af8daf92-e0ad-42cf-9ae0-7c33aae2dbed", "jids": [ "admin@test-domain.com" ] } 2022-02-23 21:46:30 | from localhost for action subscribe-node got result code 200 and payload { "Note": "Operation successful" } |
unsubscribeNodes | 1.065s |
2022-02-23 21:46:31 |
2022-02-23 21:46:31 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-02-23 21:46:31 | ------------------------------------ 2022-02-23 21:46:31 | on localhost executing action unsubscribe-node with content type application/json and payload: { "node": "node-af8daf92-e0ad-42cf-9ae0-7c33aae2dbed", "jids": [ "admin@test-domain.com" ] } 2022-02-23 21:46:31 | from localhost for action unsubscribe-node got result code 200 and payload { "Note": "Operation successful" } |