Test duration : 8.762s
Passed Tests | ||
---|---|---|
tigase.tests.pubsub.TestRestApiUsingJSON | ||
configureNodes | 1.083s |
2022-06-05 22:38:07 |
2022-06-05 22:38:07 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-06-05 22:38:07 | ------------------------------------ 2022-06-05 22:38:07 | [Mutex] waiting for: [configured:node:node-fa0a70f4-4a5e-4457-94cf-ba711d34bbbb:node-850f5f51-2312-4a6b-8445-9638fad51738] 2022-06-05 22:38:07 | [Mutex] received everything. 2022-06-05 22:38:07 | [Mutex] isItemNotified: configured:node:node-fa0a70f4-4a5e-4457-94cf-ba711d34bbbb:node-850f5f51-2312-4a6b-8445-9638fad51738 :: true 2022-06-05 22:38:08 | [Mutex] waiting for: [received:nodes:8a879c7f-0abe-4d9b-93c6-e814314b0bf9:localhost] 2022-06-05 22:38:08 | [Mutex] received everything. 2022-06-05 22:38:08 | [Mutex] isItemNotified: received:node:8a879c7f-0abe-4d9b-93c6-e814314b0bf9:localhost:node-fa0a70f4-4a5e-4457-94cf-ba711d34bbbb:Node fa0a70f4-4a5e-4457-94cf-ba711d34bbbb :: true 2022-06-05 22:38:08 | [Mutex] waiting for: [received:nodes:ef5c2c6b-72b1-4bcb-9726-79a92e2edeff:localhost] 2022-06-05 22:38:08 | [Mutex] waiting for: [received:nodes:ef5c2c6b-72b1-4bcb-9726-79a92e2edeff:localhost] 2022-06-05 22:38:08 | [Mutex] waiting for: [received:nodes:ef5c2c6b-72b1-4bcb-9726-79a92e2edeff:localhost] 2022-06-05 22:38:08 | [Mutex] received everything. 2022-06-05 22:38:08 | [Mutex] isItemNotified: received:node:ef5c2c6b-72b1-4bcb-9726-79a92e2edeff:localhost:node-fa0a70f4-4a5e-4457-94cf-ba711d34bbbb:Node fa0a70f4-4a5e-4457-94cf-ba711d34bbbb :: false |
createNodes | 1.620s |
2022-06-05 22:38:05 |
2022-06-05 22:38:05 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-06-05 22:38:05 | ------------------------------------ 2022-06-05 22:38:05 | on localhost executing action create-node with content type application/json and payload: { "owner": "admin@test-domain.com", "pubsub#node_type": "leaf", "node": "node-fa0a70f4-4a5e-4457-94cf-ba711d34bbbb", "pubsub#title": "Node fa0a70f4-4a5e-4457-94cf-ba711d34bbbb" } 2022-06-05 22:38:05 | from localhost for action create-node got result code 200 and payload { "Note": "Operation successful" } 2022-06-05 22:38:06 | [Mutex] waiting for: [received:nodes:b84fb74e-b61e-49fb-9fd7-ae6a34bf5b76:localhost] 2022-06-05 22:38:06 | [Mutex] received everything. 2022-06-05 22:38:06 | [Mutex] isItemNotified: received:node:b84fb74e-b61e-49fb-9fd7-ae6a34bf5b76:localhost:node-fa0a70f4-4a5e-4457-94cf-ba711d34bbbb:Node fa0a70f4-4a5e-4457-94cf-ba711d34bbbb :: true |
createSubnodes | 1.024s |
2022-06-05 22:38:06 |
2022-06-05 22:38:06 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-06-05 22:38:06 | ------------------------------------ 2022-06-05 22:38:06 | on localhost executing action create-node with content type application/json and payload: { "owner": "admin@test-domain.com", "pubsub#node_type": "collection", "node": "node-850f5f51-2312-4a6b-8445-9638fad51738", "pubsub#title": "Node 850f5f51-2312-4a6b-8445-9638fad51738" } 2022-06-05 22:38:06 | from localhost for action create-node got result code 200 and payload { "Note": "Operation successful" } 2022-06-05 22:38:07 | [Mutex] waiting for: [received:nodes:b48470e7-0593-4aeb-8050-1ce1bf1c1ee6:localhost] 2022-06-05 22:38:07 | [Mutex] received everything. 2022-06-05 22:38:07 | [Mutex] isItemNotified: received:node:b48470e7-0593-4aeb-8050-1ce1bf1c1ee6:localhost:node-850f5f51-2312-4a6b-8445-9638fad51738:Node 850f5f51-2312-4a6b-8445-9638fad51738 :: true |
deleteNodes | 1.018s |
2022-06-05 22:38:12 |
2022-06-05 22:38:12 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-06-05 22:38:12 | ------------------------------------ 2022-06-05 22:38:12 | on localhost executing action delete-node with content type application/json and payload: { "node": "node-850f5f51-2312-4a6b-8445-9638fad51738" } 2022-06-05 22:38:12 | from localhost for action delete-node got result code 200 and payload { "Note": "Operation successful" } 2022-06-05 22:38:13 | [Mutex] waiting for: [received:nodes:eef3d975-09c1-4096-836a-19197bf7cadd:localhost] 2022-06-05 22:38:13 | [Mutex] waiting for: [received:nodes:eef3d975-09c1-4096-836a-19197bf7cadd:localhost] 2022-06-05 22:38:13 | [Mutex] received everything. 2022-06-05 22:38:13 | [Mutex] isItemNotified: received:node:eef3d975-09c1-4096-836a-19197bf7cadd:localhost:node-850f5f51-2312-4a6b-8445-9638fad51738:Node 850f5f51-2312-4a6b-8445-9638fad51738 :: false |
deleteSubnodes | 1.025s |
2022-06-05 22:38:11 |
2022-06-05 22:38:11 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-06-05 22:38:11 | ------------------------------------ 2022-06-05 22:38:11 | on localhost executing action delete-node with content type application/json and payload: { "node": "node-fa0a70f4-4a5e-4457-94cf-ba711d34bbbb" } 2022-06-05 22:38:11 | from localhost for action delete-node got result code 200 and payload { "Note": "Operation successful" } 2022-06-05 22:38:12 | [Mutex] waiting for: [received:nodes:4164e2dd-3942-4b05-be74-ab2259cd2e68:localhost] 2022-06-05 22:38:12 | [Mutex] received everything. 2022-06-05 22:38:12 | [Mutex] isItemNotified: received:node:4164e2dd-3942-4b05-be74-ab2259cd2e68:localhost:node-fa0a70f4-4a5e-4457-94cf-ba711d34bbbb:Node fa0a70f4-4a5e-4457-94cf-ba711d34bbbb :: false 2022-06-05 22:38:12 | [Mutex] waiting for: [received:nodes:9d096431-91f8-4188-8fcd-d1e7f2ab6f93:localhost] 2022-06-05 22:38:12 | [Mutex] received everything. 2022-06-05 22:38:12 | [Mutex] isItemNotified: received:node:9d096431-91f8-4188-8fcd-d1e7f2ab6f93:localhost:node-fa0a70f4-4a5e-4457-94cf-ba711d34bbbb:Node fa0a70f4-4a5e-4457-94cf-ba711d34bbbb :: false |
publishItemsToNodes | 0.034s |
2022-06-05 22:38:10 |
2022-06-05 22:38:10 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-06-05 22:38:10 | ------------------------------------ 2022-06-05 22:38:10 | on localhost executing action publish-item with content type application/json and payload: { "node": "node-fa0a70f4-4a5e-4457-94cf-ba711d34bbbb", "entry": "<test>item-32038218-bd16-458f-a864-6ce43e530fed</test>", "item-id": "item-32038218-bd16-458f-a864-6ce43e530fed" } 2022-06-05 22:38:10 | from localhost for action publish-item got result code 200 and payload { "Note": "Operation successful", "item-id": "item-32038218-bd16-458f-a864-6ce43e530fed" } 2022-06-05 22:38:10 | [Mutex] waiting for: [published:item:notifieditem-32038218-bd16-458f-a864-6ce43e530fed:admin@test-domain.com] 2022-06-05 22:38:10 | [Mutex] received everything. 2022-06-05 22:38:10 | [Mutex] isItemNotified: published:item:notifieditem-32038218-bd16-458f-a864-6ce43e530fed:admin@test-domain.com :: true |
retractItemsFromNodes | 0.055s |
2022-06-05 22:38:10 |
2022-06-05 22:38:10 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-06-05 22:38:10 | ------------------------------------ 2022-06-05 22:38:10 | on localhost executing action delete-item with content type application/json and payload: { "node": "node-fa0a70f4-4a5e-4457-94cf-ba711d34bbbb", "item-id": "item-32038218-bd16-458f-a864-6ce43e530fed" } 2022-06-05 22:38:10 | from localhost for action delete-item got result code 200 and payload { "Note": "Operation successful", "item-id": "item-32038218-bd16-458f-a864-6ce43e530fed" } 2022-06-05 22:38:10 | [Mutex] received everything. 2022-06-05 22:38:10 | [Mutex] isItemNotified: retracted:item:notifieditem-32038218-bd16-458f-a864-6ce43e530fed:admin@test-domain.com :: true |
retrieveItemsFromNodes | 0.079s |
2022-06-05 22:38:10 |
2022-06-05 22:38:10 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-06-05 22:38:10 | ------------------------------------ 2022-06-05 22:38:10 | on localhost executing action retrieve-item with content type application/json and payload: { "node": "node-fa0a70f4-4a5e-4457-94cf-ba711d34bbbb", "item-id": "item-32038218-bd16-458f-a864-6ce43e530fed" } 2022-06-05 22:38:10 | from localhost for action retrieve-item got result code 200 and payload { "title": "Retrive PubSub node item", "node": "node-fa0a70f4-4a5e-4457-94cf-ba711d34bbbb", "item-id": "item-32038218-bd16-458f-a864-6ce43e530fed", "item": [ "<item id=\"item-32038218-bd16-458f-a864-6ce43e530fed\"><test>item-32038218-bd16-458f-a864-6ce43e530fed</test></item>" ] } 2022-06-05 22:38:10 | [Mutex] notify: [retrieved:item:item-32038218-bd16-458f-a864-6ce43e530fed:payload-matches:true:localhost] 2022-06-05 22:38:10 | [Mutex] received everything. 2022-06-05 22:38:10 | [Mutex] isItemNotified: retrieved:item:item-32038218-bd16-458f-a864-6ce43e530fed:payload-matches:true:localhost :: true |
retrieveUserSubscriptions | 0.058s |
2022-06-05 22:38:10 |
2022-06-05 22:38:10 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-06-05 22:38:10 | ------------------------------------ 2022-06-05 22:38:10 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload: { "jid": "admin@test-domain.com" } 2022-06-05 22:38:10 | from localhost for action retrieve-user-subscriptions got result code 200 and payload { "nodes": [ "node-850f5f51-2312-4a6b-8445-9638fad51738", "test", "node-fa0a70f4-4a5e-4457-94cf-ba711d34bbbb" ] } |
retrieveUserSubscriptionsWithRegex | 0.048s |
2022-06-05 22:38:10 |
2022-06-05 22:38:10 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-06-05 22:38:10 | ------------------------------------ 2022-06-05 22:38:10 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload: { "jid": "admin@test-domain.com", "node-pattern": "(?!node-fa0a70f4-4a5e-4457-94cf-ba711d34bbbb)" } 2022-06-05 22:38:10 | from localhost for action retrieve-user-subscriptions got result code 200 and payload { "nodes": [ ] } |
subscribeNodes | 1.012s |
2022-06-05 22:38:08 |
2022-06-05 22:38:08 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-06-05 22:38:08 | ------------------------------------ 2022-06-05 22:38:08 | on localhost executing action subscribe-node with content type application/json and payload: { "node": "node-fa0a70f4-4a5e-4457-94cf-ba711d34bbbb", "jids": [ "admin@test-domain.com" ] } 2022-06-05 22:38:09 | from localhost for action subscribe-node got result code 200 and payload { "Note": "Operation successful" } |
unsubscribeNodes | 1.079s |
2022-06-05 22:38:10 |
2022-06-05 22:38:10 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-06-05 22:38:10 | ------------------------------------ 2022-06-05 22:38:10 | on localhost executing action unsubscribe-node with content type application/json and payload: { "node": "node-fa0a70f4-4a5e-4457-94cf-ba711d34bbbb", "jids": [ "admin@test-domain.com" ] } 2022-06-05 22:38:10 | from localhost for action unsubscribe-node got result code 200 and payload { "Note": "Operation successful" } |