Test duration : 8.870s
Passed Tests | ||
---|---|---|
tigase.tests.pubsub.TestRestApiUsingJSON | ||
configureNodes | 1.115s |
2022-02-03 21:57:57 |
2022-02-03 21:57:57 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-02-03 21:57:57 | ------------------------------------ 2022-02-03 21:57:57 | [Mutex] waiting for: [configured:node:node-83a6c138-7701-4d0a-ba9d-a0aef2379d3f:node-e20036a0-34c0-4e14-ac5f-7e84d6a0344d] 2022-02-03 21:57:57 | [Mutex] received everything. 2022-02-03 21:57:57 | [Mutex] isItemNotified: configured:node:node-83a6c138-7701-4d0a-ba9d-a0aef2379d3f:node-e20036a0-34c0-4e14-ac5f-7e84d6a0344d :: true 2022-02-03 21:57:58 | [Mutex] waiting for: [received:nodes:375780f8-fe0e-4278-9ffc-14b6a0ff50cb:localhost] 2022-02-03 21:57:58 | [Mutex] waiting for: [received:nodes:375780f8-fe0e-4278-9ffc-14b6a0ff50cb:localhost] 2022-02-03 21:57:58 | [Mutex] received everything. 2022-02-03 21:57:58 | [Mutex] isItemNotified: received:node:375780f8-fe0e-4278-9ffc-14b6a0ff50cb:localhost:node-83a6c138-7701-4d0a-ba9d-a0aef2379d3f:Node 83a6c138-7701-4d0a-ba9d-a0aef2379d3f :: true 2022-02-03 21:57:58 | [Mutex] waiting for: [received:nodes:3dda1583-8655-44fd-a2f9-6eb868d55f42:localhost] 2022-02-03 21:57:58 | [Mutex] received everything. 2022-02-03 21:57:58 | [Mutex] isItemNotified: received:node:3dda1583-8655-44fd-a2f9-6eb868d55f42:localhost:node-83a6c138-7701-4d0a-ba9d-a0aef2379d3f:Node 83a6c138-7701-4d0a-ba9d-a0aef2379d3f :: false |
createNodes | 1.544s |
2022-02-03 21:57:54 |
2022-02-03 21:57:54 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-02-03 21:57:54 | ------------------------------------ 2022-02-03 21:57:55 | on localhost executing action create-node with content type application/json and payload: { "owner": "admin@test-domain.com", "pubsub#node_type": "leaf", "node": "node-83a6c138-7701-4d0a-ba9d-a0aef2379d3f", "pubsub#title": "Node 83a6c138-7701-4d0a-ba9d-a0aef2379d3f" } 2022-02-03 21:57:55 | from localhost for action create-node got result code 200 and payload { "Note": "Operation successful" } 2022-02-03 21:57:56 | [Mutex] waiting for: [received:nodes:15d480f3-b9e5-44f8-a66d-ad052882e39e:localhost] 2022-02-03 21:57:56 | [Mutex] waiting for: [received:nodes:15d480f3-b9e5-44f8-a66d-ad052882e39e:localhost] 2022-02-03 21:57:56 | [Mutex] received everything. 2022-02-03 21:57:56 | [Mutex] isItemNotified: received:node:15d480f3-b9e5-44f8-a66d-ad052882e39e:localhost:node-83a6c138-7701-4d0a-ba9d-a0aef2379d3f:Node 83a6c138-7701-4d0a-ba9d-a0aef2379d3f :: true |
createSubnodes | 1.033s |
2022-02-03 21:57:56 |
2022-02-03 21:57:56 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-02-03 21:57:56 | ------------------------------------ 2022-02-03 21:57:56 | on localhost executing action create-node with content type application/json and payload: { "owner": "admin@test-domain.com", "pubsub#node_type": "collection", "node": "node-e20036a0-34c0-4e14-ac5f-7e84d6a0344d", "pubsub#title": "Node e20036a0-34c0-4e14-ac5f-7e84d6a0344d" } 2022-02-03 21:57:56 | from localhost for action create-node got result code 200 and payload { "Note": "Operation successful" } 2022-02-03 21:57:57 | [Mutex] waiting for: [received:nodes:3270e72e-119b-419c-a8cc-b8b0646ea106:localhost] 2022-02-03 21:57:57 | [Mutex] received everything. 2022-02-03 21:57:57 | [Mutex] isItemNotified: received:node:3270e72e-119b-419c-a8cc-b8b0646ea106:localhost:node-e20036a0-34c0-4e14-ac5f-7e84d6a0344d:Node e20036a0-34c0-4e14-ac5f-7e84d6a0344d :: true |
deleteNodes | 1.017s |
2022-02-03 21:58:02 |
2022-02-03 21:58:02 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-02-03 21:58:02 | ------------------------------------ 2022-02-03 21:58:02 | on localhost executing action delete-node with content type application/json and payload: { "node": "node-e20036a0-34c0-4e14-ac5f-7e84d6a0344d" } 2022-02-03 21:58:02 | from localhost for action delete-node got result code 200 and payload { "Note": "Operation successful" } 2022-02-03 21:58:03 | [Mutex] waiting for: [received:nodes:87455005-5cf1-46dc-ad39-8d8702b44ec3:localhost] 2022-02-03 21:58:03 | [Mutex] received everything. 2022-02-03 21:58:03 | [Mutex] isItemNotified: received:node:87455005-5cf1-46dc-ad39-8d8702b44ec3:localhost:node-e20036a0-34c0-4e14-ac5f-7e84d6a0344d:Node e20036a0-34c0-4e14-ac5f-7e84d6a0344d :: false |
deleteSubnodes | 1.027s |
2022-02-03 21:58:01 |
2022-02-03 21:58:01 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-02-03 21:58:01 | ------------------------------------ 2022-02-03 21:58:01 | on localhost executing action delete-node with content type application/json and payload: { "node": "node-83a6c138-7701-4d0a-ba9d-a0aef2379d3f" } 2022-02-03 21:58:01 | from localhost for action delete-node got result code 200 and payload { "Note": "Operation successful" } 2022-02-03 21:58:02 | [Mutex] waiting for: [received:nodes:71cf494a-416d-4c9e-9ba1-f7e3858dbd02:localhost] 2022-02-03 21:58:02 | [Mutex] received everything. 2022-02-03 21:58:02 | [Mutex] isItemNotified: received:node:71cf494a-416d-4c9e-9ba1-f7e3858dbd02:localhost:node-83a6c138-7701-4d0a-ba9d-a0aef2379d3f:Node 83a6c138-7701-4d0a-ba9d-a0aef2379d3f :: false 2022-02-03 21:58:02 | [Mutex] waiting for: [received:nodes:f56e0611-c82f-4fdf-aa37-9f186805f3c1:localhost] 2022-02-03 21:58:02 | [Mutex] received everything. 2022-02-03 21:58:02 | [Mutex] isItemNotified: received:node:f56e0611-c82f-4fdf-aa37-9f186805f3c1:localhost:node-83a6c138-7701-4d0a-ba9d-a0aef2379d3f:Node 83a6c138-7701-4d0a-ba9d-a0aef2379d3f :: false |
publishItemsToNodes | 0.062s |
2022-02-03 21:57:59 |
2022-02-03 21:57:59 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-02-03 21:57:59 | ------------------------------------ 2022-02-03 21:57:59 | on localhost executing action publish-item with content type application/json and payload: { "node": "node-83a6c138-7701-4d0a-ba9d-a0aef2379d3f", "entry": "<test>item-e87cf7dd-0ce3-42a5-9a9d-fe09c9dd69fb</test>", "item-id": "item-e87cf7dd-0ce3-42a5-9a9d-fe09c9dd69fb" } 2022-02-03 21:57:59 | from localhost for action publish-item got result code 200 and payload { "Note": "Operation successful", "item-id": "item-e87cf7dd-0ce3-42a5-9a9d-fe09c9dd69fb" } 2022-02-03 21:57:59 | [Mutex] waiting for: [published:item:notifieditem-e87cf7dd-0ce3-42a5-9a9d-fe09c9dd69fb:admin@test-domain.com] 2022-02-03 21:57:59 | [Mutex] received everything. 2022-02-03 21:57:59 | [Mutex] isItemNotified: published:item:notifieditem-e87cf7dd-0ce3-42a5-9a9d-fe09c9dd69fb:admin@test-domain.com :: true |
retractItemsFromNodes | 0.059s |
2022-02-03 21:57:59 |
2022-02-03 21:57:59 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-02-03 21:57:59 | ------------------------------------ 2022-02-03 21:57:59 | on localhost executing action delete-item with content type application/json and payload: { "node": "node-83a6c138-7701-4d0a-ba9d-a0aef2379d3f", "item-id": "item-e87cf7dd-0ce3-42a5-9a9d-fe09c9dd69fb" } 2022-02-03 21:57:59 | from localhost for action delete-item got result code 200 and payload { "Note": "Operation successful", "item-id": "item-e87cf7dd-0ce3-42a5-9a9d-fe09c9dd69fb" } 2022-02-03 21:57:59 | [Mutex] received everything. 2022-02-03 21:57:59 | [Mutex] isItemNotified: retracted:item:notifieditem-e87cf7dd-0ce3-42a5-9a9d-fe09c9dd69fb:admin@test-domain.com :: true |
retrieveItemsFromNodes | 0.036s |
2022-02-03 21:57:59 |
2022-02-03 21:57:59 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-02-03 21:57:59 | ------------------------------------ 2022-02-03 21:57:59 | on localhost executing action retrieve-item with content type application/json and payload: { "node": "node-83a6c138-7701-4d0a-ba9d-a0aef2379d3f", "item-id": "item-e87cf7dd-0ce3-42a5-9a9d-fe09c9dd69fb" } 2022-02-03 21:57:59 | from localhost for action retrieve-item got result code 200 and payload { "title": "Retrive PubSub node item", "node": "node-83a6c138-7701-4d0a-ba9d-a0aef2379d3f", "item-id": "item-e87cf7dd-0ce3-42a5-9a9d-fe09c9dd69fb", "item": [ "<item id=\"item-e87cf7dd-0ce3-42a5-9a9d-fe09c9dd69fb\"><test>item-e87cf7dd-0ce3-42a5-9a9d-fe09c9dd69fb</test></item>" ] } 2022-02-03 21:57:59 | [Mutex] notify: [retrieved:item:item-e87cf7dd-0ce3-42a5-9a9d-fe09c9dd69fb:payload-matches:true:localhost] 2022-02-03 21:57:59 | [Mutex] received everything. 2022-02-03 21:57:59 | [Mutex] isItemNotified: retrieved:item:item-e87cf7dd-0ce3-42a5-9a9d-fe09c9dd69fb:payload-matches:true:localhost :: true |
retrieveUserSubscriptions | 0.049s |
2022-02-03 21:57:59 |
2022-02-03 21:57:59 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-02-03 21:57:59 | ------------------------------------ 2022-02-03 21:57:59 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload: { "jid": "admin@test-domain.com" } 2022-02-03 21:57:59 | from localhost for action retrieve-user-subscriptions got result code 200 and payload { "nodes": [ "node-e20036a0-34c0-4e14-ac5f-7e84d6a0344d", "test", "node-83a6c138-7701-4d0a-ba9d-a0aef2379d3f" ] } |
retrieveUserSubscriptionsWithRegex | 0.052s |
2022-02-03 21:57:59 |
2022-02-03 21:57:59 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-02-03 21:57:59 | ------------------------------------ 2022-02-03 21:57:59 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload: { "jid": "admin@test-domain.com", "node-pattern": "(?!node-83a6c138-7701-4d0a-ba9d-a0aef2379d3f)" } 2022-02-03 21:57:59 | from localhost for action retrieve-user-subscriptions got result code 200 and payload { "nodes": [ ] } |
subscribeNodes | 1.010s |
2022-02-03 21:57:58 |
2022-02-03 21:57:58 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-02-03 21:57:58 | ------------------------------------ 2022-02-03 21:57:58 | on localhost executing action subscribe-node with content type application/json and payload: { "node": "node-83a6c138-7701-4d0a-ba9d-a0aef2379d3f", "jids": [ "admin@test-domain.com" ] } 2022-02-03 21:57:58 | from localhost for action subscribe-node got result code 200 and payload { "Note": "Operation successful" } |
unsubscribeNodes | 1.143s |
2022-02-03 21:57:59 |
2022-02-03 21:57:59 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-02-03 21:57:59 | ------------------------------------ 2022-02-03 21:57:59 | on localhost executing action unsubscribe-node with content type application/json and payload: { "node": "node-83a6c138-7701-4d0a-ba9d-a0aef2379d3f", "jids": [ "admin@test-domain.com" ] } 2022-02-03 21:58:00 | from localhost for action unsubscribe-node got result code 200 and payload { "Note": "Operation successful" } |