Test duration : 8.836s
Passed Tests | ||
---|---|---|
tigase.tests.pubsub.TestRestApiUsingJSON | ||
configureNodes | 1.161s |
2021-05-25 22:30:02 |
2021-05-25 22:30:02 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-05-25 22:30:02 | ------------------------------------ 2021-05-25 22:30:02 | [Mutex] waiting for: [configured:node:node-74a2c30f-bf37-43a4-970c-056b5187734e:node-04798541-7a4f-42a5-b4fe-b60a3f72054a] 2021-05-25 22:30:03 | [Mutex] received everything. 2021-05-25 22:30:03 | [Mutex] isItemNotified: configured:node:node-74a2c30f-bf37-43a4-970c-056b5187734e:node-04798541-7a4f-42a5-b4fe-b60a3f72054a :: true 2021-05-25 22:30:04 | [Mutex] waiting for: [received:nodes:6afb632b-10be-402f-9f98-957905c6fec8:localhost] 2021-05-25 22:30:04 | [Mutex] received everything. 2021-05-25 22:30:04 | [Mutex] isItemNotified: received:node:6afb632b-10be-402f-9f98-957905c6fec8:localhost:node-74a2c30f-bf37-43a4-970c-056b5187734e:Node 74a2c30f-bf37-43a4-970c-056b5187734e :: true 2021-05-25 22:30:04 | [Mutex] waiting for: [received:nodes:fafcc941-47d2-4959-aef9-018e5da1deb4:localhost] 2021-05-25 22:30:04 | [Mutex] received everything. 2021-05-25 22:30:04 | [Mutex] isItemNotified: received:node:fafcc941-47d2-4959-aef9-018e5da1deb4:localhost:node-74a2c30f-bf37-43a4-970c-056b5187734e:Node 74a2c30f-bf37-43a4-970c-056b5187734e :: false |
createNodes | 1.484s |
2021-05-25 22:30:00 |
2021-05-25 22:30:00 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-05-25 22:30:00 | ------------------------------------ 2021-05-25 22:30:00 | on localhost executing action create-node with content type application/json and payload: { "owner": "admin@test-domain.com", "pubsub#node_type": "leaf", "node": "node-74a2c30f-bf37-43a4-970c-056b5187734e", "pubsub#title": "Node 74a2c30f-bf37-43a4-970c-056b5187734e" } 2021-05-25 22:30:00 | from localhost for action create-node got result code 200 and payload { "Note": "Operation successful" } 2021-05-25 22:30:01 | [Mutex] waiting for: [received:nodes:bb0132a6-e9e5-4bfa-9bc6-3c76fa06b058:localhost] 2021-05-25 22:30:01 | [Mutex] received everything. 2021-05-25 22:30:01 | [Mutex] isItemNotified: received:node:bb0132a6-e9e5-4bfa-9bc6-3c76fa06b058:localhost:node-74a2c30f-bf37-43a4-970c-056b5187734e:Node 74a2c30f-bf37-43a4-970c-056b5187734e :: true |
createSubnodes | 1.024s |
2021-05-25 22:30:01 |
2021-05-25 22:30:01 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-05-25 22:30:01 | ------------------------------------ 2021-05-25 22:30:01 | on localhost executing action create-node with content type application/json and payload: { "owner": "admin@test-domain.com", "pubsub#node_type": "collection", "node": "node-04798541-7a4f-42a5-b4fe-b60a3f72054a", "pubsub#title": "Node 04798541-7a4f-42a5-b4fe-b60a3f72054a" } 2021-05-25 22:30:01 | from localhost for action create-node got result code 200 and payload { "Note": "Operation successful" } 2021-05-25 22:30:02 | [Mutex] waiting for: [received:nodes:15f2d9d4-bfe6-4d9b-ae62-966980f292fe:localhost] 2021-05-25 22:30:02 | [Mutex] waiting for: [received:nodes:15f2d9d4-bfe6-4d9b-ae62-966980f292fe:localhost] 2021-05-25 22:30:02 | [Mutex] received everything. 2021-05-25 22:30:02 | [Mutex] isItemNotified: received:node:15f2d9d4-bfe6-4d9b-ae62-966980f292fe:localhost:node-04798541-7a4f-42a5-b4fe-b60a3f72054a:Node 04798541-7a4f-42a5-b4fe-b60a3f72054a :: true |
deleteNodes | 1.021s |
2021-05-25 22:30:07 |
2021-05-25 22:30:07 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-05-25 22:30:07 | ------------------------------------ 2021-05-25 22:30:07 | on localhost executing action delete-node with content type application/json and payload: { "node": "node-04798541-7a4f-42a5-b4fe-b60a3f72054a" } 2021-05-25 22:30:07 | from localhost for action delete-node got result code 200 and payload { "Note": "Operation successful" } 2021-05-25 22:30:08 | [Mutex] waiting for: [received:nodes:647d1ec2-0eee-48d8-9035-ccfeb5d8f53a:localhost] 2021-05-25 22:30:08 | [Mutex] received everything. 2021-05-25 22:30:08 | [Mutex] isItemNotified: received:node:647d1ec2-0eee-48d8-9035-ccfeb5d8f53a:localhost:node-04798541-7a4f-42a5-b4fe-b60a3f72054a:Node 04798541-7a4f-42a5-b4fe-b60a3f72054a :: false |
deleteSubnodes | 1.028s |
2021-05-25 22:30:06 |
2021-05-25 22:30:06 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-05-25 22:30:06 | ------------------------------------ 2021-05-25 22:30:06 | on localhost executing action delete-node with content type application/json and payload: { "node": "node-74a2c30f-bf37-43a4-970c-056b5187734e" } 2021-05-25 22:30:06 | from localhost for action delete-node got result code 200 and payload { "Note": "Operation successful" } 2021-05-25 22:30:07 | [Mutex] waiting for: [received:nodes:c4e512c8-917f-4716-b115-e4fddc7410ee:localhost] 2021-05-25 22:30:07 | [Mutex] received everything. 2021-05-25 22:30:07 | [Mutex] isItemNotified: received:node:c4e512c8-917f-4716-b115-e4fddc7410ee:localhost:node-74a2c30f-bf37-43a4-970c-056b5187734e:Node 74a2c30f-bf37-43a4-970c-056b5187734e :: false 2021-05-25 22:30:07 | [Mutex] waiting for: [received:nodes:fba07d52-65e7-4ee7-9f0b-29bf02fd15f1:localhost] 2021-05-25 22:30:07 | [Mutex] received everything. 2021-05-25 22:30:07 | [Mutex] isItemNotified: received:node:fba07d52-65e7-4ee7-9f0b-29bf02fd15f1:localhost:node-74a2c30f-bf37-43a4-970c-056b5187734e:Node 74a2c30f-bf37-43a4-970c-056b5187734e :: false |
publishItemsToNodes | 0.042s |
2021-05-25 22:30:05 |
2021-05-25 22:30:05 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-05-25 22:30:05 | ------------------------------------ 2021-05-25 22:30:05 | on localhost executing action publish-item with content type application/json and payload: { "node": "node-74a2c30f-bf37-43a4-970c-056b5187734e", "entry": "<test>item-9802300b-a098-4e95-bb24-ca4a396f5f0c</test>", "item-id": "item-9802300b-a098-4e95-bb24-ca4a396f5f0c" } 2021-05-25 22:30:05 | from localhost for action publish-item got result code 200 and payload { "Note": "Operation successful", "item-id": "item-9802300b-a098-4e95-bb24-ca4a396f5f0c" } 2021-05-25 22:30:05 | [Mutex] waiting for: [published:item:notifieditem-9802300b-a098-4e95-bb24-ca4a396f5f0c:admin@test-domain.com] 2021-05-25 22:30:05 | [Mutex] received everything. 2021-05-25 22:30:05 | [Mutex] isItemNotified: published:item:notifieditem-9802300b-a098-4e95-bb24-ca4a396f5f0c:admin@test-domain.com :: true |
retractItemsFromNodes | 0.056s |
2021-05-25 22:30:05 |
2021-05-25 22:30:05 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-05-25 22:30:05 | ------------------------------------ 2021-05-25 22:30:05 | on localhost executing action delete-item with content type application/json and payload: { "node": "node-74a2c30f-bf37-43a4-970c-056b5187734e", "item-id": "item-9802300b-a098-4e95-bb24-ca4a396f5f0c" } 2021-05-25 22:30:05 | from localhost for action delete-item got result code 200 and payload { "Note": "Operation successful", "item-id": "item-9802300b-a098-4e95-bb24-ca4a396f5f0c" } 2021-05-25 22:30:05 | [Mutex] received everything. 2021-05-25 22:30:05 | [Mutex] isItemNotified: retracted:item:notifieditem-9802300b-a098-4e95-bb24-ca4a396f5f0c:admin@test-domain.com :: true |
retrieveItemsFromNodes | 0.103s |
2021-05-25 22:30:05 |
2021-05-25 22:30:05 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-05-25 22:30:05 | ------------------------------------ 2021-05-25 22:30:05 | on localhost executing action retrieve-item with content type application/json and payload: { "node": "node-74a2c30f-bf37-43a4-970c-056b5187734e", "item-id": "item-9802300b-a098-4e95-bb24-ca4a396f5f0c" } 2021-05-25 22:30:05 | from localhost for action retrieve-item got result code 200 and payload { "title": "Retrive PubSub node item", "node": "node-74a2c30f-bf37-43a4-970c-056b5187734e", "item-id": "item-9802300b-a098-4e95-bb24-ca4a396f5f0c", "item": [ "<item id=\"item-9802300b-a098-4e95-bb24-ca4a396f5f0c\"><test>item-9802300b-a098-4e95-bb24-ca4a396f5f0c</test></item>" ] } 2021-05-25 22:30:05 | [Mutex] notify: [retrieved:item:item-9802300b-a098-4e95-bb24-ca4a396f5f0c:payload-matches:true:localhost] 2021-05-25 22:30:05 | [Mutex] received everything. 2021-05-25 22:30:05 | [Mutex] isItemNotified: retrieved:item:item-9802300b-a098-4e95-bb24-ca4a396f5f0c:payload-matches:true:localhost :: true |
retrieveUserSubscriptions | 0.048s |
2021-05-25 22:30:05 |
2021-05-25 22:30:05 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-05-25 22:30:05 | ------------------------------------ 2021-05-25 22:30:05 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload: { "jid": "admin@test-domain.com" } 2021-05-25 22:30:05 | from localhost for action retrieve-user-subscriptions got result code 200 and payload { "nodes": [ "test", "node-04798541-7a4f-42a5-b4fe-b60a3f72054a", "node-74a2c30f-bf37-43a4-970c-056b5187734e" ] } |
retrieveUserSubscriptionsWithRegex | 0.052s |
2021-05-25 22:30:05 |
2021-05-25 22:30:05 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-05-25 22:30:05 | ------------------------------------ 2021-05-25 22:30:05 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload: { "jid": "admin@test-domain.com", "node-pattern": "(?!node-74a2c30f-bf37-43a4-970c-056b5187734e)" } 2021-05-25 22:30:05 | from localhost for action retrieve-user-subscriptions got result code 200 and payload { "nodes": [ ] } |
subscribeNodes | 1.014s |
2021-05-25 22:30:04 |
2021-05-25 22:30:04 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-05-25 22:30:04 | ------------------------------------ 2021-05-25 22:30:04 | on localhost executing action subscribe-node with content type application/json and payload: { "node": "node-74a2c30f-bf37-43a4-970c-056b5187734e", "jids": [ "admin@test-domain.com" ] } 2021-05-25 22:30:04 | from localhost for action subscribe-node got result code 200 and payload { "Note": "Operation successful" } |
unsubscribeNodes | 1.083s |
2021-05-25 22:30:05 |
2021-05-25 22:30:05 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-05-25 22:30:05 | ------------------------------------ 2021-05-25 22:30:05 | on localhost executing action unsubscribe-node with content type application/json and payload: { "node": "node-74a2c30f-bf37-43a4-970c-056b5187734e", "jids": [ "admin@test-domain.com" ] } 2021-05-25 22:30:05 | from localhost for action unsubscribe-node got result code 200 and payload { "Note": "Operation successful" } |