Test duration : 8.562s
Passed Tests | ||
---|---|---|
tigase.tests.pubsub.TestRestApiUsingJSON | ||
configureNodes | 1.102s |
2023-06-20 22:30:37 |
2023-06-20 22:30:37 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2023-06-20 22:30:37 | ------------------------------------ 2023-06-20 22:30:37 | [Mutex] waiting for: [configured:node:node-90dc1a46-aac9-409f-9a35-ebec9f4ea1b0:node-3aeb6214-18ca-4bbe-af16-1d5b9d8fce66] 2023-06-20 22:30:37 | [Mutex] received everything. 2023-06-20 22:30:37 | [Mutex] isItemNotified: configured:node:node-90dc1a46-aac9-409f-9a35-ebec9f4ea1b0:node-3aeb6214-18ca-4bbe-af16-1d5b9d8fce66 :: true 2023-06-20 22:30:38 | [Mutex] waiting for: [received:nodes:dde69bda-da1d-4b86-8cbc-774d539f5cef:localhost] 2023-06-20 22:30:39 | [Mutex] received everything. 2023-06-20 22:30:39 | [Mutex] isItemNotified: received:node:dde69bda-da1d-4b86-8cbc-774d539f5cef:localhost:node-90dc1a46-aac9-409f-9a35-ebec9f4ea1b0:Node 90dc1a46-aac9-409f-9a35-ebec9f4ea1b0 :: true 2023-06-20 22:30:39 | [Mutex] waiting for: [received:nodes:990f941e-cd4f-465c-9948-24645c21e25c:localhost] 2023-06-20 22:30:39 | [Mutex] waiting for: [received:nodes:990f941e-cd4f-465c-9948-24645c21e25c:localhost] 2023-06-20 22:30:39 | [Mutex] waiting for: [received:nodes:990f941e-cd4f-465c-9948-24645c21e25c:localhost] 2023-06-20 22:30:39 | [Mutex] waiting for: [received:nodes:990f941e-cd4f-465c-9948-24645c21e25c:localhost] 2023-06-20 22:30:39 | [Mutex] received everything. 2023-06-20 22:30:39 | [Mutex] isItemNotified: received:node:990f941e-cd4f-465c-9948-24645c21e25c:localhost:node-90dc1a46-aac9-409f-9a35-ebec9f4ea1b0:Node 90dc1a46-aac9-409f-9a35-ebec9f4ea1b0 :: false |
createNodes | 1.621s |
2023-06-20 22:30:35 |
2023-06-20 22:30:35 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2023-06-20 22:30:35 | ------------------------------------ 2023-06-20 22:30:35 | on localhost executing action create-node with content type application/json and payload: { "owner": "admin@test-domain.com", "pubsub#node_type": "leaf", "node": "node-90dc1a46-aac9-409f-9a35-ebec9f4ea1b0", "pubsub#title": "Node 90dc1a46-aac9-409f-9a35-ebec9f4ea1b0" } 2023-06-20 22:30:35 | from localhost for action create-node got result code 200 and payload { "Note": "Operation successful" } 2023-06-20 22:30:36 | [Mutex] waiting for: [received:nodes:fefbc735-57c6-4e92-9e25-b5fc8b3aafbc:localhost] 2023-06-20 22:30:36 | [Mutex] waiting for: [received:nodes:fefbc735-57c6-4e92-9e25-b5fc8b3aafbc:localhost] 2023-06-20 22:30:36 | [Mutex] waiting for: [received:nodes:fefbc735-57c6-4e92-9e25-b5fc8b3aafbc:localhost] 2023-06-20 22:30:36 | [Mutex] waiting for: [received:nodes:fefbc735-57c6-4e92-9e25-b5fc8b3aafbc:localhost] 2023-06-20 22:30:36 | [Mutex] received everything. 2023-06-20 22:30:36 | [Mutex] isItemNotified: received:node:fefbc735-57c6-4e92-9e25-b5fc8b3aafbc:localhost:node-90dc1a46-aac9-409f-9a35-ebec9f4ea1b0:Node 90dc1a46-aac9-409f-9a35-ebec9f4ea1b0 :: true |
createSubnodes | 1.022s |
2023-06-20 22:30:36 |
2023-06-20 22:30:36 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2023-06-20 22:30:36 | ------------------------------------ 2023-06-20 22:30:36 | on localhost executing action create-node with content type application/json and payload: { "owner": "admin@test-domain.com", "pubsub#node_type": "collection", "node": "node-3aeb6214-18ca-4bbe-af16-1d5b9d8fce66", "pubsub#title": "Node 3aeb6214-18ca-4bbe-af16-1d5b9d8fce66" } 2023-06-20 22:30:36 | from localhost for action create-node got result code 200 and payload { "Note": "Operation successful" } 2023-06-20 22:30:37 | [Mutex] waiting for: [received:nodes:530deb4d-4f5d-472f-921e-cddfc97e4c7f:localhost] 2023-06-20 22:30:37 | [Mutex] waiting for: [received:nodes:530deb4d-4f5d-472f-921e-cddfc97e4c7f:localhost] 2023-06-20 22:30:37 | [Mutex] received everything. 2023-06-20 22:30:37 | [Mutex] isItemNotified: received:node:530deb4d-4f5d-472f-921e-cddfc97e4c7f:localhost:node-3aeb6214-18ca-4bbe-af16-1d5b9d8fce66:Node 3aeb6214-18ca-4bbe-af16-1d5b9d8fce66 :: true |
deleteNodes | 1.021s |
2023-06-20 22:30:42 |
2023-06-20 22:30:42 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2023-06-20 22:30:42 | ------------------------------------ 2023-06-20 22:30:42 | on localhost executing action delete-node with content type application/json and payload: { "node": "node-3aeb6214-18ca-4bbe-af16-1d5b9d8fce66" } 2023-06-20 22:30:42 | from localhost for action delete-node got result code 200 and payload { "Note": "Operation successful" } 2023-06-20 22:30:43 | [Mutex] waiting for: [received:nodes:61f94a84-27c8-4086-aa3e-91ccdc22a31e:localhost] 2023-06-20 22:30:43 | [Mutex] waiting for: [received:nodes:61f94a84-27c8-4086-aa3e-91ccdc22a31e:localhost] 2023-06-20 22:30:43 | [Mutex] waiting for: [received:nodes:61f94a84-27c8-4086-aa3e-91ccdc22a31e:localhost] 2023-06-20 22:30:43 | [Mutex] received everything. 2023-06-20 22:30:43 | [Mutex] isItemNotified: received:node:61f94a84-27c8-4086-aa3e-91ccdc22a31e:localhost:node-3aeb6214-18ca-4bbe-af16-1d5b9d8fce66:Node 3aeb6214-18ca-4bbe-af16-1d5b9d8fce66 :: false |
deleteSubnodes | 1.029s |
2023-06-20 22:30:41 |
2023-06-20 22:30:41 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2023-06-20 22:30:41 | ------------------------------------ 2023-06-20 22:30:41 | on localhost executing action delete-node with content type application/json and payload: { "node": "node-90dc1a46-aac9-409f-9a35-ebec9f4ea1b0" } 2023-06-20 22:30:41 | from localhost for action delete-node got result code 200 and payload { "Note": "Operation successful" } 2023-06-20 22:30:42 | [Mutex] waiting for: [received:nodes:a5d87d2e-ffd4-4920-bde5-e032a5310fee:localhost] 2023-06-20 22:30:42 | [Mutex] waiting for: [received:nodes:a5d87d2e-ffd4-4920-bde5-e032a5310fee:localhost] 2023-06-20 22:30:42 | [Mutex] waiting for: [received:nodes:a5d87d2e-ffd4-4920-bde5-e032a5310fee:localhost] 2023-06-20 22:30:42 | [Mutex] waiting for: [received:nodes:a5d87d2e-ffd4-4920-bde5-e032a5310fee:localhost] 2023-06-20 22:30:42 | [Mutex] received everything. 2023-06-20 22:30:42 | [Mutex] isItemNotified: received:node:a5d87d2e-ffd4-4920-bde5-e032a5310fee:localhost:node-90dc1a46-aac9-409f-9a35-ebec9f4ea1b0:Node 90dc1a46-aac9-409f-9a35-ebec9f4ea1b0 :: false 2023-06-20 22:30:42 | [Mutex] waiting for: [received:nodes:a8a9216f-b77a-4af2-8c8a-dc8e8782da24:localhost] 2023-06-20 22:30:42 | [Mutex] received everything. 2023-06-20 22:30:42 | [Mutex] isItemNotified: received:node:a8a9216f-b77a-4af2-8c8a-dc8e8782da24:localhost:node-90dc1a46-aac9-409f-9a35-ebec9f4ea1b0:Node 90dc1a46-aac9-409f-9a35-ebec9f4ea1b0 :: false |
publishItemsToNodes | 0.023s |
2023-06-20 22:30:40 |
2023-06-20 22:30:40 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2023-06-20 22:30:40 | ------------------------------------ 2023-06-20 22:30:40 | on localhost executing action publish-item with content type application/json and payload: { "node": "node-90dc1a46-aac9-409f-9a35-ebec9f4ea1b0", "entry": "<test>item-bf65d06f-431e-4d1b-86e4-e781151e800a</test>", "item-id": "item-bf65d06f-431e-4d1b-86e4-e781151e800a" } 2023-06-20 22:30:40 | from localhost for action publish-item got result code 200 and payload { "Note": "Operation successful", "item-id": "item-bf65d06f-431e-4d1b-86e4-e781151e800a" } 2023-06-20 22:30:40 | [Mutex] waiting for: [published:item:notifieditem-bf65d06f-431e-4d1b-86e4-e781151e800a:admin@test-domain.com] 2023-06-20 22:30:40 | [Mutex] received everything. 2023-06-20 22:30:40 | [Mutex] isItemNotified: published:item:notifieditem-bf65d06f-431e-4d1b-86e4-e781151e800a:admin@test-domain.com :: true |
retractItemsFromNodes | 0.055s |
2023-06-20 22:30:40 |
2023-06-20 22:30:40 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2023-06-20 22:30:40 | ------------------------------------ 2023-06-20 22:30:40 | on localhost executing action delete-item with content type application/json and payload: { "node": "node-90dc1a46-aac9-409f-9a35-ebec9f4ea1b0", "item-id": "item-bf65d06f-431e-4d1b-86e4-e781151e800a" } 2023-06-20 22:30:40 | from localhost for action delete-item got result code 200 and payload { "Note": "Operation successful", "item-id": "item-bf65d06f-431e-4d1b-86e4-e781151e800a" } 2023-06-20 22:30:40 | [Mutex] waiting for: [retracted:item:notifieditem-bf65d06f-431e-4d1b-86e4-e781151e800a:admin@test-domain.com] 2023-06-20 22:30:40 | [Mutex] received everything. 2023-06-20 22:30:40 | [Mutex] isItemNotified: retracted:item:notifieditem-bf65d06f-431e-4d1b-86e4-e781151e800a:admin@test-domain.com :: true |
retrieveItemsFromNodes | 0.070s |
2023-06-20 22:30:40 |
2023-06-20 22:30:40 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2023-06-20 22:30:40 | ------------------------------------ 2023-06-20 22:30:40 | on localhost executing action retrieve-item with content type application/json and payload: { "node": "node-90dc1a46-aac9-409f-9a35-ebec9f4ea1b0", "item-id": "item-bf65d06f-431e-4d1b-86e4-e781151e800a" } 2023-06-20 22:30:40 | from localhost for action retrieve-item got result code 200 and payload { "title": "Retrive PubSub node item", "node": "node-90dc1a46-aac9-409f-9a35-ebec9f4ea1b0", "item-id": "item-bf65d06f-431e-4d1b-86e4-e781151e800a", "item": [ "<item id=\"item-bf65d06f-431e-4d1b-86e4-e781151e800a\"><test>item-bf65d06f-431e-4d1b-86e4-e781151e800a</test></item>" ] } 2023-06-20 22:30:40 | [Mutex] notify: [retrieved:item:item-bf65d06f-431e-4d1b-86e4-e781151e800a:payload-matches:true:localhost] 2023-06-20 22:30:40 | [Mutex] received everything. 2023-06-20 22:30:40 | [Mutex] isItemNotified: retrieved:item:item-bf65d06f-431e-4d1b-86e4-e781151e800a:payload-matches:true:localhost :: true |
retrieveUserSubscriptions | 0.047s |
2023-06-20 22:30:40 |
2023-06-20 22:30:40 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2023-06-20 22:30:40 | ------------------------------------ 2023-06-20 22:30:40 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload: { "jid": "admin@test-domain.com" } 2023-06-20 22:30:40 | from localhost for action retrieve-user-subscriptions got result code 200 and payload { "nodes": [ "node-3aeb6214-18ca-4bbe-af16-1d5b9d8fce66", "node-90dc1a46-aac9-409f-9a35-ebec9f4ea1b0", "test" ] } |
retrieveUserSubscriptionsWithRegex | 0.047s |
2023-06-20 22:30:40 |
2023-06-20 22:30:40 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2023-06-20 22:30:40 | ------------------------------------ 2023-06-20 22:30:40 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload: { "jid": "admin@test-domain.com", "node-pattern": "(?!node-90dc1a46-aac9-409f-9a35-ebec9f4ea1b0)" } 2023-06-20 22:30:40 | from localhost for action retrieve-user-subscriptions got result code 200 and payload { "nodes": [ ] } |
subscribeNodes | 1.017s |
2023-06-20 22:30:39 |
2023-06-20 22:30:39 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2023-06-20 22:30:39 | ------------------------------------ 2023-06-20 22:30:39 | on localhost executing action subscribe-node with content type application/json and payload: { "node": "node-90dc1a46-aac9-409f-9a35-ebec9f4ea1b0", "jids": [ "admin@test-domain.com" ] } 2023-06-20 22:30:39 | from localhost for action subscribe-node got result code 200 and payload { "Note": "Operation successful" } |
unsubscribeNodes | 1.052s |
2023-06-20 22:30:40 |
2023-06-20 22:30:40 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2023-06-20 22:30:40 | ------------------------------------ 2023-06-20 22:30:40 | on localhost executing action unsubscribe-node with content type application/json and payload: { "node": "node-90dc1a46-aac9-409f-9a35-ebec9f4ea1b0", "jids": [ "admin@test-domain.com" ] } 2023-06-20 22:30:40 | from localhost for action unsubscribe-node got result code 200 and payload { "Note": "Operation successful" } |