Test duration : 9.003s
Passed Tests | ||
---|---|---|
tigase.tests.pubsub.TestRestApiUsingJSON | ||
configureNodes | 1.094s |
2021-09-22 23:54:04 |
2021-09-22 23:54:04 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-09-22 23:54:04 | ------------------------------------ 2021-09-22 23:54:04 | [Mutex] waiting for: [configured:node:node-8ebc538f-cd23-44e6-a1d6-f4d7f6f4b957:node-42dbbd4c-e23f-421b-9584-b40065a6742a] 2021-09-22 23:54:04 | [Mutex] received everything. 2021-09-22 23:54:04 | [Mutex] isItemNotified: configured:node:node-8ebc538f-cd23-44e6-a1d6-f4d7f6f4b957:node-42dbbd4c-e23f-421b-9584-b40065a6742a :: true 2021-09-22 23:54:05 | [Mutex] waiting for: [received:nodes:4ce268f4-f3e0-4921-ad85-564480b9c972:localhost] 2021-09-22 23:54:05 | [Mutex] received everything. 2021-09-22 23:54:05 | [Mutex] isItemNotified: received:node:4ce268f4-f3e0-4921-ad85-564480b9c972:localhost:node-8ebc538f-cd23-44e6-a1d6-f4d7f6f4b957:Node 8ebc538f-cd23-44e6-a1d6-f4d7f6f4b957 :: true 2021-09-22 23:54:05 | [Mutex] waiting for: [received:nodes:7e1cdfc1-7802-4f92-907c-838e9741881b:localhost] 2021-09-22 23:54:05 | [Mutex] received everything. 2021-09-22 23:54:05 | [Mutex] isItemNotified: received:node:7e1cdfc1-7802-4f92-907c-838e9741881b:localhost:node-8ebc538f-cd23-44e6-a1d6-f4d7f6f4b957:Node 8ebc538f-cd23-44e6-a1d6-f4d7f6f4b957 :: false |
createNodes | 1.700s |
2021-09-22 23:54:01 |
2021-09-22 23:54:01 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-09-22 23:54:01 | ------------------------------------ 2021-09-22 23:54:02 | on localhost executing action create-node with content type application/json and payload: { "owner": "admin@test-domain.com", "pubsub#node_type": "leaf", "node": "node-8ebc538f-cd23-44e6-a1d6-f4d7f6f4b957", "pubsub#title": "Node 8ebc538f-cd23-44e6-a1d6-f4d7f6f4b957" } 2021-09-22 23:54:02 | from localhost for action create-node got result code 200 and payload { "Note": "Operation successful" } 2021-09-22 23:54:03 | [Mutex] waiting for: [received:nodes:3f3ceedd-a575-4bca-b346-ce3b44c46140:localhost] 2021-09-22 23:54:03 | [Mutex] received everything. 2021-09-22 23:54:03 | [Mutex] isItemNotified: received:node:3f3ceedd-a575-4bca-b346-ce3b44c46140:localhost:node-8ebc538f-cd23-44e6-a1d6-f4d7f6f4b957:Node 8ebc538f-cd23-44e6-a1d6-f4d7f6f4b957 :: true |
createSubnodes | 1.028s |
2021-09-22 23:54:03 |
2021-09-22 23:54:03 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-09-22 23:54:03 | ------------------------------------ 2021-09-22 23:54:03 | on localhost executing action create-node with content type application/json and payload: { "owner": "admin@test-domain.com", "pubsub#node_type": "collection", "node": "node-42dbbd4c-e23f-421b-9584-b40065a6742a", "pubsub#title": "Node 42dbbd4c-e23f-421b-9584-b40065a6742a" } 2021-09-22 23:54:03 | from localhost for action create-node got result code 200 and payload { "Note": "Operation successful" } 2021-09-22 23:54:04 | [Mutex] waiting for: [received:nodes:a5b05df0-7b89-4d5c-894f-8f48d5b7f376:localhost] 2021-09-22 23:54:04 | [Mutex] received everything. 2021-09-22 23:54:04 | [Mutex] isItemNotified: received:node:a5b05df0-7b89-4d5c-894f-8f48d5b7f376:localhost:node-42dbbd4c-e23f-421b-9584-b40065a6742a:Node 42dbbd4c-e23f-421b-9584-b40065a6742a :: true |
deleteNodes | 1.026s |
2021-09-22 23:54:08 |
2021-09-22 23:54:08 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-09-22 23:54:08 | ------------------------------------ 2021-09-22 23:54:08 | on localhost executing action delete-node with content type application/json and payload: { "node": "node-42dbbd4c-e23f-421b-9584-b40065a6742a" } 2021-09-22 23:54:08 | from localhost for action delete-node got result code 200 and payload { "Note": "Operation successful" } 2021-09-22 23:54:09 | [Mutex] waiting for: [received:nodes:c347bc70-d53f-487a-8165-ad0c9740a135:localhost] 2021-09-22 23:54:09 | [Mutex] waiting for: [received:nodes:c347bc70-d53f-487a-8165-ad0c9740a135:localhost] 2021-09-22 23:54:09 | [Mutex] received everything. 2021-09-22 23:54:09 | [Mutex] isItemNotified: received:node:c347bc70-d53f-487a-8165-ad0c9740a135:localhost:node-42dbbd4c-e23f-421b-9584-b40065a6742a:Node 42dbbd4c-e23f-421b-9584-b40065a6742a :: false |
deleteSubnodes | 1.026s |
2021-09-22 23:54:07 |
2021-09-22 23:54:07 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-09-22 23:54:07 | ------------------------------------ 2021-09-22 23:54:07 | on localhost executing action delete-node with content type application/json and payload: { "node": "node-8ebc538f-cd23-44e6-a1d6-f4d7f6f4b957" } 2021-09-22 23:54:07 | from localhost for action delete-node got result code 200 and payload { "Note": "Operation successful" } 2021-09-22 23:54:08 | [Mutex] waiting for: [received:nodes:d961da77-51e8-4386-be9b-c868bf54ef0f:localhost] 2021-09-22 23:54:08 | [Mutex] received everything. 2021-09-22 23:54:08 | [Mutex] isItemNotified: received:node:d961da77-51e8-4386-be9b-c868bf54ef0f:localhost:node-8ebc538f-cd23-44e6-a1d6-f4d7f6f4b957:Node 8ebc538f-cd23-44e6-a1d6-f4d7f6f4b957 :: false 2021-09-22 23:54:08 | [Mutex] waiting for: [received:nodes:589f3601-ab3f-42fa-934b-bcc4142581d1:localhost] 2021-09-22 23:54:08 | [Mutex] received everything. 2021-09-22 23:54:08 | [Mutex] isItemNotified: received:node:589f3601-ab3f-42fa-934b-bcc4142581d1:localhost:node-8ebc538f-cd23-44e6-a1d6-f4d7f6f4b957:Node 8ebc538f-cd23-44e6-a1d6-f4d7f6f4b957 :: false |
publishItemsToNodes | 0.063s |
2021-09-22 23:54:06 |
2021-09-22 23:54:06 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-09-22 23:54:06 | ------------------------------------ 2021-09-22 23:54:06 | on localhost executing action publish-item with content type application/json and payload: { "node": "node-8ebc538f-cd23-44e6-a1d6-f4d7f6f4b957", "entry": "<test>item-6c2ff8f0-547d-4e8b-a07d-d3e7c3498e1a</test>", "item-id": "item-6c2ff8f0-547d-4e8b-a07d-d3e7c3498e1a" } 2021-09-22 23:54:06 | from localhost for action publish-item got result code 200 and payload { "Note": "Operation successful", "item-id": "item-6c2ff8f0-547d-4e8b-a07d-d3e7c3498e1a" } 2021-09-22 23:54:06 | [Mutex] waiting for: [published:item:notifieditem-6c2ff8f0-547d-4e8b-a07d-d3e7c3498e1a:admin@test-domain.com] 2021-09-22 23:54:06 | [Mutex] received everything. 2021-09-22 23:54:06 | [Mutex] isItemNotified: published:item:notifieditem-6c2ff8f0-547d-4e8b-a07d-d3e7c3498e1a:admin@test-domain.com :: true |
retractItemsFromNodes | 0.103s |
2021-09-22 23:54:06 |
2021-09-22 23:54:06 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-09-22 23:54:06 | ------------------------------------ 2021-09-22 23:54:06 | on localhost executing action delete-item with content type application/json and payload: { "node": "node-8ebc538f-cd23-44e6-a1d6-f4d7f6f4b957", "item-id": "item-6c2ff8f0-547d-4e8b-a07d-d3e7c3498e1a" } 2021-09-22 23:54:06 | from localhost for action delete-item got result code 200 and payload { "Note": "Operation successful", "item-id": "item-6c2ff8f0-547d-4e8b-a07d-d3e7c3498e1a" } 2021-09-22 23:54:06 | [Mutex] waiting for: [retracted:item:notifieditem-6c2ff8f0-547d-4e8b-a07d-d3e7c3498e1a:admin@test-domain.com] 2021-09-22 23:54:06 | [Mutex] received everything. 2021-09-22 23:54:06 | [Mutex] isItemNotified: retracted:item:notifieditem-6c2ff8f0-547d-4e8b-a07d-d3e7c3498e1a:admin@test-domain.com :: true |
retrieveItemsFromNodes | 0.031s |
2021-09-22 23:54:06 |
2021-09-22 23:54:06 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-09-22 23:54:06 | ------------------------------------ 2021-09-22 23:54:06 | on localhost executing action retrieve-item with content type application/json and payload: { "node": "node-8ebc538f-cd23-44e6-a1d6-f4d7f6f4b957", "item-id": "item-6c2ff8f0-547d-4e8b-a07d-d3e7c3498e1a" } 2021-09-22 23:54:06 | from localhost for action retrieve-item got result code 200 and payload { "title": "Retrive PubSub node item", "node": "node-8ebc538f-cd23-44e6-a1d6-f4d7f6f4b957", "item-id": "item-6c2ff8f0-547d-4e8b-a07d-d3e7c3498e1a", "item": [ "<item id=\"item-6c2ff8f0-547d-4e8b-a07d-d3e7c3498e1a\"><test>item-6c2ff8f0-547d-4e8b-a07d-d3e7c3498e1a</test></item>" ] } 2021-09-22 23:54:06 | [Mutex] notify: [retrieved:item:item-6c2ff8f0-547d-4e8b-a07d-d3e7c3498e1a:payload-matches:true:localhost] 2021-09-22 23:54:06 | [Mutex] received everything. 2021-09-22 23:54:06 | [Mutex] isItemNotified: retrieved:item:item-6c2ff8f0-547d-4e8b-a07d-d3e7c3498e1a:payload-matches:true:localhost :: true |
retrieveUserSubscriptions | 0.067s |
2021-09-22 23:54:06 |
2021-09-22 23:54:06 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-09-22 23:54:06 | ------------------------------------ 2021-09-22 23:54:06 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload: { "jid": "admin@test-domain.com" } 2021-09-22 23:54:06 | from localhost for action retrieve-user-subscriptions got result code 200 and payload { "nodes": [ "node-8ebc538f-cd23-44e6-a1d6-f4d7f6f4b957", "node-42dbbd4c-e23f-421b-9584-b40065a6742a", "test" ] } |
retrieveUserSubscriptionsWithRegex | 0.052s |
2021-09-22 23:54:06 |
2021-09-22 23:54:06 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-09-22 23:54:06 | ------------------------------------ 2021-09-22 23:54:06 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload: { "jid": "admin@test-domain.com", "node-pattern": "(?!node-8ebc538f-cd23-44e6-a1d6-f4d7f6f4b957)" } 2021-09-22 23:54:06 | from localhost for action retrieve-user-subscriptions got result code 200 and payload { "nodes": [ ] } |
subscribeNodes | 1.008s |
2021-09-22 23:54:05 |
2021-09-22 23:54:05 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-09-22 23:54:05 | ------------------------------------ 2021-09-22 23:54:05 | on localhost executing action subscribe-node with content type application/json and payload: { "node": "node-8ebc538f-cd23-44e6-a1d6-f4d7f6f4b957", "jids": [ "admin@test-domain.com" ] } 2021-09-22 23:54:05 | from localhost for action subscribe-node got result code 200 and payload { "Note": "Operation successful" } |
unsubscribeNodes | 1.012s |
2021-09-22 23:54:06 |
2021-09-22 23:54:06 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-09-22 23:54:06 | ------------------------------------ 2021-09-22 23:54:06 | on localhost executing action unsubscribe-node with content type application/json and payload: { "node": "node-8ebc538f-cd23-44e6-a1d6-f4d7f6f4b957", "jids": [ "admin@test-domain.com" ] } 2021-09-22 23:54:06 | from localhost for action unsubscribe-node got result code 200 and payload { "Note": "Operation successful" } |