Test duration : 8.956s
Passed Tests | ||
---|---|---|
tigase.tests.pubsub.TestRestApiUsingJSON | ||
configureNodes | 1.094s |
2021-11-16 21:44:19 |
2021-11-16 21:44:19 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-11-16 21:44:19 | ------------------------------------ 2021-11-16 21:44:19 | [Mutex] waiting for: [configured:node:node-c2624f75-e8fe-4d65-8766-790715fb55a1:node-7f4b286c-bc68-46f9-90e1-218d693aefe0] 2021-11-16 21:44:19 | [Mutex] received everything. 2021-11-16 21:44:19 | [Mutex] isItemNotified: configured:node:node-c2624f75-e8fe-4d65-8766-790715fb55a1:node-7f4b286c-bc68-46f9-90e1-218d693aefe0 :: true 2021-11-16 21:44:20 | [Mutex] waiting for: [received:nodes:92cd88ea-31ee-46c1-9a9a-898dde685a78:localhost] 2021-11-16 21:44:20 | [Mutex] received everything. 2021-11-16 21:44:20 | [Mutex] isItemNotified: received:node:92cd88ea-31ee-46c1-9a9a-898dde685a78:localhost:node-c2624f75-e8fe-4d65-8766-790715fb55a1:Node c2624f75-e8fe-4d65-8766-790715fb55a1 :: true 2021-11-16 21:44:20 | [Mutex] waiting for: [received:nodes:cd63cbdc-c880-4673-81df-84575a4f12c4:localhost] 2021-11-16 21:44:20 | [Mutex] received everything. 2021-11-16 21:44:20 | [Mutex] isItemNotified: received:node:cd63cbdc-c880-4673-81df-84575a4f12c4:localhost:node-c2624f75-e8fe-4d65-8766-790715fb55a1:Node c2624f75-e8fe-4d65-8766-790715fb55a1 :: false |
createNodes | 1.665s |
2021-11-16 21:44:17 |
2021-11-16 21:44:17 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-11-16 21:44:17 | ------------------------------------ 2021-11-16 21:44:17 | on localhost executing action create-node with content type application/json and payload: { "owner": "admin@test-domain.com", "pubsub#node_type": "leaf", "node": "node-c2624f75-e8fe-4d65-8766-790715fb55a1", "pubsub#title": "Node c2624f75-e8fe-4d65-8766-790715fb55a1" } 2021-11-16 21:44:17 | from localhost for action create-node got result code 200 and payload { "Note": "Operation successful" } 2021-11-16 21:44:18 | [Mutex] waiting for: [received:nodes:b046da28-bcb3-47f0-92bb-2293b8cf1879:localhost] 2021-11-16 21:44:18 | [Mutex] received everything. 2021-11-16 21:44:18 | [Mutex] isItemNotified: received:node:b046da28-bcb3-47f0-92bb-2293b8cf1879:localhost:node-c2624f75-e8fe-4d65-8766-790715fb55a1:Node c2624f75-e8fe-4d65-8766-790715fb55a1 :: true |
createSubnodes | 1.028s |
2021-11-16 21:44:18 |
2021-11-16 21:44:18 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-11-16 21:44:18 | ------------------------------------ 2021-11-16 21:44:18 | on localhost executing action create-node with content type application/json and payload: { "owner": "admin@test-domain.com", "pubsub#node_type": "collection", "node": "node-7f4b286c-bc68-46f9-90e1-218d693aefe0", "pubsub#title": "Node 7f4b286c-bc68-46f9-90e1-218d693aefe0" } 2021-11-16 21:44:18 | from localhost for action create-node got result code 200 and payload { "Note": "Operation successful" } 2021-11-16 21:44:19 | [Mutex] waiting for: [received:nodes:5007a76b-a25a-4deb-807b-56a3ce6cd4ed:localhost] 2021-11-16 21:44:19 | [Mutex] received everything. 2021-11-16 21:44:19 | [Mutex] isItemNotified: received:node:5007a76b-a25a-4deb-807b-56a3ce6cd4ed:localhost:node-7f4b286c-bc68-46f9-90e1-218d693aefe0:Node 7f4b286c-bc68-46f9-90e1-218d693aefe0 :: true |
deleteNodes | 1.032s |
2021-11-16 21:44:24 |
2021-11-16 21:44:24 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-11-16 21:44:24 | ------------------------------------ 2021-11-16 21:44:24 | on localhost executing action delete-node with content type application/json and payload: { "node": "node-7f4b286c-bc68-46f9-90e1-218d693aefe0" } 2021-11-16 21:44:24 | from localhost for action delete-node got result code 200 and payload { "Note": "Operation successful" } 2021-11-16 21:44:25 | [Mutex] waiting for: [received:nodes:b12ac981-c1da-4770-b6ac-32c2f42ab013:localhost] 2021-11-16 21:44:25 | [Mutex] received everything. 2021-11-16 21:44:25 | [Mutex] isItemNotified: received:node:b12ac981-c1da-4770-b6ac-32c2f42ab013:localhost:node-7f4b286c-bc68-46f9-90e1-218d693aefe0:Node 7f4b286c-bc68-46f9-90e1-218d693aefe0 :: false |
deleteSubnodes | 1.032s |
2021-11-16 21:44:23 |
2021-11-16 21:44:23 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-11-16 21:44:23 | ------------------------------------ 2021-11-16 21:44:23 | on localhost executing action delete-node with content type application/json and payload: { "node": "node-c2624f75-e8fe-4d65-8766-790715fb55a1" } 2021-11-16 21:44:23 | from localhost for action delete-node got result code 200 and payload { "Note": "Operation successful" } 2021-11-16 21:44:24 | [Mutex] waiting for: [received:nodes:14788b5b-8570-410d-b675-893781b5e727:localhost] 2021-11-16 21:44:24 | [Mutex] waiting for: [received:nodes:14788b5b-8570-410d-b675-893781b5e727:localhost] 2021-11-16 21:44:24 | [Mutex] received everything. 2021-11-16 21:44:24 | [Mutex] isItemNotified: received:node:14788b5b-8570-410d-b675-893781b5e727:localhost:node-c2624f75-e8fe-4d65-8766-790715fb55a1:Node c2624f75-e8fe-4d65-8766-790715fb55a1 :: false 2021-11-16 21:44:24 | [Mutex] waiting for: [received:nodes:887c1ea1-7ca7-4511-8fed-269debe0a4b4:localhost] 2021-11-16 21:44:24 | [Mutex] received everything. 2021-11-16 21:44:24 | [Mutex] isItemNotified: received:node:887c1ea1-7ca7-4511-8fed-269debe0a4b4:localhost:node-c2624f75-e8fe-4d65-8766-790715fb55a1:Node c2624f75-e8fe-4d65-8766-790715fb55a1 :: false |
publishItemsToNodes | 0.055s |
2021-11-16 21:44:21 |
2021-11-16 21:44:21 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-11-16 21:44:21 | ------------------------------------ 2021-11-16 21:44:21 | on localhost executing action publish-item with content type application/json and payload: { "node": "node-c2624f75-e8fe-4d65-8766-790715fb55a1", "entry": "<test>item-1eea1138-a50c-4de3-acfe-c7bcd16f4c96</test>", "item-id": "item-1eea1138-a50c-4de3-acfe-c7bcd16f4c96" } 2021-11-16 21:44:21 | from localhost for action publish-item got result code 200 and payload { "Note": "Operation successful", "item-id": "item-1eea1138-a50c-4de3-acfe-c7bcd16f4c96" } 2021-11-16 21:44:21 | [Mutex] waiting for: [published:item:notifieditem-1eea1138-a50c-4de3-acfe-c7bcd16f4c96:admin@test-domain.com] 2021-11-16 21:44:21 | [Mutex] received everything. 2021-11-16 21:44:21 | [Mutex] isItemNotified: published:item:notifieditem-1eea1138-a50c-4de3-acfe-c7bcd16f4c96:admin@test-domain.com :: true |
retractItemsFromNodes | 0.067s |
2021-11-16 21:44:22 |
2021-11-16 21:44:22 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-11-16 21:44:22 | ------------------------------------ 2021-11-16 21:44:22 | on localhost executing action delete-item with content type application/json and payload: { "node": "node-c2624f75-e8fe-4d65-8766-790715fb55a1", "item-id": "item-1eea1138-a50c-4de3-acfe-c7bcd16f4c96" } 2021-11-16 21:44:22 | from localhost for action delete-item got result code 200 and payload { "Note": "Operation successful", "item-id": "item-1eea1138-a50c-4de3-acfe-c7bcd16f4c96" } 2021-11-16 21:44:22 | [Mutex] received everything. 2021-11-16 21:44:22 | [Mutex] isItemNotified: retracted:item:notifieditem-1eea1138-a50c-4de3-acfe-c7bcd16f4c96:admin@test-domain.com :: true |
retrieveItemsFromNodes | 0.021s |
2021-11-16 21:44:21 |
2021-11-16 21:44:21 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-11-16 21:44:21 | ------------------------------------ 2021-11-16 21:44:21 | on localhost executing action retrieve-item with content type application/json and payload: { "node": "node-c2624f75-e8fe-4d65-8766-790715fb55a1", "item-id": "item-1eea1138-a50c-4de3-acfe-c7bcd16f4c96" } 2021-11-16 21:44:21 | from localhost for action retrieve-item got result code 200 and payload { "title": "Retrive PubSub node item", "node": "node-c2624f75-e8fe-4d65-8766-790715fb55a1", "item-id": "item-1eea1138-a50c-4de3-acfe-c7bcd16f4c96", "item": [ "<item id=\"item-1eea1138-a50c-4de3-acfe-c7bcd16f4c96\"><test>item-1eea1138-a50c-4de3-acfe-c7bcd16f4c96</test></item>" ] } 2021-11-16 21:44:21 | [Mutex] notify: [retrieved:item:item-1eea1138-a50c-4de3-acfe-c7bcd16f4c96:payload-matches:true:localhost] 2021-11-16 21:44:21 | [Mutex] received everything. 2021-11-16 21:44:21 | [Mutex] isItemNotified: retrieved:item:item-1eea1138-a50c-4de3-acfe-c7bcd16f4c96:payload-matches:true:localhost :: true |
retrieveUserSubscriptions | 0.126s |
2021-11-16 21:44:21 |
2021-11-16 21:44:21 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-11-16 21:44:21 | ------------------------------------ 2021-11-16 21:44:21 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload: { "jid": "admin@test-domain.com" } 2021-11-16 21:44:22 | from localhost for action retrieve-user-subscriptions got result code 200 and payload { "nodes": [ "node-c2624f75-e8fe-4d65-8766-790715fb55a1", "test", "node-7f4b286c-bc68-46f9-90e1-218d693aefe0" ] } |
retrieveUserSubscriptionsWithRegex | 0.052s |
2021-11-16 21:44:22 |
2021-11-16 21:44:22 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-11-16 21:44:22 | ------------------------------------ 2021-11-16 21:44:22 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload: { "jid": "admin@test-domain.com", "node-pattern": "(?!node-c2624f75-e8fe-4d65-8766-790715fb55a1)" } 2021-11-16 21:44:22 | from localhost for action retrieve-user-subscriptions got result code 200 and payload { "nodes": [ ] } |
subscribeNodes | 1.013s |
2021-11-16 21:44:20 |
2021-11-16 21:44:20 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-11-16 21:44:20 | ------------------------------------ 2021-11-16 21:44:20 | on localhost executing action subscribe-node with content type application/json and payload: { "node": "node-c2624f75-e8fe-4d65-8766-790715fb55a1", "jids": [ "admin@test-domain.com" ] } 2021-11-16 21:44:20 | from localhost for action subscribe-node got result code 200 and payload { "Note": "Operation successful" } |
unsubscribeNodes | 1.075s |
2021-11-16 21:44:22 |
2021-11-16 21:44:22 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-11-16 21:44:22 | ------------------------------------ 2021-11-16 21:44:22 | on localhost executing action unsubscribe-node with content type application/json and payload: { "node": "node-c2624f75-e8fe-4d65-8766-790715fb55a1", "jids": [ "admin@test-domain.com" ] } 2021-11-16 21:44:22 | from localhost for action unsubscribe-node got result code 200 and payload { "Note": "Operation successful" } |