Test duration : 8.577s
Passed Tests | ||
---|---|---|
tigase.tests.pubsub.TestRestApiUsingJSON | ||
configureNodes | 1.091s |
2022-12-30 10:12:09 |
2022-12-30 10:12:09 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-12-30 10:12:09 | ------------------------------------ 2022-12-30 10:12:09 | [Mutex] waiting for: [configured:node:node-90db7c0b-b8a7-436e-b738-95617de23c81:node-742c2aa3-50bc-4e32-a8a9-0a0272a5697d] 2022-12-30 10:12:09 | [Mutex] received everything. 2022-12-30 10:12:09 | [Mutex] isItemNotified: configured:node:node-90db7c0b-b8a7-436e-b738-95617de23c81:node-742c2aa3-50bc-4e32-a8a9-0a0272a5697d :: true 2022-12-30 10:12:10 | [Mutex] waiting for: [received:nodes:5d66338c-b9ac-49d4-8423-972940c58f18:localhost] 2022-12-30 10:12:10 | [Mutex] received everything. 2022-12-30 10:12:10 | [Mutex] isItemNotified: received:node:5d66338c-b9ac-49d4-8423-972940c58f18:localhost:node-90db7c0b-b8a7-436e-b738-95617de23c81:Node 90db7c0b-b8a7-436e-b738-95617de23c81 :: true 2022-12-30 10:12:10 | [Mutex] waiting for: [received:nodes:ef45f452-13ef-4ccb-9a7c-48a432b18055:localhost] 2022-12-30 10:12:10 | [Mutex] waiting for: [received:nodes:ef45f452-13ef-4ccb-9a7c-48a432b18055:localhost] 2022-12-30 10:12:10 | [Mutex] waiting for: [received:nodes:ef45f452-13ef-4ccb-9a7c-48a432b18055:localhost] 2022-12-30 10:12:10 | [Mutex] received everything. 2022-12-30 10:12:10 | [Mutex] isItemNotified: received:node:ef45f452-13ef-4ccb-9a7c-48a432b18055:localhost:node-90db7c0b-b8a7-436e-b738-95617de23c81:Node 90db7c0b-b8a7-436e-b738-95617de23c81 :: false |
createNodes | 1.567s |
2022-12-30 10:12:06 |
2022-12-30 10:12:06 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-12-30 10:12:06 | ------------------------------------ 2022-12-30 10:12:07 | on localhost executing action create-node with content type application/json and payload: { "owner": "admin@test-domain.com", "pubsub#node_type": "leaf", "node": "node-90db7c0b-b8a7-436e-b738-95617de23c81", "pubsub#title": "Node 90db7c0b-b8a7-436e-b738-95617de23c81" } 2022-12-30 10:12:07 | from localhost for action create-node got result code 200 and payload { "Note": "Operation successful" } 2022-12-30 10:12:08 | [Mutex] waiting for: [received:nodes:5ac06575-3723-4283-8453-520c571d514d:localhost] 2022-12-30 10:12:08 | [Mutex] waiting for: [received:nodes:5ac06575-3723-4283-8453-520c571d514d:localhost] 2022-12-30 10:12:08 | [Mutex] waiting for: [received:nodes:5ac06575-3723-4283-8453-520c571d514d:localhost] 2022-12-30 10:12:08 | [Mutex] waiting for: [received:nodes:5ac06575-3723-4283-8453-520c571d514d:localhost] 2022-12-30 10:12:08 | [Mutex] received everything. 2022-12-30 10:12:08 | [Mutex] isItemNotified: received:node:5ac06575-3723-4283-8453-520c571d514d:localhost:node-90db7c0b-b8a7-436e-b738-95617de23c81:Node 90db7c0b-b8a7-436e-b738-95617de23c81 :: true |
createSubnodes | 1.030s |
2022-12-30 10:12:08 |
2022-12-30 10:12:08 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-12-30 10:12:08 | ------------------------------------ 2022-12-30 10:12:08 | on localhost executing action create-node with content type application/json and payload: { "owner": "admin@test-domain.com", "pubsub#node_type": "collection", "node": "node-742c2aa3-50bc-4e32-a8a9-0a0272a5697d", "pubsub#title": "Node 742c2aa3-50bc-4e32-a8a9-0a0272a5697d" } 2022-12-30 10:12:08 | from localhost for action create-node got result code 200 and payload { "Note": "Operation successful" } 2022-12-30 10:12:09 | [Mutex] waiting for: [received:nodes:2f606d85-d2fc-4d28-8991-490bd63fe0a9:localhost] 2022-12-30 10:12:09 | [Mutex] waiting for: [received:nodes:2f606d85-d2fc-4d28-8991-490bd63fe0a9:localhost] 2022-12-30 10:12:09 | [Mutex] waiting for: [received:nodes:2f606d85-d2fc-4d28-8991-490bd63fe0a9:localhost] 2022-12-30 10:12:09 | [Mutex] received everything. 2022-12-30 10:12:09 | [Mutex] isItemNotified: received:node:2f606d85-d2fc-4d28-8991-490bd63fe0a9:localhost:node-742c2aa3-50bc-4e32-a8a9-0a0272a5697d:Node 742c2aa3-50bc-4e32-a8a9-0a0272a5697d :: true |
deleteNodes | 1.023s |
2022-12-30 10:12:13 |
2022-12-30 10:12:13 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-12-30 10:12:13 | ------------------------------------ 2022-12-30 10:12:13 | on localhost executing action delete-node with content type application/json and payload: { "node": "node-742c2aa3-50bc-4e32-a8a9-0a0272a5697d" } 2022-12-30 10:12:13 | from localhost for action delete-node got result code 200 and payload { "Note": "Operation successful" } 2022-12-30 10:12:14 | [Mutex] waiting for: [received:nodes:56ee9b60-f4a5-493c-ba8b-10a1520e2ae1:localhost] 2022-12-30 10:12:14 | [Mutex] waiting for: [received:nodes:56ee9b60-f4a5-493c-ba8b-10a1520e2ae1:localhost] 2022-12-30 10:12:14 | [Mutex] waiting for: [received:nodes:56ee9b60-f4a5-493c-ba8b-10a1520e2ae1:localhost] 2022-12-30 10:12:14 | [Mutex] received everything. 2022-12-30 10:12:14 | [Mutex] isItemNotified: received:node:56ee9b60-f4a5-493c-ba8b-10a1520e2ae1:localhost:node-742c2aa3-50bc-4e32-a8a9-0a0272a5697d:Node 742c2aa3-50bc-4e32-a8a9-0a0272a5697d :: false |
deleteSubnodes | 1.023s |
2022-12-30 10:12:12 |
2022-12-30 10:12:12 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-12-30 10:12:12 | ------------------------------------ 2022-12-30 10:12:12 | on localhost executing action delete-node with content type application/json and payload: { "node": "node-90db7c0b-b8a7-436e-b738-95617de23c81" } 2022-12-30 10:12:12 | from localhost for action delete-node got result code 200 and payload { "Note": "Operation successful" } 2022-12-30 10:12:13 | [Mutex] waiting for: [received:nodes:b865e97d-3033-42a3-831d-c494bd6ed28b:localhost] 2022-12-30 10:12:13 | [Mutex] waiting for: [received:nodes:b865e97d-3033-42a3-831d-c494bd6ed28b:localhost] 2022-12-30 10:12:13 | [Mutex] waiting for: [received:nodes:b865e97d-3033-42a3-831d-c494bd6ed28b:localhost] 2022-12-30 10:12:13 | [Mutex] waiting for: [received:nodes:b865e97d-3033-42a3-831d-c494bd6ed28b:localhost] 2022-12-30 10:12:13 | [Mutex] received everything. 2022-12-30 10:12:13 | [Mutex] isItemNotified: received:node:b865e97d-3033-42a3-831d-c494bd6ed28b:localhost:node-90db7c0b-b8a7-436e-b738-95617de23c81:Node 90db7c0b-b8a7-436e-b738-95617de23c81 :: false 2022-12-30 10:12:13 | [Mutex] waiting for: [received:nodes:4ddc2b80-8bbb-4655-bb21-6e19e6c66624:localhost] 2022-12-30 10:12:13 | [Mutex] received everything. 2022-12-30 10:12:13 | [Mutex] isItemNotified: received:node:4ddc2b80-8bbb-4655-bb21-6e19e6c66624:localhost:node-90db7c0b-b8a7-436e-b738-95617de23c81:Node 90db7c0b-b8a7-436e-b738-95617de23c81 :: false |
publishItemsToNodes | 0.088s |
2022-12-30 10:12:11 |
2022-12-30 10:12:11 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-12-30 10:12:11 | ------------------------------------ 2022-12-30 10:12:11 | on localhost executing action publish-item with content type application/json and payload: { "node": "node-90db7c0b-b8a7-436e-b738-95617de23c81", "entry": "<test>item-f86863ab-5731-4b4d-af98-39da2175dbb1</test>", "item-id": "item-f86863ab-5731-4b4d-af98-39da2175dbb1" } 2022-12-30 10:12:11 | from localhost for action publish-item got result code 200 and payload { "Note": "Operation successful", "item-id": "item-f86863ab-5731-4b4d-af98-39da2175dbb1" } 2022-12-30 10:12:11 | [Mutex] waiting for: [published:item:notifieditem-f86863ab-5731-4b4d-af98-39da2175dbb1:admin@test-domain.com] 2022-12-30 10:12:11 | [Mutex] received everything. 2022-12-30 10:12:11 | [Mutex] isItemNotified: published:item:notifieditem-f86863ab-5731-4b4d-af98-39da2175dbb1:admin@test-domain.com :: true |
retractItemsFromNodes | 0.065s |
2022-12-30 10:12:11 |
2022-12-30 10:12:11 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-12-30 10:12:11 | ------------------------------------ 2022-12-30 10:12:11 | on localhost executing action delete-item with content type application/json and payload: { "node": "node-90db7c0b-b8a7-436e-b738-95617de23c81", "item-id": "item-f86863ab-5731-4b4d-af98-39da2175dbb1" } 2022-12-30 10:12:11 | from localhost for action delete-item got result code 200 and payload { "Note": "Operation successful", "item-id": "item-f86863ab-5731-4b4d-af98-39da2175dbb1" } 2022-12-30 10:12:11 | [Mutex] received everything. 2022-12-30 10:12:11 | [Mutex] isItemNotified: retracted:item:notifieditem-f86863ab-5731-4b4d-af98-39da2175dbb1:admin@test-domain.com :: true |
retrieveItemsFromNodes | 0.015s |
2022-12-30 10:12:11 |
2022-12-30 10:12:11 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-12-30 10:12:11 | ------------------------------------ 2022-12-30 10:12:11 | on localhost executing action retrieve-item with content type application/json and payload: { "node": "node-90db7c0b-b8a7-436e-b738-95617de23c81", "item-id": "item-f86863ab-5731-4b4d-af98-39da2175dbb1" } 2022-12-30 10:12:11 | from localhost for action retrieve-item got result code 200 and payload { "title": "Retrive PubSub node item", "node": "node-90db7c0b-b8a7-436e-b738-95617de23c81", "item-id": "item-f86863ab-5731-4b4d-af98-39da2175dbb1", "item": [ "<item id=\"item-f86863ab-5731-4b4d-af98-39da2175dbb1\"><test>item-f86863ab-5731-4b4d-af98-39da2175dbb1</test></item>" ] } 2022-12-30 10:12:11 | [Mutex] notify: [retrieved:item:item-f86863ab-5731-4b4d-af98-39da2175dbb1:payload-matches:true:localhost] 2022-12-30 10:12:11 | [Mutex] received everything. 2022-12-30 10:12:11 | [Mutex] isItemNotified: retrieved:item:item-f86863ab-5731-4b4d-af98-39da2175dbb1:payload-matches:true:localhost :: true |
retrieveUserSubscriptions | 0.049s |
2022-12-30 10:12:11 |
2022-12-30 10:12:11 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-12-30 10:12:11 | ------------------------------------ 2022-12-30 10:12:11 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload: { "jid": "admin@test-domain.com" } 2022-12-30 10:12:11 | from localhost for action retrieve-user-subscriptions got result code 200 and payload { "nodes": [ "test", "node-90db7c0b-b8a7-436e-b738-95617de23c81", "node-742c2aa3-50bc-4e32-a8a9-0a0272a5697d" ] } |
retrieveUserSubscriptionsWithRegex | 0.047s |
2022-12-30 10:12:11 |
2022-12-30 10:12:11 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-12-30 10:12:11 | ------------------------------------ 2022-12-30 10:12:11 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload: { "jid": "admin@test-domain.com", "node-pattern": "(?!node-90db7c0b-b8a7-436e-b738-95617de23c81)" } 2022-12-30 10:12:11 | from localhost for action retrieve-user-subscriptions got result code 200 and payload { "nodes": [ ] } |
subscribeNodes | 1.007s |
2022-12-30 10:12:10 |
2022-12-30 10:12:10 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-12-30 10:12:10 | ------------------------------------ 2022-12-30 10:12:10 | on localhost executing action subscribe-node with content type application/json and payload: { "node": "node-90db7c0b-b8a7-436e-b738-95617de23c81", "jids": [ "admin@test-domain.com" ] } 2022-12-30 10:12:10 | from localhost for action subscribe-node got result code 200 and payload { "Note": "Operation successful" } |
unsubscribeNodes | 1.065s |
2022-12-30 10:12:11 |
2022-12-30 10:12:11 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-12-30 10:12:11 | ------------------------------------ 2022-12-30 10:12:11 | on localhost executing action unsubscribe-node with content type application/json and payload: { "node": "node-90db7c0b-b8a7-436e-b738-95617de23c81", "jids": [ "admin@test-domain.com" ] } 2022-12-30 10:12:11 | from localhost for action unsubscribe-node got result code 200 and payload { "Note": "Operation successful" } |