Test duration : 8.639s
Passed Tests | ||
---|---|---|
tigase.tests.pubsub.TestRestApiUsingJSON | ||
configureNodes | 1.093s |
2022-08-14 22:53:26 |
2022-08-14 22:53:26 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-08-14 22:53:26 | ------------------------------------ 2022-08-14 22:53:26 | [Mutex] waiting for: [configured:node:node-2e3095e2-e3a9-4ddf-9bfa-718d36b304b8:node-cc087031-0fa1-458e-875c-c1f805d6bb02] 2022-08-14 22:53:26 | [Mutex] received everything. 2022-08-14 22:53:26 | [Mutex] isItemNotified: configured:node:node-2e3095e2-e3a9-4ddf-9bfa-718d36b304b8:node-cc087031-0fa1-458e-875c-c1f805d6bb02 :: true 2022-08-14 22:53:27 | [Mutex] waiting for: [received:nodes:aecb4a08-eed4-4386-9381-8d5724d4f67c:localhost] 2022-08-14 22:53:27 | [Mutex] received everything. 2022-08-14 22:53:27 | [Mutex] isItemNotified: received:node:aecb4a08-eed4-4386-9381-8d5724d4f67c:localhost:node-2e3095e2-e3a9-4ddf-9bfa-718d36b304b8:Node 2e3095e2-e3a9-4ddf-9bfa-718d36b304b8 :: true 2022-08-14 22:53:27 | [Mutex] waiting for: [received:nodes:c9c59dd4-3f12-419d-b70c-8d2040cdf201:localhost] 2022-08-14 22:53:27 | [Mutex] received everything. 2022-08-14 22:53:27 | [Mutex] isItemNotified: received:node:c9c59dd4-3f12-419d-b70c-8d2040cdf201:localhost:node-2e3095e2-e3a9-4ddf-9bfa-718d36b304b8:Node 2e3095e2-e3a9-4ddf-9bfa-718d36b304b8 :: false |
createNodes | 1.577s |
2022-08-14 22:53:24 |
2022-08-14 22:53:24 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-08-14 22:53:24 | ------------------------------------ 2022-08-14 22:53:24 | on localhost executing action create-node with content type application/json and payload: { "owner": "admin@test-domain.com", "pubsub#node_type": "leaf", "node": "node-2e3095e2-e3a9-4ddf-9bfa-718d36b304b8", "pubsub#title": "Node 2e3095e2-e3a9-4ddf-9bfa-718d36b304b8" } 2022-08-14 22:53:24 | from localhost for action create-node got result code 200 and payload { "Note": "Operation successful" } 2022-08-14 22:53:25 | [Mutex] waiting for: [received:nodes:a1555d41-2142-4eab-9c2b-b0d14f56a8d1:localhost] 2022-08-14 22:53:25 | [Mutex] received everything. 2022-08-14 22:53:25 | [Mutex] isItemNotified: received:node:a1555d41-2142-4eab-9c2b-b0d14f56a8d1:localhost:node-2e3095e2-e3a9-4ddf-9bfa-718d36b304b8:Node 2e3095e2-e3a9-4ddf-9bfa-718d36b304b8 :: true |
createSubnodes | 1.020s |
2022-08-14 22:53:25 |
2022-08-14 22:53:25 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-08-14 22:53:25 | ------------------------------------ 2022-08-14 22:53:25 | on localhost executing action create-node with content type application/json and payload: { "owner": "admin@test-domain.com", "pubsub#node_type": "collection", "node": "node-cc087031-0fa1-458e-875c-c1f805d6bb02", "pubsub#title": "Node cc087031-0fa1-458e-875c-c1f805d6bb02" } 2022-08-14 22:53:25 | from localhost for action create-node got result code 200 and payload { "Note": "Operation successful" } 2022-08-14 22:53:26 | [Mutex] waiting for: [received:nodes:236f972e-32e2-427d-b8c3-eff45b304291:localhost] 2022-08-14 22:53:26 | [Mutex] waiting for: [received:nodes:236f972e-32e2-427d-b8c3-eff45b304291:localhost] 2022-08-14 22:53:26 | [Mutex] received everything. 2022-08-14 22:53:26 | [Mutex] isItemNotified: received:node:236f972e-32e2-427d-b8c3-eff45b304291:localhost:node-cc087031-0fa1-458e-875c-c1f805d6bb02:Node cc087031-0fa1-458e-875c-c1f805d6bb02 :: true |
deleteNodes | 1.023s |
2022-08-14 22:53:31 |
2022-08-14 22:53:31 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-08-14 22:53:31 | ------------------------------------ 2022-08-14 22:53:31 | on localhost executing action delete-node with content type application/json and payload: { "node": "node-cc087031-0fa1-458e-875c-c1f805d6bb02" } 2022-08-14 22:53:31 | from localhost for action delete-node got result code 200 and payload { "Note": "Operation successful" } 2022-08-14 22:53:32 | [Mutex] waiting for: [received:nodes:8130c995-aa9c-4fb1-8660-5e2e3f1beab3:localhost] 2022-08-14 22:53:32 | [Mutex] waiting for: [received:nodes:8130c995-aa9c-4fb1-8660-5e2e3f1beab3:localhost] 2022-08-14 22:53:32 | [Mutex] received everything. 2022-08-14 22:53:32 | [Mutex] isItemNotified: received:node:8130c995-aa9c-4fb1-8660-5e2e3f1beab3:localhost:node-cc087031-0fa1-458e-875c-c1f805d6bb02:Node cc087031-0fa1-458e-875c-c1f805d6bb02 :: false |
deleteSubnodes | 1.025s |
2022-08-14 22:53:30 |
2022-08-14 22:53:30 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-08-14 22:53:30 | ------------------------------------ 2022-08-14 22:53:30 | on localhost executing action delete-node with content type application/json and payload: { "node": "node-2e3095e2-e3a9-4ddf-9bfa-718d36b304b8" } 2022-08-14 22:53:30 | from localhost for action delete-node got result code 200 and payload { "Note": "Operation successful" } 2022-08-14 22:53:31 | [Mutex] waiting for: [received:nodes:75d88e3a-cf1d-42b5-bdd0-1f74f0fbaf2c:localhost] 2022-08-14 22:53:31 | [Mutex] waiting for: [received:nodes:75d88e3a-cf1d-42b5-bdd0-1f74f0fbaf2c:localhost] 2022-08-14 22:53:31 | [Mutex] waiting for: [received:nodes:75d88e3a-cf1d-42b5-bdd0-1f74f0fbaf2c:localhost] 2022-08-14 22:53:31 | [Mutex] waiting for: [received:nodes:75d88e3a-cf1d-42b5-bdd0-1f74f0fbaf2c:localhost] 2022-08-14 22:53:31 | [Mutex] received everything. 2022-08-14 22:53:31 | [Mutex] isItemNotified: received:node:75d88e3a-cf1d-42b5-bdd0-1f74f0fbaf2c:localhost:node-2e3095e2-e3a9-4ddf-9bfa-718d36b304b8:Node 2e3095e2-e3a9-4ddf-9bfa-718d36b304b8 :: false 2022-08-14 22:53:31 | [Mutex] waiting for: [received:nodes:307bb811-d826-43d9-9bd6-4ed8fba3e4c4:localhost] 2022-08-14 22:53:31 | [Mutex] received everything. 2022-08-14 22:53:31 | [Mutex] isItemNotified: received:node:307bb811-d826-43d9-9bd6-4ed8fba3e4c4:localhost:node-2e3095e2-e3a9-4ddf-9bfa-718d36b304b8:Node 2e3095e2-e3a9-4ddf-9bfa-718d36b304b8 :: false |
publishItemsToNodes | 0.056s |
2022-08-14 22:53:28 |
2022-08-14 22:53:28 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-08-14 22:53:28 | ------------------------------------ 2022-08-14 22:53:28 | on localhost executing action publish-item with content type application/json and payload: { "node": "node-2e3095e2-e3a9-4ddf-9bfa-718d36b304b8", "entry": "<test>item-e052e7a0-c268-429d-bcab-f57f22aa13ed</test>", "item-id": "item-e052e7a0-c268-429d-bcab-f57f22aa13ed" } 2022-08-14 22:53:28 | from localhost for action publish-item got result code 200 and payload { "Note": "Operation successful", "item-id": "item-e052e7a0-c268-429d-bcab-f57f22aa13ed" } 2022-08-14 22:53:28 | [Mutex] waiting for: [published:item:notifieditem-e052e7a0-c268-429d-bcab-f57f22aa13ed:admin@test-domain.com] 2022-08-14 22:53:29 | [Mutex] received everything. 2022-08-14 22:53:29 | [Mutex] isItemNotified: published:item:notifieditem-e052e7a0-c268-429d-bcab-f57f22aa13ed:admin@test-domain.com :: true |
retractItemsFromNodes | 0.059s |
2022-08-14 22:53:29 |
2022-08-14 22:53:29 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-08-14 22:53:29 | ------------------------------------ 2022-08-14 22:53:29 | on localhost executing action delete-item with content type application/json and payload: { "node": "node-2e3095e2-e3a9-4ddf-9bfa-718d36b304b8", "item-id": "item-e052e7a0-c268-429d-bcab-f57f22aa13ed" } 2022-08-14 22:53:29 | from localhost for action delete-item got result code 200 and payload { "Note": "Operation successful", "item-id": "item-e052e7a0-c268-429d-bcab-f57f22aa13ed" } 2022-08-14 22:53:29 | [Mutex] received everything. 2022-08-14 22:53:29 | [Mutex] isItemNotified: retracted:item:notifieditem-e052e7a0-c268-429d-bcab-f57f22aa13ed:admin@test-domain.com :: true |
retrieveItemsFromNodes | 0.014s |
2022-08-14 22:53:29 |
2022-08-14 22:53:29 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-08-14 22:53:29 | ------------------------------------ 2022-08-14 22:53:29 | on localhost executing action retrieve-item with content type application/json and payload: { "node": "node-2e3095e2-e3a9-4ddf-9bfa-718d36b304b8", "item-id": "item-e052e7a0-c268-429d-bcab-f57f22aa13ed" } 2022-08-14 22:53:29 | from localhost for action retrieve-item got result code 200 and payload { "title": "Retrive PubSub node item", "node": "node-2e3095e2-e3a9-4ddf-9bfa-718d36b304b8", "item-id": "item-e052e7a0-c268-429d-bcab-f57f22aa13ed", "item": [ "<item id=\"item-e052e7a0-c268-429d-bcab-f57f22aa13ed\"><test>item-e052e7a0-c268-429d-bcab-f57f22aa13ed</test></item>" ] } 2022-08-14 22:53:29 | [Mutex] notify: [retrieved:item:item-e052e7a0-c268-429d-bcab-f57f22aa13ed:payload-matches:true:localhost] 2022-08-14 22:53:29 | [Mutex] received everything. 2022-08-14 22:53:29 | [Mutex] isItemNotified: retrieved:item:item-e052e7a0-c268-429d-bcab-f57f22aa13ed:payload-matches:true:localhost :: true |
retrieveUserSubscriptions | 0.046s |
2022-08-14 22:53:29 |
2022-08-14 22:53:29 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-08-14 22:53:29 | ------------------------------------ 2022-08-14 22:53:29 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload: { "jid": "admin@test-domain.com" } 2022-08-14 22:53:29 | from localhost for action retrieve-user-subscriptions got result code 200 and payload { "nodes": [ "node-2e3095e2-e3a9-4ddf-9bfa-718d36b304b8", "test", "node-cc087031-0fa1-458e-875c-c1f805d6bb02" ] } |
retrieveUserSubscriptionsWithRegex | 0.107s |
2022-08-14 22:53:29 |
2022-08-14 22:53:29 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-08-14 22:53:29 | ------------------------------------ 2022-08-14 22:53:29 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload: { "jid": "admin@test-domain.com", "node-pattern": "(?!node-2e3095e2-e3a9-4ddf-9bfa-718d36b304b8)" } 2022-08-14 22:53:29 | from localhost for action retrieve-user-subscriptions got result code 200 and payload { "nodes": [ ] } |
subscribeNodes | 1.009s |
2022-08-14 22:53:27 |
2022-08-14 22:53:27 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-08-14 22:53:27 | ------------------------------------ 2022-08-14 22:53:27 | on localhost executing action subscribe-node with content type application/json and payload: { "node": "node-2e3095e2-e3a9-4ddf-9bfa-718d36b304b8", "jids": [ "admin@test-domain.com" ] } 2022-08-14 22:53:27 | from localhost for action subscribe-node got result code 200 and payload { "Note": "Operation successful" } |
unsubscribeNodes | 1.071s |
2022-08-14 22:53:29 |
2022-08-14 22:53:29 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-08-14 22:53:29 | ------------------------------------ 2022-08-14 22:53:29 | on localhost executing action unsubscribe-node with content type application/json and payload: { "node": "node-2e3095e2-e3a9-4ddf-9bfa-718d36b304b8", "jids": [ "admin@test-domain.com" ] } 2022-08-14 22:53:29 | from localhost for action unsubscribe-node got result code 200 and payload { "Note": "Operation successful" } |