Test duration : 8.877s
Passed Tests | ||
---|---|---|
tigase.tests.pubsub.TestRestApiUsingJSON | ||
configureNodes | 1.121s |
2020-11-24 08:09:46 |
2020-11-24 08:09:46 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-11-24 08:09:46 | ------------------------------------ 2020-11-24 08:09:46 | [Mutex] waiting for: [configured:node:node-419b2664-d634-403d-925a-5a88e4c6d960:node-4b715e40-9ddb-4860-aaf0-391e1ec44cf3] 2020-11-24 08:09:46 | [Mutex] received everything. 2020-11-24 08:09:46 | [Mutex] isItemNotified: configured:node:node-419b2664-d634-403d-925a-5a88e4c6d960:node-4b715e40-9ddb-4860-aaf0-391e1ec44cf3 :: true 2020-11-24 08:09:47 | [Mutex] waiting for: [received:nodes:0222d75a-f7fc-4411-aa1d-98b33064074d:localhost] 2020-11-24 08:09:47 | [Mutex] received everything. 2020-11-24 08:09:47 | [Mutex] isItemNotified: received:node:0222d75a-f7fc-4411-aa1d-98b33064074d:localhost:node-419b2664-d634-403d-925a-5a88e4c6d960:Node 419b2664-d634-403d-925a-5a88e4c6d960 :: true 2020-11-24 08:09:47 | [Mutex] waiting for: [received:nodes:be6e600b-cc2c-47e6-a766-667059b89e84:localhost] 2020-11-24 08:09:47 | [Mutex] received everything. 2020-11-24 08:09:47 | [Mutex] isItemNotified: received:node:be6e600b-cc2c-47e6-a766-667059b89e84:localhost:node-419b2664-d634-403d-925a-5a88e4c6d960:Node 419b2664-d634-403d-925a-5a88e4c6d960 :: false |
createNodes | 1.578s |
2020-11-24 08:09:43 |
2020-11-24 08:09:43 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-11-24 08:09:43 | ------------------------------------ 2020-11-24 08:09:44 | on localhost executing action create-node with content type application/json and payload: { "owner": "admin@test-domain.com", "pubsub#node_type": "leaf", "node": "node-419b2664-d634-403d-925a-5a88e4c6d960", "pubsub#title": "Node 419b2664-d634-403d-925a-5a88e4c6d960" } 2020-11-24 08:09:44 | from localhost for action create-node got result code 200 and payload { "Note": "Operation successful" } 2020-11-24 08:09:45 | [Mutex] waiting for: [received:nodes:f939e8ee-7b5b-453a-8085-e94cae921c7f:localhost] 2020-11-24 08:09:45 | [Mutex] waiting for: [received:nodes:f939e8ee-7b5b-453a-8085-e94cae921c7f:localhost] 2020-11-24 08:09:45 | [Mutex] waiting for: [received:nodes:f939e8ee-7b5b-453a-8085-e94cae921c7f:localhost] 2020-11-24 08:09:45 | [Mutex] waiting for: [received:nodes:f939e8ee-7b5b-453a-8085-e94cae921c7f:localhost] 2020-11-24 08:09:45 | [Mutex] received everything. 2020-11-24 08:09:45 | [Mutex] isItemNotified: received:node:f939e8ee-7b5b-453a-8085-e94cae921c7f:localhost:node-419b2664-d634-403d-925a-5a88e4c6d960:Node 419b2664-d634-403d-925a-5a88e4c6d960 :: true |
createSubnodes | 1.028s |
2020-11-24 08:09:45 |
2020-11-24 08:09:45 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-11-24 08:09:45 | ------------------------------------ 2020-11-24 08:09:45 | on localhost executing action create-node with content type application/json and payload: { "owner": "admin@test-domain.com", "pubsub#node_type": "collection", "node": "node-4b715e40-9ddb-4860-aaf0-391e1ec44cf3", "pubsub#title": "Node 4b715e40-9ddb-4860-aaf0-391e1ec44cf3" } 2020-11-24 08:09:45 | from localhost for action create-node got result code 200 and payload { "Note": "Operation successful" } 2020-11-24 08:09:46 | [Mutex] waiting for: [received:nodes:68876634-57a8-43f4-b33d-0b29fcfd4e7e:localhost] 2020-11-24 08:09:46 | [Mutex] waiting for: [received:nodes:68876634-57a8-43f4-b33d-0b29fcfd4e7e:localhost] 2020-11-24 08:09:46 | [Mutex] received everything. 2020-11-24 08:09:46 | [Mutex] isItemNotified: received:node:68876634-57a8-43f4-b33d-0b29fcfd4e7e:localhost:node-4b715e40-9ddb-4860-aaf0-391e1ec44cf3:Node 4b715e40-9ddb-4860-aaf0-391e1ec44cf3 :: true |
deleteNodes | 1.021s |
2020-11-24 08:09:50 |
2020-11-24 08:09:50 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-11-24 08:09:50 | ------------------------------------ 2020-11-24 08:09:50 | on localhost executing action delete-node with content type application/json and payload: { "node": "node-4b715e40-9ddb-4860-aaf0-391e1ec44cf3" } 2020-11-24 08:09:50 | from localhost for action delete-node got result code 200 and payload { "Note": "Operation successful" } 2020-11-24 08:09:51 | [Mutex] waiting for: [received:nodes:5da4ded6-da93-4ed4-8ab9-0c6c2922736b:localhost] 2020-11-24 08:09:51 | [Mutex] received everything. 2020-11-24 08:09:51 | [Mutex] isItemNotified: received:node:5da4ded6-da93-4ed4-8ab9-0c6c2922736b:localhost:node-4b715e40-9ddb-4860-aaf0-391e1ec44cf3:Node 4b715e40-9ddb-4860-aaf0-391e1ec44cf3 :: false |
deleteSubnodes | 1.028s |
2020-11-24 08:09:49 |
2020-11-24 08:09:49 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-11-24 08:09:49 | ------------------------------------ 2020-11-24 08:09:49 | on localhost executing action delete-node with content type application/json and payload: { "node": "node-419b2664-d634-403d-925a-5a88e4c6d960" } 2020-11-24 08:09:49 | from localhost for action delete-node got result code 200 and payload { "Note": "Operation successful" } 2020-11-24 08:09:50 | [Mutex] waiting for: [received:nodes:07c2899a-3faa-41bb-8b4d-9248ed84ebf0:localhost] 2020-11-24 08:09:50 | [Mutex] received everything. 2020-11-24 08:09:50 | [Mutex] isItemNotified: received:node:07c2899a-3faa-41bb-8b4d-9248ed84ebf0:localhost:node-419b2664-d634-403d-925a-5a88e4c6d960:Node 419b2664-d634-403d-925a-5a88e4c6d960 :: false 2020-11-24 08:09:50 | [Mutex] waiting for: [received:nodes:039efe6f-9e0d-4d37-8b6b-df1b62575be4:localhost] 2020-11-24 08:09:50 | [Mutex] received everything. 2020-11-24 08:09:50 | [Mutex] isItemNotified: received:node:039efe6f-9e0d-4d37-8b6b-df1b62575be4:localhost:node-419b2664-d634-403d-925a-5a88e4c6d960:Node 419b2664-d634-403d-925a-5a88e4c6d960 :: false |
publishItemsToNodes | 0.045s |
2020-11-24 08:09:48 |
2020-11-24 08:09:48 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-11-24 08:09:48 | ------------------------------------ 2020-11-24 08:09:48 | on localhost executing action publish-item with content type application/json and payload: { "node": "node-419b2664-d634-403d-925a-5a88e4c6d960", "entry": "<test>item-254de24c-225d-4986-88a2-4577b310c482</test>", "item-id": "item-254de24c-225d-4986-88a2-4577b310c482" } 2020-11-24 08:09:48 | from localhost for action publish-item got result code 200 and payload { "Note": "Operation successful", "item-id": "item-254de24c-225d-4986-88a2-4577b310c482" } 2020-11-24 08:09:48 | [Mutex] waiting for: [published:item:notifieditem-254de24c-225d-4986-88a2-4577b310c482:admin@test-domain.com] 2020-11-24 08:09:48 | [Mutex] received everything. 2020-11-24 08:09:48 | [Mutex] isItemNotified: published:item:notifieditem-254de24c-225d-4986-88a2-4577b310c482:admin@test-domain.com :: true |
retractItemsFromNodes | 0.121s |
2020-11-24 08:09:48 |
2020-11-24 08:09:48 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-11-24 08:09:48 | ------------------------------------ 2020-11-24 08:09:48 | on localhost executing action delete-item with content type application/json and payload: { "node": "node-419b2664-d634-403d-925a-5a88e4c6d960", "item-id": "item-254de24c-225d-4986-88a2-4577b310c482" } 2020-11-24 08:09:48 | from localhost for action delete-item got result code 200 and payload { "Note": "Operation successful", "item-id": "item-254de24c-225d-4986-88a2-4577b310c482" } 2020-11-24 08:09:48 | [Mutex] waiting for: [retracted:item:notifieditem-254de24c-225d-4986-88a2-4577b310c482:admin@test-domain.com] 2020-11-24 08:09:48 | [Mutex] received everything. 2020-11-24 08:09:48 | [Mutex] isItemNotified: retracted:item:notifieditem-254de24c-225d-4986-88a2-4577b310c482:admin@test-domain.com :: true |
retrieveItemsFromNodes | 0.059s |
2020-11-24 08:09:48 |
2020-11-24 08:09:48 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-11-24 08:09:48 | ------------------------------------ 2020-11-24 08:09:48 | on localhost executing action retrieve-item with content type application/json and payload: { "node": "node-419b2664-d634-403d-925a-5a88e4c6d960", "item-id": "item-254de24c-225d-4986-88a2-4577b310c482" } 2020-11-24 08:09:48 | from localhost for action retrieve-item got result code 200 and payload { "title": "Retrive PubSub node item", "node": "node-419b2664-d634-403d-925a-5a88e4c6d960", "item-id": "item-254de24c-225d-4986-88a2-4577b310c482", "item": [ "<item id=\"item-254de24c-225d-4986-88a2-4577b310c482\"><test>item-254de24c-225d-4986-88a2-4577b310c482</test></item>" ] } 2020-11-24 08:09:48 | [Mutex] notify: [retrieved:item:item-254de24c-225d-4986-88a2-4577b310c482:payload-matches:true:localhost] 2020-11-24 08:09:48 | [Mutex] received everything. 2020-11-24 08:09:48 | [Mutex] isItemNotified: retrieved:item:item-254de24c-225d-4986-88a2-4577b310c482:payload-matches:true:localhost :: true |
retrieveUserSubscriptions | 0.055s |
2020-11-24 08:09:48 |
2020-11-24 08:09:48 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-11-24 08:09:48 | ------------------------------------ 2020-11-24 08:09:48 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload: { "jid": "admin@test-domain.com" } 2020-11-24 08:09:48 | from localhost for action retrieve-user-subscriptions got result code 200 and payload { "nodes": [ "test", "node-4b715e40-9ddb-4860-aaf0-391e1ec44cf3", "node-419b2664-d634-403d-925a-5a88e4c6d960" ] } |
retrieveUserSubscriptionsWithRegex | 0.047s |
2020-11-24 08:09:48 |
2020-11-24 08:09:48 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-11-24 08:09:48 | ------------------------------------ 2020-11-24 08:09:48 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload: { "jid": "admin@test-domain.com", "node-pattern": "(?!node-419b2664-d634-403d-925a-5a88e4c6d960)" } 2020-11-24 08:09:48 | from localhost for action retrieve-user-subscriptions got result code 200 and payload { "nodes": [ ] } |
subscribeNodes | 1.010s |
2020-11-24 08:09:47 |
2020-11-24 08:09:47 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-11-24 08:09:47 | ------------------------------------ 2020-11-24 08:09:47 | on localhost executing action subscribe-node with content type application/json and payload: { "node": "node-419b2664-d634-403d-925a-5a88e4c6d960", "jids": [ "admin@test-domain.com" ] } 2020-11-24 08:09:47 | from localhost for action subscribe-node got result code 200 and payload { "Note": "Operation successful" } |
unsubscribeNodes | 1.012s |
2020-11-24 08:09:48 |
2020-11-24 08:09:48 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-11-24 08:09:48 | ------------------------------------ 2020-11-24 08:09:48 | on localhost executing action unsubscribe-node with content type application/json and payload: { "node": "node-419b2664-d634-403d-925a-5a88e4c6d960", "jids": [ "admin@test-domain.com" ] } 2020-11-24 08:09:48 | from localhost for action unsubscribe-node got result code 200 and payload { "Note": "Operation successful" } |