Test duration : 8.650s
Passed Tests | ||
---|---|---|
tigase.tests.pubsub.TestRestApiUsingJSON | ||
configureNodes | 1.102s |
2022-10-22 22:50:38 |
2022-10-22 22:50:38 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-10-22 22:50:38 | ------------------------------------ 2022-10-22 22:50:38 | [Mutex] waiting for: [configured:node:node-649dfb68-e7b9-4d20-975b-40d5b9ae4fb2:node-2e9dc0b3-0763-4223-99d9-543c960c9ba4] 2022-10-22 22:50:38 | [Mutex] received everything. 2022-10-22 22:50:38 | [Mutex] isItemNotified: configured:node:node-649dfb68-e7b9-4d20-975b-40d5b9ae4fb2:node-2e9dc0b3-0763-4223-99d9-543c960c9ba4 :: true 2022-10-22 22:50:39 | [Mutex] waiting for: [received:nodes:cbc95074-d34b-4468-9f76-5bbaa69083a5:localhost] 2022-10-22 22:50:39 | [Mutex] received everything. 2022-10-22 22:50:39 | [Mutex] isItemNotified: received:node:cbc95074-d34b-4468-9f76-5bbaa69083a5:localhost:node-649dfb68-e7b9-4d20-975b-40d5b9ae4fb2:Node 649dfb68-e7b9-4d20-975b-40d5b9ae4fb2 :: true 2022-10-22 22:50:39 | [Mutex] waiting for: [received:nodes:8871c125-d491-4aec-80a8-b26ae1ce2025:localhost] 2022-10-22 22:50:39 | [Mutex] received everything. 2022-10-22 22:50:39 | [Mutex] isItemNotified: received:node:8871c125-d491-4aec-80a8-b26ae1ce2025:localhost:node-649dfb68-e7b9-4d20-975b-40d5b9ae4fb2:Node 649dfb68-e7b9-4d20-975b-40d5b9ae4fb2 :: false |
createNodes | 1.597s |
2022-10-22 22:50:35 |
2022-10-22 22:50:35 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-10-22 22:50:35 | ------------------------------------ 2022-10-22 22:50:36 | on localhost executing action create-node with content type application/json and payload: { "owner": "admin@test-domain.com", "pubsub#node_type": "leaf", "node": "node-649dfb68-e7b9-4d20-975b-40d5b9ae4fb2", "pubsub#title": "Node 649dfb68-e7b9-4d20-975b-40d5b9ae4fb2" } 2022-10-22 22:50:36 | from localhost for action create-node got result code 200 and payload { "Note": "Operation successful" } 2022-10-22 22:50:37 | [Mutex] waiting for: [received:nodes:7c299c27-b3fe-4b80-b105-00c934697292:localhost] 2022-10-22 22:50:37 | [Mutex] received everything. 2022-10-22 22:50:37 | [Mutex] isItemNotified: received:node:7c299c27-b3fe-4b80-b105-00c934697292:localhost:node-649dfb68-e7b9-4d20-975b-40d5b9ae4fb2:Node 649dfb68-e7b9-4d20-975b-40d5b9ae4fb2 :: true |
createSubnodes | 1.024s |
2022-10-22 22:50:37 |
2022-10-22 22:50:37 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-10-22 22:50:37 | ------------------------------------ 2022-10-22 22:50:37 | on localhost executing action create-node with content type application/json and payload: { "owner": "admin@test-domain.com", "pubsub#node_type": "collection", "node": "node-2e9dc0b3-0763-4223-99d9-543c960c9ba4", "pubsub#title": "Node 2e9dc0b3-0763-4223-99d9-543c960c9ba4" } 2022-10-22 22:50:37 | from localhost for action create-node got result code 200 and payload { "Note": "Operation successful" } 2022-10-22 22:50:38 | [Mutex] waiting for: [received:nodes:5fff7a42-c750-49b1-b41f-6e61e6b5a04d:localhost] 2022-10-22 22:50:38 | [Mutex] received everything. 2022-10-22 22:50:38 | [Mutex] isItemNotified: received:node:5fff7a42-c750-49b1-b41f-6e61e6b5a04d:localhost:node-2e9dc0b3-0763-4223-99d9-543c960c9ba4:Node 2e9dc0b3-0763-4223-99d9-543c960c9ba4 :: true |
deleteNodes | 1.032s |
2022-10-22 22:50:42 |
2022-10-22 22:50:42 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-10-22 22:50:42 | ------------------------------------ 2022-10-22 22:50:42 | on localhost executing action delete-node with content type application/json and payload: { "node": "node-2e9dc0b3-0763-4223-99d9-543c960c9ba4" } 2022-10-22 22:50:42 | from localhost for action delete-node got result code 200 and payload { "Note": "Operation successful" } 2022-10-22 22:50:43 | [Mutex] waiting for: [received:nodes:ff20fc7d-cf0c-4453-a9c8-fe7fbf522bec:localhost] 2022-10-22 22:50:43 | [Mutex] received everything. 2022-10-22 22:50:43 | [Mutex] isItemNotified: received:node:ff20fc7d-cf0c-4453-a9c8-fe7fbf522bec:localhost:node-2e9dc0b3-0763-4223-99d9-543c960c9ba4:Node 2e9dc0b3-0763-4223-99d9-543c960c9ba4 :: false |
deleteSubnodes | 1.029s |
2022-10-22 22:50:41 |
2022-10-22 22:50:41 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-10-22 22:50:41 | ------------------------------------ 2022-10-22 22:50:41 | on localhost executing action delete-node with content type application/json and payload: { "node": "node-649dfb68-e7b9-4d20-975b-40d5b9ae4fb2" } 2022-10-22 22:50:41 | from localhost for action delete-node got result code 200 and payload { "Note": "Operation successful" } 2022-10-22 22:50:42 | [Mutex] waiting for: [received:nodes:8690ce6e-922a-4519-a969-c04bedf29ad5:localhost] 2022-10-22 22:50:42 | [Mutex] waiting for: [received:nodes:8690ce6e-922a-4519-a969-c04bedf29ad5:localhost] 2022-10-22 22:50:42 | [Mutex] received everything. 2022-10-22 22:50:42 | [Mutex] isItemNotified: received:node:8690ce6e-922a-4519-a969-c04bedf29ad5:localhost:node-649dfb68-e7b9-4d20-975b-40d5b9ae4fb2:Node 649dfb68-e7b9-4d20-975b-40d5b9ae4fb2 :: false 2022-10-22 22:50:42 | [Mutex] waiting for: [received:nodes:edc22fb1-19e1-484d-bf5a-0ee9510d5c03:localhost] 2022-10-22 22:50:42 | [Mutex] received everything. 2022-10-22 22:50:42 | [Mutex] isItemNotified: received:node:edc22fb1-19e1-484d-bf5a-0ee9510d5c03:localhost:node-649dfb68-e7b9-4d20-975b-40d5b9ae4fb2:Node 649dfb68-e7b9-4d20-975b-40d5b9ae4fb2 :: false |
publishItemsToNodes | 0.059s |
2022-10-22 22:50:40 |
2022-10-22 22:50:40 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-10-22 22:50:40 | ------------------------------------ 2022-10-22 22:50:40 | on localhost executing action publish-item with content type application/json and payload: { "node": "node-649dfb68-e7b9-4d20-975b-40d5b9ae4fb2", "entry": "<test>item-f89b3c61-386e-4bac-8b6d-e76a1a0f846c</test>", "item-id": "item-f89b3c61-386e-4bac-8b6d-e76a1a0f846c" } 2022-10-22 22:50:40 | from localhost for action publish-item got result code 200 and payload { "Note": "Operation successful", "item-id": "item-f89b3c61-386e-4bac-8b6d-e76a1a0f846c" } 2022-10-22 22:50:40 | [Mutex] waiting for: [published:item:notifieditem-f89b3c61-386e-4bac-8b6d-e76a1a0f846c:admin@test-domain.com] 2022-10-22 22:50:40 | [Mutex] received everything. 2022-10-22 22:50:40 | [Mutex] isItemNotified: published:item:notifieditem-f89b3c61-386e-4bac-8b6d-e76a1a0f846c:admin@test-domain.com :: true |
retractItemsFromNodes | 0.063s |
2022-10-22 22:50:40 |
2022-10-22 22:50:40 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-10-22 22:50:40 | ------------------------------------ 2022-10-22 22:50:40 | on localhost executing action delete-item with content type application/json and payload: { "node": "node-649dfb68-e7b9-4d20-975b-40d5b9ae4fb2", "item-id": "item-f89b3c61-386e-4bac-8b6d-e76a1a0f846c" } 2022-10-22 22:50:40 | from localhost for action delete-item got result code 200 and payload { "Note": "Operation successful", "item-id": "item-f89b3c61-386e-4bac-8b6d-e76a1a0f846c" } 2022-10-22 22:50:40 | [Mutex] waiting for: [retracted:item:notifieditem-f89b3c61-386e-4bac-8b6d-e76a1a0f846c:admin@test-domain.com] 2022-10-22 22:50:40 | [Mutex] received everything. 2022-10-22 22:50:40 | [Mutex] isItemNotified: retracted:item:notifieditem-f89b3c61-386e-4bac-8b6d-e76a1a0f846c:admin@test-domain.com :: true |
retrieveItemsFromNodes | 0.016s |
2022-10-22 22:50:40 |
2022-10-22 22:50:40 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-10-22 22:50:40 | ------------------------------------ 2022-10-22 22:50:40 | on localhost executing action retrieve-item with content type application/json and payload: { "node": "node-649dfb68-e7b9-4d20-975b-40d5b9ae4fb2", "item-id": "item-f89b3c61-386e-4bac-8b6d-e76a1a0f846c" } 2022-10-22 22:50:40 | from localhost for action retrieve-item got result code 200 and payload { "title": "Retrive PubSub node item", "node": "node-649dfb68-e7b9-4d20-975b-40d5b9ae4fb2", "item-id": "item-f89b3c61-386e-4bac-8b6d-e76a1a0f846c", "item": [ "<item id=\"item-f89b3c61-386e-4bac-8b6d-e76a1a0f846c\"><test>item-f89b3c61-386e-4bac-8b6d-e76a1a0f846c</test></item>" ] } 2022-10-22 22:50:40 | [Mutex] notify: [retrieved:item:item-f89b3c61-386e-4bac-8b6d-e76a1a0f846c:payload-matches:true:localhost] 2022-10-22 22:50:40 | [Mutex] received everything. 2022-10-22 22:50:40 | [Mutex] isItemNotified: retrieved:item:item-f89b3c61-386e-4bac-8b6d-e76a1a0f846c:payload-matches:true:localhost :: true |
retrieveUserSubscriptions | 0.081s |
2022-10-22 22:50:40 |
2022-10-22 22:50:40 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-10-22 22:50:40 | ------------------------------------ 2022-10-22 22:50:40 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload: { "jid": "admin@test-domain.com" } 2022-10-22 22:50:40 | from localhost for action retrieve-user-subscriptions got result code 200 and payload { "nodes": [ "test", "node-2e9dc0b3-0763-4223-99d9-543c960c9ba4", "node-649dfb68-e7b9-4d20-975b-40d5b9ae4fb2" ] } |
retrieveUserSubscriptionsWithRegex | 0.047s |
2022-10-22 22:50:40 |
2022-10-22 22:50:40 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-10-22 22:50:40 | ------------------------------------ 2022-10-22 22:50:40 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload: { "jid": "admin@test-domain.com", "node-pattern": "(?!node-649dfb68-e7b9-4d20-975b-40d5b9ae4fb2)" } 2022-10-22 22:50:40 | from localhost for action retrieve-user-subscriptions got result code 200 and payload { "nodes": [ ] } |
subscribeNodes | 1.010s |
2022-10-22 22:50:39 |
2022-10-22 22:50:39 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-10-22 22:50:39 | ------------------------------------ 2022-10-22 22:50:39 | on localhost executing action subscribe-node with content type application/json and payload: { "node": "node-649dfb68-e7b9-4d20-975b-40d5b9ae4fb2", "jids": [ "admin@test-domain.com" ] } 2022-10-22 22:50:39 | from localhost for action subscribe-node got result code 200 and payload { "Note": "Operation successful" } |
unsubscribeNodes | 1.063s |
2022-10-22 22:50:40 |
2022-10-22 22:50:40 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-10-22 22:50:40 | ------------------------------------ 2022-10-22 22:50:40 | on localhost executing action unsubscribe-node with content type application/json and payload: { "node": "node-649dfb68-e7b9-4d20-975b-40d5b9ae4fb2", "jids": [ "admin@test-domain.com" ] } 2022-10-22 22:50:40 | from localhost for action unsubscribe-node got result code 200 and payload { "Note": "Operation successful" } |