Test duration : 9.010s
Passed Tests | ||
---|---|---|
tigase.tests.pubsub.TestRestApiUsingJSON | ||
configureNodes | 1.119s |
2021-01-18 22:06:25 |
2021-01-18 22:06:25 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-01-18 22:06:25 | ------------------------------------ 2021-01-18 22:06:25 | [Mutex] waiting for: [configured:node:node-2fc82a0b-937f-4650-a983-f9229567c9eb:node-3aebb35e-3bc1-4723-9bda-1610257f8f12] 2021-01-18 22:06:25 | [Mutex] received everything. 2021-01-18 22:06:25 | [Mutex] isItemNotified: configured:node:node-2fc82a0b-937f-4650-a983-f9229567c9eb:node-3aebb35e-3bc1-4723-9bda-1610257f8f12 :: true 2021-01-18 22:06:26 | [Mutex] waiting for: [received:nodes:fa86372e-bfd6-44be-bd3c-d80109fe52b2:localhost] 2021-01-18 22:06:26 | [Mutex] received everything. 2021-01-18 22:06:26 | [Mutex] isItemNotified: received:node:fa86372e-bfd6-44be-bd3c-d80109fe52b2:localhost:node-2fc82a0b-937f-4650-a983-f9229567c9eb:Node 2fc82a0b-937f-4650-a983-f9229567c9eb :: true 2021-01-18 22:06:26 | [Mutex] waiting for: [received:nodes:513aeea4-8ba8-4708-987b-0661eee5cab7:localhost] 2021-01-18 22:06:26 | [Mutex] waiting for: [received:nodes:513aeea4-8ba8-4708-987b-0661eee5cab7:localhost] 2021-01-18 22:06:26 | [Mutex] received everything. 2021-01-18 22:06:26 | [Mutex] isItemNotified: received:node:513aeea4-8ba8-4708-987b-0661eee5cab7:localhost:node-2fc82a0b-937f-4650-a983-f9229567c9eb:Node 2fc82a0b-937f-4650-a983-f9229567c9eb :: false |
createNodes | 1.729s |
2021-01-18 22:06:22 |
2021-01-18 22:06:22 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-01-18 22:06:22 | ------------------------------------ 2021-01-18 22:06:23 | on localhost executing action create-node with content type application/json and payload: { "owner": "admin@test-domain.com", "pubsub#node_type": "leaf", "node": "node-2fc82a0b-937f-4650-a983-f9229567c9eb", "pubsub#title": "Node 2fc82a0b-937f-4650-a983-f9229567c9eb" } 2021-01-18 22:06:23 | from localhost for action create-node got result code 200 and payload { "Note": "Operation successful" } 2021-01-18 22:06:24 | [Mutex] waiting for: [received:nodes:a0c3a5a9-f033-4398-807b-525df0ecab94:localhost] 2021-01-18 22:06:24 | [Mutex] received everything. 2021-01-18 22:06:24 | [Mutex] isItemNotified: received:node:a0c3a5a9-f033-4398-807b-525df0ecab94:localhost:node-2fc82a0b-937f-4650-a983-f9229567c9eb:Node 2fc82a0b-937f-4650-a983-f9229567c9eb :: true |
createSubnodes | 1.028s |
2021-01-18 22:06:24 |
2021-01-18 22:06:24 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-01-18 22:06:24 | ------------------------------------ 2021-01-18 22:06:24 | on localhost executing action create-node with content type application/json and payload: { "owner": "admin@test-domain.com", "pubsub#node_type": "collection", "node": "node-3aebb35e-3bc1-4723-9bda-1610257f8f12", "pubsub#title": "Node 3aebb35e-3bc1-4723-9bda-1610257f8f12" } 2021-01-18 22:06:24 | from localhost for action create-node got result code 200 and payload { "Note": "Operation successful" } 2021-01-18 22:06:25 | [Mutex] waiting for: [received:nodes:342260f5-71b8-41a8-ab98-06041e1fd241:localhost] 2021-01-18 22:06:25 | [Mutex] received everything. 2021-01-18 22:06:25 | [Mutex] isItemNotified: received:node:342260f5-71b8-41a8-ab98-06041e1fd241:localhost:node-3aebb35e-3bc1-4723-9bda-1610257f8f12:Node 3aebb35e-3bc1-4723-9bda-1610257f8f12 :: true |
deleteNodes | 1.021s |
2021-01-18 22:06:29 |
2021-01-18 22:06:29 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-01-18 22:06:29 | ------------------------------------ 2021-01-18 22:06:29 | on localhost executing action delete-node with content type application/json and payload: { "node": "node-3aebb35e-3bc1-4723-9bda-1610257f8f12" } 2021-01-18 22:06:29 | from localhost for action delete-node got result code 200 and payload { "Note": "Operation successful" } 2021-01-18 22:06:30 | [Mutex] waiting for: [received:nodes:80be6662-9a22-45d7-904c-1ca9bcf03b20:localhost] 2021-01-18 22:06:30 | [Mutex] received everything. 2021-01-18 22:06:30 | [Mutex] isItemNotified: received:node:80be6662-9a22-45d7-904c-1ca9bcf03b20:localhost:node-3aebb35e-3bc1-4723-9bda-1610257f8f12:Node 3aebb35e-3bc1-4723-9bda-1610257f8f12 :: false |
deleteSubnodes | 1.026s |
2021-01-18 22:06:28 |
2021-01-18 22:06:28 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-01-18 22:06:28 | ------------------------------------ 2021-01-18 22:06:28 | on localhost executing action delete-node with content type application/json and payload: { "node": "node-2fc82a0b-937f-4650-a983-f9229567c9eb" } 2021-01-18 22:06:28 | from localhost for action delete-node got result code 200 and payload { "Note": "Operation successful" } 2021-01-18 22:06:29 | [Mutex] waiting for: [received:nodes:6b7eb5e4-8cf6-4979-b88d-be51067dd98e:localhost] 2021-01-18 22:06:29 | [Mutex] received everything. 2021-01-18 22:06:29 | [Mutex] isItemNotified: received:node:6b7eb5e4-8cf6-4979-b88d-be51067dd98e:localhost:node-2fc82a0b-937f-4650-a983-f9229567c9eb:Node 2fc82a0b-937f-4650-a983-f9229567c9eb :: false 2021-01-18 22:06:29 | [Mutex] waiting for: [received:nodes:e477c7cd-55ed-4884-82b4-1eec0d75101f:localhost] 2021-01-18 22:06:29 | [Mutex] received everything. 2021-01-18 22:06:29 | [Mutex] isItemNotified: received:node:e477c7cd-55ed-4884-82b4-1eec0d75101f:localhost:node-2fc82a0b-937f-4650-a983-f9229567c9eb:Node 2fc82a0b-937f-4650-a983-f9229567c9eb :: false |
publishItemsToNodes | 0.029s |
2021-01-18 22:06:27 |
2021-01-18 22:06:27 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-01-18 22:06:27 | ------------------------------------ 2021-01-18 22:06:27 | on localhost executing action publish-item with content type application/json and payload: { "node": "node-2fc82a0b-937f-4650-a983-f9229567c9eb", "entry": "<test>item-0dd16514-548b-4a4f-adfa-fa21b6bb2fc3</test>", "item-id": "item-0dd16514-548b-4a4f-adfa-fa21b6bb2fc3" } 2021-01-18 22:06:27 | from localhost for action publish-item got result code 200 and payload { "Note": "Operation successful", "item-id": "item-0dd16514-548b-4a4f-adfa-fa21b6bb2fc3" } 2021-01-18 22:06:27 | [Mutex] waiting for: [published:item:notifieditem-0dd16514-548b-4a4f-adfa-fa21b6bb2fc3:admin@test-domain.com] 2021-01-18 22:06:27 | [Mutex] received everything. 2021-01-18 22:06:27 | [Mutex] isItemNotified: published:item:notifieditem-0dd16514-548b-4a4f-adfa-fa21b6bb2fc3:admin@test-domain.com :: true |
retractItemsFromNodes | 0.084s |
2021-01-18 22:06:27 |
2021-01-18 22:06:27 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-01-18 22:06:27 | ------------------------------------ 2021-01-18 22:06:27 | on localhost executing action delete-item with content type application/json and payload: { "node": "node-2fc82a0b-937f-4650-a983-f9229567c9eb", "item-id": "item-0dd16514-548b-4a4f-adfa-fa21b6bb2fc3" } 2021-01-18 22:06:27 | from localhost for action delete-item got result code 200 and payload { "Note": "Operation successful", "item-id": "item-0dd16514-548b-4a4f-adfa-fa21b6bb2fc3" } 2021-01-18 22:06:27 | [Mutex] waiting for: [retracted:item:notifieditem-0dd16514-548b-4a4f-adfa-fa21b6bb2fc3:admin@test-domain.com] 2021-01-18 22:06:27 | [Mutex] received everything. 2021-01-18 22:06:27 | [Mutex] isItemNotified: retracted:item:notifieditem-0dd16514-548b-4a4f-adfa-fa21b6bb2fc3:admin@test-domain.com :: true |
retrieveItemsFromNodes | 0.069s |
2021-01-18 22:06:27 |
2021-01-18 22:06:27 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-01-18 22:06:27 | ------------------------------------ 2021-01-18 22:06:27 | on localhost executing action retrieve-item with content type application/json and payload: { "node": "node-2fc82a0b-937f-4650-a983-f9229567c9eb", "item-id": "item-0dd16514-548b-4a4f-adfa-fa21b6bb2fc3" } 2021-01-18 22:06:27 | from localhost for action retrieve-item got result code 200 and payload { "title": "Retrive PubSub node item", "node": "node-2fc82a0b-937f-4650-a983-f9229567c9eb", "item-id": "item-0dd16514-548b-4a4f-adfa-fa21b6bb2fc3", "item": [ "<item id=\"item-0dd16514-548b-4a4f-adfa-fa21b6bb2fc3\"><test>item-0dd16514-548b-4a4f-adfa-fa21b6bb2fc3</test></item>" ] } 2021-01-18 22:06:27 | [Mutex] notify: [retrieved:item:item-0dd16514-548b-4a4f-adfa-fa21b6bb2fc3:payload-matches:true:localhost] 2021-01-18 22:06:27 | [Mutex] received everything. 2021-01-18 22:06:27 | [Mutex] isItemNotified: retrieved:item:item-0dd16514-548b-4a4f-adfa-fa21b6bb2fc3:payload-matches:true:localhost :: true |
retrieveUserSubscriptions | 0.055s |
2021-01-18 22:06:27 |
2021-01-18 22:06:27 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-01-18 22:06:27 | ------------------------------------ 2021-01-18 22:06:27 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload: { "jid": "admin@test-domain.com" } 2021-01-18 22:06:27 | from localhost for action retrieve-user-subscriptions got result code 200 and payload { "nodes": [ "test", "node-2fc82a0b-937f-4650-a983-f9229567c9eb", "node-3aebb35e-3bc1-4723-9bda-1610257f8f12" ] } |
retrieveUserSubscriptionsWithRegex | 0.055s |
2021-01-18 22:06:27 |
2021-01-18 22:06:27 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-01-18 22:06:27 | ------------------------------------ 2021-01-18 22:06:27 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload: { "jid": "admin@test-domain.com", "node-pattern": "(?!node-2fc82a0b-937f-4650-a983-f9229567c9eb)" } 2021-01-18 22:06:27 | from localhost for action retrieve-user-subscriptions got result code 200 and payload { "nodes": [ ] } |
subscribeNodes | 1.012s |
2021-01-18 22:06:26 |
2021-01-18 22:06:26 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-01-18 22:06:26 | ------------------------------------ 2021-01-18 22:06:26 | on localhost executing action subscribe-node with content type application/json and payload: { "node": "node-2fc82a0b-937f-4650-a983-f9229567c9eb", "jids": [ "admin@test-domain.com" ] } 2021-01-18 22:06:26 | from localhost for action subscribe-node got result code 200 and payload { "Note": "Operation successful" } |
unsubscribeNodes | 1.067s |
2021-01-18 22:06:27 |
2021-01-18 22:06:27 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-01-18 22:06:27 | ------------------------------------ 2021-01-18 22:06:27 | on localhost executing action unsubscribe-node with content type application/json and payload: { "node": "node-2fc82a0b-937f-4650-a983-f9229567c9eb", "jids": [ "admin@test-domain.com" ] } 2021-01-18 22:06:27 | from localhost for action unsubscribe-node got result code 200 and payload { "Note": "Operation successful" } |