Test duration : 9.036s
Passed Tests | ||
---|---|---|
tigase.tests.pubsub.TestRestApiUsingJSON | ||
configureNodes | 1.113s |
2021-05-05 22:30:42 |
2021-05-05 22:30:42 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-05-05 22:30:42 | ------------------------------------ 2021-05-05 22:30:42 | [Mutex] waiting for: [configured:node:node-68577bff-a614-426a-be4a-4f88b969ef7e:node-40389f33-01cd-4a2a-b86b-54d7cf01be29] 2021-05-05 22:30:42 | [Mutex] received everything. 2021-05-05 22:30:42 | [Mutex] isItemNotified: configured:node:node-68577bff-a614-426a-be4a-4f88b969ef7e:node-40389f33-01cd-4a2a-b86b-54d7cf01be29 :: true 2021-05-05 22:30:43 | [Mutex] waiting for: [received:nodes:d557da50-0fe8-43b8-b36b-a2d6a8a0ba8c:localhost] 2021-05-05 22:30:43 | [Mutex] received everything. 2021-05-05 22:30:43 | [Mutex] isItemNotified: received:node:d557da50-0fe8-43b8-b36b-a2d6a8a0ba8c:localhost:node-68577bff-a614-426a-be4a-4f88b969ef7e:Node 68577bff-a614-426a-be4a-4f88b969ef7e :: true 2021-05-05 22:30:43 | [Mutex] waiting for: [received:nodes:f7a72879-f4a4-415f-858b-35bc7d065c42:localhost] 2021-05-05 22:30:43 | [Mutex] waiting for: [received:nodes:f7a72879-f4a4-415f-858b-35bc7d065c42:localhost] 2021-05-05 22:30:43 | [Mutex] received everything. 2021-05-05 22:30:43 | [Mutex] isItemNotified: received:node:f7a72879-f4a4-415f-858b-35bc7d065c42:localhost:node-68577bff-a614-426a-be4a-4f88b969ef7e:Node 68577bff-a614-426a-be4a-4f88b969ef7e :: false |
createNodes | 1.665s |
2021-05-05 22:30:39 |
2021-05-05 22:30:39 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-05-05 22:30:39 | ------------------------------------ 2021-05-05 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-68577bff-a614-426a-be4a-4f88b969ef7e", "pubsub#title": "Node 68577bff-a614-426a-be4a-4f88b969ef7e" } 2021-05-05 22:30:40 | from localhost for action create-node got result code 200 and payload { "Note": "Operation successful" } 2021-05-05 22:30:41 | [Mutex] waiting for: [received:nodes:63ec4491-952f-41aa-a903-878649d49b45:localhost] 2021-05-05 22:30:41 | [Mutex] waiting for: [received:nodes:63ec4491-952f-41aa-a903-878649d49b45:localhost] 2021-05-05 22:30:41 | [Mutex] waiting for: [received:nodes:63ec4491-952f-41aa-a903-878649d49b45:localhost] 2021-05-05 22:30:41 | [Mutex] received everything. 2021-05-05 22:30:41 | [Mutex] isItemNotified: received:node:63ec4491-952f-41aa-a903-878649d49b45:localhost:node-68577bff-a614-426a-be4a-4f88b969ef7e:Node 68577bff-a614-426a-be4a-4f88b969ef7e :: true |
createSubnodes | 1.029s |
2021-05-05 22:30:41 |
2021-05-05 22:30:41 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-05-05 22:30:41 | ------------------------------------ 2021-05-05 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-40389f33-01cd-4a2a-b86b-54d7cf01be29", "pubsub#title": "Node 40389f33-01cd-4a2a-b86b-54d7cf01be29" } 2021-05-05 22:30:41 | from localhost for action create-node got result code 200 and payload { "Note": "Operation successful" } 2021-05-05 22:30:42 | [Mutex] waiting for: [received:nodes:3c05373c-a679-46d2-af0b-b6b2b6204c93:localhost] 2021-05-05 22:30:42 | [Mutex] received everything. 2021-05-05 22:30:42 | [Mutex] isItemNotified: received:node:3c05373c-a679-46d2-af0b-b6b2b6204c93:localhost:node-40389f33-01cd-4a2a-b86b-54d7cf01be29:Node 40389f33-01cd-4a2a-b86b-54d7cf01be29 :: true |
deleteNodes | 1.032s |
2021-05-05 22:30:46 |
2021-05-05 22:30:46 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-05-05 22:30:46 | ------------------------------------ 2021-05-05 22:30:46 | on localhost executing action delete-node with content type application/json and payload: { "node": "node-40389f33-01cd-4a2a-b86b-54d7cf01be29" } 2021-05-05 22:30:46 | from localhost for action delete-node got result code 200 and payload { "Note": "Operation successful" } 2021-05-05 22:30:47 | [Mutex] waiting for: [received:nodes:5095bcc7-a5d4-42dc-bef5-c1eafdfdd77e:localhost] 2021-05-05 22:30:47 | [Mutex] received everything. 2021-05-05 22:30:47 | [Mutex] isItemNotified: received:node:5095bcc7-a5d4-42dc-bef5-c1eafdfdd77e:localhost:node-40389f33-01cd-4a2a-b86b-54d7cf01be29:Node 40389f33-01cd-4a2a-b86b-54d7cf01be29 :: false |
deleteSubnodes | 1.032s |
2021-05-05 22:30:45 |
2021-05-05 22:30:45 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-05-05 22:30:45 | ------------------------------------ 2021-05-05 22:30:45 | on localhost executing action delete-node with content type application/json and payload: { "node": "node-68577bff-a614-426a-be4a-4f88b969ef7e" } 2021-05-05 22:30:45 | from localhost for action delete-node got result code 200 and payload { "Note": "Operation successful" } 2021-05-05 22:30:46 | [Mutex] waiting for: [received:nodes:331109e4-57b2-4f40-8ef0-d8e2bb9b486d:localhost] 2021-05-05 22:30:46 | [Mutex] received everything. 2021-05-05 22:30:46 | [Mutex] isItemNotified: received:node:331109e4-57b2-4f40-8ef0-d8e2bb9b486d:localhost:node-68577bff-a614-426a-be4a-4f88b969ef7e:Node 68577bff-a614-426a-be4a-4f88b969ef7e :: false 2021-05-05 22:30:46 | [Mutex] waiting for: [received:nodes:a7be5778-a780-49f9-9c7b-7b6a5e02bc98:localhost] 2021-05-05 22:30:46 | [Mutex] received everything. 2021-05-05 22:30:46 | [Mutex] isItemNotified: received:node:a7be5778-a780-49f9-9c7b-7b6a5e02bc98:localhost:node-68577bff-a614-426a-be4a-4f88b969ef7e:Node 68577bff-a614-426a-be4a-4f88b969ef7e :: false |
publishItemsToNodes | 0.036s |
2021-05-05 22:30:44 |
2021-05-05 22:30:44 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-05-05 22:30:44 | ------------------------------------ 2021-05-05 22:30:44 | on localhost executing action publish-item with content type application/json and payload: { "node": "node-68577bff-a614-426a-be4a-4f88b969ef7e", "entry": "<test>item-01706da8-fe13-4aef-9483-afd9eb44722d</test>", "item-id": "item-01706da8-fe13-4aef-9483-afd9eb44722d" } 2021-05-05 22:30:44 | from localhost for action publish-item got result code 200 and payload { "Note": "Operation successful", "item-id": "item-01706da8-fe13-4aef-9483-afd9eb44722d" } 2021-05-05 22:30:44 | [Mutex] waiting for: [published:item:notifieditem-01706da8-fe13-4aef-9483-afd9eb44722d:admin@test-domain.com] 2021-05-05 22:30:44 | [Mutex] received everything. 2021-05-05 22:30:44 | [Mutex] isItemNotified: published:item:notifieditem-01706da8-fe13-4aef-9483-afd9eb44722d:admin@test-domain.com :: true |
retractItemsFromNodes | 0.075s |
2021-05-05 22:30:44 |
2021-05-05 22:30:44 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-05-05 22:30:44 | ------------------------------------ 2021-05-05 22:30:44 | on localhost executing action delete-item with content type application/json and payload: { "node": "node-68577bff-a614-426a-be4a-4f88b969ef7e", "item-id": "item-01706da8-fe13-4aef-9483-afd9eb44722d" } 2021-05-05 22:30:44 | from localhost for action delete-item got result code 200 and payload { "Note": "Operation successful", "item-id": "item-01706da8-fe13-4aef-9483-afd9eb44722d" } 2021-05-05 22:30:44 | [Mutex] received everything. 2021-05-05 22:30:44 | [Mutex] isItemNotified: retracted:item:notifieditem-01706da8-fe13-4aef-9483-afd9eb44722d:admin@test-domain.com :: true |
retrieveItemsFromNodes | 0.074s |
2021-05-05 22:30:44 |
2021-05-05 22:30:44 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-05-05 22:30:44 | ------------------------------------ 2021-05-05 22:30:44 | on localhost executing action retrieve-item with content type application/json and payload: { "node": "node-68577bff-a614-426a-be4a-4f88b969ef7e", "item-id": "item-01706da8-fe13-4aef-9483-afd9eb44722d" } 2021-05-05 22:30:44 | from localhost for action retrieve-item got result code 200 and payload { "title": "Retrive PubSub node item", "node": "node-68577bff-a614-426a-be4a-4f88b969ef7e", "item-id": "item-01706da8-fe13-4aef-9483-afd9eb44722d", "item": [ "<item id=\"item-01706da8-fe13-4aef-9483-afd9eb44722d\"><test>item-01706da8-fe13-4aef-9483-afd9eb44722d</test></item>" ] } 2021-05-05 22:30:44 | [Mutex] notify: [retrieved:item:item-01706da8-fe13-4aef-9483-afd9eb44722d:payload-matches:true:localhost] 2021-05-05 22:30:44 | [Mutex] received everything. 2021-05-05 22:30:44 | [Mutex] isItemNotified: retrieved:item:item-01706da8-fe13-4aef-9483-afd9eb44722d:payload-matches:true:localhost :: true |
retrieveUserSubscriptions | 0.115s |
2021-05-05 22:30:44 |
2021-05-05 22:30:44 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-05-05 22:30:44 | ------------------------------------ 2021-05-05 22:30:44 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload: { "jid": "admin@test-domain.com" } 2021-05-05 22:30:44 | from localhost for action retrieve-user-subscriptions got result code 200 and payload { "nodes": [ "node-40389f33-01cd-4a2a-b86b-54d7cf01be29", "test", "node-68577bff-a614-426a-be4a-4f88b969ef7e" ] } |
retrieveUserSubscriptionsWithRegex | 0.051s |
2021-05-05 22:30:44 |
2021-05-05 22:30:44 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-05-05 22:30:44 | ------------------------------------ 2021-05-05 22:30:44 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload: { "jid": "admin@test-domain.com", "node-pattern": "(?!node-68577bff-a614-426a-be4a-4f88b969ef7e)" } 2021-05-05 22:30:44 | from localhost for action retrieve-user-subscriptions got result code 200 and payload { "nodes": [ ] } |
subscribeNodes | 1.009s |
2021-05-05 22:30:43 |
2021-05-05 22:30:43 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-05-05 22:30:43 | ------------------------------------ 2021-05-05 22:30:43 | on localhost executing action subscribe-node with content type application/json and payload: { "node": "node-68577bff-a614-426a-be4a-4f88b969ef7e", "jids": [ "admin@test-domain.com" ] } 2021-05-05 22:30:43 | from localhost for action subscribe-node got result code 200 and payload { "Note": "Operation successful" } |
unsubscribeNodes | 1.095s |
2021-05-05 22:30:44 |
2021-05-05 22:30:44 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-05-05 22:30:44 | ------------------------------------ 2021-05-05 22:30:44 | on localhost executing action unsubscribe-node with content type application/json and payload: { "node": "node-68577bff-a614-426a-be4a-4f88b969ef7e", "jids": [ "admin@test-domain.com" ] } 2021-05-05 22:30:44 | from localhost for action unsubscribe-node got result code 200 and payload { "Note": "Operation successful" } |