Test duration : 9.141s
Passed Tests | ||
---|---|---|
tigase.tests.pubsub.TestRestApiUsingJSON | ||
configureNodes | 1.102s |
2022-02-21 21:37:12 |
2022-02-21 21:37:12 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-02-21 21:37:12 | ------------------------------------ 2022-02-21 21:37:12 | [Mutex] waiting for: [configured:node:node-d66ca271-e45d-42b6-8352-c7fc6f42d020:node-820ad4e0-f010-41ee-8f53-dbc875e5fa3c] 2022-02-21 21:37:12 | [Mutex] received everything. 2022-02-21 21:37:12 | [Mutex] isItemNotified: configured:node:node-d66ca271-e45d-42b6-8352-c7fc6f42d020:node-820ad4e0-f010-41ee-8f53-dbc875e5fa3c :: true 2022-02-21 21:37:13 | [Mutex] waiting for: [received:nodes:392e3861-3a91-49db-8325-42edcee83f84:localhost] 2022-02-21 21:37:13 | [Mutex] received everything. 2022-02-21 21:37:13 | [Mutex] isItemNotified: received:node:392e3861-3a91-49db-8325-42edcee83f84:localhost:node-d66ca271-e45d-42b6-8352-c7fc6f42d020:Node d66ca271-e45d-42b6-8352-c7fc6f42d020 :: true 2022-02-21 21:37:13 | [Mutex] waiting for: [received:nodes:a26bbecb-94c6-4425-82e4-467164e778cb:localhost] 2022-02-21 21:37:13 | [Mutex] received everything. 2022-02-21 21:37:13 | [Mutex] isItemNotified: received:node:a26bbecb-94c6-4425-82e4-467164e778cb:localhost:node-d66ca271-e45d-42b6-8352-c7fc6f42d020:Node d66ca271-e45d-42b6-8352-c7fc6f42d020 :: false |
createNodes | 1.741s |
2022-02-21 21:37:09 |
2022-02-21 21:37:09 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-02-21 21:37:09 | ------------------------------------ 2022-02-21 21:37:10 | on localhost executing action create-node with content type application/json and payload: { "owner": "admin@test-domain.com", "pubsub#node_type": "leaf", "node": "node-d66ca271-e45d-42b6-8352-c7fc6f42d020", "pubsub#title": "Node d66ca271-e45d-42b6-8352-c7fc6f42d020" } 2022-02-21 21:37:10 | from localhost for action create-node got result code 200 and payload { "Note": "Operation successful" } 2022-02-21 21:37:11 | [Mutex] waiting for: [received:nodes:0b3e9fa4-1d9c-4e49-b874-d002aa402071:localhost] 2022-02-21 21:37:11 | [Mutex] received everything. 2022-02-21 21:37:11 | [Mutex] isItemNotified: received:node:0b3e9fa4-1d9c-4e49-b874-d002aa402071:localhost:node-d66ca271-e45d-42b6-8352-c7fc6f42d020:Node d66ca271-e45d-42b6-8352-c7fc6f42d020 :: true |
createSubnodes | 1.038s |
2022-02-21 21:37:11 |
2022-02-21 21:37:11 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-02-21 21:37:11 | ------------------------------------ 2022-02-21 21:37:11 | on localhost executing action create-node with content type application/json and payload: { "owner": "admin@test-domain.com", "pubsub#node_type": "collection", "node": "node-820ad4e0-f010-41ee-8f53-dbc875e5fa3c", "pubsub#title": "Node 820ad4e0-f010-41ee-8f53-dbc875e5fa3c" } 2022-02-21 21:37:11 | from localhost for action create-node got result code 200 and payload { "Note": "Operation successful" } 2022-02-21 21:37:12 | [Mutex] waiting for: [received:nodes:2d27af40-73a0-4cce-9504-eb3f52034b02:localhost] 2022-02-21 21:37:12 | [Mutex] waiting for: [received:nodes:2d27af40-73a0-4cce-9504-eb3f52034b02:localhost] 2022-02-21 21:37:12 | [Mutex] received everything. 2022-02-21 21:37:12 | [Mutex] isItemNotified: received:node:2d27af40-73a0-4cce-9504-eb3f52034b02:localhost:node-820ad4e0-f010-41ee-8f53-dbc875e5fa3c:Node 820ad4e0-f010-41ee-8f53-dbc875e5fa3c :: true |
deleteNodes | 1.022s |
2022-02-21 21:37:17 |
2022-02-21 21:37:17 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-02-21 21:37:17 | ------------------------------------ 2022-02-21 21:37:17 | on localhost executing action delete-node with content type application/json and payload: { "node": "node-820ad4e0-f010-41ee-8f53-dbc875e5fa3c" } 2022-02-21 21:37:17 | from localhost for action delete-node got result code 200 and payload { "Note": "Operation successful" } 2022-02-21 21:37:18 | [Mutex] waiting for: [received:nodes:15a786ef-c691-4b7e-b236-5b1d52d53d73:localhost] 2022-02-21 21:37:18 | [Mutex] waiting for: [received:nodes:15a786ef-c691-4b7e-b236-5b1d52d53d73:localhost] 2022-02-21 21:37:18 | [Mutex] received everything. 2022-02-21 21:37:18 | [Mutex] isItemNotified: received:node:15a786ef-c691-4b7e-b236-5b1d52d53d73:localhost:node-820ad4e0-f010-41ee-8f53-dbc875e5fa3c:Node 820ad4e0-f010-41ee-8f53-dbc875e5fa3c :: false |
deleteSubnodes | 1.037s |
2022-02-21 21:37:15 |
2022-02-21 21:37:15 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-02-21 21:37:15 | ------------------------------------ 2022-02-21 21:37:15 | on localhost executing action delete-node with content type application/json and payload: { "node": "node-d66ca271-e45d-42b6-8352-c7fc6f42d020" } 2022-02-21 21:37:16 | from localhost for action delete-node got result code 200 and payload { "Note": "Operation successful" } 2022-02-21 21:37:17 | [Mutex] waiting for: [received:nodes:3af47f9f-43bf-47fc-9ae8-956d90d2336b:localhost] 2022-02-21 21:37:17 | [Mutex] waiting for: [received:nodes:3af47f9f-43bf-47fc-9ae8-956d90d2336b:localhost] 2022-02-21 21:37:17 | [Mutex] waiting for: [received:nodes:3af47f9f-43bf-47fc-9ae8-956d90d2336b:localhost] 2022-02-21 21:37:17 | [Mutex] received everything. 2022-02-21 21:37:17 | [Mutex] isItemNotified: received:node:3af47f9f-43bf-47fc-9ae8-956d90d2336b:localhost:node-d66ca271-e45d-42b6-8352-c7fc6f42d020:Node d66ca271-e45d-42b6-8352-c7fc6f42d020 :: false 2022-02-21 21:37:17 | [Mutex] waiting for: [received:nodes:3d9c8ae9-7c98-453b-94cc-e617a789e74d:localhost] 2022-02-21 21:37:17 | [Mutex] received everything. 2022-02-21 21:37:17 | [Mutex] isItemNotified: received:node:3d9c8ae9-7c98-453b-94cc-e617a789e74d:localhost:node-d66ca271-e45d-42b6-8352-c7fc6f42d020:Node d66ca271-e45d-42b6-8352-c7fc6f42d020 :: false |
publishItemsToNodes | 0.060s |
2022-02-21 21:37:14 |
2022-02-21 21:37:14 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-02-21 21:37:14 | ------------------------------------ 2022-02-21 21:37:14 | on localhost executing action publish-item with content type application/json and payload: { "node": "node-d66ca271-e45d-42b6-8352-c7fc6f42d020", "entry": "<test>item-db3a0d24-0397-4420-bd84-03bf406eb5c4</test>", "item-id": "item-db3a0d24-0397-4420-bd84-03bf406eb5c4" } 2022-02-21 21:37:14 | from localhost for action publish-item got result code 200 and payload { "Note": "Operation successful", "item-id": "item-db3a0d24-0397-4420-bd84-03bf406eb5c4" } 2022-02-21 21:37:14 | [Mutex] waiting for: [published:item:notifieditem-db3a0d24-0397-4420-bd84-03bf406eb5c4:admin@test-domain.com] 2022-02-21 21:37:14 | [Mutex] received everything. 2022-02-21 21:37:14 | [Mutex] isItemNotified: published:item:notifieditem-db3a0d24-0397-4420-bd84-03bf406eb5c4:admin@test-domain.com :: true |
retractItemsFromNodes | 0.063s |
2022-02-21 21:37:14 |
2022-02-21 21:37:14 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-02-21 21:37:14 | ------------------------------------ 2022-02-21 21:37:14 | on localhost executing action delete-item with content type application/json and payload: { "node": "node-d66ca271-e45d-42b6-8352-c7fc6f42d020", "item-id": "item-db3a0d24-0397-4420-bd84-03bf406eb5c4" } 2022-02-21 21:37:14 | from localhost for action delete-item got result code 200 and payload { "Note": "Operation successful", "item-id": "item-db3a0d24-0397-4420-bd84-03bf406eb5c4" } 2022-02-21 21:37:14 | [Mutex] received everything. 2022-02-21 21:37:14 | [Mutex] isItemNotified: retracted:item:notifieditem-db3a0d24-0397-4420-bd84-03bf406eb5c4:admin@test-domain.com :: true |
retrieveItemsFromNodes | 0.033s |
2022-02-21 21:37:14 |
2022-02-21 21:37:14 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-02-21 21:37:14 | ------------------------------------ 2022-02-21 21:37:14 | on localhost executing action retrieve-item with content type application/json and payload: { "node": "node-d66ca271-e45d-42b6-8352-c7fc6f42d020", "item-id": "item-db3a0d24-0397-4420-bd84-03bf406eb5c4" } 2022-02-21 21:37:14 | from localhost for action retrieve-item got result code 200 and payload { "title": "Retrive PubSub node item", "node": "node-d66ca271-e45d-42b6-8352-c7fc6f42d020", "item-id": "item-db3a0d24-0397-4420-bd84-03bf406eb5c4", "item": [ "<item id=\"item-db3a0d24-0397-4420-bd84-03bf406eb5c4\"><test>item-db3a0d24-0397-4420-bd84-03bf406eb5c4</test></item>" ] } 2022-02-21 21:37:14 | [Mutex] notify: [retrieved:item:item-db3a0d24-0397-4420-bd84-03bf406eb5c4:payload-matches:true:localhost] 2022-02-21 21:37:14 | [Mutex] received everything. 2022-02-21 21:37:14 | [Mutex] isItemNotified: retrieved:item:item-db3a0d24-0397-4420-bd84-03bf406eb5c4:payload-matches:true:localhost :: true |
retrieveUserSubscriptions | 0.068s |
2022-02-21 21:37:14 |
2022-02-21 21:37:14 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-02-21 21:37:14 | ------------------------------------ 2022-02-21 21:37:14 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload: { "jid": "admin@test-domain.com" } 2022-02-21 21:37:14 | from localhost for action retrieve-user-subscriptions got result code 200 and payload { "nodes": [ "test", "node-d66ca271-e45d-42b6-8352-c7fc6f42d020", "node-820ad4e0-f010-41ee-8f53-dbc875e5fa3c" ] } |
retrieveUserSubscriptionsWithRegex | 0.054s |
2022-02-21 21:37:14 |
2022-02-21 21:37:14 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-02-21 21:37:14 | ------------------------------------ 2022-02-21 21:37:14 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload: { "jid": "admin@test-domain.com", "node-pattern": "(?!node-d66ca271-e45d-42b6-8352-c7fc6f42d020)" } 2022-02-21 21:37:14 | from localhost for action retrieve-user-subscriptions got result code 200 and payload { "nodes": [ ] } |
subscribeNodes | 1.012s |
2022-02-21 21:37:13 |
2022-02-21 21:37:13 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-02-21 21:37:13 | ------------------------------------ 2022-02-21 21:37:13 | on localhost executing action subscribe-node with content type application/json and payload: { "node": "node-d66ca271-e45d-42b6-8352-c7fc6f42d020", "jids": [ "admin@test-domain.com" ] } 2022-02-21 21:37:13 | from localhost for action subscribe-node got result code 200 and payload { "Note": "Operation successful" } |
unsubscribeNodes | 1.063s |
2022-02-21 21:37:14 |
2022-02-21 21:37:14 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-02-21 21:37:14 | ------------------------------------ 2022-02-21 21:37:14 | on localhost executing action unsubscribe-node with content type application/json and payload: { "node": "node-d66ca271-e45d-42b6-8352-c7fc6f42d020", "jids": [ "admin@test-domain.com" ] } 2022-02-21 21:37:14 | from localhost for action unsubscribe-node got result code 200 and payload { "Note": "Operation successful" } |