Test duration : 8.598s
Passed Tests | ||
---|---|---|
tigase.tests.pubsub.TestRestApiUsingJSON | ||
configureNodes | 1.112s |
2022-09-18 22:34:41 |
2022-09-18 22:34:41 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-09-18 22:34:41 | ------------------------------------ 2022-09-18 22:34:41 | [Mutex] waiting for: [configured:node:node-9ebdcbf6-0109-4b50-b566-e2545f9c793c:node-98f0d39f-ca2a-487c-bed5-3984564e9812] 2022-09-18 22:34:41 | [Mutex] received everything. 2022-09-18 22:34:41 | [Mutex] isItemNotified: configured:node:node-9ebdcbf6-0109-4b50-b566-e2545f9c793c:node-98f0d39f-ca2a-487c-bed5-3984564e9812 :: true 2022-09-18 22:34:42 | [Mutex] waiting for: [received:nodes:6481a8cf-3566-4d0e-a35f-241e8978adac:localhost] 2022-09-18 22:34:42 | [Mutex] received everything. 2022-09-18 22:34:42 | [Mutex] isItemNotified: received:node:6481a8cf-3566-4d0e-a35f-241e8978adac:localhost:node-9ebdcbf6-0109-4b50-b566-e2545f9c793c:Node 9ebdcbf6-0109-4b50-b566-e2545f9c793c :: true 2022-09-18 22:34:42 | [Mutex] waiting for: [received:nodes:eab75755-e7cc-4690-9254-518c82e63ead:localhost] 2022-09-18 22:34:42 | [Mutex] received everything. 2022-09-18 22:34:42 | [Mutex] isItemNotified: received:node:eab75755-e7cc-4690-9254-518c82e63ead:localhost:node-9ebdcbf6-0109-4b50-b566-e2545f9c793c:Node 9ebdcbf6-0109-4b50-b566-e2545f9c793c :: false |
createNodes | 1.577s |
2022-09-18 22:34:38 |
2022-09-18 22:34:38 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-09-18 22:34:38 | ------------------------------------ 2022-09-18 22:34:39 | on localhost executing action create-node with content type application/json and payload: { "owner": "admin@test-domain.com", "pubsub#node_type": "leaf", "node": "node-9ebdcbf6-0109-4b50-b566-e2545f9c793c", "pubsub#title": "Node 9ebdcbf6-0109-4b50-b566-e2545f9c793c" } 2022-09-18 22:34:39 | from localhost for action create-node got result code 200 and payload { "Note": "Operation successful" } 2022-09-18 22:34:40 | [Mutex] waiting for: [received:nodes:600710d7-9d74-4094-9b85-2ad98050d852:localhost] 2022-09-18 22:34:40 | [Mutex] received everything. 2022-09-18 22:34:40 | [Mutex] isItemNotified: received:node:600710d7-9d74-4094-9b85-2ad98050d852:localhost:node-9ebdcbf6-0109-4b50-b566-e2545f9c793c:Node 9ebdcbf6-0109-4b50-b566-e2545f9c793c :: true |
createSubnodes | 1.034s |
2022-09-18 22:34:40 |
2022-09-18 22:34:40 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-09-18 22:34:40 | ------------------------------------ 2022-09-18 22:34:40 | on localhost executing action create-node with content type application/json and payload: { "owner": "admin@test-domain.com", "pubsub#node_type": "collection", "node": "node-98f0d39f-ca2a-487c-bed5-3984564e9812", "pubsub#title": "Node 98f0d39f-ca2a-487c-bed5-3984564e9812" } 2022-09-18 22:34:40 | from localhost for action create-node got result code 200 and payload { "Note": "Operation successful" } 2022-09-18 22:34:41 | [Mutex] waiting for: [received:nodes:48ba5a04-32f5-4992-b12e-9b60d3a6c721:localhost] 2022-09-18 22:34:41 | [Mutex] received everything. 2022-09-18 22:34:41 | [Mutex] isItemNotified: received:node:48ba5a04-32f5-4992-b12e-9b60d3a6c721:localhost:node-98f0d39f-ca2a-487c-bed5-3984564e9812:Node 98f0d39f-ca2a-487c-bed5-3984564e9812 :: true |
deleteNodes | 1.023s |
2022-09-18 22:34:45 |
2022-09-18 22:34:45 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-09-18 22:34:45 | ------------------------------------ 2022-09-18 22:34:45 | on localhost executing action delete-node with content type application/json and payload: { "node": "node-98f0d39f-ca2a-487c-bed5-3984564e9812" } 2022-09-18 22:34:45 | from localhost for action delete-node got result code 200 and payload { "Note": "Operation successful" } 2022-09-18 22:34:46 | [Mutex] waiting for: [received:nodes:7cb31e3c-54ce-432a-9466-dd067ea21660:localhost] 2022-09-18 22:34:46 | [Mutex] received everything. 2022-09-18 22:34:46 | [Mutex] isItemNotified: received:node:7cb31e3c-54ce-432a-9466-dd067ea21660:localhost:node-98f0d39f-ca2a-487c-bed5-3984564e9812:Node 98f0d39f-ca2a-487c-bed5-3984564e9812 :: false |
deleteSubnodes | 1.031s |
2022-09-18 22:34:44 |
2022-09-18 22:34:44 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-09-18 22:34:44 | ------------------------------------ 2022-09-18 22:34:44 | on localhost executing action delete-node with content type application/json and payload: { "node": "node-9ebdcbf6-0109-4b50-b566-e2545f9c793c" } 2022-09-18 22:34:44 | from localhost for action delete-node got result code 200 and payload { "Note": "Operation successful" } 2022-09-18 22:34:45 | [Mutex] waiting for: [received:nodes:745249cd-a2cf-40d2-b800-62c606e8ffda:localhost] 2022-09-18 22:34:45 | [Mutex] received everything. 2022-09-18 22:34:45 | [Mutex] isItemNotified: received:node:745249cd-a2cf-40d2-b800-62c606e8ffda:localhost:node-9ebdcbf6-0109-4b50-b566-e2545f9c793c:Node 9ebdcbf6-0109-4b50-b566-e2545f9c793c :: false 2022-09-18 22:34:45 | [Mutex] waiting for: [received:nodes:ca98f0b5-9d08-4851-aad2-63e86fb68521:localhost] 2022-09-18 22:34:45 | [Mutex] received everything. 2022-09-18 22:34:45 | [Mutex] isItemNotified: received:node:ca98f0b5-9d08-4851-aad2-63e86fb68521:localhost:node-9ebdcbf6-0109-4b50-b566-e2545f9c793c:Node 9ebdcbf6-0109-4b50-b566-e2545f9c793c :: false |
publishItemsToNodes | 0.057s |
2022-09-18 22:34:43 |
2022-09-18 22:34:43 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-09-18 22:34:43 | ------------------------------------ 2022-09-18 22:34:43 | on localhost executing action publish-item with content type application/json and payload: { "node": "node-9ebdcbf6-0109-4b50-b566-e2545f9c793c", "entry": "<test>item-797a6e38-63aa-4849-9522-638141763b47</test>", "item-id": "item-797a6e38-63aa-4849-9522-638141763b47" } 2022-09-18 22:34:43 | from localhost for action publish-item got result code 200 and payload { "Note": "Operation successful", "item-id": "item-797a6e38-63aa-4849-9522-638141763b47" } 2022-09-18 22:34:43 | [Mutex] waiting for: [published:item:notifieditem-797a6e38-63aa-4849-9522-638141763b47:admin@test-domain.com] 2022-09-18 22:34:43 | [Mutex] received everything. 2022-09-18 22:34:43 | [Mutex] isItemNotified: published:item:notifieditem-797a6e38-63aa-4849-9522-638141763b47:admin@test-domain.com :: true |
retractItemsFromNodes | 0.051s |
2022-09-18 22:34:43 |
2022-09-18 22:34:43 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-09-18 22:34:43 | ------------------------------------ 2022-09-18 22:34:43 | on localhost executing action delete-item with content type application/json and payload: { "node": "node-9ebdcbf6-0109-4b50-b566-e2545f9c793c", "item-id": "item-797a6e38-63aa-4849-9522-638141763b47" } 2022-09-18 22:34:43 | from localhost for action delete-item got result code 200 and payload { "Note": "Operation successful", "item-id": "item-797a6e38-63aa-4849-9522-638141763b47" } 2022-09-18 22:34:43 | [Mutex] received everything. 2022-09-18 22:34:43 | [Mutex] isItemNotified: retracted:item:notifieditem-797a6e38-63aa-4849-9522-638141763b47:admin@test-domain.com :: true |
retrieveItemsFromNodes | 0.017s |
2022-09-18 22:34:43 |
2022-09-18 22:34:43 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-09-18 22:34:43 | ------------------------------------ 2022-09-18 22:34:43 | on localhost executing action retrieve-item with content type application/json and payload: { "node": "node-9ebdcbf6-0109-4b50-b566-e2545f9c793c", "item-id": "item-797a6e38-63aa-4849-9522-638141763b47" } 2022-09-18 22:34:43 | from localhost for action retrieve-item got result code 200 and payload { "title": "Retrive PubSub node item", "node": "node-9ebdcbf6-0109-4b50-b566-e2545f9c793c", "item-id": "item-797a6e38-63aa-4849-9522-638141763b47", "item": [ "<item id=\"item-797a6e38-63aa-4849-9522-638141763b47\"><test>item-797a6e38-63aa-4849-9522-638141763b47</test></item>" ] } 2022-09-18 22:34:43 | [Mutex] notify: [retrieved:item:item-797a6e38-63aa-4849-9522-638141763b47:payload-matches:true:localhost] 2022-09-18 22:34:43 | [Mutex] received everything. 2022-09-18 22:34:43 | [Mutex] isItemNotified: retrieved:item:item-797a6e38-63aa-4849-9522-638141763b47:payload-matches:true:localhost :: true |
retrieveUserSubscriptions | 0.079s |
2022-09-18 22:34:43 |
2022-09-18 22:34:43 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-09-18 22:34:43 | ------------------------------------ 2022-09-18 22:34:43 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload: { "jid": "admin@test-domain.com" } 2022-09-18 22:34:43 | from localhost for action retrieve-user-subscriptions got result code 200 and payload { "nodes": [ "node-9ebdcbf6-0109-4b50-b566-e2545f9c793c", "node-98f0d39f-ca2a-487c-bed5-3984564e9812", "test" ] } |
retrieveUserSubscriptionsWithRegex | 0.047s |
2022-09-18 22:34:43 |
2022-09-18 22:34:43 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-09-18 22:34:43 | ------------------------------------ 2022-09-18 22:34:43 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload: { "jid": "admin@test-domain.com", "node-pattern": "(?!node-9ebdcbf6-0109-4b50-b566-e2545f9c793c)" } 2022-09-18 22:34:43 | from localhost for action retrieve-user-subscriptions got result code 200 and payload { "nodes": [ ] } |
subscribeNodes | 1.011s |
2022-09-18 22:34:42 |
2022-09-18 22:34:42 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-09-18 22:34:42 | ------------------------------------ 2022-09-18 22:34:42 | on localhost executing action subscribe-node with content type application/json and payload: { "node": "node-9ebdcbf6-0109-4b50-b566-e2545f9c793c", "jids": [ "admin@test-domain.com" ] } 2022-09-18 22:34:42 | from localhost for action subscribe-node got result code 200 and payload { "Note": "Operation successful" } |
unsubscribeNodes | 1.051s |
2022-09-18 22:34:43 |
2022-09-18 22:34:43 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-09-18 22:34:43 | ------------------------------------ 2022-09-18 22:34:43 | on localhost executing action unsubscribe-node with content type application/json and payload: { "node": "node-9ebdcbf6-0109-4b50-b566-e2545f9c793c", "jids": [ "admin@test-domain.com" ] } 2022-09-18 22:34:43 | from localhost for action unsubscribe-node got result code 200 and payload { "Note": "Operation successful" } |