Test duration : 8.997s
Passed Tests | ||
---|---|---|
tigase.tests.pubsub.TestRestApiUsingJSON | ||
configureNodes | 1.141s |
2021-06-13 22:40:53 |
2021-06-13 22:40:53 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-06-13 22:40:53 | ------------------------------------ 2021-06-13 22:40:53 | [Mutex] waiting for: [configured:node:node-73cfe12d-b656-4441-9ac4-5817bc5af569:node-356aa610-cfc0-49c9-9f73-715c12adabe5] 2021-06-13 22:40:53 | [Mutex] received everything. 2021-06-13 22:40:53 | [Mutex] isItemNotified: configured:node:node-73cfe12d-b656-4441-9ac4-5817bc5af569:node-356aa610-cfc0-49c9-9f73-715c12adabe5 :: true 2021-06-13 22:40:54 | [Mutex] waiting for: [received:nodes:8b8d7f11-c742-4b91-9120-5c4611c88f18:localhost] 2021-06-13 22:40:54 | [Mutex] received everything. 2021-06-13 22:40:54 | [Mutex] isItemNotified: received:node:8b8d7f11-c742-4b91-9120-5c4611c88f18:localhost:node-73cfe12d-b656-4441-9ac4-5817bc5af569:Node 73cfe12d-b656-4441-9ac4-5817bc5af569 :: true 2021-06-13 22:40:54 | [Mutex] waiting for: [received:nodes:1a706a1a-cac1-4263-8562-2aa271d5c565:localhost] 2021-06-13 22:40:54 | [Mutex] received everything. 2021-06-13 22:40:54 | [Mutex] isItemNotified: received:node:1a706a1a-cac1-4263-8562-2aa271d5c565:localhost:node-73cfe12d-b656-4441-9ac4-5817bc5af569:Node 73cfe12d-b656-4441-9ac4-5817bc5af569 :: false |
createNodes | 1.660s |
2021-06-13 22:40:50 |
2021-06-13 22:40:50 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-06-13 22:40:50 | ------------------------------------ 2021-06-13 22:40:50 | on localhost executing action create-node with content type application/json and payload: { "owner": "admin@test-domain.com", "pubsub#node_type": "leaf", "node": "node-73cfe12d-b656-4441-9ac4-5817bc5af569", "pubsub#title": "Node 73cfe12d-b656-4441-9ac4-5817bc5af569" } 2021-06-13 22:40:50 | from localhost for action create-node got result code 200 and payload { "Note": "Operation successful" } 2021-06-13 22:40:51 | [Mutex] waiting for: [received:nodes:9e7f5519-18f2-4318-a75a-047499bbb34d:localhost] 2021-06-13 22:40:51 | [Mutex] received everything. 2021-06-13 22:40:51 | [Mutex] isItemNotified: received:node:9e7f5519-18f2-4318-a75a-047499bbb34d:localhost:node-73cfe12d-b656-4441-9ac4-5817bc5af569:Node 73cfe12d-b656-4441-9ac4-5817bc5af569 :: true |
createSubnodes | 1.026s |
2021-06-13 22:40:51 |
2021-06-13 22:40:51 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-06-13 22:40:51 | ------------------------------------ 2021-06-13 22:40:51 | on localhost executing action create-node with content type application/json and payload: { "owner": "admin@test-domain.com", "pubsub#node_type": "collection", "node": "node-356aa610-cfc0-49c9-9f73-715c12adabe5", "pubsub#title": "Node 356aa610-cfc0-49c9-9f73-715c12adabe5" } 2021-06-13 22:40:51 | from localhost for action create-node got result code 200 and payload { "Note": "Operation successful" } 2021-06-13 22:40:53 | [Mutex] waiting for: [received:nodes:af8fb0a9-a4df-4f34-a4d9-63f5a1fe3b69:localhost] 2021-06-13 22:40:53 | [Mutex] received everything. 2021-06-13 22:40:53 | [Mutex] isItemNotified: received:node:af8fb0a9-a4df-4f34-a4d9-63f5a1fe3b69:localhost:node-356aa610-cfc0-49c9-9f73-715c12adabe5:Node 356aa610-cfc0-49c9-9f73-715c12adabe5 :: true |
deleteNodes | 1.023s |
2021-06-13 22:40:57 |
2021-06-13 22:40:57 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-06-13 22:40:57 | ------------------------------------ 2021-06-13 22:40:57 | on localhost executing action delete-node with content type application/json and payload: { "node": "node-356aa610-cfc0-49c9-9f73-715c12adabe5" } 2021-06-13 22:40:57 | from localhost for action delete-node got result code 200 and payload { "Note": "Operation successful" } 2021-06-13 22:40:58 | [Mutex] waiting for: [received:nodes:957da99d-c333-4c40-873c-be261cb09582:localhost] 2021-06-13 22:40:58 | [Mutex] waiting for: [received:nodes:957da99d-c333-4c40-873c-be261cb09582:localhost] 2021-06-13 22:40:58 | [Mutex] received everything. 2021-06-13 22:40:58 | [Mutex] isItemNotified: received:node:957da99d-c333-4c40-873c-be261cb09582:localhost:node-356aa610-cfc0-49c9-9f73-715c12adabe5:Node 356aa610-cfc0-49c9-9f73-715c12adabe5 :: false |
deleteSubnodes | 1.033s |
2021-06-13 22:40:56 |
2021-06-13 22:40:56 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-06-13 22:40:56 | ------------------------------------ 2021-06-13 22:40:56 | on localhost executing action delete-node with content type application/json and payload: { "node": "node-73cfe12d-b656-4441-9ac4-5817bc5af569" } 2021-06-13 22:40:56 | from localhost for action delete-node got result code 200 and payload { "Note": "Operation successful" } 2021-06-13 22:40:57 | [Mutex] waiting for: [received:nodes:8d5acc32-fa46-4349-b0b1-c1b13480fc38:localhost] 2021-06-13 22:40:57 | [Mutex] received everything. 2021-06-13 22:40:57 | [Mutex] isItemNotified: received:node:8d5acc32-fa46-4349-b0b1-c1b13480fc38:localhost:node-73cfe12d-b656-4441-9ac4-5817bc5af569:Node 73cfe12d-b656-4441-9ac4-5817bc5af569 :: false 2021-06-13 22:40:57 | [Mutex] waiting for: [received:nodes:1fc0b41f-3c3c-47ab-8528-d8df3509bc93:localhost] 2021-06-13 22:40:57 | [Mutex] received everything. 2021-06-13 22:40:57 | [Mutex] isItemNotified: received:node:1fc0b41f-3c3c-47ab-8528-d8df3509bc93:localhost:node-73cfe12d-b656-4441-9ac4-5817bc5af569:Node 73cfe12d-b656-4441-9ac4-5817bc5af569 :: false |
publishItemsToNodes | 0.060s |
2021-06-13 22:40:55 |
2021-06-13 22:40:55 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-06-13 22:40:55 | ------------------------------------ 2021-06-13 22:40:55 | on localhost executing action publish-item with content type application/json and payload: { "node": "node-73cfe12d-b656-4441-9ac4-5817bc5af569", "entry": "<test>item-c8d586c9-e861-452e-8418-1af7fa22d389</test>", "item-id": "item-c8d586c9-e861-452e-8418-1af7fa22d389" } 2021-06-13 22:40:55 | from localhost for action publish-item got result code 200 and payload { "Note": "Operation successful", "item-id": "item-c8d586c9-e861-452e-8418-1af7fa22d389" } 2021-06-13 22:40:55 | [Mutex] waiting for: [published:item:notifieditem-c8d586c9-e861-452e-8418-1af7fa22d389:admin@test-domain.com] 2021-06-13 22:40:55 | [Mutex] received everything. 2021-06-13 22:40:55 | [Mutex] isItemNotified: published:item:notifieditem-c8d586c9-e861-452e-8418-1af7fa22d389:admin@test-domain.com :: true |
retractItemsFromNodes | 0.100s |
2021-06-13 22:40:55 |
2021-06-13 22:40:55 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-06-13 22:40:55 | ------------------------------------ 2021-06-13 22:40:55 | on localhost executing action delete-item with content type application/json and payload: { "node": "node-73cfe12d-b656-4441-9ac4-5817bc5af569", "item-id": "item-c8d586c9-e861-452e-8418-1af7fa22d389" } 2021-06-13 22:40:55 | from localhost for action delete-item got result code 200 and payload { "Note": "Operation successful", "item-id": "item-c8d586c9-e861-452e-8418-1af7fa22d389" } 2021-06-13 22:40:55 | [Mutex] received everything. 2021-06-13 22:40:55 | [Mutex] isItemNotified: retracted:item:notifieditem-c8d586c9-e861-452e-8418-1af7fa22d389:admin@test-domain.com :: true |
retrieveItemsFromNodes | 0.089s |
2021-06-13 22:40:55 |
2021-06-13 22:40:55 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-06-13 22:40:55 | ------------------------------------ 2021-06-13 22:40:55 | on localhost executing action retrieve-item with content type application/json and payload: { "node": "node-73cfe12d-b656-4441-9ac4-5817bc5af569", "item-id": "item-c8d586c9-e861-452e-8418-1af7fa22d389" } 2021-06-13 22:40:55 | from localhost for action retrieve-item got result code 200 and payload { "title": "Retrive PubSub node item", "node": "node-73cfe12d-b656-4441-9ac4-5817bc5af569", "item-id": "item-c8d586c9-e861-452e-8418-1af7fa22d389", "item": [ "<item id=\"item-c8d586c9-e861-452e-8418-1af7fa22d389\"><test>item-c8d586c9-e861-452e-8418-1af7fa22d389</test></item>" ] } 2021-06-13 22:40:55 | [Mutex] notify: [retrieved:item:item-c8d586c9-e861-452e-8418-1af7fa22d389:payload-matches:true:localhost] 2021-06-13 22:40:55 | [Mutex] received everything. 2021-06-13 22:40:55 | [Mutex] isItemNotified: retrieved:item:item-c8d586c9-e861-452e-8418-1af7fa22d389:payload-matches:true:localhost :: true |
retrieveUserSubscriptions | 0.051s |
2021-06-13 22:40:55 |
2021-06-13 22:40:55 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-06-13 22:40:55 | ------------------------------------ 2021-06-13 22:40:55 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload: { "jid": "admin@test-domain.com" } 2021-06-13 22:40:55 | from localhost for action retrieve-user-subscriptions got result code 200 and payload { "nodes": [ "node-73cfe12d-b656-4441-9ac4-5817bc5af569", "node-356aa610-cfc0-49c9-9f73-715c12adabe5", "test" ] } |
retrieveUserSubscriptionsWithRegex | 0.047s |
2021-06-13 22:40:55 |
2021-06-13 22:40:55 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-06-13 22:40:55 | ------------------------------------ 2021-06-13 22:40:55 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload: { "jid": "admin@test-domain.com", "node-pattern": "(?!node-73cfe12d-b656-4441-9ac4-5817bc5af569)" } 2021-06-13 22:40:55 | from localhost for action retrieve-user-subscriptions got result code 200 and payload { "nodes": [ ] } |
subscribeNodes | 1.011s |
2021-06-13 22:40:54 |
2021-06-13 22:40:54 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-06-13 22:40:54 | ------------------------------------ 2021-06-13 22:40:54 | on localhost executing action subscribe-node with content type application/json and payload: { "node": "node-73cfe12d-b656-4441-9ac4-5817bc5af569", "jids": [ "admin@test-domain.com" ] } 2021-06-13 22:40:54 | from localhost for action subscribe-node got result code 200 and payload { "Note": "Operation successful" } |
unsubscribeNodes | 1.055s |
2021-06-13 22:40:55 |
2021-06-13 22:40:55 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-06-13 22:40:55 | ------------------------------------ 2021-06-13 22:40:55 | on localhost executing action unsubscribe-node with content type application/json and payload: { "node": "node-73cfe12d-b656-4441-9ac4-5817bc5af569", "jids": [ "admin@test-domain.com" ] } 2021-06-13 22:40:55 | from localhost for action unsubscribe-node got result code 200 and payload { "Note": "Operation successful" } |