Test duration : 8.731s
Passed Tests | ||
---|---|---|
tigase.tests.pubsub.TestRestApiUsingJSON | ||
configureNodes | 1.098s |
2022-08-28 22:34:29 |
2022-08-28 22:34:29 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-08-28 22:34:29 | ------------------------------------ 2022-08-28 22:34:29 | [Mutex] waiting for: [configured:node:node-5ae0f7e4-05b0-4cde-b59f-0cf802de4fdd:node-3fb56396-1445-4433-9588-6da6a3ffa128] 2022-08-28 22:34:29 | [Mutex] received everything. 2022-08-28 22:34:29 | [Mutex] isItemNotified: configured:node:node-5ae0f7e4-05b0-4cde-b59f-0cf802de4fdd:node-3fb56396-1445-4433-9588-6da6a3ffa128 :: true 2022-08-28 22:34:30 | [Mutex] waiting for: [received:nodes:974205f4-bc54-4bc2-bf54-4af31659d744:localhost] 2022-08-28 22:34:30 | [Mutex] received everything. 2022-08-28 22:34:30 | [Mutex] isItemNotified: received:node:974205f4-bc54-4bc2-bf54-4af31659d744:localhost:node-5ae0f7e4-05b0-4cde-b59f-0cf802de4fdd:Node 5ae0f7e4-05b0-4cde-b59f-0cf802de4fdd :: true 2022-08-28 22:34:30 | [Mutex] waiting for: [received:nodes:85f86f3f-5c72-4d70-ba8f-c05fa06353d6:localhost] 2022-08-28 22:34:30 | [Mutex] received everything. 2022-08-28 22:34:30 | [Mutex] isItemNotified: received:node:85f86f3f-5c72-4d70-ba8f-c05fa06353d6:localhost:node-5ae0f7e4-05b0-4cde-b59f-0cf802de4fdd:Node 5ae0f7e4-05b0-4cde-b59f-0cf802de4fdd :: false |
createNodes | 1.683s |
2022-08-28 22:34:26 |
2022-08-28 22:34:26 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-08-28 22:34:26 | ------------------------------------ 2022-08-28 22:34: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-5ae0f7e4-05b0-4cde-b59f-0cf802de4fdd", "pubsub#title": "Node 5ae0f7e4-05b0-4cde-b59f-0cf802de4fdd" } 2022-08-28 22:34:27 | from localhost for action create-node got result code 200 and payload { "Note": "Operation successful" } 2022-08-28 22:34:28 | [Mutex] waiting for: [received:nodes:9cca8823-6095-483b-9a77-22011b3b7bf0:localhost] 2022-08-28 22:34:28 | [Mutex] received everything. 2022-08-28 22:34:28 | [Mutex] isItemNotified: received:node:9cca8823-6095-483b-9a77-22011b3b7bf0:localhost:node-5ae0f7e4-05b0-4cde-b59f-0cf802de4fdd:Node 5ae0f7e4-05b0-4cde-b59f-0cf802de4fdd :: true |
createSubnodes | 1.025s |
2022-08-28 22:34:28 |
2022-08-28 22:34:28 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-08-28 22:34:28 | ------------------------------------ 2022-08-28 22:34: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-3fb56396-1445-4433-9588-6da6a3ffa128", "pubsub#title": "Node 3fb56396-1445-4433-9588-6da6a3ffa128" } 2022-08-28 22:34:28 | from localhost for action create-node got result code 200 and payload { "Note": "Operation successful" } 2022-08-28 22:34:29 | [Mutex] waiting for: [received:nodes:9b022f7e-3255-4fc1-9b2d-5331dcc5bd6d:localhost] 2022-08-28 22:34:29 | [Mutex] waiting for: [received:nodes:9b022f7e-3255-4fc1-9b2d-5331dcc5bd6d:localhost] 2022-08-28 22:34:29 | [Mutex] received everything. 2022-08-28 22:34:29 | [Mutex] isItemNotified: received:node:9b022f7e-3255-4fc1-9b2d-5331dcc5bd6d:localhost:node-3fb56396-1445-4433-9588-6da6a3ffa128:Node 3fb56396-1445-4433-9588-6da6a3ffa128 :: true |
deleteNodes | 1.022s |
2022-08-28 22:34:33 |
2022-08-28 22:34:33 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-08-28 22:34:33 | ------------------------------------ 2022-08-28 22:34:33 | on localhost executing action delete-node with content type application/json and payload: { "node": "node-3fb56396-1445-4433-9588-6da6a3ffa128" } 2022-08-28 22:34:33 | from localhost for action delete-node got result code 200 and payload { "Note": "Operation successful" } 2022-08-28 22:34:34 | [Mutex] waiting for: [received:nodes:bdab6595-5d9a-4214-bb76-b8d793b0546d:localhost] 2022-08-28 22:34:34 | [Mutex] received everything. 2022-08-28 22:34:34 | [Mutex] isItemNotified: received:node:bdab6595-5d9a-4214-bb76-b8d793b0546d:localhost:node-3fb56396-1445-4433-9588-6da6a3ffa128:Node 3fb56396-1445-4433-9588-6da6a3ffa128 :: false |
deleteSubnodes | 1.032s |
2022-08-28 22:34:32 |
2022-08-28 22:34:32 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-08-28 22:34:32 | ------------------------------------ 2022-08-28 22:34:32 | on localhost executing action delete-node with content type application/json and payload: { "node": "node-5ae0f7e4-05b0-4cde-b59f-0cf802de4fdd" } 2022-08-28 22:34:32 | from localhost for action delete-node got result code 200 and payload { "Note": "Operation successful" } 2022-08-28 22:34:33 | [Mutex] waiting for: [received:nodes:e7bd7fa8-b46c-431a-a424-6279e5f26c9c:localhost] 2022-08-28 22:34:33 | [Mutex] received everything. 2022-08-28 22:34:33 | [Mutex] isItemNotified: received:node:e7bd7fa8-b46c-431a-a424-6279e5f26c9c:localhost:node-5ae0f7e4-05b0-4cde-b59f-0cf802de4fdd:Node 5ae0f7e4-05b0-4cde-b59f-0cf802de4fdd :: false 2022-08-28 22:34:33 | [Mutex] waiting for: [received:nodes:906795b1-60a2-4d3f-adf5-dcb80ef7b412:localhost] 2022-08-28 22:34:33 | [Mutex] received everything. 2022-08-28 22:34:33 | [Mutex] isItemNotified: received:node:906795b1-60a2-4d3f-adf5-dcb80ef7b412:localhost:node-5ae0f7e4-05b0-4cde-b59f-0cf802de4fdd:Node 5ae0f7e4-05b0-4cde-b59f-0cf802de4fdd :: false |
publishItemsToNodes | 0.051s |
2022-08-28 22:34:31 |
2022-08-28 22:34:31 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-08-28 22:34:31 | ------------------------------------ 2022-08-28 22:34:31 | on localhost executing action publish-item with content type application/json and payload: { "node": "node-5ae0f7e4-05b0-4cde-b59f-0cf802de4fdd", "entry": "<test>item-ced0bfc2-53e8-42f8-a2fe-c3ca46d35625</test>", "item-id": "item-ced0bfc2-53e8-42f8-a2fe-c3ca46d35625" } 2022-08-28 22:34:31 | from localhost for action publish-item got result code 200 and payload { "Note": "Operation successful", "item-id": "item-ced0bfc2-53e8-42f8-a2fe-c3ca46d35625" } 2022-08-28 22:34:31 | [Mutex] waiting for: [published:item:notifieditem-ced0bfc2-53e8-42f8-a2fe-c3ca46d35625:admin@test-domain.com] 2022-08-28 22:34:31 | [Mutex] received everything. 2022-08-28 22:34:31 | [Mutex] isItemNotified: published:item:notifieditem-ced0bfc2-53e8-42f8-a2fe-c3ca46d35625:admin@test-domain.com :: true |
retractItemsFromNodes | 0.052s |
2022-08-28 22:34:31 |
2022-08-28 22:34:31 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-08-28 22:34:31 | ------------------------------------ 2022-08-28 22:34:31 | on localhost executing action delete-item with content type application/json and payload: { "node": "node-5ae0f7e4-05b0-4cde-b59f-0cf802de4fdd", "item-id": "item-ced0bfc2-53e8-42f8-a2fe-c3ca46d35625" } 2022-08-28 22:34:31 | from localhost for action delete-item got result code 200 and payload { "Note": "Operation successful", "item-id": "item-ced0bfc2-53e8-42f8-a2fe-c3ca46d35625" } 2022-08-28 22:34:31 | [Mutex] received everything. 2022-08-28 22:34:31 | [Mutex] isItemNotified: retracted:item:notifieditem-ced0bfc2-53e8-42f8-a2fe-c3ca46d35625:admin@test-domain.com :: true |
retrieveItemsFromNodes | 0.055s |
2022-08-28 22:34:31 |
2022-08-28 22:34:31 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-08-28 22:34:31 | ------------------------------------ 2022-08-28 22:34:31 | on localhost executing action retrieve-item with content type application/json and payload: { "node": "node-5ae0f7e4-05b0-4cde-b59f-0cf802de4fdd", "item-id": "item-ced0bfc2-53e8-42f8-a2fe-c3ca46d35625" } 2022-08-28 22:34:31 | from localhost for action retrieve-item got result code 200 and payload { "title": "Retrive PubSub node item", "node": "node-5ae0f7e4-05b0-4cde-b59f-0cf802de4fdd", "item-id": "item-ced0bfc2-53e8-42f8-a2fe-c3ca46d35625", "item": [ "<item id=\"item-ced0bfc2-53e8-42f8-a2fe-c3ca46d35625\"><test>item-ced0bfc2-53e8-42f8-a2fe-c3ca46d35625</test></item>" ] } 2022-08-28 22:34:31 | [Mutex] notify: [retrieved:item:item-ced0bfc2-53e8-42f8-a2fe-c3ca46d35625:payload-matches:true:localhost] 2022-08-28 22:34:31 | [Mutex] received everything. 2022-08-28 22:34:31 | [Mutex] isItemNotified: retrieved:item:item-ced0bfc2-53e8-42f8-a2fe-c3ca46d35625:payload-matches:true:localhost :: true |
retrieveUserSubscriptions | 0.050s |
2022-08-28 22:34:31 |
2022-08-28 22:34:31 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-08-28 22:34:31 | ------------------------------------ 2022-08-28 22:34:31 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload: { "jid": "admin@test-domain.com" } 2022-08-28 22:34:31 | from localhost for action retrieve-user-subscriptions got result code 200 and payload { "nodes": [ "node-5ae0f7e4-05b0-4cde-b59f-0cf802de4fdd", "node-3fb56396-1445-4433-9588-6da6a3ffa128", "test" ] } |
retrieveUserSubscriptionsWithRegex | 0.048s |
2022-08-28 22:34:31 |
2022-08-28 22:34:31 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-08-28 22:34:31 | ------------------------------------ 2022-08-28 22:34:31 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload: { "jid": "admin@test-domain.com", "node-pattern": "(?!node-5ae0f7e4-05b0-4cde-b59f-0cf802de4fdd)" } 2022-08-28 22:34:31 | from localhost for action retrieve-user-subscriptions got result code 200 and payload { "nodes": [ ] } |
subscribeNodes | 1.012s |
2022-08-28 22:34:30 |
2022-08-28 22:34:30 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-08-28 22:34:30 | ------------------------------------ 2022-08-28 22:34:30 | on localhost executing action subscribe-node with content type application/json and payload: { "node": "node-5ae0f7e4-05b0-4cde-b59f-0cf802de4fdd", "jids": [ "admin@test-domain.com" ] } 2022-08-28 22:34:30 | from localhost for action subscribe-node got result code 200 and payload { "Note": "Operation successful" } |
unsubscribeNodes | 1.055s |
2022-08-28 22:34:31 |
2022-08-28 22:34:31 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-08-28 22:34:31 | ------------------------------------ 2022-08-28 22:34:31 | on localhost executing action unsubscribe-node with content type application/json and payload: { "node": "node-5ae0f7e4-05b0-4cde-b59f-0cf802de4fdd", "jids": [ "admin@test-domain.com" ] } 2022-08-28 22:34:31 | from localhost for action unsubscribe-node got result code 200 and payload { "Note": "Operation successful" } |