Test duration : 8.904s
Passed Tests | ||
---|---|---|
tigase.tests.pubsub.TestRestApiUsingJSON | ||
configureNodes | 1.103s |
2020-09-13 22:32:30 |
2020-09-13 22:32:30 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-09-13 22:32:30 | ------------------------------------ 2020-09-13 22:32:30 | [Mutex] waiting for: [configured:node:node-948852d4-00ce-4b3a-ac45-aa47cfedcc4b:node-3c2fe3a5-2a89-4c60-9369-ade1e7b4c319] 2020-09-13 22:32:30 | [Mutex] received everything. 2020-09-13 22:32:30 | [Mutex] isItemNotified: configured:node:node-948852d4-00ce-4b3a-ac45-aa47cfedcc4b:node-3c2fe3a5-2a89-4c60-9369-ade1e7b4c319 :: true 2020-09-13 22:32:31 | [Mutex] waiting for: [received:nodes:342c853e-b30c-486e-96c6-65f67eb1c58b:localhost] 2020-09-13 22:32:31 | [Mutex] received everything. 2020-09-13 22:32:31 | [Mutex] isItemNotified: received:node:342c853e-b30c-486e-96c6-65f67eb1c58b:localhost:node-948852d4-00ce-4b3a-ac45-aa47cfedcc4b:Node 948852d4-00ce-4b3a-ac45-aa47cfedcc4b :: true 2020-09-13 22:32:31 | [Mutex] waiting for: [received:nodes:6a1585c6-f714-46d1-b6a2-6b07f2b1b259:localhost] 2020-09-13 22:32:31 | [Mutex] received everything. 2020-09-13 22:32:31 | [Mutex] isItemNotified: received:node:6a1585c6-f714-46d1-b6a2-6b07f2b1b259:localhost:node-948852d4-00ce-4b3a-ac45-aa47cfedcc4b:Node 948852d4-00ce-4b3a-ac45-aa47cfedcc4b :: false |
createNodes | 1.596s |
2020-09-13 22:32:28 |
2020-09-13 22:32:28 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-09-13 22:32:28 | ------------------------------------ 2020-09-13 22:32:28 | on localhost executing action create-node with content type application/json and payload: { "owner": "admin@test-domain.com", "pubsub#node_type": "leaf", "node": "node-948852d4-00ce-4b3a-ac45-aa47cfedcc4b", "pubsub#title": "Node 948852d4-00ce-4b3a-ac45-aa47cfedcc4b" } 2020-09-13 22:32:28 | from localhost for action create-node got result code 200 and payload { "Note": "Operation successful" } 2020-09-13 22:32:29 | [Mutex] waiting for: [received:nodes:6d52abfb-35de-40ff-885c-3908fe24e961:localhost] 2020-09-13 22:32:29 | [Mutex] waiting for: [received:nodes:6d52abfb-35de-40ff-885c-3908fe24e961:localhost] 2020-09-13 22:32:29 | [Mutex] waiting for: [received:nodes:6d52abfb-35de-40ff-885c-3908fe24e961:localhost] 2020-09-13 22:32:29 | [Mutex] received everything. 2020-09-13 22:32:29 | [Mutex] isItemNotified: received:node:6d52abfb-35de-40ff-885c-3908fe24e961:localhost:node-948852d4-00ce-4b3a-ac45-aa47cfedcc4b:Node 948852d4-00ce-4b3a-ac45-aa47cfedcc4b :: true |
createSubnodes | 1.026s |
2020-09-13 22:32:29 |
2020-09-13 22:32:29 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-09-13 22:32:29 | ------------------------------------ 2020-09-13 22:32:29 | on localhost executing action create-node with content type application/json and payload: { "owner": "admin@test-domain.com", "pubsub#node_type": "collection", "node": "node-3c2fe3a5-2a89-4c60-9369-ade1e7b4c319", "pubsub#title": "Node 3c2fe3a5-2a89-4c60-9369-ade1e7b4c319" } 2020-09-13 22:32:29 | from localhost for action create-node got result code 200 and payload { "Note": "Operation successful" } 2020-09-13 22:32:30 | [Mutex] waiting for: [received:nodes:33d4aa03-8d88-4157-b26c-b511a6e0ab90:localhost] 2020-09-13 22:32:30 | [Mutex] received everything. 2020-09-13 22:32:30 | [Mutex] isItemNotified: received:node:33d4aa03-8d88-4157-b26c-b511a6e0ab90:localhost:node-3c2fe3a5-2a89-4c60-9369-ade1e7b4c319:Node 3c2fe3a5-2a89-4c60-9369-ade1e7b4c319 :: true |
deleteNodes | 1.024s |
2020-09-13 22:32:35 |
2020-09-13 22:32:35 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-09-13 22:32:35 | ------------------------------------ 2020-09-13 22:32:35 | on localhost executing action delete-node with content type application/json and payload: { "node": "node-3c2fe3a5-2a89-4c60-9369-ade1e7b4c319" } 2020-09-13 22:32:35 | from localhost for action delete-node got result code 200 and payload { "Note": "Operation successful" } 2020-09-13 22:32:36 | [Mutex] waiting for: [received:nodes:c6104cbc-b655-466a-86f4-1ac0dd0a5961:localhost] 2020-09-13 22:32:36 | [Mutex] received everything. 2020-09-13 22:32:36 | [Mutex] isItemNotified: received:node:c6104cbc-b655-466a-86f4-1ac0dd0a5961:localhost:node-3c2fe3a5-2a89-4c60-9369-ade1e7b4c319:Node 3c2fe3a5-2a89-4c60-9369-ade1e7b4c319 :: false |
deleteSubnodes | 1.025s |
2020-09-13 22:32:34 |
2020-09-13 22:32:34 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-09-13 22:32:34 | ------------------------------------ 2020-09-13 22:32:34 | on localhost executing action delete-node with content type application/json and payload: { "node": "node-948852d4-00ce-4b3a-ac45-aa47cfedcc4b" } 2020-09-13 22:32:34 | from localhost for action delete-node got result code 200 and payload { "Note": "Operation successful" } 2020-09-13 22:32:35 | [Mutex] waiting for: [received:nodes:db0ddd58-3551-4fe4-bb79-23691fbd25d4:localhost] 2020-09-13 22:32:35 | [Mutex] received everything. 2020-09-13 22:32:35 | [Mutex] isItemNotified: received:node:db0ddd58-3551-4fe4-bb79-23691fbd25d4:localhost:node-948852d4-00ce-4b3a-ac45-aa47cfedcc4b:Node 948852d4-00ce-4b3a-ac45-aa47cfedcc4b :: false 2020-09-13 22:32:35 | [Mutex] waiting for: [received:nodes:1b30ba28-0e0e-4775-806b-19f5195fa671:localhost] 2020-09-13 22:32:35 | [Mutex] received everything. 2020-09-13 22:32:35 | [Mutex] isItemNotified: received:node:1b30ba28-0e0e-4775-806b-19f5195fa671:localhost:node-948852d4-00ce-4b3a-ac45-aa47cfedcc4b:Node 948852d4-00ce-4b3a-ac45-aa47cfedcc4b :: false |
publishItemsToNodes | 0.025s |
2020-09-13 22:32:32 |
2020-09-13 22:32:32 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-09-13 22:32:32 | ------------------------------------ 2020-09-13 22:32:32 | on localhost executing action publish-item with content type application/json and payload: { "node": "node-948852d4-00ce-4b3a-ac45-aa47cfedcc4b", "entry": "<test>item-3d1a565d-fcc4-44fe-a757-97a8e6cdd1a9</test>", "item-id": "item-3d1a565d-fcc4-44fe-a757-97a8e6cdd1a9" } 2020-09-13 22:32:32 | from localhost for action publish-item got result code 200 and payload { "Note": "Operation successful", "item-id": "item-3d1a565d-fcc4-44fe-a757-97a8e6cdd1a9" } 2020-09-13 22:32:32 | [Mutex] waiting for: [published:item:notifieditem-3d1a565d-fcc4-44fe-a757-97a8e6cdd1a9:admin@test-domain.com] 2020-09-13 22:32:32 | [Mutex] received everything. 2020-09-13 22:32:32 | [Mutex] isItemNotified: published:item:notifieditem-3d1a565d-fcc4-44fe-a757-97a8e6cdd1a9:admin@test-domain.com :: true |
retractItemsFromNodes | 0.087s |
2020-09-13 22:32:33 |
2020-09-13 22:32:33 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-09-13 22:32:33 | ------------------------------------ 2020-09-13 22:32:33 | on localhost executing action delete-item with content type application/json and payload: { "node": "node-948852d4-00ce-4b3a-ac45-aa47cfedcc4b", "item-id": "item-3d1a565d-fcc4-44fe-a757-97a8e6cdd1a9" } 2020-09-13 22:32:33 | from localhost for action delete-item got result code 200 and payload { "Note": "Operation successful", "item-id": "item-3d1a565d-fcc4-44fe-a757-97a8e6cdd1a9" } 2020-09-13 22:32:33 | [Mutex] received everything. 2020-09-13 22:32:33 | [Mutex] isItemNotified: retracted:item:notifieditem-3d1a565d-fcc4-44fe-a757-97a8e6cdd1a9:admin@test-domain.com :: true |
retrieveItemsFromNodes | 0.075s |
2020-09-13 22:32:32 |
2020-09-13 22:32:32 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-09-13 22:32:32 | ------------------------------------ 2020-09-13 22:32:32 | on localhost executing action retrieve-item with content type application/json and payload: { "node": "node-948852d4-00ce-4b3a-ac45-aa47cfedcc4b", "item-id": "item-3d1a565d-fcc4-44fe-a757-97a8e6cdd1a9" } 2020-09-13 22:32:32 | from localhost for action retrieve-item got result code 200 and payload { "title": "Retrive PubSub node item", "node": "node-948852d4-00ce-4b3a-ac45-aa47cfedcc4b", "item-id": "item-3d1a565d-fcc4-44fe-a757-97a8e6cdd1a9", "item": [ "<item id=\"item-3d1a565d-fcc4-44fe-a757-97a8e6cdd1a9\"><test>item-3d1a565d-fcc4-44fe-a757-97a8e6cdd1a9</test></item>" ] } 2020-09-13 22:32:32 | [Mutex] notify: [retrieved:item:item-3d1a565d-fcc4-44fe-a757-97a8e6cdd1a9:payload-matches:true:localhost] 2020-09-13 22:32:32 | [Mutex] received everything. 2020-09-13 22:32:32 | [Mutex] isItemNotified: retrieved:item:item-3d1a565d-fcc4-44fe-a757-97a8e6cdd1a9:payload-matches:true:localhost :: true |
retrieveUserSubscriptions | 0.055s |
2020-09-13 22:32:32 |
2020-09-13 22:32:32 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-09-13 22:32:32 | ------------------------------------ 2020-09-13 22:32:32 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload: { "jid": "admin@test-domain.com" } 2020-09-13 22:32:33 | from localhost for action retrieve-user-subscriptions got result code 200 and payload { "nodes": [ "node-948852d4-00ce-4b3a-ac45-aa47cfedcc4b", "test", "node-3c2fe3a5-2a89-4c60-9369-ade1e7b4c319" ] } |
retrieveUserSubscriptionsWithRegex | 0.051s |
2020-09-13 22:32:33 |
2020-09-13 22:32:33 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-09-13 22:32:33 | ------------------------------------ 2020-09-13 22:32:33 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload: { "jid": "admin@test-domain.com", "node-pattern": "(?!node-948852d4-00ce-4b3a-ac45-aa47cfedcc4b)" } 2020-09-13 22:32:33 | from localhost for action retrieve-user-subscriptions got result code 200 and payload { "nodes": [ ] } |
subscribeNodes | 1.015s |
2020-09-13 22:32:31 |
2020-09-13 22:32:31 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-09-13 22:32:31 | ------------------------------------ 2020-09-13 22:32:31 | on localhost executing action subscribe-node with content type application/json and payload: { "node": "node-948852d4-00ce-4b3a-ac45-aa47cfedcc4b", "jids": [ "admin@test-domain.com" ] } 2020-09-13 22:32:31 | from localhost for action subscribe-node got result code 200 and payload { "Note": "Operation successful" } |
unsubscribeNodes | 1.051s |
2020-09-13 22:32:33 |
2020-09-13 22:32:33 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-09-13 22:32:33 | ------------------------------------ 2020-09-13 22:32:33 | on localhost executing action unsubscribe-node with content type application/json and payload: { "node": "node-948852d4-00ce-4b3a-ac45-aa47cfedcc4b", "jids": [ "admin@test-domain.com" ] } 2020-09-13 22:32:33 | from localhost for action unsubscribe-node got result code 200 and payload { "Note": "Operation successful" } |