Test duration : 9.054s
Passed Tests | ||
---|---|---|
tigase.tests.pubsub.TestRestApiUsingJSON | ||
configureNodes | 1.115s |
2021-04-23 10:12:21 |
2021-04-23 10:12:21 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-04-23 10:12:21 | ------------------------------------ 2021-04-23 10:12:21 | [Mutex] waiting for: [configured:node:node-1ad35c6f-d790-41c6-be01-3cf0759cb6b2:node-e31bc4be-d4ec-42df-b0b4-2c203ff55b9e] 2021-04-23 10:12:21 | [Mutex] received everything. 2021-04-23 10:12:21 | [Mutex] isItemNotified: configured:node:node-1ad35c6f-d790-41c6-be01-3cf0759cb6b2:node-e31bc4be-d4ec-42df-b0b4-2c203ff55b9e :: true 2021-04-23 10:12:22 | [Mutex] waiting for: [received:nodes:492a290e-4ab2-40b8-b848-77b977a30c58:localhost] 2021-04-23 10:12:22 | [Mutex] received everything. 2021-04-23 10:12:22 | [Mutex] isItemNotified: received:node:492a290e-4ab2-40b8-b848-77b977a30c58:localhost:node-1ad35c6f-d790-41c6-be01-3cf0759cb6b2:Node 1ad35c6f-d790-41c6-be01-3cf0759cb6b2 :: true 2021-04-23 10:12:22 | [Mutex] waiting for: [received:nodes:b1ee086f-f899-4297-bdf7-67de23574a10:localhost] 2021-04-23 10:12:22 | [Mutex] received everything. 2021-04-23 10:12:22 | [Mutex] isItemNotified: received:node:b1ee086f-f899-4297-bdf7-67de23574a10:localhost:node-1ad35c6f-d790-41c6-be01-3cf0759cb6b2:Node 1ad35c6f-d790-41c6-be01-3cf0759cb6b2 :: false |
createNodes | 1.699s |
2021-04-23 10:12:18 |
2021-04-23 10:12:18 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-04-23 10:12:18 | ------------------------------------ 2021-04-23 10:12:18 | on localhost executing action create-node with content type application/json and payload: { "owner": "admin@test-domain.com", "pubsub#node_type": "leaf", "node": "node-1ad35c6f-d790-41c6-be01-3cf0759cb6b2", "pubsub#title": "Node 1ad35c6f-d790-41c6-be01-3cf0759cb6b2" } 2021-04-23 10:12:19 | from localhost for action create-node got result code 200 and payload { "Note": "Operation successful" } 2021-04-23 10:12:20 | [Mutex] waiting for: [received:nodes:a7cab0b5-902f-435f-bb27-59f15fb269f6:localhost] 2021-04-23 10:12:20 | [Mutex] received everything. 2021-04-23 10:12:20 | [Mutex] isItemNotified: received:node:a7cab0b5-902f-435f-bb27-59f15fb269f6:localhost:node-1ad35c6f-d790-41c6-be01-3cf0759cb6b2:Node 1ad35c6f-d790-41c6-be01-3cf0759cb6b2 :: true |
createSubnodes | 1.035s |
2021-04-23 10:12:20 |
2021-04-23 10:12:20 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-04-23 10:12:20 | ------------------------------------ 2021-04-23 10:12:20 | on localhost executing action create-node with content type application/json and payload: { "owner": "admin@test-domain.com", "pubsub#node_type": "collection", "node": "node-e31bc4be-d4ec-42df-b0b4-2c203ff55b9e", "pubsub#title": "Node e31bc4be-d4ec-42df-b0b4-2c203ff55b9e" } 2021-04-23 10:12:20 | from localhost for action create-node got result code 200 and payload { "Note": "Operation successful" } 2021-04-23 10:12:21 | [Mutex] waiting for: [received:nodes:9414d565-de0f-46f1-81ea-ef250263c55a:localhost] 2021-04-23 10:12:21 | [Mutex] received everything. 2021-04-23 10:12:21 | [Mutex] isItemNotified: received:node:9414d565-de0f-46f1-81ea-ef250263c55a:localhost:node-e31bc4be-d4ec-42df-b0b4-2c203ff55b9e:Node e31bc4be-d4ec-42df-b0b4-2c203ff55b9e :: true |
deleteNodes | 1.021s |
2021-04-23 10:12:25 |
2021-04-23 10:12:25 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-04-23 10:12:25 | ------------------------------------ 2021-04-23 10:12:25 | on localhost executing action delete-node with content type application/json and payload: { "node": "node-e31bc4be-d4ec-42df-b0b4-2c203ff55b9e" } 2021-04-23 10:12:25 | from localhost for action delete-node got result code 200 and payload { "Note": "Operation successful" } 2021-04-23 10:12:26 | [Mutex] waiting for: [received:nodes:003b91dd-33d7-4927-ac28-445edf76d570:localhost] 2021-04-23 10:12:26 | [Mutex] waiting for: [received:nodes:003b91dd-33d7-4927-ac28-445edf76d570:localhost] 2021-04-23 10:12:26 | [Mutex] received everything. 2021-04-23 10:12:26 | [Mutex] isItemNotified: received:node:003b91dd-33d7-4927-ac28-445edf76d570:localhost:node-e31bc4be-d4ec-42df-b0b4-2c203ff55b9e:Node e31bc4be-d4ec-42df-b0b4-2c203ff55b9e :: false |
deleteSubnodes | 1.026s |
2021-04-23 10:12:24 |
2021-04-23 10:12:24 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-04-23 10:12:24 | ------------------------------------ 2021-04-23 10:12:24 | on localhost executing action delete-node with content type application/json and payload: { "node": "node-1ad35c6f-d790-41c6-be01-3cf0759cb6b2" } 2021-04-23 10:12:24 | from localhost for action delete-node got result code 200 and payload { "Note": "Operation successful" } 2021-04-23 10:12:25 | [Mutex] waiting for: [received:nodes:cf5067fe-b448-4798-9646-2342d7b2a9d0:localhost] 2021-04-23 10:12:25 | [Mutex] received everything. 2021-04-23 10:12:25 | [Mutex] isItemNotified: received:node:cf5067fe-b448-4798-9646-2342d7b2a9d0:localhost:node-1ad35c6f-d790-41c6-be01-3cf0759cb6b2:Node 1ad35c6f-d790-41c6-be01-3cf0759cb6b2 :: false 2021-04-23 10:12:25 | [Mutex] waiting for: [received:nodes:cf37aab3-5e8e-48f8-9053-8d0587f40dae:localhost] 2021-04-23 10:12:25 | [Mutex] received everything. 2021-04-23 10:12:25 | [Mutex] isItemNotified: received:node:cf37aab3-5e8e-48f8-9053-8d0587f40dae:localhost:node-1ad35c6f-d790-41c6-be01-3cf0759cb6b2:Node 1ad35c6f-d790-41c6-be01-3cf0759cb6b2 :: false |
publishItemsToNodes | 0.049s |
2021-04-23 10:12:23 |
2021-04-23 10:12:23 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-04-23 10:12:23 | ------------------------------------ 2021-04-23 10:12:23 | on localhost executing action publish-item with content type application/json and payload: { "node": "node-1ad35c6f-d790-41c6-be01-3cf0759cb6b2", "entry": "<test>item-950a4fb7-bbf5-47bf-9e43-be0190268a78</test>", "item-id": "item-950a4fb7-bbf5-47bf-9e43-be0190268a78" } 2021-04-23 10:12:23 | from localhost for action publish-item got result code 200 and payload { "Note": "Operation successful", "item-id": "item-950a4fb7-bbf5-47bf-9e43-be0190268a78" } 2021-04-23 10:12:23 | [Mutex] waiting for: [published:item:notifieditem-950a4fb7-bbf5-47bf-9e43-be0190268a78:admin@test-domain.com] 2021-04-23 10:12:23 | [Mutex] received everything. 2021-04-23 10:12:23 | [Mutex] isItemNotified: published:item:notifieditem-950a4fb7-bbf5-47bf-9e43-be0190268a78:admin@test-domain.com :: true |
retractItemsFromNodes | 0.128s |
2021-04-23 10:12:23 |
2021-04-23 10:12:23 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-04-23 10:12:23 | ------------------------------------ 2021-04-23 10:12:23 | on localhost executing action delete-item with content type application/json and payload: { "node": "node-1ad35c6f-d790-41c6-be01-3cf0759cb6b2", "item-id": "item-950a4fb7-bbf5-47bf-9e43-be0190268a78" } 2021-04-23 10:12:23 | from localhost for action delete-item got result code 200 and payload { "Note": "Operation successful", "item-id": "item-950a4fb7-bbf5-47bf-9e43-be0190268a78" } 2021-04-23 10:12:23 | [Mutex] received everything. 2021-04-23 10:12:23 | [Mutex] isItemNotified: retracted:item:notifieditem-950a4fb7-bbf5-47bf-9e43-be0190268a78:admin@test-domain.com :: true |
retrieveItemsFromNodes | 0.069s |
2021-04-23 10:12:23 |
2021-04-23 10:12:23 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-04-23 10:12:23 | ------------------------------------ 2021-04-23 10:12:23 | on localhost executing action retrieve-item with content type application/json and payload: { "node": "node-1ad35c6f-d790-41c6-be01-3cf0759cb6b2", "item-id": "item-950a4fb7-bbf5-47bf-9e43-be0190268a78" } 2021-04-23 10:12:23 | from localhost for action retrieve-item got result code 200 and payload { "title": "Retrive PubSub node item", "node": "node-1ad35c6f-d790-41c6-be01-3cf0759cb6b2", "item-id": "item-950a4fb7-bbf5-47bf-9e43-be0190268a78", "item": [ "<item id=\"item-950a4fb7-bbf5-47bf-9e43-be0190268a78\"><test>item-950a4fb7-bbf5-47bf-9e43-be0190268a78</test></item>" ] } 2021-04-23 10:12:23 | [Mutex] notify: [retrieved:item:item-950a4fb7-bbf5-47bf-9e43-be0190268a78:payload-matches:true:localhost] 2021-04-23 10:12:23 | [Mutex] received everything. 2021-04-23 10:12:23 | [Mutex] isItemNotified: retrieved:item:item-950a4fb7-bbf5-47bf-9e43-be0190268a78:payload-matches:true:localhost :: true |
retrieveUserSubscriptions | 0.051s |
2021-04-23 10:12:23 |
2021-04-23 10:12:23 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-04-23 10:12:23 | ------------------------------------ 2021-04-23 10:12:23 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload: { "jid": "admin@test-domain.com" } 2021-04-23 10:12:23 | from localhost for action retrieve-user-subscriptions got result code 200 and payload { "nodes": [ "node-1ad35c6f-d790-41c6-be01-3cf0759cb6b2", "test", "node-e31bc4be-d4ec-42df-b0b4-2c203ff55b9e" ] } |
retrieveUserSubscriptionsWithRegex | 0.048s |
2021-04-23 10:12:23 |
2021-04-23 10:12:23 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-04-23 10:12:23 | ------------------------------------ 2021-04-23 10:12:23 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload: { "jid": "admin@test-domain.com", "node-pattern": "(?!node-1ad35c6f-d790-41c6-be01-3cf0759cb6b2)" } 2021-04-23 10:12:23 | from localhost for action retrieve-user-subscriptions got result code 200 and payload { "nodes": [ ] } |
subscribeNodes | 1.010s |
2021-04-23 10:12:22 |
2021-04-23 10:12:22 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-04-23 10:12:22 | ------------------------------------ 2021-04-23 10:12:22 | on localhost executing action subscribe-node with content type application/json and payload: { "node": "node-1ad35c6f-d790-41c6-be01-3cf0759cb6b2", "jids": [ "admin@test-domain.com" ] } 2021-04-23 10:12:22 | from localhost for action subscribe-node got result code 200 and payload { "Note": "Operation successful" } |
unsubscribeNodes | 1.087s |
2021-04-23 10:12:23 |
2021-04-23 10:12:23 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-04-23 10:12:23 | ------------------------------------ 2021-04-23 10:12:23 | on localhost executing action unsubscribe-node with content type application/json and payload: { "node": "node-1ad35c6f-d790-41c6-be01-3cf0759cb6b2", "jids": [ "admin@test-domain.com" ] } 2021-04-23 10:12:23 | from localhost for action unsubscribe-node got result code 200 and payload { "Note": "Operation successful" } |