Test duration : 9.067s
Passed Tests | ||
---|---|---|
tigase.tests.pubsub.TestRestApiUsingJSON | ||
configureNodes | 1.121s |
2022-02-20 22:02:09 |
2022-02-20 22:02:09 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-02-20 22:02:09 | ------------------------------------ 2022-02-20 22:02:09 | [Mutex] waiting for: [configured:node:node-5eced76a-ef17-46f4-b1d6-680e6959f2c5:node-e6f68c84-5366-4559-8bbb-f97f514bab17] 2022-02-20 22:02:09 | [Mutex] received everything. 2022-02-20 22:02:09 | [Mutex] isItemNotified: configured:node:node-5eced76a-ef17-46f4-b1d6-680e6959f2c5:node-e6f68c84-5366-4559-8bbb-f97f514bab17 :: true 2022-02-20 22:02:10 | [Mutex] waiting for: [received:nodes:8ffc5a43-064b-4a39-8cbf-53914a4811a1:localhost] 2022-02-20 22:02:10 | [Mutex] received everything. 2022-02-20 22:02:10 | [Mutex] isItemNotified: received:node:8ffc5a43-064b-4a39-8cbf-53914a4811a1:localhost:node-5eced76a-ef17-46f4-b1d6-680e6959f2c5:Node 5eced76a-ef17-46f4-b1d6-680e6959f2c5 :: true 2022-02-20 22:02:10 | [Mutex] waiting for: [received:nodes:71fa8022-f49e-439c-beb9-09145f3412e2:localhost] 2022-02-20 22:02:10 | [Mutex] received everything. 2022-02-20 22:02:10 | [Mutex] isItemNotified: received:node:71fa8022-f49e-439c-beb9-09145f3412e2:localhost:node-5eced76a-ef17-46f4-b1d6-680e6959f2c5:Node 5eced76a-ef17-46f4-b1d6-680e6959f2c5 :: false |
createNodes | 1.684s |
2022-02-20 22:02:06 |
2022-02-20 22:02:06 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-02-20 22:02:06 | ------------------------------------ 2022-02-20 22:02: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-5eced76a-ef17-46f4-b1d6-680e6959f2c5", "pubsub#title": "Node 5eced76a-ef17-46f4-b1d6-680e6959f2c5" } 2022-02-20 22:02:07 | from localhost for action create-node got result code 200 and payload { "Note": "Operation successful" } 2022-02-20 22:02:08 | [Mutex] waiting for: [received:nodes:5cb1fbc4-62bf-4c06-80e8-e3496757b9f4:localhost] 2022-02-20 22:02:08 | [Mutex] waiting for: [received:nodes:5cb1fbc4-62bf-4c06-80e8-e3496757b9f4:localhost] 2022-02-20 22:02:08 | [Mutex] waiting for: [received:nodes:5cb1fbc4-62bf-4c06-80e8-e3496757b9f4:localhost] 2022-02-20 22:02:08 | [Mutex] received everything. 2022-02-20 22:02:08 | [Mutex] isItemNotified: received:node:5cb1fbc4-62bf-4c06-80e8-e3496757b9f4:localhost:node-5eced76a-ef17-46f4-b1d6-680e6959f2c5:Node 5eced76a-ef17-46f4-b1d6-680e6959f2c5 :: true |
createSubnodes | 1.024s |
2022-02-20 22:02:08 |
2022-02-20 22:02:08 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-02-20 22:02:08 | ------------------------------------ 2022-02-20 22:02: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-e6f68c84-5366-4559-8bbb-f97f514bab17", "pubsub#title": "Node e6f68c84-5366-4559-8bbb-f97f514bab17" } 2022-02-20 22:02:08 | from localhost for action create-node got result code 200 and payload { "Note": "Operation successful" } 2022-02-20 22:02:09 | [Mutex] waiting for: [received:nodes:f1d5f2ad-d07a-4175-9ec1-31516e7092c3:localhost] 2022-02-20 22:02:09 | [Mutex] received everything. 2022-02-20 22:02:09 | [Mutex] isItemNotified: received:node:f1d5f2ad-d07a-4175-9ec1-31516e7092c3:localhost:node-e6f68c84-5366-4559-8bbb-f97f514bab17:Node e6f68c84-5366-4559-8bbb-f97f514bab17 :: true |
deleteNodes | 1.023s |
2022-02-20 22:02:13 |
2022-02-20 22:02:13 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-02-20 22:02:13 | ------------------------------------ 2022-02-20 22:02:13 | on localhost executing action delete-node with content type application/json and payload: { "node": "node-e6f68c84-5366-4559-8bbb-f97f514bab17" } 2022-02-20 22:02:13 | from localhost for action delete-node got result code 200 and payload { "Note": "Operation successful" } 2022-02-20 22:02:14 | [Mutex] waiting for: [received:nodes:a544d013-84eb-4b2c-9c1b-77d357426062:localhost] 2022-02-20 22:02:14 | [Mutex] waiting for: [received:nodes:a544d013-84eb-4b2c-9c1b-77d357426062:localhost] 2022-02-20 22:02:14 | [Mutex] received everything. 2022-02-20 22:02:14 | [Mutex] isItemNotified: received:node:a544d013-84eb-4b2c-9c1b-77d357426062:localhost:node-e6f68c84-5366-4559-8bbb-f97f514bab17:Node e6f68c84-5366-4559-8bbb-f97f514bab17 :: false |
deleteSubnodes | 1.028s |
2022-02-20 22:02:12 |
2022-02-20 22:02:12 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-02-20 22:02:12 | ------------------------------------ 2022-02-20 22:02:12 | on localhost executing action delete-node with content type application/json and payload: { "node": "node-5eced76a-ef17-46f4-b1d6-680e6959f2c5" } 2022-02-20 22:02:12 | from localhost for action delete-node got result code 200 and payload { "Note": "Operation successful" } 2022-02-20 22:02:13 | [Mutex] waiting for: [received:nodes:c8edaa9b-b978-418c-8443-2e50d171a800:localhost] 2022-02-20 22:02:13 | [Mutex] received everything. 2022-02-20 22:02:13 | [Mutex] isItemNotified: received:node:c8edaa9b-b978-418c-8443-2e50d171a800:localhost:node-5eced76a-ef17-46f4-b1d6-680e6959f2c5:Node 5eced76a-ef17-46f4-b1d6-680e6959f2c5 :: false 2022-02-20 22:02:13 | [Mutex] waiting for: [received:nodes:75e85fff-63f6-4355-b0d5-ae73eb810f48:localhost] 2022-02-20 22:02:13 | [Mutex] received everything. 2022-02-20 22:02:13 | [Mutex] isItemNotified: received:node:75e85fff-63f6-4355-b0d5-ae73eb810f48:localhost:node-5eced76a-ef17-46f4-b1d6-680e6959f2c5:Node 5eced76a-ef17-46f4-b1d6-680e6959f2c5 :: false |
publishItemsToNodes | 0.051s |
2022-02-20 22:02:11 |
2022-02-20 22:02:11 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-02-20 22:02:11 | ------------------------------------ 2022-02-20 22:02:11 | on localhost executing action publish-item with content type application/json and payload: { "node": "node-5eced76a-ef17-46f4-b1d6-680e6959f2c5", "entry": "<test>item-ab2e52d4-bd50-4d74-87c0-24eae0631626</test>", "item-id": "item-ab2e52d4-bd50-4d74-87c0-24eae0631626" } 2022-02-20 22:02:11 | from localhost for action publish-item got result code 200 and payload { "Note": "Operation successful", "item-id": "item-ab2e52d4-bd50-4d74-87c0-24eae0631626" } 2022-02-20 22:02:11 | [Mutex] waiting for: [published:item:notifieditem-ab2e52d4-bd50-4d74-87c0-24eae0631626:admin@test-domain.com] 2022-02-20 22:02:11 | [Mutex] received everything. 2022-02-20 22:02:11 | [Mutex] isItemNotified: published:item:notifieditem-ab2e52d4-bd50-4d74-87c0-24eae0631626:admin@test-domain.com :: true |
retractItemsFromNodes | 0.068s |
2022-02-20 22:02:11 |
2022-02-20 22:02:11 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-02-20 22:02:11 | ------------------------------------ 2022-02-20 22:02:11 | on localhost executing action delete-item with content type application/json and payload: { "node": "node-5eced76a-ef17-46f4-b1d6-680e6959f2c5", "item-id": "item-ab2e52d4-bd50-4d74-87c0-24eae0631626" } 2022-02-20 22:02:11 | from localhost for action delete-item got result code 200 and payload { "Note": "Operation successful", "item-id": "item-ab2e52d4-bd50-4d74-87c0-24eae0631626" } 2022-02-20 22:02:11 | [Mutex] received everything. 2022-02-20 22:02:11 | [Mutex] isItemNotified: retracted:item:notifieditem-ab2e52d4-bd50-4d74-87c0-24eae0631626:admin@test-domain.com :: true |
retrieveItemsFromNodes | 0.068s |
2022-02-20 22:02:11 |
2022-02-20 22:02:11 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-02-20 22:02:11 | ------------------------------------ 2022-02-20 22:02:11 | on localhost executing action retrieve-item with content type application/json and payload: { "node": "node-5eced76a-ef17-46f4-b1d6-680e6959f2c5", "item-id": "item-ab2e52d4-bd50-4d74-87c0-24eae0631626" } 2022-02-20 22:02:11 | from localhost for action retrieve-item got result code 200 and payload { "title": "Retrive PubSub node item", "node": "node-5eced76a-ef17-46f4-b1d6-680e6959f2c5", "item-id": "item-ab2e52d4-bd50-4d74-87c0-24eae0631626", "item": [ "<item id=\"item-ab2e52d4-bd50-4d74-87c0-24eae0631626\"><test>item-ab2e52d4-bd50-4d74-87c0-24eae0631626</test></item>" ] } 2022-02-20 22:02:11 | [Mutex] notify: [retrieved:item:item-ab2e52d4-bd50-4d74-87c0-24eae0631626:payload-matches:true:localhost] 2022-02-20 22:02:11 | [Mutex] received everything. 2022-02-20 22:02:11 | [Mutex] isItemNotified: retrieved:item:item-ab2e52d4-bd50-4d74-87c0-24eae0631626:payload-matches:true:localhost :: true |
retrieveUserSubscriptions | 0.055s |
2022-02-20 22:02:11 |
2022-02-20 22:02:11 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-02-20 22:02:11 | ------------------------------------ 2022-02-20 22:02:11 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload: { "jid": "admin@test-domain.com" } 2022-02-20 22:02:11 | from localhost for action retrieve-user-subscriptions got result code 200 and payload { "nodes": [ "node-5eced76a-ef17-46f4-b1d6-680e6959f2c5", "node-e6f68c84-5366-4559-8bbb-f97f514bab17", "test" ] } |
retrieveUserSubscriptionsWithRegex | 0.050s |
2022-02-20 22:02:11 |
2022-02-20 22:02:11 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-02-20 22:02:11 | ------------------------------------ 2022-02-20 22:02:11 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload: { "jid": "admin@test-domain.com", "node-pattern": "(?!node-5eced76a-ef17-46f4-b1d6-680e6959f2c5)" } 2022-02-20 22:02:11 | from localhost for action retrieve-user-subscriptions got result code 200 and payload { "nodes": [ ] } |
subscribeNodes | 1.012s |
2022-02-20 22:02:10 |
2022-02-20 22:02:10 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-02-20 22:02:10 | ------------------------------------ 2022-02-20 22:02:10 | on localhost executing action subscribe-node with content type application/json and payload: { "node": "node-5eced76a-ef17-46f4-b1d6-680e6959f2c5", "jids": [ "admin@test-domain.com" ] } 2022-02-20 22:02:10 | from localhost for action subscribe-node got result code 200 and payload { "Note": "Operation successful" } |
unsubscribeNodes | 1.079s |
2022-02-20 22:02:11 |
2022-02-20 22:02:11 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-02-20 22:02:11 | ------------------------------------ 2022-02-20 22:02:11 | on localhost executing action unsubscribe-node with content type application/json and payload: { "node": "node-5eced76a-ef17-46f4-b1d6-680e6959f2c5", "jids": [ "admin@test-domain.com" ] } 2022-02-20 22:02:11 | from localhost for action unsubscribe-node got result code 200 and payload { "Note": "Operation successful" } |