Test duration : 8.772s
Passed Tests | ||
---|---|---|
tigase.tests.pubsub.TestRestApiUsingJSON | ||
configureNodes | 1.100s |
2022-05-15 22:54:08 |
2022-05-15 22:54:08 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-05-15 22:54:08 | ------------------------------------ 2022-05-15 22:54:08 | [Mutex] waiting for: [configured:node:node-bbe497dd-fdb4-4e52-b28b-4ab02fc0979f:node-6982408a-4eb4-4230-a04f-680a02741d64] 2022-05-15 22:54:08 | [Mutex] received everything. 2022-05-15 22:54:08 | [Mutex] isItemNotified: configured:node:node-bbe497dd-fdb4-4e52-b28b-4ab02fc0979f:node-6982408a-4eb4-4230-a04f-680a02741d64 :: true 2022-05-15 22:54:09 | [Mutex] waiting for: [received:nodes:182356d8-bb82-4b96-89b0-f80a371528c9:localhost] 2022-05-15 22:54:09 | [Mutex] received everything. 2022-05-15 22:54:09 | [Mutex] isItemNotified: received:node:182356d8-bb82-4b96-89b0-f80a371528c9:localhost:node-bbe497dd-fdb4-4e52-b28b-4ab02fc0979f:Node bbe497dd-fdb4-4e52-b28b-4ab02fc0979f :: true 2022-05-15 22:54:09 | [Mutex] waiting for: [received:nodes:463d3f3b-0959-47ff-a213-793d04f22c65:localhost] 2022-05-15 22:54:09 | [Mutex] waiting for: [received:nodes:463d3f3b-0959-47ff-a213-793d04f22c65:localhost] 2022-05-15 22:54:09 | [Mutex] received everything. 2022-05-15 22:54:09 | [Mutex] isItemNotified: received:node:463d3f3b-0959-47ff-a213-793d04f22c65:localhost:node-bbe497dd-fdb4-4e52-b28b-4ab02fc0979f:Node bbe497dd-fdb4-4e52-b28b-4ab02fc0979f :: false |
createNodes | 1.604s |
2022-05-15 22:54:06 |
2022-05-15 22:54:06 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-05-15 22:54:06 | ------------------------------------ 2022-05-15 22:54:06 | on localhost executing action create-node with content type application/json and payload: { "owner": "admin@test-domain.com", "pubsub#node_type": "leaf", "node": "node-bbe497dd-fdb4-4e52-b28b-4ab02fc0979f", "pubsub#title": "Node bbe497dd-fdb4-4e52-b28b-4ab02fc0979f" } 2022-05-15 22:54:06 | from localhost for action create-node got result code 200 and payload { "Note": "Operation successful" } 2022-05-15 22:54:07 | [Mutex] waiting for: [received:nodes:c784baa9-8149-487c-be6c-ccbdba3f67a7:localhost] 2022-05-15 22:54:07 | [Mutex] received everything. 2022-05-15 22:54:07 | [Mutex] isItemNotified: received:node:c784baa9-8149-487c-be6c-ccbdba3f67a7:localhost:node-bbe497dd-fdb4-4e52-b28b-4ab02fc0979f:Node bbe497dd-fdb4-4e52-b28b-4ab02fc0979f :: true |
createSubnodes | 1.030s |
2022-05-15 22:54:07 |
2022-05-15 22:54:07 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-05-15 22:54:07 | ------------------------------------ 2022-05-15 22:54:07 | on localhost executing action create-node with content type application/json and payload: { "owner": "admin@test-domain.com", "pubsub#node_type": "collection", "node": "node-6982408a-4eb4-4230-a04f-680a02741d64", "pubsub#title": "Node 6982408a-4eb4-4230-a04f-680a02741d64" } 2022-05-15 22:54:07 | from localhost for action create-node got result code 200 and payload { "Note": "Operation successful" } 2022-05-15 22:54:08 | [Mutex] waiting for: [received:nodes:343fb94a-0fff-45b4-b298-55be37bbe551:localhost] 2022-05-15 22:54:08 | [Mutex] received everything. 2022-05-15 22:54:08 | [Mutex] isItemNotified: received:node:343fb94a-0fff-45b4-b298-55be37bbe551:localhost:node-6982408a-4eb4-4230-a04f-680a02741d64:Node 6982408a-4eb4-4230-a04f-680a02741d64 :: true |
deleteNodes | 1.019s |
2022-05-15 22:54:13 |
2022-05-15 22:54:13 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-05-15 22:54:13 | ------------------------------------ 2022-05-15 22:54:13 | on localhost executing action delete-node with content type application/json and payload: { "node": "node-6982408a-4eb4-4230-a04f-680a02741d64" } 2022-05-15 22:54:13 | from localhost for action delete-node got result code 200 and payload { "Note": "Operation successful" } 2022-05-15 22:54:14 | [Mutex] waiting for: [received:nodes:4ce3a8ec-3596-44e5-a678-4d2a3ca5d91a:localhost] 2022-05-15 22:54:14 | [Mutex] received everything. 2022-05-15 22:54:14 | [Mutex] isItemNotified: received:node:4ce3a8ec-3596-44e5-a678-4d2a3ca5d91a:localhost:node-6982408a-4eb4-4230-a04f-680a02741d64:Node 6982408a-4eb4-4230-a04f-680a02741d64 :: false |
deleteSubnodes | 1.036s |
2022-05-15 22:54:12 |
2022-05-15 22:54:12 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-05-15 22:54:12 | ------------------------------------ 2022-05-15 22:54:12 | on localhost executing action delete-node with content type application/json and payload: { "node": "node-bbe497dd-fdb4-4e52-b28b-4ab02fc0979f" } 2022-05-15 22:54:12 | from localhost for action delete-node got result code 200 and payload { "Note": "Operation successful" } 2022-05-15 22:54:13 | [Mutex] waiting for: [received:nodes:fd9485a6-5711-4783-94c4-c6d713af1faf:localhost] 2022-05-15 22:54:13 | [Mutex] received everything. 2022-05-15 22:54:13 | [Mutex] isItemNotified: received:node:fd9485a6-5711-4783-94c4-c6d713af1faf:localhost:node-bbe497dd-fdb4-4e52-b28b-4ab02fc0979f:Node bbe497dd-fdb4-4e52-b28b-4ab02fc0979f :: false 2022-05-15 22:54:13 | [Mutex] waiting for: [received:nodes:cefa68d6-8d28-40a9-aabd-fa92c3afb26d:localhost] 2022-05-15 22:54:13 | [Mutex] received everything. 2022-05-15 22:54:13 | [Mutex] isItemNotified: received:node:cefa68d6-8d28-40a9-aabd-fa92c3afb26d:localhost:node-bbe497dd-fdb4-4e52-b28b-4ab02fc0979f:Node bbe497dd-fdb4-4e52-b28b-4ab02fc0979f :: false |
publishItemsToNodes | 0.045s |
2022-05-15 22:54:10 |
2022-05-15 22:54:10 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-05-15 22:54:10 | ------------------------------------ 2022-05-15 22:54:10 | on localhost executing action publish-item with content type application/json and payload: { "node": "node-bbe497dd-fdb4-4e52-b28b-4ab02fc0979f", "entry": "<test>item-315e8fc9-965e-4a0b-a110-549a00011d47</test>", "item-id": "item-315e8fc9-965e-4a0b-a110-549a00011d47" } 2022-05-15 22:54:10 | from localhost for action publish-item got result code 200 and payload { "Note": "Operation successful", "item-id": "item-315e8fc9-965e-4a0b-a110-549a00011d47" } 2022-05-15 22:54:10 | [Mutex] received everything. 2022-05-15 22:54:10 | [Mutex] isItemNotified: published:item:notifieditem-315e8fc9-965e-4a0b-a110-549a00011d47:admin@test-domain.com :: true |
retractItemsFromNodes | 0.051s |
2022-05-15 22:54:11 |
2022-05-15 22:54:11 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-05-15 22:54:11 | ------------------------------------ 2022-05-15 22:54:11 | on localhost executing action delete-item with content type application/json and payload: { "node": "node-bbe497dd-fdb4-4e52-b28b-4ab02fc0979f", "item-id": "item-315e8fc9-965e-4a0b-a110-549a00011d47" } 2022-05-15 22:54:11 | from localhost for action delete-item got result code 200 and payload { "Note": "Operation successful", "item-id": "item-315e8fc9-965e-4a0b-a110-549a00011d47" } 2022-05-15 22:54:11 | [Mutex] received everything. 2022-05-15 22:54:11 | [Mutex] isItemNotified: retracted:item:notifieditem-315e8fc9-965e-4a0b-a110-549a00011d47:admin@test-domain.com :: true |
retrieveItemsFromNodes | 0.134s |
2022-05-15 22:54:10 |
2022-05-15 22:54:10 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-05-15 22:54:10 | ------------------------------------ 2022-05-15 22:54:10 | on localhost executing action retrieve-item with content type application/json and payload: { "node": "node-bbe497dd-fdb4-4e52-b28b-4ab02fc0979f", "item-id": "item-315e8fc9-965e-4a0b-a110-549a00011d47" } 2022-05-15 22:54:11 | from localhost for action retrieve-item got result code 200 and payload { "title": "Retrive PubSub node item", "node": "node-bbe497dd-fdb4-4e52-b28b-4ab02fc0979f", "item-id": "item-315e8fc9-965e-4a0b-a110-549a00011d47", "item": [ "<item id=\"item-315e8fc9-965e-4a0b-a110-549a00011d47\"><test>item-315e8fc9-965e-4a0b-a110-549a00011d47</test></item>" ] } 2022-05-15 22:54:11 | [Mutex] notify: [retrieved:item:item-315e8fc9-965e-4a0b-a110-549a00011d47:payload-matches:true:localhost] 2022-05-15 22:54:11 | [Mutex] received everything. 2022-05-15 22:54:11 | [Mutex] isItemNotified: retrieved:item:item-315e8fc9-965e-4a0b-a110-549a00011d47:payload-matches:true:localhost :: true |
retrieveUserSubscriptions | 0.051s |
2022-05-15 22:54:11 |
2022-05-15 22:54:11 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-05-15 22:54:11 | ------------------------------------ 2022-05-15 22:54:11 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload: { "jid": "admin@test-domain.com" } 2022-05-15 22:54:11 | from localhost for action retrieve-user-subscriptions got result code 200 and payload { "nodes": [ "test", "node-bbe497dd-fdb4-4e52-b28b-4ab02fc0979f", "node-6982408a-4eb4-4230-a04f-680a02741d64" ] } |
retrieveUserSubscriptionsWithRegex | 0.047s |
2022-05-15 22:54:11 |
2022-05-15 22:54:11 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-05-15 22:54:11 | ------------------------------------ 2022-05-15 22:54:11 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload: { "jid": "admin@test-domain.com", "node-pattern": "(?!node-bbe497dd-fdb4-4e52-b28b-4ab02fc0979f)" } 2022-05-15 22:54:11 | from localhost for action retrieve-user-subscriptions got result code 200 and payload { "nodes": [ ] } |
subscribeNodes | 1.010s |
2022-05-15 22:54:09 |
2022-05-15 22:54:09 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-05-15 22:54:09 | ------------------------------------ 2022-05-15 22:54:09 | on localhost executing action subscribe-node with content type application/json and payload: { "node": "node-bbe497dd-fdb4-4e52-b28b-4ab02fc0979f", "jids": [ "admin@test-domain.com" ] } 2022-05-15 22:54:09 | from localhost for action subscribe-node got result code 200 and payload { "Note": "Operation successful" } |
unsubscribeNodes | 1.063s |
2022-05-15 22:54:11 |
2022-05-15 22:54:11 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-05-15 22:54:11 | ------------------------------------ 2022-05-15 22:54:11 | on localhost executing action unsubscribe-node with content type application/json and payload: { "node": "node-bbe497dd-fdb4-4e52-b28b-4ab02fc0979f", "jids": [ "admin@test-domain.com" ] } 2022-05-15 22:54:11 | from localhost for action unsubscribe-node got result code 200 and payload { "Note": "Operation successful" } |