Test duration : 8.594s
Passed Tests | ||
---|---|---|
tigase.tests.pubsub.TestRestApiUsingJSON | ||
configureNodes | 1.149s |
2022-06-29 22:33:42 |
2022-06-29 22:33:42 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-06-29 22:33:42 | ------------------------------------ 2022-06-29 22:33:42 | [Mutex] waiting for: [configured:node:node-c0d78d1f-fbb5-485a-b0cf-6d470d2ef71d:node-733598d2-a9ab-4e2c-b8f4-57f195fe73b8] 2022-06-29 22:33:42 | [Mutex] received everything. 2022-06-29 22:33:42 | [Mutex] isItemNotified: configured:node:node-c0d78d1f-fbb5-485a-b0cf-6d470d2ef71d:node-733598d2-a9ab-4e2c-b8f4-57f195fe73b8 :: true 2022-06-29 22:33:43 | [Mutex] waiting for: [received:nodes:30972fb2-e08e-455b-b34e-610dc32b412e:localhost] 2022-06-29 22:33:43 | [Mutex] received everything. 2022-06-29 22:33:43 | [Mutex] isItemNotified: received:node:30972fb2-e08e-455b-b34e-610dc32b412e:localhost:node-c0d78d1f-fbb5-485a-b0cf-6d470d2ef71d:Node c0d78d1f-fbb5-485a-b0cf-6d470d2ef71d :: true 2022-06-29 22:33:43 | [Mutex] waiting for: [received:nodes:f281c816-f3db-4df2-b923-14e1b94fa7e6:localhost] 2022-06-29 22:33:43 | [Mutex] waiting for: [received:nodes:f281c816-f3db-4df2-b923-14e1b94fa7e6:localhost] 2022-06-29 22:33:43 | [Mutex] waiting for: [received:nodes:f281c816-f3db-4df2-b923-14e1b94fa7e6:localhost] 2022-06-29 22:33:43 | [Mutex] waiting for: [received:nodes:f281c816-f3db-4df2-b923-14e1b94fa7e6:localhost] 2022-06-29 22:33:43 | [Mutex] received everything. 2022-06-29 22:33:43 | [Mutex] isItemNotified: received:node:f281c816-f3db-4df2-b923-14e1b94fa7e6:localhost:node-c0d78d1f-fbb5-485a-b0cf-6d470d2ef71d:Node c0d78d1f-fbb5-485a-b0cf-6d470d2ef71d :: false |
createNodes | 1.537s |
2022-06-29 22:33:39 |
2022-06-29 22:33:39 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-06-29 22:33:39 | ------------------------------------ 2022-06-29 22:33: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-c0d78d1f-fbb5-485a-b0cf-6d470d2ef71d", "pubsub#title": "Node c0d78d1f-fbb5-485a-b0cf-6d470d2ef71d" } 2022-06-29 22:33:40 | from localhost for action create-node got result code 200 and payload { "Note": "Operation successful" } 2022-06-29 22:33:41 | [Mutex] waiting for: [received:nodes:06c3ff7e-d5ae-4363-b4c7-9fcf9353c303:localhost] 2022-06-29 22:33:41 | [Mutex] waiting for: [received:nodes:06c3ff7e-d5ae-4363-b4c7-9fcf9353c303:localhost] 2022-06-29 22:33:41 | [Mutex] waiting for: [received:nodes:06c3ff7e-d5ae-4363-b4c7-9fcf9353c303:localhost] 2022-06-29 22:33:41 | [Mutex] received everything. 2022-06-29 22:33:41 | [Mutex] isItemNotified: received:node:06c3ff7e-d5ae-4363-b4c7-9fcf9353c303:localhost:node-c0d78d1f-fbb5-485a-b0cf-6d470d2ef71d:Node c0d78d1f-fbb5-485a-b0cf-6d470d2ef71d :: true |
createSubnodes | 1.022s |
2022-06-29 22:33:41 |
2022-06-29 22:33:41 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-06-29 22:33:41 | ------------------------------------ 2022-06-29 22:33: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-733598d2-a9ab-4e2c-b8f4-57f195fe73b8", "pubsub#title": "Node 733598d2-a9ab-4e2c-b8f4-57f195fe73b8" } 2022-06-29 22:33:41 | from localhost for action create-node got result code 200 and payload { "Note": "Operation successful" } 2022-06-29 22:33:42 | [Mutex] waiting for: [received:nodes:8c38cf20-8c06-405e-85d4-7ed1477b6df3:localhost] 2022-06-29 22:33:42 | [Mutex] waiting for: [received:nodes:8c38cf20-8c06-405e-85d4-7ed1477b6df3:localhost] 2022-06-29 22:33:42 | [Mutex] waiting for: [received:nodes:8c38cf20-8c06-405e-85d4-7ed1477b6df3:localhost] 2022-06-29 22:33:42 | [Mutex] received everything. 2022-06-29 22:33:42 | [Mutex] isItemNotified: received:node:8c38cf20-8c06-405e-85d4-7ed1477b6df3:localhost:node-733598d2-a9ab-4e2c-b8f4-57f195fe73b8:Node 733598d2-a9ab-4e2c-b8f4-57f195fe73b8 :: true |
deleteNodes | 1.018s |
2022-06-29 22:33:47 |
2022-06-29 22:33:47 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-06-29 22:33:47 | ------------------------------------ 2022-06-29 22:33:47 | on localhost executing action delete-node with content type application/json and payload: { "node": "node-733598d2-a9ab-4e2c-b8f4-57f195fe73b8" } 2022-06-29 22:33:47 | from localhost for action delete-node got result code 200 and payload { "Note": "Operation successful" } 2022-06-29 22:33:48 | [Mutex] waiting for: [received:nodes:8ea8536e-fd13-4479-9b12-397108d6e735:localhost] 2022-06-29 22:33:48 | [Mutex] waiting for: [received:nodes:8ea8536e-fd13-4479-9b12-397108d6e735:localhost] 2022-06-29 22:33:48 | [Mutex] received everything. 2022-06-29 22:33:48 | [Mutex] isItemNotified: received:node:8ea8536e-fd13-4479-9b12-397108d6e735:localhost:node-733598d2-a9ab-4e2c-b8f4-57f195fe73b8:Node 733598d2-a9ab-4e2c-b8f4-57f195fe73b8 :: false |
deleteSubnodes | 1.024s |
2022-06-29 22:33:46 |
2022-06-29 22:33:46 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-06-29 22:33:46 | ------------------------------------ 2022-06-29 22:33:46 | on localhost executing action delete-node with content type application/json and payload: { "node": "node-c0d78d1f-fbb5-485a-b0cf-6d470d2ef71d" } 2022-06-29 22:33:46 | from localhost for action delete-node got result code 200 and payload { "Note": "Operation successful" } 2022-06-29 22:33:47 | [Mutex] waiting for: [received:nodes:43a62087-cc82-426e-8044-78de23161a4c:localhost] 2022-06-29 22:33:47 | [Mutex] received everything. 2022-06-29 22:33:47 | [Mutex] isItemNotified: received:node:43a62087-cc82-426e-8044-78de23161a4c:localhost:node-c0d78d1f-fbb5-485a-b0cf-6d470d2ef71d:Node c0d78d1f-fbb5-485a-b0cf-6d470d2ef71d :: false 2022-06-29 22:33:47 | [Mutex] waiting for: [received:nodes:2a5d6575-8677-41cf-bce4-857aaaafc9a6:localhost] 2022-06-29 22:33:47 | [Mutex] received everything. 2022-06-29 22:33:47 | [Mutex] isItemNotified: received:node:2a5d6575-8677-41cf-bce4-857aaaafc9a6:localhost:node-c0d78d1f-fbb5-485a-b0cf-6d470d2ef71d:Node c0d78d1f-fbb5-485a-b0cf-6d470d2ef71d :: false |
publishItemsToNodes | 0.042s |
2022-06-29 22:33:44 |
2022-06-29 22:33:44 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-06-29 22:33:44 | ------------------------------------ 2022-06-29 22:33:44 | on localhost executing action publish-item with content type application/json and payload: { "node": "node-c0d78d1f-fbb5-485a-b0cf-6d470d2ef71d", "entry": "<test>item-2db13568-4c33-4a80-8a02-420e0c36affe</test>", "item-id": "item-2db13568-4c33-4a80-8a02-420e0c36affe" } 2022-06-29 22:33:44 | from localhost for action publish-item got result code 200 and payload { "Note": "Operation successful", "item-id": "item-2db13568-4c33-4a80-8a02-420e0c36affe" } 2022-06-29 22:33:44 | [Mutex] waiting for: [published:item:notifieditem-2db13568-4c33-4a80-8a02-420e0c36affe:admin@test-domain.com] 2022-06-29 22:33:44 | [Mutex] received everything. 2022-06-29 22:33:44 | [Mutex] isItemNotified: published:item:notifieditem-2db13568-4c33-4a80-8a02-420e0c36affe:admin@test-domain.com :: true |
retractItemsFromNodes | 0.054s |
2022-06-29 22:33:44 |
2022-06-29 22:33:44 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-06-29 22:33:44 | ------------------------------------ 2022-06-29 22:33:44 | on localhost executing action delete-item with content type application/json and payload: { "node": "node-c0d78d1f-fbb5-485a-b0cf-6d470d2ef71d", "item-id": "item-2db13568-4c33-4a80-8a02-420e0c36affe" } 2022-06-29 22:33:44 | from localhost for action delete-item got result code 200 and payload { "Note": "Operation successful", "item-id": "item-2db13568-4c33-4a80-8a02-420e0c36affe" } 2022-06-29 22:33:44 | [Mutex] received everything. 2022-06-29 22:33:44 | [Mutex] isItemNotified: retracted:item:notifieditem-2db13568-4c33-4a80-8a02-420e0c36affe:admin@test-domain.com :: true |
retrieveItemsFromNodes | 0.060s |
2022-06-29 22:33:44 |
2022-06-29 22:33:44 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-06-29 22:33:44 | ------------------------------------ 2022-06-29 22:33:44 | on localhost executing action retrieve-item with content type application/json and payload: { "node": "node-c0d78d1f-fbb5-485a-b0cf-6d470d2ef71d", "item-id": "item-2db13568-4c33-4a80-8a02-420e0c36affe" } 2022-06-29 22:33:44 | from localhost for action retrieve-item got result code 200 and payload { "title": "Retrive PubSub node item", "node": "node-c0d78d1f-fbb5-485a-b0cf-6d470d2ef71d", "item-id": "item-2db13568-4c33-4a80-8a02-420e0c36affe", "item": [ "<item id=\"item-2db13568-4c33-4a80-8a02-420e0c36affe\"><test>item-2db13568-4c33-4a80-8a02-420e0c36affe</test></item>" ] } 2022-06-29 22:33:44 | [Mutex] notify: [retrieved:item:item-2db13568-4c33-4a80-8a02-420e0c36affe:payload-matches:true:localhost] 2022-06-29 22:33:44 | [Mutex] received everything. 2022-06-29 22:33:44 | [Mutex] isItemNotified: retrieved:item:item-2db13568-4c33-4a80-8a02-420e0c36affe:payload-matches:true:localhost :: true |
retrieveUserSubscriptions | 0.050s |
2022-06-29 22:33:44 |
2022-06-29 22:33:44 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-06-29 22:33:44 | ------------------------------------ 2022-06-29 22:33:44 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload: { "jid": "admin@test-domain.com" } 2022-06-29 22:33:44 | from localhost for action retrieve-user-subscriptions got result code 200 and payload { "nodes": [ "test", "node-c0d78d1f-fbb5-485a-b0cf-6d470d2ef71d", "node-733598d2-a9ab-4e2c-b8f4-57f195fe73b8" ] } |
retrieveUserSubscriptionsWithRegex | 0.048s |
2022-06-29 22:33:44 |
2022-06-29 22:33:44 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-06-29 22:33:44 | ------------------------------------ 2022-06-29 22:33:44 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload: { "jid": "admin@test-domain.com", "node-pattern": "(?!node-c0d78d1f-fbb5-485a-b0cf-6d470d2ef71d)" } 2022-06-29 22:33:44 | from localhost for action retrieve-user-subscriptions got result code 200 and payload { "nodes": [ ] } |
subscribeNodes | 1.011s |
2022-06-29 22:33:43 |
2022-06-29 22:33:43 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-06-29 22:33:43 | ------------------------------------ 2022-06-29 22:33:43 | on localhost executing action subscribe-node with content type application/json and payload: { "node": "node-c0d78d1f-fbb5-485a-b0cf-6d470d2ef71d", "jids": [ "admin@test-domain.com" ] } 2022-06-29 22:33:43 | from localhost for action subscribe-node got result code 200 and payload { "Note": "Operation successful" } |
unsubscribeNodes | 1.076s |
2022-06-29 22:33:44 |
2022-06-29 22:33:44 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-06-29 22:33:44 | ------------------------------------ 2022-06-29 22:33:44 | on localhost executing action unsubscribe-node with content type application/json and payload: { "node": "node-c0d78d1f-fbb5-485a-b0cf-6d470d2ef71d", "jids": [ "admin@test-domain.com" ] } 2022-06-29 22:33:45 | from localhost for action unsubscribe-node got result code 200 and payload { "Note": "Operation successful" } |