Test duration : 8.546s
Passed Tests | ||
---|---|---|
tigase.tests.pubsub.TestRestApiUsingJSON | ||
configureNodes | 1.109s |
2023-05-04 22:29:55 |
2023-05-04 22:29:55 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2023-05-04 22:29:55 | ------------------------------------ 2023-05-04 22:29:55 | [Mutex] waiting for: [configured:node:node-ca6e7dfd-1fec-43f3-b015-d85d7447211e:node-a82b7c15-baa4-463a-85c9-e1fbb3fed75b] 2023-05-04 22:29:55 | [Mutex] received everything. 2023-05-04 22:29:55 | [Mutex] isItemNotified: configured:node:node-ca6e7dfd-1fec-43f3-b015-d85d7447211e:node-a82b7c15-baa4-463a-85c9-e1fbb3fed75b :: true 2023-05-04 22:29:56 | [Mutex] waiting for: [received:nodes:f5f5edd6-b7e6-4fec-8ce9-6015d2f4bfec:localhost] 2023-05-04 22:29:56 | [Mutex] received everything. 2023-05-04 22:29:56 | [Mutex] isItemNotified: received:node:f5f5edd6-b7e6-4fec-8ce9-6015d2f4bfec:localhost:node-ca6e7dfd-1fec-43f3-b015-d85d7447211e:Node ca6e7dfd-1fec-43f3-b015-d85d7447211e :: true 2023-05-04 22:29:56 | [Mutex] waiting for: [received:nodes:39fdc49b-c0e6-4eea-b92f-a343152af3c0:localhost] 2023-05-04 22:29:56 | [Mutex] received everything. 2023-05-04 22:29:56 | [Mutex] isItemNotified: received:node:39fdc49b-c0e6-4eea-b92f-a343152af3c0:localhost:node-ca6e7dfd-1fec-43f3-b015-d85d7447211e:Node ca6e7dfd-1fec-43f3-b015-d85d7447211e :: false |
createNodes | 1.595s |
2023-05-04 22:29:53 |
2023-05-04 22:29:53 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2023-05-04 22:29:53 | ------------------------------------ 2023-05-04 22:29:53 | on localhost executing action create-node with content type application/json and payload: { "owner": "admin@test-domain.com", "pubsub#node_type": "leaf", "node": "node-ca6e7dfd-1fec-43f3-b015-d85d7447211e", "pubsub#title": "Node ca6e7dfd-1fec-43f3-b015-d85d7447211e" } 2023-05-04 22:29:53 | from localhost for action create-node got result code 200 and payload { "Note": "Operation successful" } 2023-05-04 22:29:54 | [Mutex] waiting for: [received:nodes:6ec1bba8-f6ea-4cab-bf5c-304e71f1e04c:localhost] 2023-05-04 22:29:54 | [Mutex] waiting for: [received:nodes:6ec1bba8-f6ea-4cab-bf5c-304e71f1e04c:localhost] 2023-05-04 22:29:54 | [Mutex] waiting for: [received:nodes:6ec1bba8-f6ea-4cab-bf5c-304e71f1e04c:localhost] 2023-05-04 22:29:54 | [Mutex] received everything. 2023-05-04 22:29:54 | [Mutex] isItemNotified: received:node:6ec1bba8-f6ea-4cab-bf5c-304e71f1e04c:localhost:node-ca6e7dfd-1fec-43f3-b015-d85d7447211e:Node ca6e7dfd-1fec-43f3-b015-d85d7447211e :: true |
createSubnodes | 1.029s |
2023-05-04 22:29:54 |
2023-05-04 22:29:54 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2023-05-04 22:29:54 | ------------------------------------ 2023-05-04 22:29:54 | on localhost executing action create-node with content type application/json and payload: { "owner": "admin@test-domain.com", "pubsub#node_type": "collection", "node": "node-a82b7c15-baa4-463a-85c9-e1fbb3fed75b", "pubsub#title": "Node a82b7c15-baa4-463a-85c9-e1fbb3fed75b" } 2023-05-04 22:29:54 | from localhost for action create-node got result code 200 and payload { "Note": "Operation successful" } 2023-05-04 22:29:55 | [Mutex] waiting for: [received:nodes:fd875545-b365-46a3-8e95-2bbf209ed31c:localhost] 2023-05-04 22:29:55 | [Mutex] waiting for: [received:nodes:fd875545-b365-46a3-8e95-2bbf209ed31c:localhost] 2023-05-04 22:29:55 | [Mutex] waiting for: [received:nodes:fd875545-b365-46a3-8e95-2bbf209ed31c:localhost] 2023-05-04 22:29:55 | [Mutex] waiting for: [received:nodes:fd875545-b365-46a3-8e95-2bbf209ed31c:localhost] 2023-05-04 22:29:55 | [Mutex] waiting for: [received:nodes:fd875545-b365-46a3-8e95-2bbf209ed31c:localhost] 2023-05-04 22:29:55 | [Mutex] received everything. 2023-05-04 22:29:55 | [Mutex] isItemNotified: received:node:fd875545-b365-46a3-8e95-2bbf209ed31c:localhost:node-a82b7c15-baa4-463a-85c9-e1fbb3fed75b:Node a82b7c15-baa4-463a-85c9-e1fbb3fed75b :: true |
deleteNodes | 1.016s |
2023-05-04 22:30:00 |
2023-05-04 22:30:00 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2023-05-04 22:30:00 | ------------------------------------ 2023-05-04 22:30:00 | on localhost executing action delete-node with content type application/json and payload: { "node": "node-a82b7c15-baa4-463a-85c9-e1fbb3fed75b" } 2023-05-04 22:30:00 | from localhost for action delete-node got result code 200 and payload { "Note": "Operation successful" } 2023-05-04 22:30:01 | [Mutex] waiting for: [received:nodes:e877313e-0b04-48c1-831b-f19fa89b68e9:localhost] 2023-05-04 22:30:01 | [Mutex] waiting for: [received:nodes:e877313e-0b04-48c1-831b-f19fa89b68e9:localhost] 2023-05-04 22:30:01 | [Mutex] waiting for: [received:nodes:e877313e-0b04-48c1-831b-f19fa89b68e9:localhost] 2023-05-04 22:30:01 | [Mutex] received everything. 2023-05-04 22:30:01 | [Mutex] isItemNotified: received:node:e877313e-0b04-48c1-831b-f19fa89b68e9:localhost:node-a82b7c15-baa4-463a-85c9-e1fbb3fed75b:Node a82b7c15-baa4-463a-85c9-e1fbb3fed75b :: false |
deleteSubnodes | 1.024s |
2023-05-04 22:29:59 |
2023-05-04 22:29:59 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2023-05-04 22:29:59 | ------------------------------------ 2023-05-04 22:29:59 | on localhost executing action delete-node with content type application/json and payload: { "node": "node-ca6e7dfd-1fec-43f3-b015-d85d7447211e" } 2023-05-04 22:29:59 | from localhost for action delete-node got result code 200 and payload { "Note": "Operation successful" } 2023-05-04 22:30:00 | [Mutex] waiting for: [received:nodes:b962a1cd-45ea-41cf-b403-e2b276a7fe86:localhost] 2023-05-04 22:30:00 | [Mutex] waiting for: [received:nodes:b962a1cd-45ea-41cf-b403-e2b276a7fe86:localhost] 2023-05-04 22:30:00 | [Mutex] waiting for: [received:nodes:b962a1cd-45ea-41cf-b403-e2b276a7fe86:localhost] 2023-05-04 22:30:00 | [Mutex] waiting for: [received:nodes:b962a1cd-45ea-41cf-b403-e2b276a7fe86:localhost] 2023-05-04 22:30:00 | [Mutex] received everything. 2023-05-04 22:30:00 | [Mutex] isItemNotified: received:node:b962a1cd-45ea-41cf-b403-e2b276a7fe86:localhost:node-ca6e7dfd-1fec-43f3-b015-d85d7447211e:Node ca6e7dfd-1fec-43f3-b015-d85d7447211e :: false 2023-05-04 22:30:00 | [Mutex] waiting for: [received:nodes:35d95ce7-5243-43b6-8b09-3389cda45563:localhost] 2023-05-04 22:30:00 | [Mutex] received everything. 2023-05-04 22:30:00 | [Mutex] isItemNotified: received:node:35d95ce7-5243-43b6-8b09-3389cda45563:localhost:node-ca6e7dfd-1fec-43f3-b015-d85d7447211e:Node ca6e7dfd-1fec-43f3-b015-d85d7447211e :: false |
publishItemsToNodes | 0.048s |
2023-05-04 22:29:57 |
2023-05-04 22:29:57 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2023-05-04 22:29:57 | ------------------------------------ 2023-05-04 22:29:57 | on localhost executing action publish-item with content type application/json and payload: { "node": "node-ca6e7dfd-1fec-43f3-b015-d85d7447211e", "entry": "<test>item-40272c8e-0647-4533-9b92-5f01a4756112</test>", "item-id": "item-40272c8e-0647-4533-9b92-5f01a4756112" } 2023-05-04 22:29:57 | from localhost for action publish-item got result code 200 and payload { "Note": "Operation successful", "item-id": "item-40272c8e-0647-4533-9b92-5f01a4756112" } 2023-05-04 22:29:57 | [Mutex] waiting for: [published:item:notifieditem-40272c8e-0647-4533-9b92-5f01a4756112:admin@test-domain.com] 2023-05-04 22:29:57 | [Mutex] received everything. 2023-05-04 22:29:57 | [Mutex] isItemNotified: published:item:notifieditem-40272c8e-0647-4533-9b92-5f01a4756112:admin@test-domain.com :: true |
retractItemsFromNodes | 0.055s |
2023-05-04 22:29:58 |
2023-05-04 22:29:58 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2023-05-04 22:29:58 | ------------------------------------ 2023-05-04 22:29:58 | on localhost executing action delete-item with content type application/json and payload: { "node": "node-ca6e7dfd-1fec-43f3-b015-d85d7447211e", "item-id": "item-40272c8e-0647-4533-9b92-5f01a4756112" } 2023-05-04 22:29:58 | from localhost for action delete-item got result code 200 and payload { "Note": "Operation successful", "item-id": "item-40272c8e-0647-4533-9b92-5f01a4756112" } 2023-05-04 22:29:58 | [Mutex] received everything. 2023-05-04 22:29:58 | [Mutex] isItemNotified: retracted:item:notifieditem-40272c8e-0647-4533-9b92-5f01a4756112:admin@test-domain.com :: true |
retrieveItemsFromNodes | 0.058s |
2023-05-04 22:29:57 |
2023-05-04 22:29:57 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2023-05-04 22:29:57 | ------------------------------------ 2023-05-04 22:29:57 | on localhost executing action retrieve-item with content type application/json and payload: { "node": "node-ca6e7dfd-1fec-43f3-b015-d85d7447211e", "item-id": "item-40272c8e-0647-4533-9b92-5f01a4756112" } 2023-05-04 22:29:58 | from localhost for action retrieve-item got result code 200 and payload { "title": "Retrive PubSub node item", "node": "node-ca6e7dfd-1fec-43f3-b015-d85d7447211e", "item-id": "item-40272c8e-0647-4533-9b92-5f01a4756112", "item": [ "<item id=\"item-40272c8e-0647-4533-9b92-5f01a4756112\"><test>item-40272c8e-0647-4533-9b92-5f01a4756112</test></item>" ] } 2023-05-04 22:29:58 | [Mutex] notify: [retrieved:item:item-40272c8e-0647-4533-9b92-5f01a4756112:payload-matches:true:localhost] 2023-05-04 22:29:58 | [Mutex] received everything. 2023-05-04 22:29:58 | [Mutex] isItemNotified: retrieved:item:item-40272c8e-0647-4533-9b92-5f01a4756112:payload-matches:true:localhost :: true |
retrieveUserSubscriptions | 0.047s |
2023-05-04 22:29:58 |
2023-05-04 22:29:58 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2023-05-04 22:29:58 | ------------------------------------ 2023-05-04 22:29:58 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload: { "jid": "admin@test-domain.com" } 2023-05-04 22:29:58 | from localhost for action retrieve-user-subscriptions got result code 200 and payload { "nodes": [ "node-ca6e7dfd-1fec-43f3-b015-d85d7447211e", "test", "node-a82b7c15-baa4-463a-85c9-e1fbb3fed75b" ] } |
retrieveUserSubscriptionsWithRegex | 0.051s |
2023-05-04 22:29:58 |
2023-05-04 22:29:58 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2023-05-04 22:29:58 | ------------------------------------ 2023-05-04 22:29:58 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload: { "jid": "admin@test-domain.com", "node-pattern": "(?!node-ca6e7dfd-1fec-43f3-b015-d85d7447211e)" } 2023-05-04 22:29:58 | from localhost for action retrieve-user-subscriptions got result code 200 and payload { "nodes": [ ] } |
subscribeNodes | 1.009s |
2023-05-04 22:29:56 |
2023-05-04 22:29:56 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2023-05-04 22:29:56 | ------------------------------------ 2023-05-04 22:29:56 | on localhost executing action subscribe-node with content type application/json and payload: { "node": "node-ca6e7dfd-1fec-43f3-b015-d85d7447211e", "jids": [ "admin@test-domain.com" ] } 2023-05-04 22:29:56 | from localhost for action subscribe-node got result code 200 and payload { "Note": "Operation successful" } |
unsubscribeNodes | 1.067s |
2023-05-04 22:29:58 |
2023-05-04 22:29:58 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2023-05-04 22:29:58 | ------------------------------------ 2023-05-04 22:29:58 | on localhost executing action unsubscribe-node with content type application/json and payload: { "node": "node-ca6e7dfd-1fec-43f3-b015-d85d7447211e", "jids": [ "admin@test-domain.com" ] } 2023-05-04 22:29:58 | from localhost for action unsubscribe-node got result code 200 and payload { "Note": "Operation successful" } |