Test duration : 8.957s
Passed Tests | ||
---|---|---|
tigase.tests.pubsub.TestRestApiUsingJSON | ||
configureNodes | 1.176s |
2022-02-06 21:47:39 |
2022-02-06 21:47:39 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-02-06 21:47:39 | ------------------------------------ 2022-02-06 21:47:39 | [Mutex] waiting for: [configured:node:node-2a9d8d35-f140-4785-a489-7ab908e31b8b:node-df10bd36-b2d6-4918-8a5a-7a17b0d5de07] 2022-02-06 21:47:39 | [Mutex] received everything. 2022-02-06 21:47:39 | [Mutex] isItemNotified: configured:node:node-2a9d8d35-f140-4785-a489-7ab908e31b8b:node-df10bd36-b2d6-4918-8a5a-7a17b0d5de07 :: true 2022-02-06 21:47:40 | [Mutex] waiting for: [received:nodes:c50fbda0-0be8-482e-ac61-14140e41ab43:localhost] 2022-02-06 21:47:40 | [Mutex] received everything. 2022-02-06 21:47:40 | [Mutex] isItemNotified: received:node:c50fbda0-0be8-482e-ac61-14140e41ab43:localhost:node-2a9d8d35-f140-4785-a489-7ab908e31b8b:Node 2a9d8d35-f140-4785-a489-7ab908e31b8b :: true 2022-02-06 21:47:40 | [Mutex] waiting for: [received:nodes:3e352668-4fef-4ef5-9ef1-31642e3e775a:localhost] 2022-02-06 21:47:40 | [Mutex] received everything. 2022-02-06 21:47:40 | [Mutex] isItemNotified: received:node:3e352668-4fef-4ef5-9ef1-31642e3e775a:localhost:node-2a9d8d35-f140-4785-a489-7ab908e31b8b:Node 2a9d8d35-f140-4785-a489-7ab908e31b8b :: false |
createNodes | 1.617s |
2022-02-06 21:47:36 |
2022-02-06 21:47:36 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-02-06 21:47:36 | ------------------------------------ 2022-02-06 21:47:37 | on localhost executing action create-node with content type application/json and payload: { "owner": "admin@test-domain.com", "pubsub#node_type": "leaf", "node": "node-2a9d8d35-f140-4785-a489-7ab908e31b8b", "pubsub#title": "Node 2a9d8d35-f140-4785-a489-7ab908e31b8b" } 2022-02-06 21:47:37 | from localhost for action create-node got result code 200 and payload { "Note": "Operation successful" } 2022-02-06 21:47:38 | [Mutex] waiting for: [received:nodes:5f2974e8-86d8-44e8-bbaf-c70fe6833972:localhost] 2022-02-06 21:47:38 | [Mutex] waiting for: [received:nodes:5f2974e8-86d8-44e8-bbaf-c70fe6833972:localhost] 2022-02-06 21:47:38 | [Mutex] received everything. 2022-02-06 21:47:38 | [Mutex] isItemNotified: received:node:5f2974e8-86d8-44e8-bbaf-c70fe6833972:localhost:node-2a9d8d35-f140-4785-a489-7ab908e31b8b:Node 2a9d8d35-f140-4785-a489-7ab908e31b8b :: true |
createSubnodes | 1.028s |
2022-02-06 21:47:38 |
2022-02-06 21:47:38 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-02-06 21:47:38 | ------------------------------------ 2022-02-06 21:47:38 | on localhost executing action create-node with content type application/json and payload: { "owner": "admin@test-domain.com", "pubsub#node_type": "collection", "node": "node-df10bd36-b2d6-4918-8a5a-7a17b0d5de07", "pubsub#title": "Node df10bd36-b2d6-4918-8a5a-7a17b0d5de07" } 2022-02-06 21:47:38 | from localhost for action create-node got result code 200 and payload { "Note": "Operation successful" } 2022-02-06 21:47:39 | [Mutex] waiting for: [received:nodes:471790bb-28e5-4846-bc56-c5b2d1bb606a:localhost] 2022-02-06 21:47:39 | [Mutex] waiting for: [received:nodes:471790bb-28e5-4846-bc56-c5b2d1bb606a:localhost] 2022-02-06 21:47:39 | [Mutex] received everything. 2022-02-06 21:47:39 | [Mutex] isItemNotified: received:node:471790bb-28e5-4846-bc56-c5b2d1bb606a:localhost:node-df10bd36-b2d6-4918-8a5a-7a17b0d5de07:Node df10bd36-b2d6-4918-8a5a-7a17b0d5de07 :: true |
deleteNodes | 1.024s |
2022-02-06 21:47:44 |
2022-02-06 21:47:44 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-02-06 21:47:44 | ------------------------------------ 2022-02-06 21:47:44 | on localhost executing action delete-node with content type application/json and payload: { "node": "node-df10bd36-b2d6-4918-8a5a-7a17b0d5de07" } 2022-02-06 21:47:44 | from localhost for action delete-node got result code 200 and payload { "Note": "Operation successful" } 2022-02-06 21:47:45 | [Mutex] waiting for: [received:nodes:b78d14b9-6e14-423f-b6c2-d4945a55723f:localhost] 2022-02-06 21:47:45 | [Mutex] waiting for: [received:nodes:b78d14b9-6e14-423f-b6c2-d4945a55723f:localhost] 2022-02-06 21:47:45 | [Mutex] received everything. 2022-02-06 21:47:45 | [Mutex] isItemNotified: received:node:b78d14b9-6e14-423f-b6c2-d4945a55723f:localhost:node-df10bd36-b2d6-4918-8a5a-7a17b0d5de07:Node df10bd36-b2d6-4918-8a5a-7a17b0d5de07 :: false |
deleteSubnodes | 1.036s |
2022-02-06 21:47:43 |
2022-02-06 21:47:43 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-02-06 21:47:43 | ------------------------------------ 2022-02-06 21:47:43 | on localhost executing action delete-node with content type application/json and payload: { "node": "node-2a9d8d35-f140-4785-a489-7ab908e31b8b" } 2022-02-06 21:47:43 | from localhost for action delete-node got result code 200 and payload { "Note": "Operation successful" } 2022-02-06 21:47:44 | [Mutex] waiting for: [received:nodes:f5f47ffd-c2ed-4d46-9ae1-43b8401348c2:localhost] 2022-02-06 21:47:44 | [Mutex] waiting for: [received:nodes:f5f47ffd-c2ed-4d46-9ae1-43b8401348c2:localhost] 2022-02-06 21:47:44 | [Mutex] waiting for: [received:nodes:f5f47ffd-c2ed-4d46-9ae1-43b8401348c2:localhost] 2022-02-06 21:47:44 | [Mutex] received everything. 2022-02-06 21:47:44 | [Mutex] isItemNotified: received:node:f5f47ffd-c2ed-4d46-9ae1-43b8401348c2:localhost:node-2a9d8d35-f140-4785-a489-7ab908e31b8b:Node 2a9d8d35-f140-4785-a489-7ab908e31b8b :: false 2022-02-06 21:47:44 | [Mutex] waiting for: [received:nodes:ca67f7c1-a5c9-4f65-b4af-1fda8b3feaf4:localhost] 2022-02-06 21:47:44 | [Mutex] received everything. 2022-02-06 21:47:44 | [Mutex] isItemNotified: received:node:ca67f7c1-a5c9-4f65-b4af-1fda8b3feaf4:localhost:node-2a9d8d35-f140-4785-a489-7ab908e31b8b:Node 2a9d8d35-f140-4785-a489-7ab908e31b8b :: false |
publishItemsToNodes | 0.078s |
2022-02-06 21:47:41 |
2022-02-06 21:47:41 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-02-06 21:47:41 | ------------------------------------ 2022-02-06 21:47:41 | on localhost executing action publish-item with content type application/json and payload: { "node": "node-2a9d8d35-f140-4785-a489-7ab908e31b8b", "entry": "<test>item-4bbd4508-272a-4438-91f8-8c42775ad396</test>", "item-id": "item-4bbd4508-272a-4438-91f8-8c42775ad396" } 2022-02-06 21:47:41 | from localhost for action publish-item got result code 200 and payload { "Note": "Operation successful", "item-id": "item-4bbd4508-272a-4438-91f8-8c42775ad396" } 2022-02-06 21:47:41 | [Mutex] waiting for: [published:item:notifieditem-4bbd4508-272a-4438-91f8-8c42775ad396:admin@test-domain.com] 2022-02-06 21:47:41 | [Mutex] received everything. 2022-02-06 21:47:41 | [Mutex] isItemNotified: published:item:notifieditem-4bbd4508-272a-4438-91f8-8c42775ad396:admin@test-domain.com :: true |
retractItemsFromNodes | 0.067s |
2022-02-06 21:47:42 |
2022-02-06 21:47:42 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-02-06 21:47:42 | ------------------------------------ 2022-02-06 21:47:42 | on localhost executing action delete-item with content type application/json and payload: { "node": "node-2a9d8d35-f140-4785-a489-7ab908e31b8b", "item-id": "item-4bbd4508-272a-4438-91f8-8c42775ad396" } 2022-02-06 21:47:42 | from localhost for action delete-item got result code 200 and payload { "Note": "Operation successful", "item-id": "item-4bbd4508-272a-4438-91f8-8c42775ad396" } 2022-02-06 21:47:42 | [Mutex] received everything. 2022-02-06 21:47:42 | [Mutex] isItemNotified: retracted:item:notifieditem-4bbd4508-272a-4438-91f8-8c42775ad396:admin@test-domain.com :: true |
retrieveItemsFromNodes | 0.030s |
2022-02-06 21:47:41 |
2022-02-06 21:47:41 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-02-06 21:47:41 | ------------------------------------ 2022-02-06 21:47:41 | on localhost executing action retrieve-item with content type application/json and payload: { "node": "node-2a9d8d35-f140-4785-a489-7ab908e31b8b", "item-id": "item-4bbd4508-272a-4438-91f8-8c42775ad396" } 2022-02-06 21:47:41 | from localhost for action retrieve-item got result code 200 and payload { "title": "Retrive PubSub node item", "node": "node-2a9d8d35-f140-4785-a489-7ab908e31b8b", "item-id": "item-4bbd4508-272a-4438-91f8-8c42775ad396", "item": [ "<item id=\"item-4bbd4508-272a-4438-91f8-8c42775ad396\"><test>item-4bbd4508-272a-4438-91f8-8c42775ad396</test></item>" ] } 2022-02-06 21:47:41 | [Mutex] notify: [retrieved:item:item-4bbd4508-272a-4438-91f8-8c42775ad396:payload-matches:true:localhost] 2022-02-06 21:47:41 | [Mutex] received everything. 2022-02-06 21:47:41 | [Mutex] isItemNotified: retrieved:item:item-4bbd4508-272a-4438-91f8-8c42775ad396:payload-matches:true:localhost :: true |
retrieveUserSubscriptions | 0.054s |
2022-02-06 21:47:41 |
2022-02-06 21:47:41 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-02-06 21:47:41 | ------------------------------------ 2022-02-06 21:47:41 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload: { "jid": "admin@test-domain.com" } 2022-02-06 21:47:41 | from localhost for action retrieve-user-subscriptions got result code 200 and payload { "nodes": [ "test", "node-2a9d8d35-f140-4785-a489-7ab908e31b8b", "node-df10bd36-b2d6-4918-8a5a-7a17b0d5de07" ] } |
retrieveUserSubscriptionsWithRegex | 0.055s |
2022-02-06 21:47:41 |
2022-02-06 21:47:41 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-02-06 21:47:41 | ------------------------------------ 2022-02-06 21:47:41 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload: { "jid": "admin@test-domain.com", "node-pattern": "(?!node-2a9d8d35-f140-4785-a489-7ab908e31b8b)" } 2022-02-06 21:47:42 | from localhost for action retrieve-user-subscriptions got result code 200 and payload { "nodes": [ ] } |
subscribeNodes | 1.012s |
2022-02-06 21:47:40 |
2022-02-06 21:47:40 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-02-06 21:47:40 | ------------------------------------ 2022-02-06 21:47:40 | on localhost executing action subscribe-node with content type application/json and payload: { "node": "node-2a9d8d35-f140-4785-a489-7ab908e31b8b", "jids": [ "admin@test-domain.com" ] } 2022-02-06 21:47:40 | from localhost for action subscribe-node got result code 200 and payload { "Note": "Operation successful" } |
unsubscribeNodes | 1.079s |
2022-02-06 21:47:42 |
2022-02-06 21:47:42 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-02-06 21:47:42 | ------------------------------------ 2022-02-06 21:47:42 | on localhost executing action unsubscribe-node with content type application/json and payload: { "node": "node-2a9d8d35-f140-4785-a489-7ab908e31b8b", "jids": [ "admin@test-domain.com" ] } 2022-02-06 21:47:42 | from localhost for action unsubscribe-node got result code 200 and payload { "Note": "Operation successful" } |