Test duration : 8.627s
Passed Tests | ||
---|---|---|
tigase.tests.pubsub.TestRestApiUsingJSON | ||
configureNodes | 1.091s |
2022-05-16 22:36:20 |
2022-05-16 22:36:20 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-05-16 22:36:20 | ------------------------------------ 2022-05-16 22:36:20 | [Mutex] waiting for: [configured:node:node-ae23dadc-137e-4dca-95e8-e42ab8f1cd71:node-b8f0eee4-02eb-41c7-ba57-48c990f25f2a] 2022-05-16 22:36:20 | [Mutex] received everything. 2022-05-16 22:36:20 | [Mutex] isItemNotified: configured:node:node-ae23dadc-137e-4dca-95e8-e42ab8f1cd71:node-b8f0eee4-02eb-41c7-ba57-48c990f25f2a :: true 2022-05-16 22:36:21 | [Mutex] waiting for: [received:nodes:4ddab2be-d0cf-4e62-a5fa-b1a47e17b253:localhost] 2022-05-16 22:36:21 | [Mutex] received everything. 2022-05-16 22:36:21 | [Mutex] isItemNotified: received:node:4ddab2be-d0cf-4e62-a5fa-b1a47e17b253:localhost:node-ae23dadc-137e-4dca-95e8-e42ab8f1cd71:Node ae23dadc-137e-4dca-95e8-e42ab8f1cd71 :: true 2022-05-16 22:36:21 | [Mutex] waiting for: [received:nodes:d0985c07-9a36-4a99-80f3-0a23129dcf62:localhost] 2022-05-16 22:36:21 | [Mutex] received everything. 2022-05-16 22:36:21 | [Mutex] isItemNotified: received:node:d0985c07-9a36-4a99-80f3-0a23129dcf62:localhost:node-ae23dadc-137e-4dca-95e8-e42ab8f1cd71:Node ae23dadc-137e-4dca-95e8-e42ab8f1cd71 :: false |
createNodes | 1.558s |
2022-05-16 22:36:17 |
2022-05-16 22:36:17 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-05-16 22:36:17 | ------------------------------------ 2022-05-16 22:36:17 | on localhost executing action create-node with content type application/json and payload: { "owner": "admin@test-domain.com", "pubsub#node_type": "leaf", "node": "node-ae23dadc-137e-4dca-95e8-e42ab8f1cd71", "pubsub#title": "Node ae23dadc-137e-4dca-95e8-e42ab8f1cd71" } 2022-05-16 22:36:18 | from localhost for action create-node got result code 200 and payload { "Note": "Operation successful" } 2022-05-16 22:36:19 | [Mutex] waiting for: [received:nodes:9704d4a0-aa03-4608-9361-51fe9485eff9:localhost] 2022-05-16 22:36:19 | [Mutex] received everything. 2022-05-16 22:36:19 | [Mutex] isItemNotified: received:node:9704d4a0-aa03-4608-9361-51fe9485eff9:localhost:node-ae23dadc-137e-4dca-95e8-e42ab8f1cd71:Node ae23dadc-137e-4dca-95e8-e42ab8f1cd71 :: true |
createSubnodes | 1.023s |
2022-05-16 22:36:19 |
2022-05-16 22:36:19 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-05-16 22:36:19 | ------------------------------------ 2022-05-16 22:36:19 | on localhost executing action create-node with content type application/json and payload: { "owner": "admin@test-domain.com", "pubsub#node_type": "collection", "node": "node-b8f0eee4-02eb-41c7-ba57-48c990f25f2a", "pubsub#title": "Node b8f0eee4-02eb-41c7-ba57-48c990f25f2a" } 2022-05-16 22:36:19 | from localhost for action create-node got result code 200 and payload { "Note": "Operation successful" } 2022-05-16 22:36:20 | [Mutex] waiting for: [received:nodes:aaf69e87-c33d-4b63-8f6b-4dfda4e3e594:localhost] 2022-05-16 22:36:20 | [Mutex] received everything. 2022-05-16 22:36:20 | [Mutex] isItemNotified: received:node:aaf69e87-c33d-4b63-8f6b-4dfda4e3e594:localhost:node-b8f0eee4-02eb-41c7-ba57-48c990f25f2a:Node b8f0eee4-02eb-41c7-ba57-48c990f25f2a :: true |
deleteNodes | 1.017s |
2022-05-16 22:36:24 |
2022-05-16 22:36:24 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-05-16 22:36:24 | ------------------------------------ 2022-05-16 22:36:24 | on localhost executing action delete-node with content type application/json and payload: { "node": "node-b8f0eee4-02eb-41c7-ba57-48c990f25f2a" } 2022-05-16 22:36:24 | from localhost for action delete-node got result code 200 and payload { "Note": "Operation successful" } 2022-05-16 22:36:25 | [Mutex] waiting for: [received:nodes:4db8f99e-c6a9-4c02-9243-c98bba900741:localhost] 2022-05-16 22:36:25 | [Mutex] waiting for: [received:nodes:4db8f99e-c6a9-4c02-9243-c98bba900741:localhost] 2022-05-16 22:36:25 | [Mutex] received everything. 2022-05-16 22:36:25 | [Mutex] isItemNotified: received:node:4db8f99e-c6a9-4c02-9243-c98bba900741:localhost:node-b8f0eee4-02eb-41c7-ba57-48c990f25f2a:Node b8f0eee4-02eb-41c7-ba57-48c990f25f2a :: false |
deleteSubnodes | 1.025s |
2022-05-16 22:36:23 |
2022-05-16 22:36:23 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-05-16 22:36:23 | ------------------------------------ 2022-05-16 22:36:23 | on localhost executing action delete-node with content type application/json and payload: { "node": "node-ae23dadc-137e-4dca-95e8-e42ab8f1cd71" } 2022-05-16 22:36:23 | from localhost for action delete-node got result code 200 and payload { "Note": "Operation successful" } 2022-05-16 22:36:24 | [Mutex] waiting for: [received:nodes:fdac54b6-1154-40aa-81f5-1668b00125af:localhost] 2022-05-16 22:36:24 | [Mutex] received everything. 2022-05-16 22:36:24 | [Mutex] isItemNotified: received:node:fdac54b6-1154-40aa-81f5-1668b00125af:localhost:node-ae23dadc-137e-4dca-95e8-e42ab8f1cd71:Node ae23dadc-137e-4dca-95e8-e42ab8f1cd71 :: false 2022-05-16 22:36:24 | [Mutex] waiting for: [received:nodes:12a227d2-643f-472e-b383-0d278973203f:localhost] 2022-05-16 22:36:24 | [Mutex] received everything. 2022-05-16 22:36:24 | [Mutex] isItemNotified: received:node:12a227d2-643f-472e-b383-0d278973203f:localhost:node-ae23dadc-137e-4dca-95e8-e42ab8f1cd71:Node ae23dadc-137e-4dca-95e8-e42ab8f1cd71 :: false |
publishItemsToNodes | 0.120s |
2022-05-16 22:36:22 |
2022-05-16 22:36:22 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-05-16 22:36:22 | ------------------------------------ 2022-05-16 22:36:22 | on localhost executing action publish-item with content type application/json and payload: { "node": "node-ae23dadc-137e-4dca-95e8-e42ab8f1cd71", "entry": "<test>item-658861ca-d2a7-4c18-9ab5-a55a9c33beec</test>", "item-id": "item-658861ca-d2a7-4c18-9ab5-a55a9c33beec" } 2022-05-16 22:36:22 | from localhost for action publish-item got result code 200 and payload { "Note": "Operation successful", "item-id": "item-658861ca-d2a7-4c18-9ab5-a55a9c33beec" } 2022-05-16 22:36:22 | [Mutex] waiting for: [published:item:notifieditem-658861ca-d2a7-4c18-9ab5-a55a9c33beec:admin@test-domain.com] 2022-05-16 22:36:22 | [Mutex] received everything. 2022-05-16 22:36:22 | [Mutex] isItemNotified: published:item:notifieditem-658861ca-d2a7-4c18-9ab5-a55a9c33beec:admin@test-domain.com :: true |
retractItemsFromNodes | 0.063s |
2022-05-16 22:36:22 |
2022-05-16 22:36:22 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-05-16 22:36:22 | ------------------------------------ 2022-05-16 22:36:22 | on localhost executing action delete-item with content type application/json and payload: { "node": "node-ae23dadc-137e-4dca-95e8-e42ab8f1cd71", "item-id": "item-658861ca-d2a7-4c18-9ab5-a55a9c33beec" } 2022-05-16 22:36:22 | from localhost for action delete-item got result code 200 and payload { "Note": "Operation successful", "item-id": "item-658861ca-d2a7-4c18-9ab5-a55a9c33beec" } 2022-05-16 22:36:22 | [Mutex] waiting for: [retracted:item:notifieditem-658861ca-d2a7-4c18-9ab5-a55a9c33beec:admin@test-domain.com] 2022-05-16 22:36:22 | [Mutex] received everything. 2022-05-16 22:36:22 | [Mutex] isItemNotified: retracted:item:notifieditem-658861ca-d2a7-4c18-9ab5-a55a9c33beec:admin@test-domain.com :: true |
retrieveItemsFromNodes | 0.021s |
2022-05-16 22:36:22 |
2022-05-16 22:36:22 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-05-16 22:36:22 | ------------------------------------ 2022-05-16 22:36:22 | on localhost executing action retrieve-item with content type application/json and payload: { "node": "node-ae23dadc-137e-4dca-95e8-e42ab8f1cd71", "item-id": "item-658861ca-d2a7-4c18-9ab5-a55a9c33beec" } 2022-05-16 22:36:22 | from localhost for action retrieve-item got result code 200 and payload { "title": "Retrive PubSub node item", "node": "node-ae23dadc-137e-4dca-95e8-e42ab8f1cd71", "item-id": "item-658861ca-d2a7-4c18-9ab5-a55a9c33beec", "item": [ "<item id=\"item-658861ca-d2a7-4c18-9ab5-a55a9c33beec\"><test>item-658861ca-d2a7-4c18-9ab5-a55a9c33beec</test></item>" ] } 2022-05-16 22:36:22 | [Mutex] notify: [retrieved:item:item-658861ca-d2a7-4c18-9ab5-a55a9c33beec:payload-matches:true:localhost] 2022-05-16 22:36:22 | [Mutex] received everything. 2022-05-16 22:36:22 | [Mutex] isItemNotified: retrieved:item:item-658861ca-d2a7-4c18-9ab5-a55a9c33beec:payload-matches:true:localhost :: true |
retrieveUserSubscriptions | 0.055s |
2022-05-16 22:36:22 |
2022-05-16 22:36:22 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-05-16 22:36:22 | ------------------------------------ 2022-05-16 22:36:22 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload: { "jid": "admin@test-domain.com" } 2022-05-16 22:36:22 | from localhost for action retrieve-user-subscriptions got result code 200 and payload { "nodes": [ "test", "node-ae23dadc-137e-4dca-95e8-e42ab8f1cd71", "node-b8f0eee4-02eb-41c7-ba57-48c990f25f2a" ] } |
retrieveUserSubscriptionsWithRegex | 0.048s |
2022-05-16 22:36:22 |
2022-05-16 22:36:22 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-05-16 22:36:22 | ------------------------------------ 2022-05-16 22:36:22 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload: { "jid": "admin@test-domain.com", "node-pattern": "(?!node-ae23dadc-137e-4dca-95e8-e42ab8f1cd71)" } 2022-05-16 22:36:22 | from localhost for action retrieve-user-subscriptions got result code 200 and payload { "nodes": [ ] } |
subscribeNodes | 1.010s |
2022-05-16 22:36:21 |
2022-05-16 22:36:21 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-05-16 22:36:21 | ------------------------------------ 2022-05-16 22:36:21 | on localhost executing action subscribe-node with content type application/json and payload: { "node": "node-ae23dadc-137e-4dca-95e8-e42ab8f1cd71", "jids": [ "admin@test-domain.com" ] } 2022-05-16 22:36:21 | from localhost for action subscribe-node got result code 200 and payload { "Note": "Operation successful" } |
unsubscribeNodes | 1.056s |
2022-05-16 22:36:22 |
2022-05-16 22:36:22 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-05-16 22:36:22 | ------------------------------------ 2022-05-16 22:36:22 | on localhost executing action unsubscribe-node with content type application/json and payload: { "node": "node-ae23dadc-137e-4dca-95e8-e42ab8f1cd71", "jids": [ "admin@test-domain.com" ] } 2022-05-16 22:36:22 | from localhost for action unsubscribe-node got result code 200 and payload { "Note": "Operation successful" } |