Test duration : 8.635s
Passed Tests | ||
---|---|---|
tigase.tests.pubsub.TestRestApiUsingJSON | ||
configureNodes | 1.093s |
2022-11-13 22:06:35 |
2022-11-13 22:06:35 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-11-13 22:06:35 | ------------------------------------ 2022-11-13 22:06:35 | [Mutex] waiting for: [configured:node:node-4363fb07-65a6-41f6-b641-2c1d1700ca01:node-223c2a99-2ca0-41c2-b98e-563e4aead6dd] 2022-11-13 22:06:35 | [Mutex] received everything. 2022-11-13 22:06:35 | [Mutex] isItemNotified: configured:node:node-4363fb07-65a6-41f6-b641-2c1d1700ca01:node-223c2a99-2ca0-41c2-b98e-563e4aead6dd :: true 2022-11-13 22:06:36 | [Mutex] waiting for: [received:nodes:d9737922-a0dd-43f2-b0b9-7064a3e07919:localhost] 2022-11-13 22:06:36 | [Mutex] received everything. 2022-11-13 22:06:36 | [Mutex] isItemNotified: received:node:d9737922-a0dd-43f2-b0b9-7064a3e07919:localhost:node-4363fb07-65a6-41f6-b641-2c1d1700ca01:Node 4363fb07-65a6-41f6-b641-2c1d1700ca01 :: true 2022-11-13 22:06:36 | [Mutex] waiting for: [received:nodes:1d829712-fc29-4eca-a080-eb831e1abbee:localhost] 2022-11-13 22:06:36 | [Mutex] received everything. 2022-11-13 22:06:36 | [Mutex] isItemNotified: received:node:1d829712-fc29-4eca-a080-eb831e1abbee:localhost:node-4363fb07-65a6-41f6-b641-2c1d1700ca01:Node 4363fb07-65a6-41f6-b641-2c1d1700ca01 :: false |
createNodes | 1.566s |
2022-11-13 22:06:33 |
2022-11-13 22:06:33 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-11-13 22:06:33 | ------------------------------------ 2022-11-13 22:06:33 | on localhost executing action create-node with content type application/json and payload: { "owner": "admin@test-domain.com", "pubsub#node_type": "leaf", "node": "node-4363fb07-65a6-41f6-b641-2c1d1700ca01", "pubsub#title": "Node 4363fb07-65a6-41f6-b641-2c1d1700ca01" } 2022-11-13 22:06:33 | from localhost for action create-node got result code 200 and payload { "Note": "Operation successful" } 2022-11-13 22:06:34 | [Mutex] waiting for: [received:nodes:a011ba60-2514-4b89-9448-ea10954b836a:localhost] 2022-11-13 22:06:34 | [Mutex] waiting for: [received:nodes:a011ba60-2514-4b89-9448-ea10954b836a:localhost] 2022-11-13 22:06:34 | [Mutex] received everything. 2022-11-13 22:06:34 | [Mutex] isItemNotified: received:node:a011ba60-2514-4b89-9448-ea10954b836a:localhost:node-4363fb07-65a6-41f6-b641-2c1d1700ca01:Node 4363fb07-65a6-41f6-b641-2c1d1700ca01 :: true |
createSubnodes | 1.021s |
2022-11-13 22:06:34 |
2022-11-13 22:06:34 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-11-13 22:06:34 | ------------------------------------ 2022-11-13 22:06:34 | on localhost executing action create-node with content type application/json and payload: { "owner": "admin@test-domain.com", "pubsub#node_type": "collection", "node": "node-223c2a99-2ca0-41c2-b98e-563e4aead6dd", "pubsub#title": "Node 223c2a99-2ca0-41c2-b98e-563e4aead6dd" } 2022-11-13 22:06:34 | from localhost for action create-node got result code 200 and payload { "Note": "Operation successful" } 2022-11-13 22:06:35 | [Mutex] waiting for: [received:nodes:61fea866-7bf0-4600-bad2-46ed50974d61:localhost] 2022-11-13 22:06:35 | [Mutex] waiting for: [received:nodes:61fea866-7bf0-4600-bad2-46ed50974d61:localhost] 2022-11-13 22:06:35 | [Mutex] received everything. 2022-11-13 22:06:35 | [Mutex] isItemNotified: received:node:61fea866-7bf0-4600-bad2-46ed50974d61:localhost:node-223c2a99-2ca0-41c2-b98e-563e4aead6dd:Node 223c2a99-2ca0-41c2-b98e-563e4aead6dd :: true |
deleteNodes | 1.022s |
2022-11-13 22:06:40 |
2022-11-13 22:06:40 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-11-13 22:06:40 | ------------------------------------ 2022-11-13 22:06:40 | on localhost executing action delete-node with content type application/json and payload: { "node": "node-223c2a99-2ca0-41c2-b98e-563e4aead6dd" } 2022-11-13 22:06:40 | from localhost for action delete-node got result code 200 and payload { "Note": "Operation successful" } 2022-11-13 22:06:41 | [Mutex] waiting for: [received:nodes:2eb35115-e979-4dd6-9f32-3a006aad81fd:localhost] 2022-11-13 22:06:41 | [Mutex] received everything. 2022-11-13 22:06:41 | [Mutex] isItemNotified: received:node:2eb35115-e979-4dd6-9f32-3a006aad81fd:localhost:node-223c2a99-2ca0-41c2-b98e-563e4aead6dd:Node 223c2a99-2ca0-41c2-b98e-563e4aead6dd :: false |
deleteSubnodes | 1.034s |
2022-11-13 22:06:39 |
2022-11-13 22:06:39 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-11-13 22:06:39 | ------------------------------------ 2022-11-13 22:06:39 | on localhost executing action delete-node with content type application/json and payload: { "node": "node-4363fb07-65a6-41f6-b641-2c1d1700ca01" } 2022-11-13 22:06:39 | from localhost for action delete-node got result code 200 and payload { "Note": "Operation successful" } 2022-11-13 22:06:40 | [Mutex] waiting for: [received:nodes:b8fe07b9-55d2-47e7-bd4d-fb841cc7e9e6:localhost] 2022-11-13 22:06:40 | [Mutex] waiting for: [received:nodes:b8fe07b9-55d2-47e7-bd4d-fb841cc7e9e6:localhost] 2022-11-13 22:06:40 | [Mutex] received everything. 2022-11-13 22:06:40 | [Mutex] isItemNotified: received:node:b8fe07b9-55d2-47e7-bd4d-fb841cc7e9e6:localhost:node-4363fb07-65a6-41f6-b641-2c1d1700ca01:Node 4363fb07-65a6-41f6-b641-2c1d1700ca01 :: false 2022-11-13 22:06:40 | [Mutex] waiting for: [received:nodes:123802ef-854f-41e4-a798-28224988adca:localhost] 2022-11-13 22:06:40 | [Mutex] received everything. 2022-11-13 22:06:40 | [Mutex] isItemNotified: received:node:123802ef-854f-41e4-a798-28224988adca:localhost:node-4363fb07-65a6-41f6-b641-2c1d1700ca01:Node 4363fb07-65a6-41f6-b641-2c1d1700ca01 :: false |
publishItemsToNodes | 0.068s |
2022-11-13 22:06:37 |
2022-11-13 22:06:37 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-11-13 22:06:37 | ------------------------------------ 2022-11-13 22:06:37 | on localhost executing action publish-item with content type application/json and payload: { "node": "node-4363fb07-65a6-41f6-b641-2c1d1700ca01", "entry": "<test>item-776ff1f7-c9ba-492e-b520-372a50663a90</test>", "item-id": "item-776ff1f7-c9ba-492e-b520-372a50663a90" } 2022-11-13 22:06:37 | from localhost for action publish-item got result code 200 and payload { "Note": "Operation successful", "item-id": "item-776ff1f7-c9ba-492e-b520-372a50663a90" } 2022-11-13 22:06:37 | [Mutex] waiting for: [published:item:notifieditem-776ff1f7-c9ba-492e-b520-372a50663a90:admin@test-domain.com] 2022-11-13 22:06:37 | [Mutex] received everything. 2022-11-13 22:06:37 | [Mutex] isItemNotified: published:item:notifieditem-776ff1f7-c9ba-492e-b520-372a50663a90:admin@test-domain.com :: true |
retractItemsFromNodes | 0.055s |
2022-11-13 22:06:38 |
2022-11-13 22:06:38 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-11-13 22:06:38 | ------------------------------------ 2022-11-13 22:06:38 | on localhost executing action delete-item with content type application/json and payload: { "node": "node-4363fb07-65a6-41f6-b641-2c1d1700ca01", "item-id": "item-776ff1f7-c9ba-492e-b520-372a50663a90" } 2022-11-13 22:06:38 | from localhost for action delete-item got result code 200 and payload { "Note": "Operation successful", "item-id": "item-776ff1f7-c9ba-492e-b520-372a50663a90" } 2022-11-13 22:06:38 | [Mutex] received everything. 2022-11-13 22:06:38 | [Mutex] isItemNotified: retracted:item:notifieditem-776ff1f7-c9ba-492e-b520-372a50663a90:admin@test-domain.com :: true |
retrieveItemsFromNodes | 0.015s |
2022-11-13 22:06:37 |
2022-11-13 22:06:37 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-11-13 22:06:37 | ------------------------------------ 2022-11-13 22:06:37 | on localhost executing action retrieve-item with content type application/json and payload: { "node": "node-4363fb07-65a6-41f6-b641-2c1d1700ca01", "item-id": "item-776ff1f7-c9ba-492e-b520-372a50663a90" } 2022-11-13 22:06:37 | from localhost for action retrieve-item got result code 200 and payload { "title": "Retrive PubSub node item", "node": "node-4363fb07-65a6-41f6-b641-2c1d1700ca01", "item-id": "item-776ff1f7-c9ba-492e-b520-372a50663a90", "item": [ "<item id=\"item-776ff1f7-c9ba-492e-b520-372a50663a90\"><test>item-776ff1f7-c9ba-492e-b520-372a50663a90</test></item>" ] } 2022-11-13 22:06:37 | [Mutex] notify: [retrieved:item:item-776ff1f7-c9ba-492e-b520-372a50663a90:payload-matches:true:localhost] 2022-11-13 22:06:37 | [Mutex] received everything. 2022-11-13 22:06:37 | [Mutex] isItemNotified: retrieved:item:item-776ff1f7-c9ba-492e-b520-372a50663a90:payload-matches:true:localhost :: true |
retrieveUserSubscriptions | 0.048s |
2022-11-13 22:06:37 |
2022-11-13 22:06:37 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-11-13 22:06:37 | ------------------------------------ 2022-11-13 22:06:37 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload: { "jid": "admin@test-domain.com" } 2022-11-13 22:06:38 | from localhost for action retrieve-user-subscriptions got result code 200 and payload { "nodes": [ "test", "node-4363fb07-65a6-41f6-b641-2c1d1700ca01", "node-223c2a99-2ca0-41c2-b98e-563e4aead6dd" ] } |
retrieveUserSubscriptionsWithRegex | 0.048s |
2022-11-13 22:06:38 |
2022-11-13 22:06:38 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-11-13 22:06:38 | ------------------------------------ 2022-11-13 22:06:38 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload: { "jid": "admin@test-domain.com", "node-pattern": "(?!node-4363fb07-65a6-41f6-b641-2c1d1700ca01)" } 2022-11-13 22:06:38 | from localhost for action retrieve-user-subscriptions got result code 200 and payload { "nodes": [ ] } |
subscribeNodes | 1.008s |
2022-11-13 22:06:36 |
2022-11-13 22:06:36 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-11-13 22:06:36 | ------------------------------------ 2022-11-13 22:06:36 | on localhost executing action subscribe-node with content type application/json and payload: { "node": "node-4363fb07-65a6-41f6-b641-2c1d1700ca01", "jids": [ "admin@test-domain.com" ] } 2022-11-13 22:06:36 | from localhost for action subscribe-node got result code 200 and payload { "Note": "Operation successful" } |
unsubscribeNodes | 1.055s |
2022-11-13 22:06:38 |
2022-11-13 22:06:38 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-11-13 22:06:38 | ------------------------------------ 2022-11-13 22:06:38 | on localhost executing action unsubscribe-node with content type application/json and payload: { "node": "node-4363fb07-65a6-41f6-b641-2c1d1700ca01", "jids": [ "admin@test-domain.com" ] } 2022-11-13 22:06:38 | from localhost for action unsubscribe-node got result code 200 and payload { "Note": "Operation successful" } |