Test duration : 8.676s
Passed Tests | ||
---|---|---|
tigase.tests.pubsub.TestRestApiUsingJSON | ||
configureNodes | 1.084s |
2022-08-02 23:07:23 |
2022-08-02 23:07:23 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-08-02 23:07:23 | ------------------------------------ 2022-08-02 23:07:23 | [Mutex] waiting for: [configured:node:node-9f741722-1a65-4c13-8ee2-cb923572e968:node-48974a0c-1dbb-4dc2-99f9-2ef974fa5fb4] 2022-08-02 23:07:23 | [Mutex] received everything. 2022-08-02 23:07:23 | [Mutex] isItemNotified: configured:node:node-9f741722-1a65-4c13-8ee2-cb923572e968:node-48974a0c-1dbb-4dc2-99f9-2ef974fa5fb4 :: true 2022-08-02 23:07:24 | [Mutex] waiting for: [received:nodes:364208ec-6417-40b0-bf7f-07d29047fe3d:localhost] 2022-08-02 23:07:24 | [Mutex] received everything. 2022-08-02 23:07:24 | [Mutex] isItemNotified: received:node:364208ec-6417-40b0-bf7f-07d29047fe3d:localhost:node-9f741722-1a65-4c13-8ee2-cb923572e968:Node 9f741722-1a65-4c13-8ee2-cb923572e968 :: true 2022-08-02 23:07:24 | [Mutex] waiting for: [received:nodes:6af76928-9191-44e4-852b-87accc481935:localhost] 2022-08-02 23:07:24 | [Mutex] received everything. 2022-08-02 23:07:24 | [Mutex] isItemNotified: received:node:6af76928-9191-44e4-852b-87accc481935:localhost:node-9f741722-1a65-4c13-8ee2-cb923572e968:Node 9f741722-1a65-4c13-8ee2-cb923572e968 :: false |
createNodes | 1.582s |
2022-08-02 23:07:20 |
2022-08-02 23:07:20 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-08-02 23:07:20 | ------------------------------------ 2022-08-02 23:07:21 | on localhost executing action create-node with content type application/json and payload: { "owner": "admin@test-domain.com", "pubsub#node_type": "leaf", "node": "node-9f741722-1a65-4c13-8ee2-cb923572e968", "pubsub#title": "Node 9f741722-1a65-4c13-8ee2-cb923572e968" } 2022-08-02 23:07:21 | from localhost for action create-node got result code 200 and payload { "Note": "Operation successful" } 2022-08-02 23:07:22 | [Mutex] waiting for: [received:nodes:ebf9bea2-f97e-41d3-87af-92e91447e605:localhost] 2022-08-02 23:07:22 | [Mutex] waiting for: [received:nodes:ebf9bea2-f97e-41d3-87af-92e91447e605:localhost] 2022-08-02 23:07:22 | [Mutex] waiting for: [received:nodes:ebf9bea2-f97e-41d3-87af-92e91447e605:localhost] 2022-08-02 23:07:22 | [Mutex] received everything. 2022-08-02 23:07:22 | [Mutex] isItemNotified: received:node:ebf9bea2-f97e-41d3-87af-92e91447e605:localhost:node-9f741722-1a65-4c13-8ee2-cb923572e968:Node 9f741722-1a65-4c13-8ee2-cb923572e968 :: true |
createSubnodes | 1.022s |
2022-08-02 23:07:22 |
2022-08-02 23:07:22 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-08-02 23:07:22 | ------------------------------------ 2022-08-02 23:07:22 | on localhost executing action create-node with content type application/json and payload: { "owner": "admin@test-domain.com", "pubsub#node_type": "collection", "node": "node-48974a0c-1dbb-4dc2-99f9-2ef974fa5fb4", "pubsub#title": "Node 48974a0c-1dbb-4dc2-99f9-2ef974fa5fb4" } 2022-08-02 23:07:22 | from localhost for action create-node got result code 200 and payload { "Note": "Operation successful" } 2022-08-02 23:07:23 | [Mutex] waiting for: [received:nodes:bd5824f0-1633-4a30-bedc-88f20efecbf5:localhost] 2022-08-02 23:07:23 | [Mutex] received everything. 2022-08-02 23:07:23 | [Mutex] isItemNotified: received:node:bd5824f0-1633-4a30-bedc-88f20efecbf5:localhost:node-48974a0c-1dbb-4dc2-99f9-2ef974fa5fb4:Node 48974a0c-1dbb-4dc2-99f9-2ef974fa5fb4 :: true |
deleteNodes | 1.026s |
2022-08-02 23:07:27 |
2022-08-02 23:07:27 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-08-02 23:07:27 | ------------------------------------ 2022-08-02 23:07:27 | on localhost executing action delete-node with content type application/json and payload: { "node": "node-48974a0c-1dbb-4dc2-99f9-2ef974fa5fb4" } 2022-08-02 23:07:28 | from localhost for action delete-node got result code 200 and payload { "Note": "Operation successful" } 2022-08-02 23:07:29 | [Mutex] waiting for: [received:nodes:33740391-d34f-4cb1-b7b9-bc403126f851:localhost] 2022-08-02 23:07:29 | [Mutex] waiting for: [received:nodes:33740391-d34f-4cb1-b7b9-bc403126f851:localhost] 2022-08-02 23:07:29 | [Mutex] received everything. 2022-08-02 23:07:29 | [Mutex] isItemNotified: received:node:33740391-d34f-4cb1-b7b9-bc403126f851:localhost:node-48974a0c-1dbb-4dc2-99f9-2ef974fa5fb4:Node 48974a0c-1dbb-4dc2-99f9-2ef974fa5fb4 :: false |
deleteSubnodes | 1.023s |
2022-08-02 23:07:26 |
2022-08-02 23:07:26 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-08-02 23:07:26 | ------------------------------------ 2022-08-02 23:07:26 | on localhost executing action delete-node with content type application/json and payload: { "node": "node-9f741722-1a65-4c13-8ee2-cb923572e968" } 2022-08-02 23:07:26 | from localhost for action delete-node got result code 200 and payload { "Note": "Operation successful" } 2022-08-02 23:07:27 | [Mutex] waiting for: [received:nodes:57e42e62-4ea1-4531-8d3f-628218f8ea1b:localhost] 2022-08-02 23:07:27 | [Mutex] received everything. 2022-08-02 23:07:27 | [Mutex] isItemNotified: received:node:57e42e62-4ea1-4531-8d3f-628218f8ea1b:localhost:node-9f741722-1a65-4c13-8ee2-cb923572e968:Node 9f741722-1a65-4c13-8ee2-cb923572e968 :: false 2022-08-02 23:07:27 | [Mutex] waiting for: [received:nodes:5740efa4-f856-49bb-9e4f-3bb19ec01369:localhost] 2022-08-02 23:07:27 | [Mutex] received everything. 2022-08-02 23:07:27 | [Mutex] isItemNotified: received:node:5740efa4-f856-49bb-9e4f-3bb19ec01369:localhost:node-9f741722-1a65-4c13-8ee2-cb923572e968:Node 9f741722-1a65-4c13-8ee2-cb923572e968 :: false |
publishItemsToNodes | 0.059s |
2022-08-02 23:07:25 |
2022-08-02 23:07:25 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-08-02 23:07:25 | ------------------------------------ 2022-08-02 23:07:25 | on localhost executing action publish-item with content type application/json and payload: { "node": "node-9f741722-1a65-4c13-8ee2-cb923572e968", "entry": "<test>item-53beade2-bf5c-4294-b244-304eec3f1f43</test>", "item-id": "item-53beade2-bf5c-4294-b244-304eec3f1f43" } 2022-08-02 23:07:25 | from localhost for action publish-item got result code 200 and payload { "Note": "Operation successful", "item-id": "item-53beade2-bf5c-4294-b244-304eec3f1f43" } 2022-08-02 23:07:25 | [Mutex] waiting for: [published:item:notifieditem-53beade2-bf5c-4294-b244-304eec3f1f43:admin@test-domain.com] 2022-08-02 23:07:25 | [Mutex] received everything. 2022-08-02 23:07:25 | [Mutex] isItemNotified: published:item:notifieditem-53beade2-bf5c-4294-b244-304eec3f1f43:admin@test-domain.com :: true |
retractItemsFromNodes | 0.059s |
2022-08-02 23:07:25 |
2022-08-02 23:07:25 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-08-02 23:07:25 | ------------------------------------ 2022-08-02 23:07:25 | on localhost executing action delete-item with content type application/json and payload: { "node": "node-9f741722-1a65-4c13-8ee2-cb923572e968", "item-id": "item-53beade2-bf5c-4294-b244-304eec3f1f43" } 2022-08-02 23:07:25 | from localhost for action delete-item got result code 200 and payload { "Note": "Operation successful", "item-id": "item-53beade2-bf5c-4294-b244-304eec3f1f43" } 2022-08-02 23:07:25 | [Mutex] received everything. 2022-08-02 23:07:25 | [Mutex] isItemNotified: retracted:item:notifieditem-53beade2-bf5c-4294-b244-304eec3f1f43:admin@test-domain.com :: true |
retrieveItemsFromNodes | 0.031s |
2022-08-02 23:07:25 |
2022-08-02 23:07:25 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-08-02 23:07:25 | ------------------------------------ 2022-08-02 23:07:25 | on localhost executing action retrieve-item with content type application/json and payload: { "node": "node-9f741722-1a65-4c13-8ee2-cb923572e968", "item-id": "item-53beade2-bf5c-4294-b244-304eec3f1f43" } 2022-08-02 23:07:25 | from localhost for action retrieve-item got result code 200 and payload { "title": "Retrive PubSub node item", "node": "node-9f741722-1a65-4c13-8ee2-cb923572e968", "item-id": "item-53beade2-bf5c-4294-b244-304eec3f1f43", "item": [ "<item id=\"item-53beade2-bf5c-4294-b244-304eec3f1f43\"><test>item-53beade2-bf5c-4294-b244-304eec3f1f43</test></item>" ] } 2022-08-02 23:07:25 | [Mutex] notify: [retrieved:item:item-53beade2-bf5c-4294-b244-304eec3f1f43:payload-matches:true:localhost] 2022-08-02 23:07:25 | [Mutex] received everything. 2022-08-02 23:07:25 | [Mutex] isItemNotified: retrieved:item:item-53beade2-bf5c-4294-b244-304eec3f1f43:payload-matches:true:localhost :: true |
retrieveUserSubscriptions | 0.060s |
2022-08-02 23:07:25 |
2022-08-02 23:07:25 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-08-02 23:07:25 | ------------------------------------ 2022-08-02 23:07:25 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload: { "jid": "admin@test-domain.com" } 2022-08-02 23:07:25 | from localhost for action retrieve-user-subscriptions got result code 200 and payload { "nodes": [ "node-9f741722-1a65-4c13-8ee2-cb923572e968", "test", "node-48974a0c-1dbb-4dc2-99f9-2ef974fa5fb4" ] } |
retrieveUserSubscriptionsWithRegex | 0.051s |
2022-08-02 23:07:25 |
2022-08-02 23:07:25 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-08-02 23:07:25 | ------------------------------------ 2022-08-02 23:07:25 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload: { "jid": "admin@test-domain.com", "node-pattern": "(?!node-9f741722-1a65-4c13-8ee2-cb923572e968)" } 2022-08-02 23:07:25 | from localhost for action retrieve-user-subscriptions got result code 200 and payload { "nodes": [ ] } |
subscribeNodes | 1.008s |
2022-08-02 23:07:24 |
2022-08-02 23:07:24 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-08-02 23:07:24 | ------------------------------------ 2022-08-02 23:07:24 | on localhost executing action subscribe-node with content type application/json and payload: { "node": "node-9f741722-1a65-4c13-8ee2-cb923572e968", "jids": [ "admin@test-domain.com" ] } 2022-08-02 23:07:24 | from localhost for action subscribe-node got result code 200 and payload { "Note": "Operation successful" } |
unsubscribeNodes | 1.067s |
2022-08-02 23:07:25 |
2022-08-02 23:07:25 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-08-02 23:07:25 | ------------------------------------ 2022-08-02 23:07:25 | on localhost executing action unsubscribe-node with content type application/json and payload: { "node": "node-9f741722-1a65-4c13-8ee2-cb923572e968", "jids": [ "admin@test-domain.com" ] } 2022-08-02 23:07:25 | from localhost for action unsubscribe-node got result code 200 and payload { "Note": "Operation successful" } |