Test duration : 8.585s
Passed Tests | ||
---|---|---|
tigase.tests.pubsub.TestRestApiUsingJSON | ||
configureNodes | 1.097s |
2022-12-16 22:01:47 |
2022-12-16 22:01:47 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-12-16 22:01:47 | ------------------------------------ 2022-12-16 22:01:47 | [Mutex] waiting for: [configured:node:node-9cb29d95-d16d-4858-9571-b7d3c74f7ec4:node-6ec1b6cd-bdd9-40c4-bf9e-1abac84db08f] 2022-12-16 22:01:47 | [Mutex] received everything. 2022-12-16 22:01:47 | [Mutex] isItemNotified: configured:node:node-9cb29d95-d16d-4858-9571-b7d3c74f7ec4:node-6ec1b6cd-bdd9-40c4-bf9e-1abac84db08f :: true 2022-12-16 22:01:48 | [Mutex] waiting for: [received:nodes:a1415053-1f24-4278-b71a-db18e6c12d7d:localhost] 2022-12-16 22:01:48 | [Mutex] received everything. 2022-12-16 22:01:48 | [Mutex] isItemNotified: received:node:a1415053-1f24-4278-b71a-db18e6c12d7d:localhost:node-9cb29d95-d16d-4858-9571-b7d3c74f7ec4:Node 9cb29d95-d16d-4858-9571-b7d3c74f7ec4 :: true 2022-12-16 22:01:48 | [Mutex] waiting for: [received:nodes:dde927b7-1c21-4851-b528-285795136ac6:localhost] 2022-12-16 22:01:48 | [Mutex] waiting for: [received:nodes:dde927b7-1c21-4851-b528-285795136ac6:localhost] 2022-12-16 22:01:48 | [Mutex] waiting for: [received:nodes:dde927b7-1c21-4851-b528-285795136ac6:localhost] 2022-12-16 22:01:48 | [Mutex] waiting for: [received:nodes:dde927b7-1c21-4851-b528-285795136ac6:localhost] 2022-12-16 22:01:48 | [Mutex] received everything. 2022-12-16 22:01:48 | [Mutex] isItemNotified: received:node:dde927b7-1c21-4851-b528-285795136ac6:localhost:node-9cb29d95-d16d-4858-9571-b7d3c74f7ec4:Node 9cb29d95-d16d-4858-9571-b7d3c74f7ec4 :: false |
createNodes | 1.517s |
2022-12-16 22:01:45 |
2022-12-16 22:01:45 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-12-16 22:01:45 | ------------------------------------ 2022-12-16 22:01:45 | on localhost executing action create-node with content type application/json and payload: { "owner": "admin@test-domain.com", "pubsub#node_type": "leaf", "node": "node-9cb29d95-d16d-4858-9571-b7d3c74f7ec4", "pubsub#title": "Node 9cb29d95-d16d-4858-9571-b7d3c74f7ec4" } 2022-12-16 22:01:45 | from localhost for action create-node got result code 200 and payload { "Note": "Operation successful" } 2022-12-16 22:01:46 | [Mutex] waiting for: [received:nodes:bf35fad8-8ded-4a5d-95f8-a8aa4344d37d:localhost] 2022-12-16 22:01:46 | [Mutex] waiting for: [received:nodes:bf35fad8-8ded-4a5d-95f8-a8aa4344d37d:localhost] 2022-12-16 22:01:46 | [Mutex] waiting for: [received:nodes:bf35fad8-8ded-4a5d-95f8-a8aa4344d37d:localhost] 2022-12-16 22:01:46 | [Mutex] received everything. 2022-12-16 22:01:46 | [Mutex] isItemNotified: received:node:bf35fad8-8ded-4a5d-95f8-a8aa4344d37d:localhost:node-9cb29d95-d16d-4858-9571-b7d3c74f7ec4:Node 9cb29d95-d16d-4858-9571-b7d3c74f7ec4 :: true |
createSubnodes | 1.023s |
2022-12-16 22:01:46 |
2022-12-16 22:01:46 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-12-16 22:01:46 | ------------------------------------ 2022-12-16 22:01:46 | on localhost executing action create-node with content type application/json and payload: { "owner": "admin@test-domain.com", "pubsub#node_type": "collection", "node": "node-6ec1b6cd-bdd9-40c4-bf9e-1abac84db08f", "pubsub#title": "Node 6ec1b6cd-bdd9-40c4-bf9e-1abac84db08f" } 2022-12-16 22:01:46 | from localhost for action create-node got result code 200 and payload { "Note": "Operation successful" } 2022-12-16 22:01:47 | [Mutex] waiting for: [received:nodes:3841ddd1-6ac5-4930-bdb6-7b38af5bf587:localhost] 2022-12-16 22:01:47 | [Mutex] waiting for: [received:nodes:3841ddd1-6ac5-4930-bdb6-7b38af5bf587:localhost] 2022-12-16 22:01:47 | [Mutex] received everything. 2022-12-16 22:01:47 | [Mutex] isItemNotified: received:node:3841ddd1-6ac5-4930-bdb6-7b38af5bf587:localhost:node-6ec1b6cd-bdd9-40c4-bf9e-1abac84db08f:Node 6ec1b6cd-bdd9-40c4-bf9e-1abac84db08f :: true |
deleteNodes | 1.022s |
2022-12-16 22:01:52 |
2022-12-16 22:01:52 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-12-16 22:01:52 | ------------------------------------ 2022-12-16 22:01:52 | on localhost executing action delete-node with content type application/json and payload: { "node": "node-6ec1b6cd-bdd9-40c4-bf9e-1abac84db08f" } 2022-12-16 22:01:52 | from localhost for action delete-node got result code 200 and payload { "Note": "Operation successful" } 2022-12-16 22:01:53 | [Mutex] waiting for: [received:nodes:f6f05849-9a77-4e52-93e3-8dd00185d507:localhost] 2022-12-16 22:01:53 | [Mutex] waiting for: [received:nodes:f6f05849-9a77-4e52-93e3-8dd00185d507:localhost] 2022-12-16 22:01:53 | [Mutex] received everything. 2022-12-16 22:01:53 | [Mutex] isItemNotified: received:node:f6f05849-9a77-4e52-93e3-8dd00185d507:localhost:node-6ec1b6cd-bdd9-40c4-bf9e-1abac84db08f:Node 6ec1b6cd-bdd9-40c4-bf9e-1abac84db08f :: false |
deleteSubnodes | 1.031s |
2022-12-16 22:01:51 |
2022-12-16 22:01:51 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-12-16 22:01:51 | ------------------------------------ 2022-12-16 22:01:51 | on localhost executing action delete-node with content type application/json and payload: { "node": "node-9cb29d95-d16d-4858-9571-b7d3c74f7ec4" } 2022-12-16 22:01:51 | from localhost for action delete-node got result code 200 and payload { "Note": "Operation successful" } 2022-12-16 22:01:52 | [Mutex] waiting for: [received:nodes:ee43bb2e-cdca-48d3-ba01-85d3e1ac67ff:localhost] 2022-12-16 22:01:52 | [Mutex] waiting for: [received:nodes:ee43bb2e-cdca-48d3-ba01-85d3e1ac67ff:localhost] 2022-12-16 22:01:52 | [Mutex] waiting for: [received:nodes:ee43bb2e-cdca-48d3-ba01-85d3e1ac67ff:localhost] 2022-12-16 22:01:52 | [Mutex] received everything. 2022-12-16 22:01:52 | [Mutex] isItemNotified: received:node:ee43bb2e-cdca-48d3-ba01-85d3e1ac67ff:localhost:node-9cb29d95-d16d-4858-9571-b7d3c74f7ec4:Node 9cb29d95-d16d-4858-9571-b7d3c74f7ec4 :: false 2022-12-16 22:01:52 | [Mutex] waiting for: [received:nodes:84206720-f089-4325-a39d-06a9d4a07088:localhost] 2022-12-16 22:01:52 | [Mutex] received everything. 2022-12-16 22:01:52 | [Mutex] isItemNotified: received:node:84206720-f089-4325-a39d-06a9d4a07088:localhost:node-9cb29d95-d16d-4858-9571-b7d3c74f7ec4:Node 9cb29d95-d16d-4858-9571-b7d3c74f7ec4 :: false |
publishItemsToNodes | 0.051s |
2022-12-16 22:01:49 |
2022-12-16 22:01:49 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-12-16 22:01:49 | ------------------------------------ 2022-12-16 22:01:49 | on localhost executing action publish-item with content type application/json and payload: { "node": "node-9cb29d95-d16d-4858-9571-b7d3c74f7ec4", "entry": "<test>item-2df8b53c-ceff-4a3b-b9b9-6e661f90cfed</test>", "item-id": "item-2df8b53c-ceff-4a3b-b9b9-6e661f90cfed" } 2022-12-16 22:01:49 | from localhost for action publish-item got result code 200 and payload { "Note": "Operation successful", "item-id": "item-2df8b53c-ceff-4a3b-b9b9-6e661f90cfed" } 2022-12-16 22:01:49 | [Mutex] waiting for: [published:item:notifieditem-2df8b53c-ceff-4a3b-b9b9-6e661f90cfed:admin@test-domain.com] 2022-12-16 22:01:49 | [Mutex] received everything. 2022-12-16 22:01:49 | [Mutex] isItemNotified: published:item:notifieditem-2df8b53c-ceff-4a3b-b9b9-6e661f90cfed:admin@test-domain.com :: true |
retractItemsFromNodes | 0.053s |
2022-12-16 22:01:49 |
2022-12-16 22:01:49 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-12-16 22:01:49 | ------------------------------------ 2022-12-16 22:01:49 | on localhost executing action delete-item with content type application/json and payload: { "node": "node-9cb29d95-d16d-4858-9571-b7d3c74f7ec4", "item-id": "item-2df8b53c-ceff-4a3b-b9b9-6e661f90cfed" } 2022-12-16 22:01:49 | from localhost for action delete-item got result code 200 and payload { "Note": "Operation successful", "item-id": "item-2df8b53c-ceff-4a3b-b9b9-6e661f90cfed" } 2022-12-16 22:01:49 | [Mutex] received everything. 2022-12-16 22:01:49 | [Mutex] isItemNotified: retracted:item:notifieditem-2df8b53c-ceff-4a3b-b9b9-6e661f90cfed:admin@test-domain.com :: true |
retrieveItemsFromNodes | 0.060s |
2022-12-16 22:01:49 |
2022-12-16 22:01:49 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-12-16 22:01:49 | ------------------------------------ 2022-12-16 22:01:49 | on localhost executing action retrieve-item with content type application/json and payload: { "node": "node-9cb29d95-d16d-4858-9571-b7d3c74f7ec4", "item-id": "item-2df8b53c-ceff-4a3b-b9b9-6e661f90cfed" } 2022-12-16 22:01:49 | from localhost for action retrieve-item got result code 200 and payload { "title": "Retrive PubSub node item", "node": "node-9cb29d95-d16d-4858-9571-b7d3c74f7ec4", "item-id": "item-2df8b53c-ceff-4a3b-b9b9-6e661f90cfed", "item": [ "<item id=\"item-2df8b53c-ceff-4a3b-b9b9-6e661f90cfed\"><test>item-2df8b53c-ceff-4a3b-b9b9-6e661f90cfed</test></item>" ] } 2022-12-16 22:01:49 | [Mutex] notify: [retrieved:item:item-2df8b53c-ceff-4a3b-b9b9-6e661f90cfed:payload-matches:true:localhost] 2022-12-16 22:01:49 | [Mutex] received everything. 2022-12-16 22:01:49 | [Mutex] isItemNotified: retrieved:item:item-2df8b53c-ceff-4a3b-b9b9-6e661f90cfed:payload-matches:true:localhost :: true |
retrieveUserSubscriptions | 0.047s |
2022-12-16 22:01:49 |
2022-12-16 22:01:49 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-12-16 22:01:49 | ------------------------------------ 2022-12-16 22:01:49 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload: { "jid": "admin@test-domain.com" } 2022-12-16 22:01:49 | from localhost for action retrieve-user-subscriptions got result code 200 and payload { "nodes": [ "node-9cb29d95-d16d-4858-9571-b7d3c74f7ec4", "node-6ec1b6cd-bdd9-40c4-bf9e-1abac84db08f", "test" ] } |
retrieveUserSubscriptionsWithRegex | 0.091s |
2022-12-16 22:01:49 |
2022-12-16 22:01:49 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-12-16 22:01:49 | ------------------------------------ 2022-12-16 22:01:49 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload: { "jid": "admin@test-domain.com", "node-pattern": "(?!node-9cb29d95-d16d-4858-9571-b7d3c74f7ec4)" } 2022-12-16 22:01:49 | from localhost for action retrieve-user-subscriptions got result code 200 and payload { "nodes": [ ] } |
subscribeNodes | 1.011s |
2022-12-16 22:01:48 |
2022-12-16 22:01:48 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-12-16 22:01:48 | ------------------------------------ 2022-12-16 22:01:48 | on localhost executing action subscribe-node with content type application/json and payload: { "node": "node-9cb29d95-d16d-4858-9571-b7d3c74f7ec4", "jids": [ "admin@test-domain.com" ] } 2022-12-16 22:01:48 | from localhost for action subscribe-node got result code 200 and payload { "Note": "Operation successful" } |
unsubscribeNodes | 1.075s |
2022-12-16 22:01:49 |
2022-12-16 22:01:49 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-12-16 22:01:49 | ------------------------------------ 2022-12-16 22:01:49 | on localhost executing action unsubscribe-node with content type application/json and payload: { "node": "node-9cb29d95-d16d-4858-9571-b7d3c74f7ec4", "jids": [ "admin@test-domain.com" ] } 2022-12-16 22:01:50 | from localhost for action unsubscribe-node got result code 200 and payload { "Note": "Operation successful" } |