Test duration : 8.671s
Passed Tests | ||
---|---|---|
tigase.tests.pubsub.TestRestApiUsingJSON | ||
configureNodes | 1.104s |
2022-10-20 22:42:20 |
2022-10-20 22:42:20 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-10-20 22:42:20 | ------------------------------------ 2022-10-20 22:42:20 | [Mutex] waiting for: [configured:node:node-76a40690-c379-46ef-8fff-e88427b70f82:node-2adba562-08dc-4acc-8c8b-913b8d7013d0] 2022-10-20 22:42:20 | [Mutex] received everything. 2022-10-20 22:42:20 | [Mutex] isItemNotified: configured:node:node-76a40690-c379-46ef-8fff-e88427b70f82:node-2adba562-08dc-4acc-8c8b-913b8d7013d0 :: true 2022-10-20 22:42:21 | [Mutex] waiting for: [received:nodes:17b3403e-b3f8-4acc-a88e-b7e5ab3b3f1e:localhost] 2022-10-20 22:42:21 | [Mutex] received everything. 2022-10-20 22:42:21 | [Mutex] isItemNotified: received:node:17b3403e-b3f8-4acc-a88e-b7e5ab3b3f1e:localhost:node-76a40690-c379-46ef-8fff-e88427b70f82:Node 76a40690-c379-46ef-8fff-e88427b70f82 :: true 2022-10-20 22:42:21 | [Mutex] waiting for: [received:nodes:4c052d41-d5c1-4581-87b3-3cf85be771ec:localhost] 2022-10-20 22:42:21 | [Mutex] waiting for: [received:nodes:4c052d41-d5c1-4581-87b3-3cf85be771ec:localhost] 2022-10-20 22:42:21 | [Mutex] waiting for: [received:nodes:4c052d41-d5c1-4581-87b3-3cf85be771ec:localhost] 2022-10-20 22:42:21 | [Mutex] received everything. 2022-10-20 22:42:21 | [Mutex] isItemNotified: received:node:4c052d41-d5c1-4581-87b3-3cf85be771ec:localhost:node-76a40690-c379-46ef-8fff-e88427b70f82:Node 76a40690-c379-46ef-8fff-e88427b70f82 :: false |
createNodes | 1.622s |
2022-10-20 22:42:17 |
2022-10-20 22:42:17 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-10-20 22:42:17 | ------------------------------------ 2022-10-20 22:42:18 | on localhost executing action create-node with content type application/json and payload: { "owner": "admin@test-domain.com", "pubsub#node_type": "leaf", "node": "node-76a40690-c379-46ef-8fff-e88427b70f82", "pubsub#title": "Node 76a40690-c379-46ef-8fff-e88427b70f82" } 2022-10-20 22:42:18 | from localhost for action create-node got result code 200 and payload { "Note": "Operation successful" } 2022-10-20 22:42:19 | [Mutex] waiting for: [received:nodes:b7ad0aec-f8bb-408a-8dd2-92c7a883dd1e:localhost] 2022-10-20 22:42:19 | [Mutex] waiting for: [received:nodes:b7ad0aec-f8bb-408a-8dd2-92c7a883dd1e:localhost] 2022-10-20 22:42:19 | [Mutex] received everything. 2022-10-20 22:42:19 | [Mutex] isItemNotified: received:node:b7ad0aec-f8bb-408a-8dd2-92c7a883dd1e:localhost:node-76a40690-c379-46ef-8fff-e88427b70f82:Node 76a40690-c379-46ef-8fff-e88427b70f82 :: true |
createSubnodes | 1.022s |
2022-10-20 22:42:19 |
2022-10-20 22:42:19 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-10-20 22:42:19 | ------------------------------------ 2022-10-20 22:42: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-2adba562-08dc-4acc-8c8b-913b8d7013d0", "pubsub#title": "Node 2adba562-08dc-4acc-8c8b-913b8d7013d0" } 2022-10-20 22:42:19 | from localhost for action create-node got result code 200 and payload { "Note": "Operation successful" } 2022-10-20 22:42:20 | [Mutex] waiting for: [received:nodes:6d619b6f-0aab-4e1c-91a5-f5fe95677362:localhost] 2022-10-20 22:42:20 | [Mutex] waiting for: [received:nodes:6d619b6f-0aab-4e1c-91a5-f5fe95677362:localhost] 2022-10-20 22:42:20 | [Mutex] received everything. 2022-10-20 22:42:20 | [Mutex] isItemNotified: received:node:6d619b6f-0aab-4e1c-91a5-f5fe95677362:localhost:node-2adba562-08dc-4acc-8c8b-913b8d7013d0:Node 2adba562-08dc-4acc-8c8b-913b8d7013d0 :: true |
deleteNodes | 1.019s |
2022-10-20 22:42:24 |
2022-10-20 22:42:24 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-10-20 22:42:24 | ------------------------------------ 2022-10-20 22:42:24 | on localhost executing action delete-node with content type application/json and payload: { "node": "node-2adba562-08dc-4acc-8c8b-913b8d7013d0" } 2022-10-20 22:42:24 | from localhost for action delete-node got result code 200 and payload { "Note": "Operation successful" } 2022-10-20 22:42:25 | [Mutex] waiting for: [received:nodes:a7b21b0f-0951-449d-a060-c0bb9e11b6e4:localhost] 2022-10-20 22:42:26 | [Mutex] received everything. 2022-10-20 22:42:26 | [Mutex] isItemNotified: received:node:a7b21b0f-0951-449d-a060-c0bb9e11b6e4:localhost:node-2adba562-08dc-4acc-8c8b-913b8d7013d0:Node 2adba562-08dc-4acc-8c8b-913b8d7013d0 :: false |
deleteSubnodes | 1.069s |
2022-10-20 22:42:23 |
2022-10-20 22:42:23 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-10-20 22:42:23 | ------------------------------------ 2022-10-20 22:42:23 | on localhost executing action delete-node with content type application/json and payload: { "node": "node-76a40690-c379-46ef-8fff-e88427b70f82" } 2022-10-20 22:42:23 | from localhost for action delete-node got result code 200 and payload { "Note": "Operation successful" } 2022-10-20 22:42:24 | [Mutex] waiting for: [received:nodes:68dd1ce4-8e3f-4738-b6b2-618302591a57:localhost] 2022-10-20 22:42:24 | [Mutex] waiting for: [received:nodes:68dd1ce4-8e3f-4738-b6b2-618302591a57:localhost] 2022-10-20 22:42:24 | [Mutex] waiting for: [received:nodes:68dd1ce4-8e3f-4738-b6b2-618302591a57:localhost] 2022-10-20 22:42:24 | [Mutex] waiting for: [received:nodes:68dd1ce4-8e3f-4738-b6b2-618302591a57:localhost] 2022-10-20 22:42:24 | [Mutex] received everything. 2022-10-20 22:42:24 | [Mutex] isItemNotified: received:node:68dd1ce4-8e3f-4738-b6b2-618302591a57:localhost:node-76a40690-c379-46ef-8fff-e88427b70f82:Node 76a40690-c379-46ef-8fff-e88427b70f82 :: false 2022-10-20 22:42:24 | [Mutex] waiting for: [received:nodes:14b06103-1c70-4583-a827-9097c8d9e882:localhost] 2022-10-20 22:42:24 | [Mutex] received everything. 2022-10-20 22:42:24 | [Mutex] isItemNotified: received:node:14b06103-1c70-4583-a827-9097c8d9e882:localhost:node-76a40690-c379-46ef-8fff-e88427b70f82:Node 76a40690-c379-46ef-8fff-e88427b70f82 :: false |
publishItemsToNodes | 0.049s |
2022-10-20 22:42:22 |
2022-10-20 22:42:22 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-10-20 22:42:22 | ------------------------------------ 2022-10-20 22:42:22 | on localhost executing action publish-item with content type application/json and payload: { "node": "node-76a40690-c379-46ef-8fff-e88427b70f82", "entry": "<test>item-8d679c47-2966-41ce-8f3d-d3f21229823e</test>", "item-id": "item-8d679c47-2966-41ce-8f3d-d3f21229823e" } 2022-10-20 22:42:22 | from localhost for action publish-item got result code 200 and payload { "Note": "Operation successful", "item-id": "item-8d679c47-2966-41ce-8f3d-d3f21229823e" } 2022-10-20 22:42:22 | [Mutex] waiting for: [published:item:notifieditem-8d679c47-2966-41ce-8f3d-d3f21229823e:admin@test-domain.com] 2022-10-20 22:42:22 | [Mutex] received everything. 2022-10-20 22:42:22 | [Mutex] isItemNotified: published:item:notifieditem-8d679c47-2966-41ce-8f3d-d3f21229823e:admin@test-domain.com :: true |
retractItemsFromNodes | 0.063s |
2022-10-20 22:42:22 |
2022-10-20 22:42:22 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-10-20 22:42:22 | ------------------------------------ 2022-10-20 22:42:22 | on localhost executing action delete-item with content type application/json and payload: { "node": "node-76a40690-c379-46ef-8fff-e88427b70f82", "item-id": "item-8d679c47-2966-41ce-8f3d-d3f21229823e" } 2022-10-20 22:42:22 | from localhost for action delete-item got result code 200 and payload { "Note": "Operation successful", "item-id": "item-8d679c47-2966-41ce-8f3d-d3f21229823e" } 2022-10-20 22:42:22 | [Mutex] waiting for: [retracted:item:notifieditem-8d679c47-2966-41ce-8f3d-d3f21229823e:admin@test-domain.com] 2022-10-20 22:42:22 | [Mutex] received everything. 2022-10-20 22:42:22 | [Mutex] isItemNotified: retracted:item:notifieditem-8d679c47-2966-41ce-8f3d-d3f21229823e:admin@test-domain.com :: true |
retrieveItemsFromNodes | 0.054s |
2022-10-20 22:42:22 |
2022-10-20 22:42:22 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-10-20 22:42:22 | ------------------------------------ 2022-10-20 22:42:22 | on localhost executing action retrieve-item with content type application/json and payload: { "node": "node-76a40690-c379-46ef-8fff-e88427b70f82", "item-id": "item-8d679c47-2966-41ce-8f3d-d3f21229823e" } 2022-10-20 22:42:22 | from localhost for action retrieve-item got result code 200 and payload { "title": "Retrive PubSub node item", "node": "node-76a40690-c379-46ef-8fff-e88427b70f82", "item-id": "item-8d679c47-2966-41ce-8f3d-d3f21229823e", "item": [ "<item id=\"item-8d679c47-2966-41ce-8f3d-d3f21229823e\"><test>item-8d679c47-2966-41ce-8f3d-d3f21229823e</test></item>" ] } 2022-10-20 22:42:22 | [Mutex] notify: [retrieved:item:item-8d679c47-2966-41ce-8f3d-d3f21229823e:payload-matches:true:localhost] 2022-10-20 22:42:22 | [Mutex] received everything. 2022-10-20 22:42:22 | [Mutex] isItemNotified: retrieved:item:item-8d679c47-2966-41ce-8f3d-d3f21229823e:payload-matches:true:localhost :: true |
retrieveUserSubscriptions | 0.047s |
2022-10-20 22:42:22 |
2022-10-20 22:42:22 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-10-20 22:42:22 | ------------------------------------ 2022-10-20 22:42:22 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload: { "jid": "admin@test-domain.com" } 2022-10-20 22:42:22 | from localhost for action retrieve-user-subscriptions got result code 200 and payload { "nodes": [ "node-2adba562-08dc-4acc-8c8b-913b8d7013d0", "test", "node-76a40690-c379-46ef-8fff-e88427b70f82" ] } |
retrieveUserSubscriptionsWithRegex | 0.048s |
2022-10-20 22:42:22 |
2022-10-20 22:42:22 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-10-20 22:42:22 | ------------------------------------ 2022-10-20 22:42:22 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload: { "jid": "admin@test-domain.com", "node-pattern": "(?!node-76a40690-c379-46ef-8fff-e88427b70f82)" } 2022-10-20 22:42:22 | from localhost for action retrieve-user-subscriptions got result code 200 and payload { "nodes": [ ] } |
subscribeNodes | 1.011s |
2022-10-20 22:42:21 |
2022-10-20 22:42:21 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-10-20 22:42:21 | ------------------------------------ 2022-10-20 22:42:21 | on localhost executing action subscribe-node with content type application/json and payload: { "node": "node-76a40690-c379-46ef-8fff-e88427b70f82", "jids": [ "admin@test-domain.com" ] } 2022-10-20 22:42:21 | from localhost for action subscribe-node got result code 200 and payload { "Note": "Operation successful" } |
unsubscribeNodes | 1.059s |
2022-10-20 22:42:22 |
2022-10-20 22:42:22 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-10-20 22:42:22 | ------------------------------------ 2022-10-20 22:42:22 | on localhost executing action unsubscribe-node with content type application/json and payload: { "node": "node-76a40690-c379-46ef-8fff-e88427b70f82", "jids": [ "admin@test-domain.com" ] } 2022-10-20 22:42:22 | from localhost for action unsubscribe-node got result code 200 and payload { "Note": "Operation successful" } |