Test duration : 8.720s
Passed Tests | ||
---|---|---|
tigase.tests.pubsub.TestRestApiUsingJSON | ||
configureNodes | 1.110s |
2023-10-25 23:59:23 |
2023-10-25 23:59:23 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2023-10-25 23:59:23 | ------------------------------------ 2023-10-25 23:59:23 | [Mutex] waiting for: [configured:node:node-ad5cfa0f-ea76-4aba-b392-cd86df2e223a:node-9897a404-bf45-4091-bd21-b9e37b62b9de] 2023-10-25 23:59:23 | [Mutex] received everything. 2023-10-25 23:59:23 | [Mutex] isItemNotified: configured:node:node-ad5cfa0f-ea76-4aba-b392-cd86df2e223a:node-9897a404-bf45-4091-bd21-b9e37b62b9de :: true 2023-10-25 23:59:24 | [Mutex] waiting for: [received:nodes:06b39333-a904-447b-94d9-d8adc1bb3692:localhost] 2023-10-25 23:59:24 | [Mutex] received everything. 2023-10-25 23:59:24 | [Mutex] isItemNotified: received:node:06b39333-a904-447b-94d9-d8adc1bb3692:localhost:node-ad5cfa0f-ea76-4aba-b392-cd86df2e223a:Node ad5cfa0f-ea76-4aba-b392-cd86df2e223a :: true 2023-10-25 23:59:24 | [Mutex] waiting for: [received:nodes:3fde4af0-564a-4378-acc6-56092097d311:localhost] 2023-10-25 23:59:24 | [Mutex] received everything. 2023-10-25 23:59:24 | [Mutex] isItemNotified: received:node:3fde4af0-564a-4378-acc6-56092097d311:localhost:node-ad5cfa0f-ea76-4aba-b392-cd86df2e223a:Node ad5cfa0f-ea76-4aba-b392-cd86df2e223a :: false |
createNodes | 1.683s |
2023-10-25 23:59:20 |
2023-10-25 23:59:20 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2023-10-25 23:59:20 | ------------------------------------ 2023-10-25 23:59: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-ad5cfa0f-ea76-4aba-b392-cd86df2e223a", "pubsub#title": "Node ad5cfa0f-ea76-4aba-b392-cd86df2e223a" } 2023-10-25 23:59:21 | from localhost for action create-node got result code 200 and payload { "Note": "Operation successful" } 2023-10-25 23:59:22 | [Mutex] waiting for: [received:nodes:8d7b9894-2d1b-4e6d-88f8-1b56ecd8ff09:localhost] 2023-10-25 23:59:22 | [Mutex] waiting for: [received:nodes:8d7b9894-2d1b-4e6d-88f8-1b56ecd8ff09:localhost] 2023-10-25 23:59:22 | [Mutex] waiting for: [received:nodes:8d7b9894-2d1b-4e6d-88f8-1b56ecd8ff09:localhost] 2023-10-25 23:59:22 | [Mutex] waiting for: [received:nodes:8d7b9894-2d1b-4e6d-88f8-1b56ecd8ff09:localhost] 2023-10-25 23:59:22 | [Mutex] received everything. 2023-10-25 23:59:22 | [Mutex] isItemNotified: received:node:8d7b9894-2d1b-4e6d-88f8-1b56ecd8ff09:localhost:node-ad5cfa0f-ea76-4aba-b392-cd86df2e223a:Node ad5cfa0f-ea76-4aba-b392-cd86df2e223a :: true |
createSubnodes | 1.030s |
2023-10-25 23:59:22 |
2023-10-25 23:59:22 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2023-10-25 23:59:22 | ------------------------------------ 2023-10-25 23:59: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-9897a404-bf45-4091-bd21-b9e37b62b9de", "pubsub#title": "Node 9897a404-bf45-4091-bd21-b9e37b62b9de" } 2023-10-25 23:59:22 | from localhost for action create-node got result code 200 and payload { "Note": "Operation successful" } 2023-10-25 23:59:23 | [Mutex] waiting for: [received:nodes:43068a8e-fc01-4b0c-92ef-2647ed5aea90:localhost] 2023-10-25 23:59:23 | [Mutex] waiting for: [received:nodes:43068a8e-fc01-4b0c-92ef-2647ed5aea90:localhost] 2023-10-25 23:59:23 | [Mutex] waiting for: [received:nodes:43068a8e-fc01-4b0c-92ef-2647ed5aea90:localhost] 2023-10-25 23:59:23 | [Mutex] waiting for: [received:nodes:43068a8e-fc01-4b0c-92ef-2647ed5aea90:localhost] 2023-10-25 23:59:23 | [Mutex] received everything. 2023-10-25 23:59:23 | [Mutex] isItemNotified: received:node:43068a8e-fc01-4b0c-92ef-2647ed5aea90:localhost:node-9897a404-bf45-4091-bd21-b9e37b62b9de:Node 9897a404-bf45-4091-bd21-b9e37b62b9de :: true |
deleteNodes | 1.025s |
2023-10-25 23:59:28 |
2023-10-25 23:59:28 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2023-10-25 23:59:28 | ------------------------------------ 2023-10-25 23:59:28 | on localhost executing action delete-node with content type application/json and payload: { "node": "node-9897a404-bf45-4091-bd21-b9e37b62b9de" } 2023-10-25 23:59:28 | from localhost for action delete-node got result code 200 and payload { "Note": "Operation successful" } 2023-10-25 23:59:29 | [Mutex] waiting for: [received:nodes:ca853b77-d16c-4729-a4f4-16a3d76977b3:localhost] 2023-10-25 23:59:29 | [Mutex] waiting for: [received:nodes:ca853b77-d16c-4729-a4f4-16a3d76977b3:localhost] 2023-10-25 23:59:29 | [Mutex] waiting for: [received:nodes:ca853b77-d16c-4729-a4f4-16a3d76977b3:localhost] 2023-10-25 23:59:29 | [Mutex] received everything. 2023-10-25 23:59:29 | [Mutex] isItemNotified: received:node:ca853b77-d16c-4729-a4f4-16a3d76977b3:localhost:node-9897a404-bf45-4091-bd21-b9e37b62b9de:Node 9897a404-bf45-4091-bd21-b9e37b62b9de :: false |
deleteSubnodes | 1.026s |
2023-10-25 23:59:27 |
2023-10-25 23:59:27 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2023-10-25 23:59:27 | ------------------------------------ 2023-10-25 23:59:27 | on localhost executing action delete-node with content type application/json and payload: { "node": "node-ad5cfa0f-ea76-4aba-b392-cd86df2e223a" } 2023-10-25 23:59:27 | from localhost for action delete-node got result code 200 and payload { "Note": "Operation successful" } 2023-10-25 23:59:28 | [Mutex] waiting for: [received:nodes:a96d41ee-bbc7-4dc9-ab52-92b57c743e94:localhost] 2023-10-25 23:59:28 | [Mutex] waiting for: [received:nodes:a96d41ee-bbc7-4dc9-ab52-92b57c743e94:localhost] 2023-10-25 23:59:28 | [Mutex] waiting for: [received:nodes:a96d41ee-bbc7-4dc9-ab52-92b57c743e94:localhost] 2023-10-25 23:59:28 | [Mutex] waiting for: [received:nodes:a96d41ee-bbc7-4dc9-ab52-92b57c743e94:localhost] 2023-10-25 23:59:28 | [Mutex] received everything. 2023-10-25 23:59:28 | [Mutex] isItemNotified: received:node:a96d41ee-bbc7-4dc9-ab52-92b57c743e94:localhost:node-ad5cfa0f-ea76-4aba-b392-cd86df2e223a:Node ad5cfa0f-ea76-4aba-b392-cd86df2e223a :: false 2023-10-25 23:59:28 | [Mutex] waiting for: [received:nodes:67954669-590c-45d6-b7f3-24242b97b6c0:localhost] 2023-10-25 23:59:28 | [Mutex] received everything. 2023-10-25 23:59:28 | [Mutex] isItemNotified: received:node:67954669-590c-45d6-b7f3-24242b97b6c0:localhost:node-ad5cfa0f-ea76-4aba-b392-cd86df2e223a:Node ad5cfa0f-ea76-4aba-b392-cd86df2e223a :: false |
publishItemsToNodes | 0.044s |
2023-10-25 23:59:25 |
2023-10-25 23:59:25 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2023-10-25 23:59:25 | ------------------------------------ 2023-10-25 23:59:25 | on localhost executing action publish-item with content type application/json and payload: { "node": "node-ad5cfa0f-ea76-4aba-b392-cd86df2e223a", "entry": "<test>item-c0baa41c-cad8-4318-9feb-bb185bb20124</test>", "item-id": "item-c0baa41c-cad8-4318-9feb-bb185bb20124" } 2023-10-25 23:59:25 | from localhost for action publish-item got result code 200 and payload { "Note": "Operation successful", "item-id": "item-c0baa41c-cad8-4318-9feb-bb185bb20124" } 2023-10-25 23:59:25 | [Mutex] received everything. 2023-10-25 23:59:25 | [Mutex] isItemNotified: published:item:notifieditem-c0baa41c-cad8-4318-9feb-bb185bb20124:admin@test-domain.com :: true |
retractItemsFromNodes | 0.057s |
2023-10-25 23:59:25 |
2023-10-25 23:59:25 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2023-10-25 23:59:25 | ------------------------------------ 2023-10-25 23:59:25 | on localhost executing action delete-item with content type application/json and payload: { "node": "node-ad5cfa0f-ea76-4aba-b392-cd86df2e223a", "item-id": "item-c0baa41c-cad8-4318-9feb-bb185bb20124" } 2023-10-25 23:59:25 | from localhost for action delete-item got result code 200 and payload { "Note": "Operation successful", "item-id": "item-c0baa41c-cad8-4318-9feb-bb185bb20124" } 2023-10-25 23:59:25 | [Mutex] received everything. 2023-10-25 23:59:25 | [Mutex] isItemNotified: retracted:item:notifieditem-c0baa41c-cad8-4318-9feb-bb185bb20124:admin@test-domain.com :: true |
retrieveItemsFromNodes | 0.055s |
2023-10-25 23:59:25 |
2023-10-25 23:59:25 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2023-10-25 23:59:25 | ------------------------------------ 2023-10-25 23:59:25 | on localhost executing action retrieve-item with content type application/json and payload: { "node": "node-ad5cfa0f-ea76-4aba-b392-cd86df2e223a", "item-id": "item-c0baa41c-cad8-4318-9feb-bb185bb20124" } 2023-10-25 23:59:25 | from localhost for action retrieve-item got result code 200 and payload { "title": "Retrive PubSub node item", "node": "node-ad5cfa0f-ea76-4aba-b392-cd86df2e223a", "item-id": "item-c0baa41c-cad8-4318-9feb-bb185bb20124", "item": [ "<item id=\"item-c0baa41c-cad8-4318-9feb-bb185bb20124\"><test>item-c0baa41c-cad8-4318-9feb-bb185bb20124</test></item>" ] } 2023-10-25 23:59:25 | [Mutex] notify: [retrieved:item:item-c0baa41c-cad8-4318-9feb-bb185bb20124:payload-matches:true:localhost] 2023-10-25 23:59:25 | [Mutex] received everything. 2023-10-25 23:59:25 | [Mutex] isItemNotified: retrieved:item:item-c0baa41c-cad8-4318-9feb-bb185bb20124:payload-matches:true:localhost :: true |
retrieveUserSubscriptions | 0.051s |
2023-10-25 23:59:25 |
2023-10-25 23:59:25 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2023-10-25 23:59:25 | ------------------------------------ 2023-10-25 23:59:25 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload: { "jid": "admin@test-domain.com" } 2023-10-25 23:59:25 | from localhost for action retrieve-user-subscriptions got result code 200 and payload { "nodes": [ "test", "node-ad5cfa0f-ea76-4aba-b392-cd86df2e223a", "node-9897a404-bf45-4091-bd21-b9e37b62b9de" ] } |
retrieveUserSubscriptionsWithRegex | 0.047s |
2023-10-25 23:59:25 |
2023-10-25 23:59:25 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2023-10-25 23:59:25 | ------------------------------------ 2023-10-25 23:59:25 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload: { "jid": "admin@test-domain.com", "node-pattern": "(?!node-ad5cfa0f-ea76-4aba-b392-cd86df2e223a)" } 2023-10-25 23:59:25 | from localhost for action retrieve-user-subscriptions got result code 200 and payload { "nodes": [ ] } |
subscribeNodes | 1.013s |
2023-10-25 23:59:24 |
2023-10-25 23:59:24 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2023-10-25 23:59:24 | ------------------------------------ 2023-10-25 23:59:24 | on localhost executing action subscribe-node with content type application/json and payload: { "node": "node-ad5cfa0f-ea76-4aba-b392-cd86df2e223a", "jids": [ "admin@test-domain.com" ] } 2023-10-25 23:59:24 | from localhost for action subscribe-node got result code 200 and payload { "Note": "Operation successful" } |
unsubscribeNodes | 1.116s |
2023-10-25 23:59:25 |
2023-10-25 23:59:25 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2023-10-25 23:59:25 | ------------------------------------ 2023-10-25 23:59:25 | on localhost executing action unsubscribe-node with content type application/json and payload: { "node": "node-ad5cfa0f-ea76-4aba-b392-cd86df2e223a", "jids": [ "admin@test-domain.com" ] } 2023-10-25 23:59:26 | from localhost for action unsubscribe-node got result code 200 and payload { "Note": "Operation successful" } |