Test duration : 9.007s
Passed Tests | ||
---|---|---|
tigase.tests.pubsub.TestRestApiUsingJSON | ||
configureNodes | 1.119s |
2020-10-09 22:33:34 |
2020-10-09 22:33:34 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-10-09 22:33:34 | ------------------------------------ 2020-10-09 22:33:34 | [Mutex] waiting for: [configured:node:node-ab9069a2-c5e4-4d1c-8c04-a35f524b3d85:node-077513e4-de7f-49aa-8a48-59dad866cf7d] 2020-10-09 22:33:34 | [Mutex] received everything. 2020-10-09 22:33:34 | [Mutex] isItemNotified: configured:node:node-ab9069a2-c5e4-4d1c-8c04-a35f524b3d85:node-077513e4-de7f-49aa-8a48-59dad866cf7d :: true 2020-10-09 22:33:35 | [Mutex] waiting for: [received:nodes:e5cca4af-069e-4a04-9464-8330ea403bd6:localhost] 2020-10-09 22:33:35 | [Mutex] waiting for: [received:nodes:e5cca4af-069e-4a04-9464-8330ea403bd6:localhost] 2020-10-09 22:33:35 | [Mutex] received everything. 2020-10-09 22:33:35 | [Mutex] isItemNotified: received:node:e5cca4af-069e-4a04-9464-8330ea403bd6:localhost:node-ab9069a2-c5e4-4d1c-8c04-a35f524b3d85:Node ab9069a2-c5e4-4d1c-8c04-a35f524b3d85 :: true 2020-10-09 22:33:35 | [Mutex] waiting for: [received:nodes:d0df6d06-9b9b-454d-bf57-c26c248ed348:localhost] 2020-10-09 22:33:35 | [Mutex] received everything. 2020-10-09 22:33:35 | [Mutex] isItemNotified: received:node:d0df6d06-9b9b-454d-bf57-c26c248ed348:localhost:node-ab9069a2-c5e4-4d1c-8c04-a35f524b3d85:Node ab9069a2-c5e4-4d1c-8c04-a35f524b3d85 :: false |
createNodes | 1.617s |
2020-10-09 22:33:31 |
2020-10-09 22:33:31 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-10-09 22:33:31 | ------------------------------------ 2020-10-09 22:33:32 | on localhost executing action create-node with content type application/json and payload: { "owner": "admin@test-domain.com", "pubsub#node_type": "leaf", "node": "node-ab9069a2-c5e4-4d1c-8c04-a35f524b3d85", "pubsub#title": "Node ab9069a2-c5e4-4d1c-8c04-a35f524b3d85" } 2020-10-09 22:33:32 | from localhost for action create-node got result code 200 and payload { "Note": "Operation successful" } 2020-10-09 22:33:33 | [Mutex] waiting for: [received:nodes:38119746-edc7-4fb3-8dab-ae8321d8c1c2:localhost] 2020-10-09 22:33:33 | [Mutex] waiting for: [received:nodes:38119746-edc7-4fb3-8dab-ae8321d8c1c2:localhost] 2020-10-09 22:33:33 | [Mutex] received everything. 2020-10-09 22:33:33 | [Mutex] isItemNotified: received:node:38119746-edc7-4fb3-8dab-ae8321d8c1c2:localhost:node-ab9069a2-c5e4-4d1c-8c04-a35f524b3d85:Node ab9069a2-c5e4-4d1c-8c04-a35f524b3d85 :: true |
createSubnodes | 1.027s |
2020-10-09 22:33:33 |
2020-10-09 22:33:33 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-10-09 22:33:33 | ------------------------------------ 2020-10-09 22:33:33 | on localhost executing action create-node with content type application/json and payload: { "owner": "admin@test-domain.com", "pubsub#node_type": "collection", "node": "node-077513e4-de7f-49aa-8a48-59dad866cf7d", "pubsub#title": "Node 077513e4-de7f-49aa-8a48-59dad866cf7d" } 2020-10-09 22:33:33 | from localhost for action create-node got result code 200 and payload { "Note": "Operation successful" } 2020-10-09 22:33:34 | [Mutex] waiting for: [received:nodes:93c489aa-0eb9-4925-a71c-e367ba962365:localhost] 2020-10-09 22:33:34 | [Mutex] received everything. 2020-10-09 22:33:34 | [Mutex] isItemNotified: received:node:93c489aa-0eb9-4925-a71c-e367ba962365:localhost:node-077513e4-de7f-49aa-8a48-59dad866cf7d:Node 077513e4-de7f-49aa-8a48-59dad866cf7d :: true |
deleteNodes | 1.020s |
2020-10-09 22:33:39 |
2020-10-09 22:33:39 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-10-09 22:33:39 | ------------------------------------ 2020-10-09 22:33:39 | on localhost executing action delete-node with content type application/json and payload: { "node": "node-077513e4-de7f-49aa-8a48-59dad866cf7d" } 2020-10-09 22:33:39 | from localhost for action delete-node got result code 200 and payload { "Note": "Operation successful" } 2020-10-09 22:33:40 | [Mutex] waiting for: [received:nodes:7a42fac1-a52f-4fc8-8fd1-42c5e8e63675:localhost] 2020-10-09 22:33:40 | [Mutex] received everything. 2020-10-09 22:33:40 | [Mutex] isItemNotified: received:node:7a42fac1-a52f-4fc8-8fd1-42c5e8e63675:localhost:node-077513e4-de7f-49aa-8a48-59dad866cf7d:Node 077513e4-de7f-49aa-8a48-59dad866cf7d :: false |
deleteSubnodes | 1.033s |
2020-10-09 22:33:37 |
2020-10-09 22:33:37 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-10-09 22:33:37 | ------------------------------------ 2020-10-09 22:33:37 | on localhost executing action delete-node with content type application/json and payload: { "node": "node-ab9069a2-c5e4-4d1c-8c04-a35f524b3d85" } 2020-10-09 22:33:37 | from localhost for action delete-node got result code 200 and payload { "Note": "Operation successful" } 2020-10-09 22:33:38 | [Mutex] waiting for: [received:nodes:f3a51619-222b-474f-8ccb-0c7e9be7c795:localhost] 2020-10-09 22:33:39 | [Mutex] received everything. 2020-10-09 22:33:39 | [Mutex] isItemNotified: received:node:f3a51619-222b-474f-8ccb-0c7e9be7c795:localhost:node-ab9069a2-c5e4-4d1c-8c04-a35f524b3d85:Node ab9069a2-c5e4-4d1c-8c04-a35f524b3d85 :: false 2020-10-09 22:33:39 | [Mutex] waiting for: [received:nodes:44f17943-b0e1-42b0-b8ac-48fd7b1e14de:localhost] 2020-10-09 22:33:39 | [Mutex] received everything. 2020-10-09 22:33:39 | [Mutex] isItemNotified: received:node:44f17943-b0e1-42b0-b8ac-48fd7b1e14de:localhost:node-ab9069a2-c5e4-4d1c-8c04-a35f524b3d85:Node ab9069a2-c5e4-4d1c-8c04-a35f524b3d85 :: false |
publishItemsToNodes | 0.031s |
2020-10-09 22:33:36 |
2020-10-09 22:33:36 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-10-09 22:33:36 | ------------------------------------ 2020-10-09 22:33:36 | on localhost executing action publish-item with content type application/json and payload: { "node": "node-ab9069a2-c5e4-4d1c-8c04-a35f524b3d85", "entry": "<test>item-28056b15-5110-4a8c-bfdd-3cf54c75dc7b</test>", "item-id": "item-28056b15-5110-4a8c-bfdd-3cf54c75dc7b" } 2020-10-09 22:33:36 | from localhost for action publish-item got result code 200 and payload { "Note": "Operation successful", "item-id": "item-28056b15-5110-4a8c-bfdd-3cf54c75dc7b" } 2020-10-09 22:33:36 | [Mutex] waiting for: [published:item:notifieditem-28056b15-5110-4a8c-bfdd-3cf54c75dc7b:admin@test-domain.com] 2020-10-09 22:33:36 | [Mutex] received everything. 2020-10-09 22:33:36 | [Mutex] isItemNotified: published:item:notifieditem-28056b15-5110-4a8c-bfdd-3cf54c75dc7b:admin@test-domain.com :: true |
retractItemsFromNodes | 0.102s |
2020-10-09 22:33:36 |
2020-10-09 22:33:36 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-10-09 22:33:36 | ------------------------------------ 2020-10-09 22:33:36 | on localhost executing action delete-item with content type application/json and payload: { "node": "node-ab9069a2-c5e4-4d1c-8c04-a35f524b3d85", "item-id": "item-28056b15-5110-4a8c-bfdd-3cf54c75dc7b" } 2020-10-09 22:33:36 | from localhost for action delete-item got result code 200 and payload { "Note": "Operation successful", "item-id": "item-28056b15-5110-4a8c-bfdd-3cf54c75dc7b" } 2020-10-09 22:33:36 | [Mutex] waiting for: [retracted:item:notifieditem-28056b15-5110-4a8c-bfdd-3cf54c75dc7b:admin@test-domain.com] 2020-10-09 22:33:36 | [Mutex] received everything. 2020-10-09 22:33:36 | [Mutex] isItemNotified: retracted:item:notifieditem-28056b15-5110-4a8c-bfdd-3cf54c75dc7b:admin@test-domain.com :: true |
retrieveItemsFromNodes | 0.081s |
2020-10-09 22:33:36 |
2020-10-09 22:33:36 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-10-09 22:33:36 | ------------------------------------ 2020-10-09 22:33:36 | on localhost executing action retrieve-item with content type application/json and payload: { "node": "node-ab9069a2-c5e4-4d1c-8c04-a35f524b3d85", "item-id": "item-28056b15-5110-4a8c-bfdd-3cf54c75dc7b" } 2020-10-09 22:33:36 | from localhost for action retrieve-item got result code 200 and payload { "title": "Retrive PubSub node item", "node": "node-ab9069a2-c5e4-4d1c-8c04-a35f524b3d85", "item-id": "item-28056b15-5110-4a8c-bfdd-3cf54c75dc7b", "item": [ "<item id=\"item-28056b15-5110-4a8c-bfdd-3cf54c75dc7b\"><test>item-28056b15-5110-4a8c-bfdd-3cf54c75dc7b</test></item>" ] } 2020-10-09 22:33:36 | [Mutex] notify: [retrieved:item:item-28056b15-5110-4a8c-bfdd-3cf54c75dc7b:payload-matches:true:localhost] 2020-10-09 22:33:36 | [Mutex] received everything. 2020-10-09 22:33:36 | [Mutex] isItemNotified: retrieved:item:item-28056b15-5110-4a8c-bfdd-3cf54c75dc7b:payload-matches:true:localhost :: true |
retrieveUserSubscriptions | 0.050s |
2020-10-09 22:33:36 |
2020-10-09 22:33:36 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-10-09 22:33:36 | ------------------------------------ 2020-10-09 22:33:36 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload: { "jid": "admin@test-domain.com" } 2020-10-09 22:33:36 | from localhost for action retrieve-user-subscriptions got result code 200 and payload { "nodes": [ "node-077513e4-de7f-49aa-8a48-59dad866cf7d", "test", "node-ab9069a2-c5e4-4d1c-8c04-a35f524b3d85" ] } |
retrieveUserSubscriptionsWithRegex | 0.092s |
2020-10-09 22:33:36 |
2020-10-09 22:33:36 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-10-09 22:33:36 | ------------------------------------ 2020-10-09 22:33:36 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload: { "jid": "admin@test-domain.com", "node-pattern": "(?!node-ab9069a2-c5e4-4d1c-8c04-a35f524b3d85)" } 2020-10-09 22:33:36 | from localhost for action retrieve-user-subscriptions got result code 200 and payload { "nodes": [ ] } |
subscribeNodes | 1.009s |
2020-10-09 22:33:35 |
2020-10-09 22:33:35 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-10-09 22:33:35 | ------------------------------------ 2020-10-09 22:33:35 | on localhost executing action subscribe-node with content type application/json and payload: { "node": "node-ab9069a2-c5e4-4d1c-8c04-a35f524b3d85", "jids": [ "admin@test-domain.com" ] } 2020-10-09 22:33:35 | from localhost for action subscribe-node got result code 200 and payload { "Note": "Operation successful" } |
unsubscribeNodes | 1.053s |
2020-10-09 22:33:36 |
2020-10-09 22:33:36 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-10-09 22:33:36 | ------------------------------------ 2020-10-09 22:33:36 | on localhost executing action unsubscribe-node with content type application/json and payload: { "node": "node-ab9069a2-c5e4-4d1c-8c04-a35f524b3d85", "jids": [ "admin@test-domain.com" ] } 2020-10-09 22:33:36 | from localhost for action unsubscribe-node got result code 200 and payload { "Note": "Operation successful" } |