Test duration : 9.172s
Passed Tests | ||
---|---|---|
tigase.tests.pubsub.TestRestApiUsingJSON | ||
configureNodes | 1.131s |
2020-08-25 19:38:42 |
2020-08-25 19:38:42 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-08-25 19:38:42 | ------------------------------------ 2020-08-25 19:38:42 | [Mutex] waiting for: [configured:node:node-f012fdb2-30a2-49d2-8fc8-b50f3937d2ab:node-85961f63-30a6-4669-a64d-849a7cdda546] 2020-08-25 19:38:42 | [Mutex] received everything. 2020-08-25 19:38:42 | [Mutex] isItemNotified: configured:node:node-f012fdb2-30a2-49d2-8fc8-b50f3937d2ab:node-85961f63-30a6-4669-a64d-849a7cdda546 :: true 2020-08-25 19:38:43 | [Mutex] waiting for: [received:nodes:ebe3dffc-fe8f-4e81-af1d-e31f73cd2ba4:localhost] 2020-08-25 19:38:43 | [Mutex] received everything. 2020-08-25 19:38:43 | [Mutex] isItemNotified: received:node:ebe3dffc-fe8f-4e81-af1d-e31f73cd2ba4:localhost:node-f012fdb2-30a2-49d2-8fc8-b50f3937d2ab:Node f012fdb2-30a2-49d2-8fc8-b50f3937d2ab :: true 2020-08-25 19:38:43 | [Mutex] waiting for: [received:nodes:9e55489e-b36a-4168-b22f-03282b18438f:localhost] 2020-08-25 19:38:43 | [Mutex] received everything. 2020-08-25 19:38:43 | [Mutex] isItemNotified: received:node:9e55489e-b36a-4168-b22f-03282b18438f:localhost:node-f012fdb2-30a2-49d2-8fc8-b50f3937d2ab:Node f012fdb2-30a2-49d2-8fc8-b50f3937d2ab :: false |
createNodes | 1.749s |
2020-08-25 19:38:40 |
2020-08-25 19:38:40 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-08-25 19:38:40 | ------------------------------------ 2020-08-25 19:38: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-f012fdb2-30a2-49d2-8fc8-b50f3937d2ab", "pubsub#title": "Node f012fdb2-30a2-49d2-8fc8-b50f3937d2ab" } 2020-08-25 19:38:40 | from localhost for action create-node got result code 200 and payload { "Note": "Operation successful" } 2020-08-25 19:38:41 | [Mutex] waiting for: [received:nodes:e41128be-c130-4ca3-ba2f-29cab704acb4:localhost] 2020-08-25 19:38:41 | [Mutex] received everything. 2020-08-25 19:38:41 | [Mutex] isItemNotified: received:node:e41128be-c130-4ca3-ba2f-29cab704acb4:localhost:node-f012fdb2-30a2-49d2-8fc8-b50f3937d2ab:Node f012fdb2-30a2-49d2-8fc8-b50f3937d2ab :: true |
createSubnodes | 1.027s |
2020-08-25 19:38:41 |
2020-08-25 19:38:41 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-08-25 19:38:41 | ------------------------------------ 2020-08-25 19:38: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-85961f63-30a6-4669-a64d-849a7cdda546", "pubsub#title": "Node 85961f63-30a6-4669-a64d-849a7cdda546" } 2020-08-25 19:38:41 | from localhost for action create-node got result code 200 and payload { "Note": "Operation successful" } 2020-08-25 19:38:42 | [Mutex] waiting for: [received:nodes:4d6b947d-993a-4f77-9c02-f8ae0c500b28:localhost] 2020-08-25 19:38:42 | [Mutex] received everything. 2020-08-25 19:38:42 | [Mutex] isItemNotified: received:node:4d6b947d-993a-4f77-9c02-f8ae0c500b28:localhost:node-85961f63-30a6-4669-a64d-849a7cdda546:Node 85961f63-30a6-4669-a64d-849a7cdda546 :: true |
deleteNodes | 1.027s |
2020-08-25 19:38:47 |
2020-08-25 19:38:47 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-08-25 19:38:47 | ------------------------------------ 2020-08-25 19:38:47 | on localhost executing action delete-node with content type application/json and payload: { "node": "node-85961f63-30a6-4669-a64d-849a7cdda546" } 2020-08-25 19:38:47 | from localhost for action delete-node got result code 200 and payload { "Note": "Operation successful" } 2020-08-25 19:38:48 | [Mutex] waiting for: [received:nodes:2558bbe7-7d57-43c8-8a35-7d26d55e6d72:localhost] 2020-08-25 19:38:48 | [Mutex] received everything. 2020-08-25 19:38:48 | [Mutex] isItemNotified: received:node:2558bbe7-7d57-43c8-8a35-7d26d55e6d72:localhost:node-85961f63-30a6-4669-a64d-849a7cdda546:Node 85961f63-30a6-4669-a64d-849a7cdda546 :: false |
deleteSubnodes | 1.037s |
2020-08-25 19:38:46 |
2020-08-25 19:38:46 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-08-25 19:38:46 | ------------------------------------ 2020-08-25 19:38:46 | on localhost executing action delete-node with content type application/json and payload: { "node": "node-f012fdb2-30a2-49d2-8fc8-b50f3937d2ab" } 2020-08-25 19:38:46 | from localhost for action delete-node got result code 200 and payload { "Note": "Operation successful" } 2020-08-25 19:38:47 | [Mutex] waiting for: [received:nodes:52ac2bc7-9875-4e9b-b837-6fdde326c56a:localhost] 2020-08-25 19:38:47 | [Mutex] waiting for: [received:nodes:52ac2bc7-9875-4e9b-b837-6fdde326c56a:localhost] 2020-08-25 19:38:47 | [Mutex] received everything. 2020-08-25 19:38:47 | [Mutex] isItemNotified: received:node:52ac2bc7-9875-4e9b-b837-6fdde326c56a:localhost:node-f012fdb2-30a2-49d2-8fc8-b50f3937d2ab:Node f012fdb2-30a2-49d2-8fc8-b50f3937d2ab :: false 2020-08-25 19:38:47 | [Mutex] waiting for: [received:nodes:b4bd414f-6db1-4728-b225-1bbc46e712a1:localhost] 2020-08-25 19:38:47 | [Mutex] received everything. 2020-08-25 19:38:47 | [Mutex] isItemNotified: received:node:b4bd414f-6db1-4728-b225-1bbc46e712a1:localhost:node-f012fdb2-30a2-49d2-8fc8-b50f3937d2ab:Node f012fdb2-30a2-49d2-8fc8-b50f3937d2ab :: false |
publishItemsToNodes | 0.063s |
2020-08-25 19:38:44 |
2020-08-25 19:38:44 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-08-25 19:38:44 | ------------------------------------ 2020-08-25 19:38:44 | on localhost executing action publish-item with content type application/json and payload: { "node": "node-f012fdb2-30a2-49d2-8fc8-b50f3937d2ab", "entry": "<test>item-b2107551-8601-4b80-9074-8bb56ec69e83</test>", "item-id": "item-b2107551-8601-4b80-9074-8bb56ec69e83" } 2020-08-25 19:38:44 | from localhost for action publish-item got result code 200 and payload { "Note": "Operation successful", "item-id": "item-b2107551-8601-4b80-9074-8bb56ec69e83" } 2020-08-25 19:38:44 | [Mutex] waiting for: [published:item:notifieditem-b2107551-8601-4b80-9074-8bb56ec69e83:admin@test-domain.com] 2020-08-25 19:38:45 | [Mutex] received everything. 2020-08-25 19:38:45 | [Mutex] isItemNotified: published:item:notifieditem-b2107551-8601-4b80-9074-8bb56ec69e83:admin@test-domain.com :: true |
retractItemsFromNodes | 0.059s |
2020-08-25 19:38:45 |
2020-08-25 19:38:45 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-08-25 19:38:45 | ------------------------------------ 2020-08-25 19:38:45 | on localhost executing action delete-item with content type application/json and payload: { "node": "node-f012fdb2-30a2-49d2-8fc8-b50f3937d2ab", "item-id": "item-b2107551-8601-4b80-9074-8bb56ec69e83" } 2020-08-25 19:38:45 | from localhost for action delete-item got result code 200 and payload { "Note": "Operation successful", "item-id": "item-b2107551-8601-4b80-9074-8bb56ec69e83" } 2020-08-25 19:38:45 | [Mutex] received everything. 2020-08-25 19:38:45 | [Mutex] isItemNotified: retracted:item:notifieditem-b2107551-8601-4b80-9074-8bb56ec69e83:admin@test-domain.com :: true |
retrieveItemsFromNodes | 0.045s |
2020-08-25 19:38:45 |
2020-08-25 19:38:45 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-08-25 19:38:45 | ------------------------------------ 2020-08-25 19:38:45 | on localhost executing action retrieve-item with content type application/json and payload: { "node": "node-f012fdb2-30a2-49d2-8fc8-b50f3937d2ab", "item-id": "item-b2107551-8601-4b80-9074-8bb56ec69e83" } 2020-08-25 19:38:45 | from localhost for action retrieve-item got result code 200 and payload { "title": "Retrive PubSub node item", "node": "node-f012fdb2-30a2-49d2-8fc8-b50f3937d2ab", "item-id": "item-b2107551-8601-4b80-9074-8bb56ec69e83", "item": [ "<item id=\"item-b2107551-8601-4b80-9074-8bb56ec69e83\"><test>item-b2107551-8601-4b80-9074-8bb56ec69e83</test></item>" ] } 2020-08-25 19:38:45 | [Mutex] notify: [retrieved:item:item-b2107551-8601-4b80-9074-8bb56ec69e83:payload-matches:true:localhost] 2020-08-25 19:38:45 | [Mutex] received everything. 2020-08-25 19:38:45 | [Mutex] isItemNotified: retrieved:item:item-b2107551-8601-4b80-9074-8bb56ec69e83:payload-matches:true:localhost :: true |
retrieveUserSubscriptions | 0.084s |
2020-08-25 19:38:45 |
2020-08-25 19:38:45 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-08-25 19:38:45 | ------------------------------------ 2020-08-25 19:38:45 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload: { "jid": "admin@test-domain.com" } 2020-08-25 19:38:45 | from localhost for action retrieve-user-subscriptions got result code 200 and payload { "nodes": [ "test", "node-f012fdb2-30a2-49d2-8fc8-b50f3937d2ab", "node-85961f63-30a6-4669-a64d-849a7cdda546" ] } |
retrieveUserSubscriptionsWithRegex | 0.051s |
2020-08-25 19:38:45 |
2020-08-25 19:38:45 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-08-25 19:38:45 | ------------------------------------ 2020-08-25 19:38:45 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload: { "jid": "admin@test-domain.com", "node-pattern": "(?!node-f012fdb2-30a2-49d2-8fc8-b50f3937d2ab)" } 2020-08-25 19:38:45 | from localhost for action retrieve-user-subscriptions got result code 200 and payload { "nodes": [ ] } |
subscribeNodes | 1.011s |
2020-08-25 19:38:43 |
2020-08-25 19:38:43 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-08-25 19:38:43 | ------------------------------------ 2020-08-25 19:38:43 | on localhost executing action subscribe-node with content type application/json and payload: { "node": "node-f012fdb2-30a2-49d2-8fc8-b50f3937d2ab", "jids": [ "admin@test-domain.com" ] } 2020-08-25 19:38:43 | from localhost for action subscribe-node got result code 200 and payload { "Note": "Operation successful" } |
unsubscribeNodes | 1.078s |
2020-08-25 19:38:45 |
2020-08-25 19:38:45 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-08-25 19:38:45 | ------------------------------------ 2020-08-25 19:38:45 | on localhost executing action unsubscribe-node with content type application/json and payload: { "node": "node-f012fdb2-30a2-49d2-8fc8-b50f3937d2ab", "jids": [ "admin@test-domain.com" ] } 2020-08-25 19:38:45 | from localhost for action unsubscribe-node got result code 200 and payload { "Note": "Operation successful" } |