Test duration : 9.271s
Passed Tests | ||
---|---|---|
tigase.tests.pubsub.TestRestApiUsingJSON | ||
configureNodes | 1.095s |
2021-11-09 22:18:45 |
2021-11-09 22:18:45 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-11-09 22:18:45 | ------------------------------------ 2021-11-09 22:18:45 | [Mutex] waiting for: [configured:node:node-bc2a2a04-c56a-4e65-b175-9e55c97f0dbb:node-9b58d338-7782-4efa-bd5c-22868a2dcfed] 2021-11-09 22:18:45 | [Mutex] received everything. 2021-11-09 22:18:45 | [Mutex] isItemNotified: configured:node:node-bc2a2a04-c56a-4e65-b175-9e55c97f0dbb:node-9b58d338-7782-4efa-bd5c-22868a2dcfed :: true 2021-11-09 22:18:46 | [Mutex] waiting for: [received:nodes:c1d5dad3-530d-469c-9471-2b5b542b7abe:localhost] 2021-11-09 22:18:46 | [Mutex] received everything. 2021-11-09 22:18:46 | [Mutex] isItemNotified: received:node:c1d5dad3-530d-469c-9471-2b5b542b7abe:localhost:node-bc2a2a04-c56a-4e65-b175-9e55c97f0dbb:Node bc2a2a04-c56a-4e65-b175-9e55c97f0dbb :: true 2021-11-09 22:18:46 | [Mutex] waiting for: [received:nodes:f685e74e-c48b-40dc-9842-e7df3d86fcd3:localhost] 2021-11-09 22:18:46 | [Mutex] waiting for: [received:nodes:f685e74e-c48b-40dc-9842-e7df3d86fcd3:localhost] 2021-11-09 22:18:46 | [Mutex] waiting for: [received:nodes:f685e74e-c48b-40dc-9842-e7df3d86fcd3:localhost] 2021-11-09 22:18:46 | [Mutex] received everything. 2021-11-09 22:18:46 | [Mutex] isItemNotified: received:node:f685e74e-c48b-40dc-9842-e7df3d86fcd3:localhost:node-bc2a2a04-c56a-4e65-b175-9e55c97f0dbb:Node bc2a2a04-c56a-4e65-b175-9e55c97f0dbb :: false |
createNodes | 1.653s |
2021-11-09 22:18:43 |
2021-11-09 22:18:43 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-11-09 22:18:43 | ------------------------------------ 2021-11-09 22:18:43 | on localhost executing action create-node with content type application/json and payload: { "owner": "admin@test-domain.com", "pubsub#node_type": "leaf", "node": "node-bc2a2a04-c56a-4e65-b175-9e55c97f0dbb", "pubsub#title": "Node bc2a2a04-c56a-4e65-b175-9e55c97f0dbb" } 2021-11-09 22:18:43 | from localhost for action create-node got result code 200 and payload { "Note": "Operation successful" } 2021-11-09 22:18:44 | [Mutex] waiting for: [received:nodes:e8e60f10-474a-4ddd-86bc-5663bea7b4ab:localhost] 2021-11-09 22:18:44 | [Mutex] waiting for: [received:nodes:e8e60f10-474a-4ddd-86bc-5663bea7b4ab:localhost] 2021-11-09 22:18:44 | [Mutex] received everything. 2021-11-09 22:18:44 | [Mutex] isItemNotified: received:node:e8e60f10-474a-4ddd-86bc-5663bea7b4ab:localhost:node-bc2a2a04-c56a-4e65-b175-9e55c97f0dbb:Node bc2a2a04-c56a-4e65-b175-9e55c97f0dbb :: true |
createSubnodes | 1.026s |
2021-11-09 22:18:44 |
2021-11-09 22:18:44 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-11-09 22:18:44 | ------------------------------------ 2021-11-09 22:18:44 | on localhost executing action create-node with content type application/json and payload: { "owner": "admin@test-domain.com", "pubsub#node_type": "collection", "node": "node-9b58d338-7782-4efa-bd5c-22868a2dcfed", "pubsub#title": "Node 9b58d338-7782-4efa-bd5c-22868a2dcfed" } 2021-11-09 22:18:44 | from localhost for action create-node got result code 200 and payload { "Note": "Operation successful" } 2021-11-09 22:18:45 | [Mutex] waiting for: [received:nodes:949383fd-a57d-4523-a3ca-3874f036f141:localhost] 2021-11-09 22:18:45 | [Mutex] received everything. 2021-11-09 22:18:45 | [Mutex] isItemNotified: received:node:949383fd-a57d-4523-a3ca-3874f036f141:localhost:node-9b58d338-7782-4efa-bd5c-22868a2dcfed:Node 9b58d338-7782-4efa-bd5c-22868a2dcfed :: true |
deleteNodes | 1.034s |
2021-11-09 22:18:50 |
2021-11-09 22:18:50 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-11-09 22:18:50 | ------------------------------------ 2021-11-09 22:18:50 | on localhost executing action delete-node with content type application/json and payload: { "node": "node-9b58d338-7782-4efa-bd5c-22868a2dcfed" } 2021-11-09 22:18:50 | from localhost for action delete-node got result code 200 and payload { "Note": "Operation successful" } 2021-11-09 22:18:51 | [Mutex] waiting for: [received:nodes:8461f61d-3611-4b98-9bf0-74b895175570:localhost] 2021-11-09 22:18:51 | [Mutex] received everything. 2021-11-09 22:18:51 | [Mutex] isItemNotified: received:node:8461f61d-3611-4b98-9bf0-74b895175570:localhost:node-9b58d338-7782-4efa-bd5c-22868a2dcfed:Node 9b58d338-7782-4efa-bd5c-22868a2dcfed :: false |
deleteSubnodes | 1.037s |
2021-11-09 22:18:49 |
2021-11-09 22:18:49 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-11-09 22:18:49 | ------------------------------------ 2021-11-09 22:18:49 | on localhost executing action delete-node with content type application/json and payload: { "node": "node-bc2a2a04-c56a-4e65-b175-9e55c97f0dbb" } 2021-11-09 22:18:49 | from localhost for action delete-node got result code 200 and payload { "Note": "Operation successful" } 2021-11-09 22:18:50 | [Mutex] waiting for: [received:nodes:48f5d460-2c77-4c4e-999a-cd06a2e6f8c8:localhost] 2021-11-09 22:18:50 | [Mutex] received everything. 2021-11-09 22:18:50 | [Mutex] isItemNotified: received:node:48f5d460-2c77-4c4e-999a-cd06a2e6f8c8:localhost:node-bc2a2a04-c56a-4e65-b175-9e55c97f0dbb:Node bc2a2a04-c56a-4e65-b175-9e55c97f0dbb :: false 2021-11-09 22:18:50 | [Mutex] waiting for: [received:nodes:4a113f3a-9d1a-4ad5-bc61-373fb726b6ef:localhost] 2021-11-09 22:18:50 | [Mutex] received everything. 2021-11-09 22:18:50 | [Mutex] isItemNotified: received:node:4a113f3a-9d1a-4ad5-bc61-373fb726b6ef:localhost:node-bc2a2a04-c56a-4e65-b175-9e55c97f0dbb:Node bc2a2a04-c56a-4e65-b175-9e55c97f0dbb :: false |
publishItemsToNodes | 0.045s |
2021-11-09 22:18:47 |
2021-11-09 22:18:47 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-11-09 22:18:47 | ------------------------------------ 2021-11-09 22:18:47 | on localhost executing action publish-item with content type application/json and payload: { "node": "node-bc2a2a04-c56a-4e65-b175-9e55c97f0dbb", "entry": "<test>item-b5f66b66-1ddf-425f-af0a-298595c92801</test>", "item-id": "item-b5f66b66-1ddf-425f-af0a-298595c92801" } 2021-11-09 22:18:47 | from localhost for action publish-item got result code 200 and payload { "Note": "Operation successful", "item-id": "item-b5f66b66-1ddf-425f-af0a-298595c92801" } 2021-11-09 22:18:47 | [Mutex] waiting for: [published:item:notifieditem-b5f66b66-1ddf-425f-af0a-298595c92801:admin@test-domain.com] 2021-11-09 22:18:47 | [Mutex] received everything. 2021-11-09 22:18:47 | [Mutex] isItemNotified: published:item:notifieditem-b5f66b66-1ddf-425f-af0a-298595c92801:admin@test-domain.com :: true |
retractItemsFromNodes | 0.060s |
2021-11-09 22:18:48 |
2021-11-09 22:18:48 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-11-09 22:18:48 | ------------------------------------ 2021-11-09 22:18:48 | on localhost executing action delete-item with content type application/json and payload: { "node": "node-bc2a2a04-c56a-4e65-b175-9e55c97f0dbb", "item-id": "item-b5f66b66-1ddf-425f-af0a-298595c92801" } 2021-11-09 22:18:48 | from localhost for action delete-item got result code 200 and payload { "Note": "Operation successful", "item-id": "item-b5f66b66-1ddf-425f-af0a-298595c92801" } 2021-11-09 22:18:48 | [Mutex] waiting for: [retracted:item:notifieditem-b5f66b66-1ddf-425f-af0a-298595c92801:admin@test-domain.com] 2021-11-09 22:18:48 | [Mutex] received everything. 2021-11-09 22:18:48 | [Mutex] isItemNotified: retracted:item:notifieditem-b5f66b66-1ddf-425f-af0a-298595c92801:admin@test-domain.com :: true |
retrieveItemsFromNodes | 0.066s |
2021-11-09 22:18:47 |
2021-11-09 22:18:47 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-11-09 22:18:47 | ------------------------------------ 2021-11-09 22:18:47 | on localhost executing action retrieve-item with content type application/json and payload: { "node": "node-bc2a2a04-c56a-4e65-b175-9e55c97f0dbb", "item-id": "item-b5f66b66-1ddf-425f-af0a-298595c92801" } 2021-11-09 22:18:47 | from localhost for action retrieve-item got result code 200 and payload { "title": "Retrive PubSub node item", "node": "node-bc2a2a04-c56a-4e65-b175-9e55c97f0dbb", "item-id": "item-b5f66b66-1ddf-425f-af0a-298595c92801", "item": [ "<item id=\"item-b5f66b66-1ddf-425f-af0a-298595c92801\"><test>item-b5f66b66-1ddf-425f-af0a-298595c92801</test></item>" ] } 2021-11-09 22:18:47 | [Mutex] notify: [retrieved:item:item-b5f66b66-1ddf-425f-af0a-298595c92801:payload-matches:true:localhost] 2021-11-09 22:18:47 | [Mutex] received everything. 2021-11-09 22:18:47 | [Mutex] isItemNotified: retrieved:item:item-b5f66b66-1ddf-425f-af0a-298595c92801:payload-matches:true:localhost :: true |
retrieveUserSubscriptions | 0.051s |
2021-11-09 22:18:47 |
2021-11-09 22:18:47 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-11-09 22:18:47 | ------------------------------------ 2021-11-09 22:18:47 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload: { "jid": "admin@test-domain.com" } 2021-11-09 22:18:47 | from localhost for action retrieve-user-subscriptions got result code 200 and payload { "nodes": [ "test", "node-9b58d338-7782-4efa-bd5c-22868a2dcfed", "node-bc2a2a04-c56a-4e65-b175-9e55c97f0dbb" ] } |
retrieveUserSubscriptionsWithRegex | 0.052s |
2021-11-09 22:18:47 |
2021-11-09 22:18:47 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-11-09 22:18:47 | ------------------------------------ 2021-11-09 22:18:47 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload: { "jid": "admin@test-domain.com", "node-pattern": "(?!node-bc2a2a04-c56a-4e65-b175-9e55c97f0dbb)" } 2021-11-09 22:18:48 | from localhost for action retrieve-user-subscriptions got result code 200 and payload { "nodes": [ ] } |
subscribeNodes | 1.014s |
2021-11-09 22:18:46 |
2021-11-09 22:18:46 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-11-09 22:18:46 | ------------------------------------ 2021-11-09 22:18:46 | on localhost executing action subscribe-node with content type application/json and payload: { "node": "node-bc2a2a04-c56a-4e65-b175-9e55c97f0dbb", "jids": [ "admin@test-domain.com" ] } 2021-11-09 22:18:46 | from localhost for action subscribe-node got result code 200 and payload { "Note": "Operation successful" } |
unsubscribeNodes | 1.179s |
2021-11-09 22:18:48 |
2021-11-09 22:18:48 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-11-09 22:18:48 | ------------------------------------ 2021-11-09 22:18:48 | on localhost executing action unsubscribe-node with content type application/json and payload: { "node": "node-bc2a2a04-c56a-4e65-b175-9e55c97f0dbb", "jids": [ "admin@test-domain.com" ] } 2021-11-09 22:18:48 | from localhost for action unsubscribe-node got result code 200 and payload { "Note": "Operation successful" } |