Test duration : 8.589s
Passed Tests | ||
---|---|---|
tigase.tests.pubsub.TestRestApiUsingJSON | ||
configureNodes | 1.031s |
2022-12-28 21:31:42 |
2022-12-28 21:31:42 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-12-28 21:31:42 | ------------------------------------ 2022-12-28 21:31:42 | [Mutex] waiting for: [configured:node:node-33881d4c-9ff2-4d07-b652-524a5f0ea8be:node-82bce0ec-9e16-4824-a762-3bda8d99eb50] 2022-12-28 21:31:42 | [Mutex] received everything. 2022-12-28 21:31:42 | [Mutex] isItemNotified: configured:node:node-33881d4c-9ff2-4d07-b652-524a5f0ea8be:node-82bce0ec-9e16-4824-a762-3bda8d99eb50 :: true 2022-12-28 21:31:43 | [Mutex] waiting for: [received:nodes:376bddd8-80d8-428c-a210-caed36173b40:localhost] 2022-12-28 21:31:43 | [Mutex] received everything. 2022-12-28 21:31:43 | [Mutex] isItemNotified: received:node:376bddd8-80d8-428c-a210-caed36173b40:localhost:node-33881d4c-9ff2-4d07-b652-524a5f0ea8be:Node 33881d4c-9ff2-4d07-b652-524a5f0ea8be :: true 2022-12-28 21:31:43 | [Mutex] waiting for: [received:nodes:39d2a20b-9823-4f71-856e-228cb79b5df3:localhost] 2022-12-28 21:31:43 | [Mutex] waiting for: [received:nodes:39d2a20b-9823-4f71-856e-228cb79b5df3:localhost] 2022-12-28 21:31:43 | [Mutex] waiting for: [received:nodes:39d2a20b-9823-4f71-856e-228cb79b5df3:localhost] 2022-12-28 21:31:43 | [Mutex] received everything. 2022-12-28 21:31:43 | [Mutex] isItemNotified: received:node:39d2a20b-9823-4f71-856e-228cb79b5df3:localhost:node-33881d4c-9ff2-4d07-b652-524a5f0ea8be:Node 33881d4c-9ff2-4d07-b652-524a5f0ea8be :: false |
createNodes | 1.620s |
2022-12-28 21:31:39 |
2022-12-28 21:31:39 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-12-28 21:31:39 | ------------------------------------ 2022-12-28 21:31:40 | on localhost executing action create-node with content type application/json and payload: { "owner": "admin@test-domain.com", "pubsub#node_type": "leaf", "node": "node-33881d4c-9ff2-4d07-b652-524a5f0ea8be", "pubsub#title": "Node 33881d4c-9ff2-4d07-b652-524a5f0ea8be" } 2022-12-28 21:31:40 | from localhost for action create-node got result code 200 and payload { "Note": "Operation successful" } 2022-12-28 21:31:41 | [Mutex] waiting for: [received:nodes:956d7247-12d2-45fe-a7ee-e87f2eb62797:localhost] 2022-12-28 21:31:41 | [Mutex] waiting for: [received:nodes:956d7247-12d2-45fe-a7ee-e87f2eb62797:localhost] 2022-12-28 21:31:41 | [Mutex] waiting for: [received:nodes:956d7247-12d2-45fe-a7ee-e87f2eb62797:localhost] 2022-12-28 21:31:41 | [Mutex] received everything. 2022-12-28 21:31:41 | [Mutex] isItemNotified: received:node:956d7247-12d2-45fe-a7ee-e87f2eb62797:localhost:node-33881d4c-9ff2-4d07-b652-524a5f0ea8be:Node 33881d4c-9ff2-4d07-b652-524a5f0ea8be :: true |
createSubnodes | 1.023s |
2022-12-28 21:31:41 |
2022-12-28 21:31:41 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-12-28 21:31:41 | ------------------------------------ 2022-12-28 21:31:41 | on localhost executing action create-node with content type application/json and payload: { "owner": "admin@test-domain.com", "pubsub#node_type": "collection", "node": "node-82bce0ec-9e16-4824-a762-3bda8d99eb50", "pubsub#title": "Node 82bce0ec-9e16-4824-a762-3bda8d99eb50" } 2022-12-28 21:31:41 | from localhost for action create-node got result code 200 and payload { "Note": "Operation successful" } 2022-12-28 21:31:42 | [Mutex] waiting for: [received:nodes:8b334b16-4cf5-4dee-8528-65c7b84063e8:localhost] 2022-12-28 21:31:42 | [Mutex] waiting for: [received:nodes:8b334b16-4cf5-4dee-8528-65c7b84063e8:localhost] 2022-12-28 21:31:42 | [Mutex] waiting for: [received:nodes:8b334b16-4cf5-4dee-8528-65c7b84063e8:localhost] 2022-12-28 21:31:42 | [Mutex] received everything. 2022-12-28 21:31:42 | [Mutex] isItemNotified: received:node:8b334b16-4cf5-4dee-8528-65c7b84063e8:localhost:node-82bce0ec-9e16-4824-a762-3bda8d99eb50:Node 82bce0ec-9e16-4824-a762-3bda8d99eb50 :: true |
deleteNodes | 1.019s |
2022-12-28 21:31:46 |
2022-12-28 21:31:46 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-12-28 21:31:46 | ------------------------------------ 2022-12-28 21:31:46 | on localhost executing action delete-node with content type application/json and payload: { "node": "node-82bce0ec-9e16-4824-a762-3bda8d99eb50" } 2022-12-28 21:31:46 | from localhost for action delete-node got result code 200 and payload { "Note": "Operation successful" } 2022-12-28 21:31:47 | [Mutex] waiting for: [received:nodes:30f81952-1f29-4866-91a9-ba5a9cd4061d:localhost] 2022-12-28 21:31:47 | [Mutex] waiting for: [received:nodes:30f81952-1f29-4866-91a9-ba5a9cd4061d:localhost] 2022-12-28 21:31:47 | [Mutex] waiting for: [received:nodes:30f81952-1f29-4866-91a9-ba5a9cd4061d:localhost] 2022-12-28 21:31:47 | [Mutex] received everything. 2022-12-28 21:31:47 | [Mutex] isItemNotified: received:node:30f81952-1f29-4866-91a9-ba5a9cd4061d:localhost:node-82bce0ec-9e16-4824-a762-3bda8d99eb50:Node 82bce0ec-9e16-4824-a762-3bda8d99eb50 :: false |
deleteSubnodes | 1.027s |
2022-12-28 21:31:45 |
2022-12-28 21:31:45 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-12-28 21:31:45 | ------------------------------------ 2022-12-28 21:31:45 | on localhost executing action delete-node with content type application/json and payload: { "node": "node-33881d4c-9ff2-4d07-b652-524a5f0ea8be" } 2022-12-28 21:31:45 | from localhost for action delete-node got result code 200 and payload { "Note": "Operation successful" } 2022-12-28 21:31:46 | [Mutex] waiting for: [received:nodes:800900cf-5088-4a82-a4ac-103e6b324456:localhost] 2022-12-28 21:31:46 | [Mutex] waiting for: [received:nodes:800900cf-5088-4a82-a4ac-103e6b324456:localhost] 2022-12-28 21:31:46 | [Mutex] waiting for: [received:nodes:800900cf-5088-4a82-a4ac-103e6b324456:localhost] 2022-12-28 21:31:46 | [Mutex] waiting for: [received:nodes:800900cf-5088-4a82-a4ac-103e6b324456:localhost] 2022-12-28 21:31:46 | [Mutex] received everything. 2022-12-28 21:31:46 | [Mutex] isItemNotified: received:node:800900cf-5088-4a82-a4ac-103e6b324456:localhost:node-33881d4c-9ff2-4d07-b652-524a5f0ea8be:Node 33881d4c-9ff2-4d07-b652-524a5f0ea8be :: false 2022-12-28 21:31:46 | [Mutex] waiting for: [received:nodes:8c1eb0ce-2164-42a0-b84c-16bc5ab04d4c:localhost] 2022-12-28 21:31:46 | [Mutex] received everything. 2022-12-28 21:31:46 | [Mutex] isItemNotified: received:node:8c1eb0ce-2164-42a0-b84c-16bc5ab04d4c:localhost:node-33881d4c-9ff2-4d07-b652-524a5f0ea8be:Node 33881d4c-9ff2-4d07-b652-524a5f0ea8be :: false |
publishItemsToNodes | 0.066s |
2022-12-28 21:31:44 |
2022-12-28 21:31:44 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-12-28 21:31:44 | ------------------------------------ 2022-12-28 21:31:44 | on localhost executing action publish-item with content type application/json and payload: { "node": "node-33881d4c-9ff2-4d07-b652-524a5f0ea8be", "entry": "<test>item-7c120373-14d7-4a68-8540-47a710a446a1</test>", "item-id": "item-7c120373-14d7-4a68-8540-47a710a446a1" } 2022-12-28 21:31:44 | from localhost for action publish-item got result code 200 and payload { "Note": "Operation successful", "item-id": "item-7c120373-14d7-4a68-8540-47a710a446a1" } 2022-12-28 21:31:44 | [Mutex] waiting for: [published:item:notifieditem-7c120373-14d7-4a68-8540-47a710a446a1:admin@test-domain.com] 2022-12-28 21:31:44 | [Mutex] received everything. 2022-12-28 21:31:44 | [Mutex] isItemNotified: published:item:notifieditem-7c120373-14d7-4a68-8540-47a710a446a1:admin@test-domain.com :: true |
retractItemsFromNodes | 0.055s |
2022-12-28 21:31:44 |
2022-12-28 21:31:44 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-12-28 21:31:44 | ------------------------------------ 2022-12-28 21:31:44 | on localhost executing action delete-item with content type application/json and payload: { "node": "node-33881d4c-9ff2-4d07-b652-524a5f0ea8be", "item-id": "item-7c120373-14d7-4a68-8540-47a710a446a1" } 2022-12-28 21:31:44 | from localhost for action delete-item got result code 200 and payload { "Note": "Operation successful", "item-id": "item-7c120373-14d7-4a68-8540-47a710a446a1" } 2022-12-28 21:31:44 | [Mutex] received everything. 2022-12-28 21:31:44 | [Mutex] isItemNotified: retracted:item:notifieditem-7c120373-14d7-4a68-8540-47a710a446a1:admin@test-domain.com :: true |
retrieveItemsFromNodes | 0.023s |
2022-12-28 21:31:44 |
2022-12-28 21:31:44 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-12-28 21:31:44 | ------------------------------------ 2022-12-28 21:31:44 | on localhost executing action retrieve-item with content type application/json and payload: { "node": "node-33881d4c-9ff2-4d07-b652-524a5f0ea8be", "item-id": "item-7c120373-14d7-4a68-8540-47a710a446a1" } 2022-12-28 21:31:44 | from localhost for action retrieve-item got result code 200 and payload { "title": "Retrive PubSub node item", "node": "node-33881d4c-9ff2-4d07-b652-524a5f0ea8be", "item-id": "item-7c120373-14d7-4a68-8540-47a710a446a1", "item": [ "<item id=\"item-7c120373-14d7-4a68-8540-47a710a446a1\"><test>item-7c120373-14d7-4a68-8540-47a710a446a1</test></item>" ] } 2022-12-28 21:31:44 | [Mutex] notify: [retrieved:item:item-7c120373-14d7-4a68-8540-47a710a446a1:payload-matches:true:localhost] 2022-12-28 21:31:44 | [Mutex] received everything. 2022-12-28 21:31:44 | [Mutex] isItemNotified: retrieved:item:item-7c120373-14d7-4a68-8540-47a710a446a1:payload-matches:true:localhost :: true |
retrieveUserSubscriptions | 0.048s |
2022-12-28 21:31:44 |
2022-12-28 21:31:44 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-12-28 21:31:44 | ------------------------------------ 2022-12-28 21:31:44 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload: { "jid": "admin@test-domain.com" } 2022-12-28 21:31:44 | from localhost for action retrieve-user-subscriptions got result code 200 and payload { "nodes": [ "test", "node-82bce0ec-9e16-4824-a762-3bda8d99eb50", "node-33881d4c-9ff2-4d07-b652-524a5f0ea8be" ] } |
retrieveUserSubscriptionsWithRegex | 0.047s |
2022-12-28 21:31:44 |
2022-12-28 21:31:44 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-12-28 21:31:44 | ------------------------------------ 2022-12-28 21:31:44 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload: { "jid": "admin@test-domain.com", "node-pattern": "(?!node-33881d4c-9ff2-4d07-b652-524a5f0ea8be)" } 2022-12-28 21:31:44 | from localhost for action retrieve-user-subscriptions got result code 200 and payload { "nodes": [ ] } |
subscribeNodes | 1.011s |
2022-12-28 21:31:43 |
2022-12-28 21:31:43 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-12-28 21:31:43 | ------------------------------------ 2022-12-28 21:31:43 | on localhost executing action subscribe-node with content type application/json and payload: { "node": "node-33881d4c-9ff2-4d07-b652-524a5f0ea8be", "jids": [ "admin@test-domain.com" ] } 2022-12-28 21:31:43 | from localhost for action subscribe-node got result code 200 and payload { "Note": "Operation successful" } |
unsubscribeNodes | 1.063s |
2022-12-28 21:31:44 |
2022-12-28 21:31:44 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-12-28 21:31:44 | ------------------------------------ 2022-12-28 21:31:44 | on localhost executing action unsubscribe-node with content type application/json and payload: { "node": "node-33881d4c-9ff2-4d07-b652-524a5f0ea8be", "jids": [ "admin@test-domain.com" ] } 2022-12-28 21:31:44 | from localhost for action unsubscribe-node got result code 200 and payload { "Note": "Operation successful" } |