Test duration : 8.893s
Passed Tests | ||
---|---|---|
tigase.tests.pubsub.TestRestApiUsingJSON | ||
configureNodes | 1.086s |
2023-09-28 23:59:49 |
2023-09-28 23:59:49 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2023-09-28 23:59:49 | ------------------------------------ 2023-09-28 23:59:49 | [Mutex] waiting for: [configured:node:node-95b4cba3-7499-4671-be21-44c80556810e:node-738ebfb9-2b6f-4442-9e54-dfb6156c538d] 2023-09-28 23:59:49 | [Mutex] received everything. 2023-09-28 23:59:49 | [Mutex] isItemNotified: configured:node:node-95b4cba3-7499-4671-be21-44c80556810e:node-738ebfb9-2b6f-4442-9e54-dfb6156c538d :: true 2023-09-28 23:59:50 | [Mutex] waiting for: [received:nodes:3b99e0db-7d58-4b93-b1a1-1eb304defb4d:localhost] 2023-09-28 23:59:50 | [Mutex] waiting for: [received:nodes:3b99e0db-7d58-4b93-b1a1-1eb304defb4d:localhost] 2023-09-28 23:59:50 | [Mutex] received everything. 2023-09-28 23:59:50 | [Mutex] isItemNotified: received:node:3b99e0db-7d58-4b93-b1a1-1eb304defb4d:localhost:node-95b4cba3-7499-4671-be21-44c80556810e:Node 95b4cba3-7499-4671-be21-44c80556810e :: true 2023-09-28 23:59:50 | [Mutex] waiting for: [received:nodes:ce68dd18-79b9-41c5-8664-bdc46ce4f888:localhost] 2023-09-28 23:59:50 | [Mutex] waiting for: [received:nodes:ce68dd18-79b9-41c5-8664-bdc46ce4f888:localhost] 2023-09-28 23:59:50 | [Mutex] waiting for: [received:nodes:ce68dd18-79b9-41c5-8664-bdc46ce4f888:localhost] 2023-09-28 23:59:50 | [Mutex] waiting for: [received:nodes:ce68dd18-79b9-41c5-8664-bdc46ce4f888:localhost] 2023-09-28 23:59:50 | [Mutex] received everything. 2023-09-28 23:59:50 | [Mutex] isItemNotified: received:node:ce68dd18-79b9-41c5-8664-bdc46ce4f888:localhost:node-95b4cba3-7499-4671-be21-44c80556810e:Node 95b4cba3-7499-4671-be21-44c80556810e :: false |
createNodes | 1.798s |
2023-09-28 23:59:46 |
2023-09-28 23:59:46 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2023-09-28 23:59:46 | ------------------------------------ 2023-09-28 23:59:47 | on localhost executing action create-node with content type application/json and payload: { "owner": "admin@test-domain.com", "pubsub#node_type": "leaf", "node": "node-95b4cba3-7499-4671-be21-44c80556810e", "pubsub#title": "Node 95b4cba3-7499-4671-be21-44c80556810e" } 2023-09-28 23:59:47 | from localhost for action create-node got result code 200 and payload { "Note": "Operation successful" } 2023-09-28 23:59:48 | [Mutex] waiting for: [received:nodes:9d4fc3a5-eeaa-46f5-a19b-beb6833160d5:localhost] 2023-09-28 23:59:48 | [Mutex] waiting for: [received:nodes:9d4fc3a5-eeaa-46f5-a19b-beb6833160d5:localhost] 2023-09-28 23:59:48 | [Mutex] waiting for: [received:nodes:9d4fc3a5-eeaa-46f5-a19b-beb6833160d5:localhost] 2023-09-28 23:59:48 | [Mutex] received everything. 2023-09-28 23:59:48 | [Mutex] isItemNotified: received:node:9d4fc3a5-eeaa-46f5-a19b-beb6833160d5:localhost:node-95b4cba3-7499-4671-be21-44c80556810e:Node 95b4cba3-7499-4671-be21-44c80556810e :: true |
createSubnodes | 1.030s |
2023-09-28 23:59:48 |
2023-09-28 23:59:48 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2023-09-28 23:59:48 | ------------------------------------ 2023-09-28 23:59:48 | on localhost executing action create-node with content type application/json and payload: { "owner": "admin@test-domain.com", "pubsub#node_type": "collection", "node": "node-738ebfb9-2b6f-4442-9e54-dfb6156c538d", "pubsub#title": "Node 738ebfb9-2b6f-4442-9e54-dfb6156c538d" } 2023-09-28 23:59:48 | from localhost for action create-node got result code 200 and payload { "Note": "Operation successful" } 2023-09-28 23:59:49 | [Mutex] waiting for: [received:nodes:ca27c5da-9571-4c3a-98ac-c13e021105ca:localhost] 2023-09-28 23:59:49 | [Mutex] waiting for: [received:nodes:ca27c5da-9571-4c3a-98ac-c13e021105ca:localhost] 2023-09-28 23:59:49 | [Mutex] waiting for: [received:nodes:ca27c5da-9571-4c3a-98ac-c13e021105ca:localhost] 2023-09-28 23:59:49 | [Mutex] received everything. 2023-09-28 23:59:49 | [Mutex] isItemNotified: received:node:ca27c5da-9571-4c3a-98ac-c13e021105ca:localhost:node-738ebfb9-2b6f-4442-9e54-dfb6156c538d:Node 738ebfb9-2b6f-4442-9e54-dfb6156c538d :: true |
deleteNodes | 1.029s |
2023-09-28 23:59:54 |
2023-09-28 23:59:54 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2023-09-28 23:59:54 | ------------------------------------ 2023-09-28 23:59:54 | on localhost executing action delete-node with content type application/json and payload: { "node": "node-738ebfb9-2b6f-4442-9e54-dfb6156c538d" } 2023-09-28 23:59:54 | from localhost for action delete-node got result code 200 and payload { "Note": "Operation successful" } 2023-09-28 23:59:55 | [Mutex] waiting for: [received:nodes:e5d5652b-2685-46c8-b495-3403f4678ca3:localhost] 2023-09-28 23:59:55 | [Mutex] waiting for: [received:nodes:e5d5652b-2685-46c8-b495-3403f4678ca3:localhost] 2023-09-28 23:59:55 | [Mutex] waiting for: [received:nodes:e5d5652b-2685-46c8-b495-3403f4678ca3:localhost] 2023-09-28 23:59:55 | [Mutex] received everything. 2023-09-28 23:59:55 | [Mutex] isItemNotified: received:node:e5d5652b-2685-46c8-b495-3403f4678ca3:localhost:node-738ebfb9-2b6f-4442-9e54-dfb6156c538d:Node 738ebfb9-2b6f-4442-9e54-dfb6156c538d :: false |
deleteSubnodes | 1.033s |
2023-09-28 23:59:53 |
2023-09-28 23:59:53 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2023-09-28 23:59:53 | ------------------------------------ 2023-09-28 23:59:53 | on localhost executing action delete-node with content type application/json and payload: { "node": "node-95b4cba3-7499-4671-be21-44c80556810e" } 2023-09-28 23:59:53 | from localhost for action delete-node got result code 200 and payload { "Note": "Operation successful" } 2023-09-28 23:59:54 | [Mutex] waiting for: [received:nodes:0d50725e-89e8-4b11-b23a-3fb1a786cab1:localhost] 2023-09-28 23:59:54 | [Mutex] waiting for: [received:nodes:0d50725e-89e8-4b11-b23a-3fb1a786cab1:localhost] 2023-09-28 23:59:54 | [Mutex] waiting for: [received:nodes:0d50725e-89e8-4b11-b23a-3fb1a786cab1:localhost] 2023-09-28 23:59:54 | [Mutex] waiting for: [received:nodes:0d50725e-89e8-4b11-b23a-3fb1a786cab1:localhost] 2023-09-28 23:59:54 | [Mutex] received everything. 2023-09-28 23:59:54 | [Mutex] isItemNotified: received:node:0d50725e-89e8-4b11-b23a-3fb1a786cab1:localhost:node-95b4cba3-7499-4671-be21-44c80556810e:Node 95b4cba3-7499-4671-be21-44c80556810e :: false 2023-09-28 23:59:54 | [Mutex] waiting for: [received:nodes:2b91901f-edca-40bb-b113-28c1393829dd:localhost] 2023-09-28 23:59:54 | [Mutex] received everything. 2023-09-28 23:59:54 | [Mutex] isItemNotified: received:node:2b91901f-edca-40bb-b113-28c1393829dd:localhost:node-95b4cba3-7499-4671-be21-44c80556810e:Node 95b4cba3-7499-4671-be21-44c80556810e :: false |
publishItemsToNodes | 0.045s |
2023-09-28 23:59:51 |
2023-09-28 23:59:51 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2023-09-28 23:59:51 | ------------------------------------ 2023-09-28 23:59:51 | on localhost executing action publish-item with content type application/json and payload: { "node": "node-95b4cba3-7499-4671-be21-44c80556810e", "entry": "<test>item-48ce834d-30e4-4afb-a2c6-0fa140e12c4e</test>", "item-id": "item-48ce834d-30e4-4afb-a2c6-0fa140e12c4e" } 2023-09-28 23:59:51 | from localhost for action publish-item got result code 200 and payload { "Note": "Operation successful", "item-id": "item-48ce834d-30e4-4afb-a2c6-0fa140e12c4e" } 2023-09-28 23:59:51 | [Mutex] received everything. 2023-09-28 23:59:51 | [Mutex] isItemNotified: published:item:notifieditem-48ce834d-30e4-4afb-a2c6-0fa140e12c4e:admin@test-domain.com :: true |
retractItemsFromNodes | 0.124s |
2023-09-28 23:59:52 |
2023-09-28 23:59:52 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2023-09-28 23:59:52 | ------------------------------------ 2023-09-28 23:59:52 | on localhost executing action delete-item with content type application/json and payload: { "node": "node-95b4cba3-7499-4671-be21-44c80556810e", "item-id": "item-48ce834d-30e4-4afb-a2c6-0fa140e12c4e" } 2023-09-28 23:59:52 | from localhost for action delete-item got result code 200 and payload { "Note": "Operation successful", "item-id": "item-48ce834d-30e4-4afb-a2c6-0fa140e12c4e" } 2023-09-28 23:59:52 | [Mutex] waiting for: [retracted:item:notifieditem-48ce834d-30e4-4afb-a2c6-0fa140e12c4e:admin@test-domain.com] 2023-09-28 23:59:52 | [Mutex] received everything. 2023-09-28 23:59:52 | [Mutex] isItemNotified: retracted:item:notifieditem-48ce834d-30e4-4afb-a2c6-0fa140e12c4e:admin@test-domain.com :: true |
retrieveItemsFromNodes | 0.063s |
2023-09-28 23:59:51 |
2023-09-28 23:59:51 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2023-09-28 23:59:51 | ------------------------------------ 2023-09-28 23:59:51 | on localhost executing action retrieve-item with content type application/json and payload: { "node": "node-95b4cba3-7499-4671-be21-44c80556810e", "item-id": "item-48ce834d-30e4-4afb-a2c6-0fa140e12c4e" } 2023-09-28 23:59:52 | from localhost for action retrieve-item got result code 200 and payload { "title": "Retrive PubSub node item", "node": "node-95b4cba3-7499-4671-be21-44c80556810e", "item-id": "item-48ce834d-30e4-4afb-a2c6-0fa140e12c4e", "item": [ "<item id=\"item-48ce834d-30e4-4afb-a2c6-0fa140e12c4e\"><test>item-48ce834d-30e4-4afb-a2c6-0fa140e12c4e</test></item>" ] } 2023-09-28 23:59:52 | [Mutex] notify: [retrieved:item:item-48ce834d-30e4-4afb-a2c6-0fa140e12c4e:payload-matches:true:localhost] 2023-09-28 23:59:52 | [Mutex] received everything. 2023-09-28 23:59:52 | [Mutex] isItemNotified: retrieved:item:item-48ce834d-30e4-4afb-a2c6-0fa140e12c4e:payload-matches:true:localhost :: true |
retrieveUserSubscriptions | 0.047s |
2023-09-28 23:59:52 |
2023-09-28 23:59:52 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2023-09-28 23:59:52 | ------------------------------------ 2023-09-28 23:59:52 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload: { "jid": "admin@test-domain.com" } 2023-09-28 23:59:52 | from localhost for action retrieve-user-subscriptions got result code 200 and payload { "nodes": [ "node-738ebfb9-2b6f-4442-9e54-dfb6156c538d", "test", "node-95b4cba3-7499-4671-be21-44c80556810e" ] } |
retrieveUserSubscriptionsWithRegex | 0.047s |
2023-09-28 23:59:52 |
2023-09-28 23:59:52 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2023-09-28 23:59:52 | ------------------------------------ 2023-09-28 23:59:52 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload: { "jid": "admin@test-domain.com", "node-pattern": "(?!node-95b4cba3-7499-4671-be21-44c80556810e)" } 2023-09-28 23:59:52 | from localhost for action retrieve-user-subscriptions got result code 200 and payload { "nodes": [ ] } |
subscribeNodes | 1.011s |
2023-09-28 23:59:50 |
2023-09-28 23:59:50 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2023-09-28 23:59:50 | ------------------------------------ 2023-09-28 23:59:50 | on localhost executing action subscribe-node with content type application/json and payload: { "node": "node-95b4cba3-7499-4671-be21-44c80556810e", "jids": [ "admin@test-domain.com" ] } 2023-09-28 23:59:50 | from localhost for action subscribe-node got result code 200 and payload { "Note": "Operation successful" } |
unsubscribeNodes | 1.029s |
2023-09-28 23:59:52 |
2023-09-28 23:59:52 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2023-09-28 23:59:52 | ------------------------------------ 2023-09-28 23:59:52 | on localhost executing action unsubscribe-node with content type application/json and payload: { "node": "node-95b4cba3-7499-4671-be21-44c80556810e", "jids": [ "admin@test-domain.com" ] } 2023-09-28 23:59:52 | from localhost for action unsubscribe-node got result code 200 and payload { "Note": "Operation successful" } |