Test duration : 9.031s
Passed Tests | ||
---|---|---|
tigase.tests.pubsub.TestRestApiUsingJSON | ||
configureNodes | 1.122s |
2021-03-01 21:51:25 |
2021-03-01 21:51:25 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-03-01 21:51:25 | ------------------------------------ 2021-03-01 21:51:25 | [Mutex] waiting for: [configured:node:node-8216d23e-54b9-4abe-a422-5381510e9cfa:node-d2595d56-a20e-4a8b-ad2f-1604e4389031] 2021-03-01 21:51:25 | [Mutex] received everything. 2021-03-01 21:51:25 | [Mutex] isItemNotified: configured:node:node-8216d23e-54b9-4abe-a422-5381510e9cfa:node-d2595d56-a20e-4a8b-ad2f-1604e4389031 :: true 2021-03-01 21:51:26 | [Mutex] waiting for: [received:nodes:781014d4-f31d-4dc7-9ed6-5cddd7f1341a:localhost] 2021-03-01 21:51:26 | [Mutex] received everything. 2021-03-01 21:51:26 | [Mutex] isItemNotified: received:node:781014d4-f31d-4dc7-9ed6-5cddd7f1341a:localhost:node-8216d23e-54b9-4abe-a422-5381510e9cfa:Node 8216d23e-54b9-4abe-a422-5381510e9cfa :: true 2021-03-01 21:51:26 | [Mutex] waiting for: [received:nodes:cbf60d67-34c0-4fcd-a4e1-c91d21962719:localhost] 2021-03-01 21:51:26 | [Mutex] received everything. 2021-03-01 21:51:26 | [Mutex] isItemNotified: received:node:cbf60d67-34c0-4fcd-a4e1-c91d21962719:localhost:node-8216d23e-54b9-4abe-a422-5381510e9cfa:Node 8216d23e-54b9-4abe-a422-5381510e9cfa :: false |
createNodes | 1.681s |
2021-03-01 21:51:22 |
2021-03-01 21:51:22 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-03-01 21:51:22 | ------------------------------------ 2021-03-01 21:51:23 | on localhost executing action create-node with content type application/json and payload: { "owner": "admin@test-domain.com", "pubsub#node_type": "leaf", "node": "node-8216d23e-54b9-4abe-a422-5381510e9cfa", "pubsub#title": "Node 8216d23e-54b9-4abe-a422-5381510e9cfa" } 2021-03-01 21:51:23 | from localhost for action create-node got result code 200 and payload { "Note": "Operation successful" } 2021-03-01 21:51:24 | [Mutex] waiting for: [received:nodes:3aa97369-19f3-4da3-93fd-3aa1208bb02f:localhost] 2021-03-01 21:51:24 | [Mutex] received everything. 2021-03-01 21:51:24 | [Mutex] isItemNotified: received:node:3aa97369-19f3-4da3-93fd-3aa1208bb02f:localhost:node-8216d23e-54b9-4abe-a422-5381510e9cfa:Node 8216d23e-54b9-4abe-a422-5381510e9cfa :: true |
createSubnodes | 1.035s |
2021-03-01 21:51:24 |
2021-03-01 21:51:24 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-03-01 21:51:24 | ------------------------------------ 2021-03-01 21:51:24 | on localhost executing action create-node with content type application/json and payload: { "owner": "admin@test-domain.com", "pubsub#node_type": "collection", "node": "node-d2595d56-a20e-4a8b-ad2f-1604e4389031", "pubsub#title": "Node d2595d56-a20e-4a8b-ad2f-1604e4389031" } 2021-03-01 21:51:24 | from localhost for action create-node got result code 200 and payload { "Note": "Operation successful" } 2021-03-01 21:51:25 | [Mutex] waiting for: [received:nodes:f67916a4-8f46-4e51-9cf8-65978513d12d:localhost] 2021-03-01 21:51:25 | [Mutex] received everything. 2021-03-01 21:51:25 | [Mutex] isItemNotified: received:node:f67916a4-8f46-4e51-9cf8-65978513d12d:localhost:node-d2595d56-a20e-4a8b-ad2f-1604e4389031:Node d2595d56-a20e-4a8b-ad2f-1604e4389031 :: true |
deleteNodes | 1.018s |
2021-03-01 21:51:29 |
2021-03-01 21:51:29 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-03-01 21:51:29 | ------------------------------------ 2021-03-01 21:51:29 | on localhost executing action delete-node with content type application/json and payload: { "node": "node-d2595d56-a20e-4a8b-ad2f-1604e4389031" } 2021-03-01 21:51:29 | from localhost for action delete-node got result code 200 and payload { "Note": "Operation successful" } 2021-03-01 21:51:30 | [Mutex] waiting for: [received:nodes:7a1d3a06-ec33-46f3-8adb-6c1267a625e0:localhost] 2021-03-01 21:51:30 | [Mutex] received everything. 2021-03-01 21:51:30 | [Mutex] isItemNotified: received:node:7a1d3a06-ec33-46f3-8adb-6c1267a625e0:localhost:node-d2595d56-a20e-4a8b-ad2f-1604e4389031:Node d2595d56-a20e-4a8b-ad2f-1604e4389031 :: false |
deleteSubnodes | 1.036s |
2021-03-01 21:51:28 |
2021-03-01 21:51:28 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-03-01 21:51:28 | ------------------------------------ 2021-03-01 21:51:28 | on localhost executing action delete-node with content type application/json and payload: { "node": "node-8216d23e-54b9-4abe-a422-5381510e9cfa" } 2021-03-01 21:51:28 | from localhost for action delete-node got result code 200 and payload { "Note": "Operation successful" } 2021-03-01 21:51:29 | [Mutex] waiting for: [received:nodes:a481674c-350e-41c3-8e62-096048743344:localhost] 2021-03-01 21:51:29 | [Mutex] waiting for: [received:nodes:a481674c-350e-41c3-8e62-096048743344:localhost] 2021-03-01 21:51:29 | [Mutex] waiting for: [received:nodes:a481674c-350e-41c3-8e62-096048743344:localhost] 2021-03-01 21:51:29 | [Mutex] waiting for: [received:nodes:a481674c-350e-41c3-8e62-096048743344:localhost] 2021-03-01 21:51:29 | [Mutex] received everything. 2021-03-01 21:51:29 | [Mutex] isItemNotified: received:node:a481674c-350e-41c3-8e62-096048743344:localhost:node-8216d23e-54b9-4abe-a422-5381510e9cfa:Node 8216d23e-54b9-4abe-a422-5381510e9cfa :: false 2021-03-01 21:51:29 | [Mutex] waiting for: [received:nodes:4c9f209e-6be1-4b69-b326-9e87f2b3e8ec:localhost] 2021-03-01 21:51:29 | [Mutex] received everything. 2021-03-01 21:51:29 | [Mutex] isItemNotified: received:node:4c9f209e-6be1-4b69-b326-9e87f2b3e8ec:localhost:node-8216d23e-54b9-4abe-a422-5381510e9cfa:Node 8216d23e-54b9-4abe-a422-5381510e9cfa :: false |
publishItemsToNodes | 0.038s |
2021-03-01 21:51:27 |
2021-03-01 21:51:27 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-03-01 21:51:27 | ------------------------------------ 2021-03-01 21:51:27 | on localhost executing action publish-item with content type application/json and payload: { "node": "node-8216d23e-54b9-4abe-a422-5381510e9cfa", "entry": "<test>item-a25a46ec-b70a-4df7-9306-4861d5c80f0b</test>", "item-id": "item-a25a46ec-b70a-4df7-9306-4861d5c80f0b" } 2021-03-01 21:51:27 | from localhost for action publish-item got result code 200 and payload { "Note": "Operation successful", "item-id": "item-a25a46ec-b70a-4df7-9306-4861d5c80f0b" } 2021-03-01 21:51:27 | [Mutex] received everything. 2021-03-01 21:51:27 | [Mutex] isItemNotified: published:item:notifieditem-a25a46ec-b70a-4df7-9306-4861d5c80f0b:admin@test-domain.com :: true |
retractItemsFromNodes | 0.084s |
2021-03-01 21:51:27 |
2021-03-01 21:51:27 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-03-01 21:51:27 | ------------------------------------ 2021-03-01 21:51:27 | on localhost executing action delete-item with content type application/json and payload: { "node": "node-8216d23e-54b9-4abe-a422-5381510e9cfa", "item-id": "item-a25a46ec-b70a-4df7-9306-4861d5c80f0b" } 2021-03-01 21:51:27 | from localhost for action delete-item got result code 200 and payload { "Note": "Operation successful", "item-id": "item-a25a46ec-b70a-4df7-9306-4861d5c80f0b" } 2021-03-01 21:51:27 | [Mutex] received everything. 2021-03-01 21:51:27 | [Mutex] isItemNotified: retracted:item:notifieditem-a25a46ec-b70a-4df7-9306-4861d5c80f0b:admin@test-domain.com :: true |
retrieveItemsFromNodes | 0.110s |
2021-03-01 21:51:27 |
2021-03-01 21:51:27 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-03-01 21:51:27 | ------------------------------------ 2021-03-01 21:51:27 | on localhost executing action retrieve-item with content type application/json and payload: { "node": "node-8216d23e-54b9-4abe-a422-5381510e9cfa", "item-id": "item-a25a46ec-b70a-4df7-9306-4861d5c80f0b" } 2021-03-01 21:51:27 | from localhost for action retrieve-item got result code 200 and payload { "title": "Retrive PubSub node item", "node": "node-8216d23e-54b9-4abe-a422-5381510e9cfa", "item-id": "item-a25a46ec-b70a-4df7-9306-4861d5c80f0b", "item": [ "<item id=\"item-a25a46ec-b70a-4df7-9306-4861d5c80f0b\"><test>item-a25a46ec-b70a-4df7-9306-4861d5c80f0b</test></item>" ] } 2021-03-01 21:51:27 | [Mutex] notify: [retrieved:item:item-a25a46ec-b70a-4df7-9306-4861d5c80f0b:payload-matches:true:localhost] 2021-03-01 21:51:27 | [Mutex] received everything. 2021-03-01 21:51:27 | [Mutex] isItemNotified: retrieved:item:item-a25a46ec-b70a-4df7-9306-4861d5c80f0b:payload-matches:true:localhost :: true |
retrieveUserSubscriptions | 0.047s |
2021-03-01 21:51:27 |
2021-03-01 21:51:27 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-03-01 21:51:27 | ------------------------------------ 2021-03-01 21:51:27 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload: { "jid": "admin@test-domain.com" } 2021-03-01 21:51:27 | from localhost for action retrieve-user-subscriptions got result code 200 and payload { "nodes": [ "test", "node-8216d23e-54b9-4abe-a422-5381510e9cfa", "node-d2595d56-a20e-4a8b-ad2f-1604e4389031" ] } |
retrieveUserSubscriptionsWithRegex | 0.052s |
2021-03-01 21:51:27 |
2021-03-01 21:51:27 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-03-01 21:51:27 | ------------------------------------ 2021-03-01 21:51:27 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload: { "jid": "admin@test-domain.com", "node-pattern": "(?!node-8216d23e-54b9-4abe-a422-5381510e9cfa)" } 2021-03-01 21:51:27 | from localhost for action retrieve-user-subscriptions got result code 200 and payload { "nodes": [ ] } |
subscribeNodes | 1.015s |
2021-03-01 21:51:26 |
2021-03-01 21:51:26 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-03-01 21:51:26 | ------------------------------------ 2021-03-01 21:51:26 | on localhost executing action subscribe-node with content type application/json and payload: { "node": "node-8216d23e-54b9-4abe-a422-5381510e9cfa", "jids": [ "admin@test-domain.com" ] } 2021-03-01 21:51:26 | from localhost for action subscribe-node got result code 200 and payload { "Note": "Operation successful" } |
unsubscribeNodes | 1.071s |
2021-03-01 21:51:27 |
2021-03-01 21:51:27 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-03-01 21:51:27 | ------------------------------------ 2021-03-01 21:51:27 | on localhost executing action unsubscribe-node with content type application/json and payload: { "node": "node-8216d23e-54b9-4abe-a422-5381510e9cfa", "jids": [ "admin@test-domain.com" ] } 2021-03-01 21:51:27 | from localhost for action unsubscribe-node got result code 200 and payload { "Note": "Operation successful" } |