Test duration : 8.854s
Passed Tests | ||
---|---|---|
tigase.tests.pubsub.TestRestApiUsingJSON | ||
configureNodes | 1.109s |
2021-03-21 22:30:43 |
2021-03-21 22:30:43 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-03-21 22:30:43 | ------------------------------------ 2021-03-21 22:30:43 | [Mutex] waiting for: [configured:node:node-0dfe1111-7bba-4616-acab-273b0b41eb03:node-31c62797-9db1-49a9-9a2e-b75bc8fd1d77] 2021-03-21 22:30:43 | [Mutex] received everything. 2021-03-21 22:30:43 | [Mutex] isItemNotified: configured:node:node-0dfe1111-7bba-4616-acab-273b0b41eb03:node-31c62797-9db1-49a9-9a2e-b75bc8fd1d77 :: true 2021-03-21 22:30:44 | [Mutex] waiting for: [received:nodes:d82602c5-ac08-4c77-99e7-c0d974c94fad:localhost] 2021-03-21 22:30:44 | [Mutex] received everything. 2021-03-21 22:30:44 | [Mutex] isItemNotified: received:node:d82602c5-ac08-4c77-99e7-c0d974c94fad:localhost:node-0dfe1111-7bba-4616-acab-273b0b41eb03:Node 0dfe1111-7bba-4616-acab-273b0b41eb03 :: true 2021-03-21 22:30:44 | [Mutex] waiting for: [received:nodes:03f6d436-296b-45fe-8297-f280738d8e6e:localhost] 2021-03-21 22:30:44 | [Mutex] waiting for: [received:nodes:03f6d436-296b-45fe-8297-f280738d8e6e:localhost] 2021-03-21 22:30:44 | [Mutex] received everything. 2021-03-21 22:30:44 | [Mutex] isItemNotified: received:node:03f6d436-296b-45fe-8297-f280738d8e6e:localhost:node-0dfe1111-7bba-4616-acab-273b0b41eb03:Node 0dfe1111-7bba-4616-acab-273b0b41eb03 :: false |
createNodes | 1.566s |
2021-03-21 22:30:40 |
2021-03-21 22:30:40 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-03-21 22:30:40 | ------------------------------------ 2021-03-21 22:30:40 | on localhost executing action create-node with content type application/json and payload: { "owner": "admin@test-domain.com", "pubsub#node_type": "leaf", "node": "node-0dfe1111-7bba-4616-acab-273b0b41eb03", "pubsub#title": "Node 0dfe1111-7bba-4616-acab-273b0b41eb03" } 2021-03-21 22:30:40 | from localhost for action create-node got result code 200 and payload { "Note": "Operation successful" } 2021-03-21 22:30:41 | [Mutex] waiting for: [received:nodes:b8f4c4e6-3ad2-4f68-adae-eb9f498e5308:localhost] 2021-03-21 22:30:41 | [Mutex] received everything. 2021-03-21 22:30:41 | [Mutex] isItemNotified: received:node:b8f4c4e6-3ad2-4f68-adae-eb9f498e5308:localhost:node-0dfe1111-7bba-4616-acab-273b0b41eb03:Node 0dfe1111-7bba-4616-acab-273b0b41eb03 :: true |
createSubnodes | 1.025s |
2021-03-21 22:30:41 |
2021-03-21 22:30:41 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-03-21 22:30:41 | ------------------------------------ 2021-03-21 22:30:41 | on localhost executing action create-node with content type application/json and payload: { "owner": "admin@test-domain.com", "pubsub#node_type": "collection", "node": "node-31c62797-9db1-49a9-9a2e-b75bc8fd1d77", "pubsub#title": "Node 31c62797-9db1-49a9-9a2e-b75bc8fd1d77" } 2021-03-21 22:30:42 | from localhost for action create-node got result code 200 and payload { "Note": "Operation successful" } 2021-03-21 22:30:43 | [Mutex] waiting for: [received:nodes:9919cc2a-ea91-4269-af49-28963a3fd98d:localhost] 2021-03-21 22:30:43 | [Mutex] waiting for: [received:nodes:9919cc2a-ea91-4269-af49-28963a3fd98d:localhost] 2021-03-21 22:30:43 | [Mutex] waiting for: [received:nodes:9919cc2a-ea91-4269-af49-28963a3fd98d:localhost] 2021-03-21 22:30:43 | [Mutex] waiting for: [received:nodes:9919cc2a-ea91-4269-af49-28963a3fd98d:localhost] 2021-03-21 22:30:43 | [Mutex] received everything. 2021-03-21 22:30:43 | [Mutex] isItemNotified: received:node:9919cc2a-ea91-4269-af49-28963a3fd98d:localhost:node-31c62797-9db1-49a9-9a2e-b75bc8fd1d77:Node 31c62797-9db1-49a9-9a2e-b75bc8fd1d77 :: true |
deleteNodes | 1.021s |
2021-03-21 22:30:47 |
2021-03-21 22:30:47 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-03-21 22:30:47 | ------------------------------------ 2021-03-21 22:30:47 | on localhost executing action delete-node with content type application/json and payload: { "node": "node-31c62797-9db1-49a9-9a2e-b75bc8fd1d77" } 2021-03-21 22:30:47 | from localhost for action delete-node got result code 200 and payload { "Note": "Operation successful" } 2021-03-21 22:30:48 | [Mutex] waiting for: [received:nodes:882bb1ea-29ee-4159-9e67-af50d3fc69ce:localhost] 2021-03-21 22:30:48 | [Mutex] waiting for: [received:nodes:882bb1ea-29ee-4159-9e67-af50d3fc69ce:localhost] 2021-03-21 22:30:48 | [Mutex] received everything. 2021-03-21 22:30:48 | [Mutex] isItemNotified: received:node:882bb1ea-29ee-4159-9e67-af50d3fc69ce:localhost:node-31c62797-9db1-49a9-9a2e-b75bc8fd1d77:Node 31c62797-9db1-49a9-9a2e-b75bc8fd1d77 :: false |
deleteSubnodes | 1.028s |
2021-03-21 22:30:46 |
2021-03-21 22:30:46 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-03-21 22:30:46 | ------------------------------------ 2021-03-21 22:30:46 | on localhost executing action delete-node with content type application/json and payload: { "node": "node-0dfe1111-7bba-4616-acab-273b0b41eb03" } 2021-03-21 22:30:46 | from localhost for action delete-node got result code 200 and payload { "Note": "Operation successful" } 2021-03-21 22:30:47 | [Mutex] waiting for: [received:nodes:2dc45f33-00cb-48b3-8d18-44b2413106b3:localhost] 2021-03-21 22:30:47 | [Mutex] received everything. 2021-03-21 22:30:47 | [Mutex] isItemNotified: received:node:2dc45f33-00cb-48b3-8d18-44b2413106b3:localhost:node-0dfe1111-7bba-4616-acab-273b0b41eb03:Node 0dfe1111-7bba-4616-acab-273b0b41eb03 :: false 2021-03-21 22:30:47 | [Mutex] waiting for: [received:nodes:cb81abc4-e5e2-4933-8024-8a108626f6fe:localhost] 2021-03-21 22:30:47 | [Mutex] received everything. 2021-03-21 22:30:47 | [Mutex] isItemNotified: received:node:cb81abc4-e5e2-4933-8024-8a108626f6fe:localhost:node-0dfe1111-7bba-4616-acab-273b0b41eb03:Node 0dfe1111-7bba-4616-acab-273b0b41eb03 :: false |
publishItemsToNodes | 0.043s |
2021-03-21 22:30:45 |
2021-03-21 22:30:45 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-03-21 22:30:45 | ------------------------------------ 2021-03-21 22:30:45 | on localhost executing action publish-item with content type application/json and payload: { "node": "node-0dfe1111-7bba-4616-acab-273b0b41eb03", "entry": "<test>item-778f5c36-5de6-404d-b170-1ccd1379ca14</test>", "item-id": "item-778f5c36-5de6-404d-b170-1ccd1379ca14" } 2021-03-21 22:30:45 | from localhost for action publish-item got result code 200 and payload { "Note": "Operation successful", "item-id": "item-778f5c36-5de6-404d-b170-1ccd1379ca14" } 2021-03-21 22:30:45 | [Mutex] waiting for: [published:item:notifieditem-778f5c36-5de6-404d-b170-1ccd1379ca14:admin@test-domain.com] 2021-03-21 22:30:45 | [Mutex] received everything. 2021-03-21 22:30:45 | [Mutex] isItemNotified: published:item:notifieditem-778f5c36-5de6-404d-b170-1ccd1379ca14:admin@test-domain.com :: true |
retractItemsFromNodes | 0.101s |
2021-03-21 22:30:45 |
2021-03-21 22:30:45 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-03-21 22:30:45 | ------------------------------------ 2021-03-21 22:30:45 | on localhost executing action delete-item with content type application/json and payload: { "node": "node-0dfe1111-7bba-4616-acab-273b0b41eb03", "item-id": "item-778f5c36-5de6-404d-b170-1ccd1379ca14" } 2021-03-21 22:30:45 | from localhost for action delete-item got result code 200 and payload { "Note": "Operation successful", "item-id": "item-778f5c36-5de6-404d-b170-1ccd1379ca14" } 2021-03-21 22:30:45 | [Mutex] waiting for: [retracted:item:notifieditem-778f5c36-5de6-404d-b170-1ccd1379ca14:admin@test-domain.com] 2021-03-21 22:30:45 | [Mutex] received everything. 2021-03-21 22:30:45 | [Mutex] isItemNotified: retracted:item:notifieditem-778f5c36-5de6-404d-b170-1ccd1379ca14:admin@test-domain.com :: true |
retrieveItemsFromNodes | 0.059s |
2021-03-21 22:30:45 |
2021-03-21 22:30:45 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-03-21 22:30:45 | ------------------------------------ 2021-03-21 22:30:45 | on localhost executing action retrieve-item with content type application/json and payload: { "node": "node-0dfe1111-7bba-4616-acab-273b0b41eb03", "item-id": "item-778f5c36-5de6-404d-b170-1ccd1379ca14" } 2021-03-21 22:30:45 | from localhost for action retrieve-item got result code 200 and payload { "title": "Retrive PubSub node item", "node": "node-0dfe1111-7bba-4616-acab-273b0b41eb03", "item-id": "item-778f5c36-5de6-404d-b170-1ccd1379ca14", "item": [ "<item id=\"item-778f5c36-5de6-404d-b170-1ccd1379ca14\"><test>item-778f5c36-5de6-404d-b170-1ccd1379ca14</test></item>" ] } 2021-03-21 22:30:45 | [Mutex] notify: [retrieved:item:item-778f5c36-5de6-404d-b170-1ccd1379ca14:payload-matches:true:localhost] 2021-03-21 22:30:45 | [Mutex] received everything. 2021-03-21 22:30:45 | [Mutex] isItemNotified: retrieved:item:item-778f5c36-5de6-404d-b170-1ccd1379ca14:payload-matches:true:localhost :: true |
retrieveUserSubscriptions | 0.051s |
2021-03-21 22:30:45 |
2021-03-21 22:30:45 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-03-21 22:30:45 | ------------------------------------ 2021-03-21 22:30:45 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload: { "jid": "admin@test-domain.com" } 2021-03-21 22:30:45 | from localhost for action retrieve-user-subscriptions got result code 200 and payload { "nodes": [ "test", "node-0dfe1111-7bba-4616-acab-273b0b41eb03", "node-31c62797-9db1-49a9-9a2e-b75bc8fd1d77" ] } |
retrieveUserSubscriptionsWithRegex | 0.052s |
2021-03-21 22:30:45 |
2021-03-21 22:30:45 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-03-21 22:30:45 | ------------------------------------ 2021-03-21 22:30:45 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload: { "jid": "admin@test-domain.com", "node-pattern": "(?!node-0dfe1111-7bba-4616-acab-273b0b41eb03)" } 2021-03-21 22:30:45 | from localhost for action retrieve-user-subscriptions got result code 200 and payload { "nodes": [ ] } |
subscribeNodes | 1.012s |
2021-03-21 22:30:44 |
2021-03-21 22:30:44 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-03-21 22:30:44 | ------------------------------------ 2021-03-21 22:30:44 | on localhost executing action subscribe-node with content type application/json and payload: { "node": "node-0dfe1111-7bba-4616-acab-273b0b41eb03", "jids": [ "admin@test-domain.com" ] } 2021-03-21 22:30:44 | from localhost for action subscribe-node got result code 200 and payload { "Note": "Operation successful" } |
unsubscribeNodes | 1.066s |
2021-03-21 22:30:45 |
2021-03-21 22:30:45 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-03-21 22:30:45 | ------------------------------------ 2021-03-21 22:30:45 | on localhost executing action unsubscribe-node with content type application/json and payload: { "node": "node-0dfe1111-7bba-4616-acab-273b0b41eb03", "jids": [ "admin@test-domain.com" ] } 2021-03-21 22:30:45 | from localhost for action unsubscribe-node got result code 200 and payload { "Note": "Operation successful" } |