Test duration : 8.652s
Passed Tests | ||
---|---|---|
tigase.tests.pubsub.TestRestApiUsingJSON | ||
configureNodes | 1.104s |
2022-08-08 23:07:44 |
2022-08-08 23:07:44 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-08-08 23:07:44 | ------------------------------------ 2022-08-08 23:07:44 | [Mutex] waiting for: [configured:node:node-d7c92b07-e41d-441b-b244-3c10855f1322:node-a0c79270-37fb-47cc-95df-cfa996d7748b] 2022-08-08 23:07:44 | [Mutex] received everything. 2022-08-08 23:07:44 | [Mutex] isItemNotified: configured:node:node-d7c92b07-e41d-441b-b244-3c10855f1322:node-a0c79270-37fb-47cc-95df-cfa996d7748b :: true 2022-08-08 23:07:45 | [Mutex] waiting for: [received:nodes:763d679f-64fd-419c-a6b5-395806fd286c:localhost] 2022-08-08 23:07:45 | [Mutex] received everything. 2022-08-08 23:07:45 | [Mutex] isItemNotified: received:node:763d679f-64fd-419c-a6b5-395806fd286c:localhost:node-d7c92b07-e41d-441b-b244-3c10855f1322:Node d7c92b07-e41d-441b-b244-3c10855f1322 :: true 2022-08-08 23:07:45 | [Mutex] waiting for: [received:nodes:7b65a7c4-f1a3-4f38-b8d0-0f6acd6d0690:localhost] 2022-08-08 23:07:45 | [Mutex] received everything. 2022-08-08 23:07:45 | [Mutex] isItemNotified: received:node:7b65a7c4-f1a3-4f38-b8d0-0f6acd6d0690:localhost:node-d7c92b07-e41d-441b-b244-3c10855f1322:Node d7c92b07-e41d-441b-b244-3c10855f1322 :: false |
createNodes | 1.694s |
2022-08-08 23:07:41 |
2022-08-08 23:07:41 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-08-08 23:07:41 | ------------------------------------ 2022-08-08 23:07:42 | on localhost executing action create-node with content type application/json and payload: { "owner": "admin@test-domain.com", "pubsub#node_type": "leaf", "node": "node-d7c92b07-e41d-441b-b244-3c10855f1322", "pubsub#title": "Node d7c92b07-e41d-441b-b244-3c10855f1322" } 2022-08-08 23:07:42 | from localhost for action create-node got result code 200 and payload { "Note": "Operation successful" } 2022-08-08 23:07:43 | [Mutex] waiting for: [received:nodes:ce554f86-eb11-40b3-812f-cd0e88ca05bc:localhost] 2022-08-08 23:07:43 | [Mutex] received everything. 2022-08-08 23:07:43 | [Mutex] isItemNotified: received:node:ce554f86-eb11-40b3-812f-cd0e88ca05bc:localhost:node-d7c92b07-e41d-441b-b244-3c10855f1322:Node d7c92b07-e41d-441b-b244-3c10855f1322 :: true |
createSubnodes | 1.022s |
2022-08-08 23:07:43 |
2022-08-08 23:07:43 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-08-08 23:07:43 | ------------------------------------ 2022-08-08 23:07:43 | on localhost executing action create-node with content type application/json and payload: { "owner": "admin@test-domain.com", "pubsub#node_type": "collection", "node": "node-a0c79270-37fb-47cc-95df-cfa996d7748b", "pubsub#title": "Node a0c79270-37fb-47cc-95df-cfa996d7748b" } 2022-08-08 23:07:43 | from localhost for action create-node got result code 200 and payload { "Note": "Operation successful" } 2022-08-08 23:07:44 | [Mutex] waiting for: [received:nodes:6a462a15-e2d5-4fc1-b8da-bac30e4ab068:localhost] 2022-08-08 23:07:44 | [Mutex] waiting for: [received:nodes:6a462a15-e2d5-4fc1-b8da-bac30e4ab068:localhost] 2022-08-08 23:07:44 | [Mutex] received everything. 2022-08-08 23:07:44 | [Mutex] isItemNotified: received:node:6a462a15-e2d5-4fc1-b8da-bac30e4ab068:localhost:node-a0c79270-37fb-47cc-95df-cfa996d7748b:Node a0c79270-37fb-47cc-95df-cfa996d7748b :: true |
deleteNodes | 1.024s |
2022-08-08 23:07:48 |
2022-08-08 23:07:48 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-08-08 23:07:48 | ------------------------------------ 2022-08-08 23:07:48 | on localhost executing action delete-node with content type application/json and payload: { "node": "node-a0c79270-37fb-47cc-95df-cfa996d7748b" } 2022-08-08 23:07:48 | from localhost for action delete-node got result code 200 and payload { "Note": "Operation successful" } 2022-08-08 23:07:49 | [Mutex] waiting for: [received:nodes:43f8ffaa-39f1-4492-92c5-fd0b86c971e3:localhost] 2022-08-08 23:07:49 | [Mutex] waiting for: [received:nodes:43f8ffaa-39f1-4492-92c5-fd0b86c971e3:localhost] 2022-08-08 23:07:49 | [Mutex] received everything. 2022-08-08 23:07:49 | [Mutex] isItemNotified: received:node:43f8ffaa-39f1-4492-92c5-fd0b86c971e3:localhost:node-a0c79270-37fb-47cc-95df-cfa996d7748b:Node a0c79270-37fb-47cc-95df-cfa996d7748b :: false |
deleteSubnodes | 1.024s |
2022-08-08 23:07:47 |
2022-08-08 23:07:47 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-08-08 23:07:47 | ------------------------------------ 2022-08-08 23:07:47 | on localhost executing action delete-node with content type application/json and payload: { "node": "node-d7c92b07-e41d-441b-b244-3c10855f1322" } 2022-08-08 23:07:47 | from localhost for action delete-node got result code 200 and payload { "Note": "Operation successful" } 2022-08-08 23:07:48 | [Mutex] waiting for: [received:nodes:36a6f18b-cff5-4107-a117-c338430550c9:localhost] 2022-08-08 23:07:48 | [Mutex] waiting for: [received:nodes:36a6f18b-cff5-4107-a117-c338430550c9:localhost] 2022-08-08 23:07:48 | [Mutex] received everything. 2022-08-08 23:07:48 | [Mutex] isItemNotified: received:node:36a6f18b-cff5-4107-a117-c338430550c9:localhost:node-d7c92b07-e41d-441b-b244-3c10855f1322:Node d7c92b07-e41d-441b-b244-3c10855f1322 :: false 2022-08-08 23:07:48 | [Mutex] waiting for: [received:nodes:d5ff024f-15ff-4e8f-bb2e-14bddcb3d3e9:localhost] 2022-08-08 23:07:48 | [Mutex] received everything. 2022-08-08 23:07:48 | [Mutex] isItemNotified: received:node:d5ff024f-15ff-4e8f-bb2e-14bddcb3d3e9:localhost:node-d7c92b07-e41d-441b-b244-3c10855f1322:Node d7c92b07-e41d-441b-b244-3c10855f1322 :: false |
publishItemsToNodes | 0.048s |
2022-08-08 23:07:46 |
2022-08-08 23:07:46 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-08-08 23:07:46 | ------------------------------------ 2022-08-08 23:07:46 | on localhost executing action publish-item with content type application/json and payload: { "node": "node-d7c92b07-e41d-441b-b244-3c10855f1322", "entry": "<test>item-ba3ec394-8193-447f-ae00-020fe334333b</test>", "item-id": "item-ba3ec394-8193-447f-ae00-020fe334333b" } 2022-08-08 23:07:46 | from localhost for action publish-item got result code 200 and payload { "Note": "Operation successful", "item-id": "item-ba3ec394-8193-447f-ae00-020fe334333b" } 2022-08-08 23:07:46 | [Mutex] waiting for: [published:item:notifieditem-ba3ec394-8193-447f-ae00-020fe334333b:admin@test-domain.com] 2022-08-08 23:07:46 | [Mutex] received everything. 2022-08-08 23:07:46 | [Mutex] isItemNotified: published:item:notifieditem-ba3ec394-8193-447f-ae00-020fe334333b:admin@test-domain.com :: true |
retractItemsFromNodes | 0.095s |
2022-08-08 23:07:46 |
2022-08-08 23:07:46 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-08-08 23:07:46 | ------------------------------------ 2022-08-08 23:07:46 | on localhost executing action delete-item with content type application/json and payload: { "node": "node-d7c92b07-e41d-441b-b244-3c10855f1322", "item-id": "item-ba3ec394-8193-447f-ae00-020fe334333b" } 2022-08-08 23:07:46 | from localhost for action delete-item got result code 200 and payload { "Note": "Operation successful", "item-id": "item-ba3ec394-8193-447f-ae00-020fe334333b" } 2022-08-08 23:07:46 | [Mutex] waiting for: [retracted:item:notifieditem-ba3ec394-8193-447f-ae00-020fe334333b:admin@test-domain.com] 2022-08-08 23:07:46 | [Mutex] received everything. 2022-08-08 23:07:46 | [Mutex] isItemNotified: retracted:item:notifieditem-ba3ec394-8193-447f-ae00-020fe334333b:admin@test-domain.com :: true |
retrieveItemsFromNodes | 0.049s |
2022-08-08 23:07:46 |
2022-08-08 23:07:46 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-08-08 23:07:46 | ------------------------------------ 2022-08-08 23:07:46 | on localhost executing action retrieve-item with content type application/json and payload: { "node": "node-d7c92b07-e41d-441b-b244-3c10855f1322", "item-id": "item-ba3ec394-8193-447f-ae00-020fe334333b" } 2022-08-08 23:07:46 | from localhost for action retrieve-item got result code 200 and payload { "title": "Retrive PubSub node item", "node": "node-d7c92b07-e41d-441b-b244-3c10855f1322", "item-id": "item-ba3ec394-8193-447f-ae00-020fe334333b", "item": [ "<item id=\"item-ba3ec394-8193-447f-ae00-020fe334333b\"><test>item-ba3ec394-8193-447f-ae00-020fe334333b</test></item>" ] } 2022-08-08 23:07:46 | [Mutex] notify: [retrieved:item:item-ba3ec394-8193-447f-ae00-020fe334333b:payload-matches:true:localhost] 2022-08-08 23:07:46 | [Mutex] received everything. 2022-08-08 23:07:46 | [Mutex] isItemNotified: retrieved:item:item-ba3ec394-8193-447f-ae00-020fe334333b:payload-matches:true:localhost :: true |
retrieveUserSubscriptions | 0.049s |
2022-08-08 23:07:46 |
2022-08-08 23:07:46 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-08-08 23:07:46 | ------------------------------------ 2022-08-08 23:07:46 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload: { "jid": "admin@test-domain.com" } 2022-08-08 23:07:46 | from localhost for action retrieve-user-subscriptions got result code 200 and payload { "nodes": [ "node-d7c92b07-e41d-441b-b244-3c10855f1322", "test", "node-a0c79270-37fb-47cc-95df-cfa996d7748b" ] } |
retrieveUserSubscriptionsWithRegex | 0.047s |
2022-08-08 23:07:46 |
2022-08-08 23:07:46 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-08-08 23:07:46 | ------------------------------------ 2022-08-08 23:07:46 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload: { "jid": "admin@test-domain.com", "node-pattern": "(?!node-d7c92b07-e41d-441b-b244-3c10855f1322)" } 2022-08-08 23:07:46 | from localhost for action retrieve-user-subscriptions got result code 200 and payload { "nodes": [ ] } |
subscribeNodes | 1.009s |
2022-08-08 23:07:45 |
2022-08-08 23:07:45 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-08-08 23:07:45 | ------------------------------------ 2022-08-08 23:07:45 | on localhost executing action subscribe-node with content type application/json and payload: { "node": "node-d7c92b07-e41d-441b-b244-3c10855f1322", "jids": [ "admin@test-domain.com" ] } 2022-08-08 23:07:45 | from localhost for action subscribe-node got result code 200 and payload { "Note": "Operation successful" } |
unsubscribeNodes | 1.010s |
2022-08-08 23:07:46 |
2022-08-08 23:07:46 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-08-08 23:07:46 | ------------------------------------ 2022-08-08 23:07:46 | on localhost executing action unsubscribe-node with content type application/json and payload: { "node": "node-d7c92b07-e41d-441b-b244-3c10855f1322", "jids": [ "admin@test-domain.com" ] } 2022-08-08 23:07:46 | from localhost for action unsubscribe-node got result code 200 and payload { "Note": "Operation successful" } |