Test duration : 9.176s
Passed Tests | ||
---|---|---|
tigase.tests.pubsub.TestRestApiUsingJSON | ||
configureNodes | 1.120s |
2020-09-18 11:34:44 |
2020-09-18 11:34:44 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-09-18 11:34:44 | ------------------------------------ 2020-09-18 11:34:44 | [Mutex] waiting for: [configured:node:node-7b38b802-f919-426e-b172-e82157de8f7b:node-2fef2e71-f184-4b2b-aedc-1ad9d0373a9d] 2020-09-18 11:34:44 | [Mutex] received everything. 2020-09-18 11:34:44 | [Mutex] isItemNotified: configured:node:node-7b38b802-f919-426e-b172-e82157de8f7b:node-2fef2e71-f184-4b2b-aedc-1ad9d0373a9d :: true 2020-09-18 11:34:45 | [Mutex] waiting for: [received:nodes:768088a8-39a9-473d-b440-ec8c68939254:localhost] 2020-09-18 11:34:45 | [Mutex] received everything. 2020-09-18 11:34:45 | [Mutex] isItemNotified: received:node:768088a8-39a9-473d-b440-ec8c68939254:localhost:node-7b38b802-f919-426e-b172-e82157de8f7b:Node 7b38b802-f919-426e-b172-e82157de8f7b :: true 2020-09-18 11:34:45 | [Mutex] waiting for: [received:nodes:92fb893d-104d-45d8-a5f7-69bc9e02df48:localhost] 2020-09-18 11:34:45 | [Mutex] received everything. 2020-09-18 11:34:45 | [Mutex] isItemNotified: received:node:92fb893d-104d-45d8-a5f7-69bc9e02df48:localhost:node-7b38b802-f919-426e-b172-e82157de8f7b:Node 7b38b802-f919-426e-b172-e82157de8f7b :: false |
createNodes | 1.836s |
2020-09-18 11:34:41 |
2020-09-18 11:34:41 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-09-18 11:34:41 | ------------------------------------ 2020-09-18 11:34:42 | on localhost executing action create-node with content type application/json and payload: { "owner": "admin@test-domain.com", "pubsub#node_type": "leaf", "node": "node-7b38b802-f919-426e-b172-e82157de8f7b", "pubsub#title": "Node 7b38b802-f919-426e-b172-e82157de8f7b" } 2020-09-18 11:34:42 | from localhost for action create-node got result code 200 and payload { "Note": "Operation successful" } 2020-09-18 11:34:43 | [Mutex] waiting for: [received:nodes:7f6d6bab-3551-43a8-bc02-3da5837db13b:localhost] 2020-09-18 11:34:43 | [Mutex] received everything. 2020-09-18 11:34:43 | [Mutex] isItemNotified: received:node:7f6d6bab-3551-43a8-bc02-3da5837db13b:localhost:node-7b38b802-f919-426e-b172-e82157de8f7b:Node 7b38b802-f919-426e-b172-e82157de8f7b :: true |
createSubnodes | 1.022s |
2020-09-18 11:34:43 |
2020-09-18 11:34:43 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-09-18 11:34:43 | ------------------------------------ 2020-09-18 11:34:43 | on localhost executing action create-node with content type application/json and payload: { "owner": "admin@test-domain.com", "pubsub#node_type": "collection", "node": "node-2fef2e71-f184-4b2b-aedc-1ad9d0373a9d", "pubsub#title": "Node 2fef2e71-f184-4b2b-aedc-1ad9d0373a9d" } 2020-09-18 11:34:43 | from localhost for action create-node got result code 200 and payload { "Note": "Operation successful" } 2020-09-18 11:34:44 | [Mutex] waiting for: [received:nodes:2d974227-a87a-4037-89a2-c7f3bc1ad8f5:localhost] 2020-09-18 11:34:44 | [Mutex] received everything. 2020-09-18 11:34:44 | [Mutex] isItemNotified: received:node:2d974227-a87a-4037-89a2-c7f3bc1ad8f5:localhost:node-2fef2e71-f184-4b2b-aedc-1ad9d0373a9d:Node 2fef2e71-f184-4b2b-aedc-1ad9d0373a9d :: true |
deleteNodes | 1.022s |
2020-09-18 11:34:49 |
2020-09-18 11:34:49 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-09-18 11:34:49 | ------------------------------------ 2020-09-18 11:34:49 | on localhost executing action delete-node with content type application/json and payload: { "node": "node-2fef2e71-f184-4b2b-aedc-1ad9d0373a9d" } 2020-09-18 11:34:49 | from localhost for action delete-node got result code 200 and payload { "Note": "Operation successful" } 2020-09-18 11:34:50 | [Mutex] waiting for: [received:nodes:463b74d9-e47e-4e34-89a5-212c42e4459a:localhost] 2020-09-18 11:34:50 | [Mutex] received everything. 2020-09-18 11:34:50 | [Mutex] isItemNotified: received:node:463b74d9-e47e-4e34-89a5-212c42e4459a:localhost:node-2fef2e71-f184-4b2b-aedc-1ad9d0373a9d:Node 2fef2e71-f184-4b2b-aedc-1ad9d0373a9d :: false |
deleteSubnodes | 1.026s |
2020-09-18 11:34:48 |
2020-09-18 11:34:48 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-09-18 11:34:48 | ------------------------------------ 2020-09-18 11:34:48 | on localhost executing action delete-node with content type application/json and payload: { "node": "node-7b38b802-f919-426e-b172-e82157de8f7b" } 2020-09-18 11:34:48 | from localhost for action delete-node got result code 200 and payload { "Note": "Operation successful" } 2020-09-18 11:34:49 | [Mutex] waiting for: [received:nodes:56410446-3c61-4d62-89cf-192fa755ef23:localhost] 2020-09-18 11:34:49 | [Mutex] waiting for: [received:nodes:56410446-3c61-4d62-89cf-192fa755ef23:localhost] 2020-09-18 11:34:49 | [Mutex] received everything. 2020-09-18 11:34:49 | [Mutex] isItemNotified: received:node:56410446-3c61-4d62-89cf-192fa755ef23:localhost:node-7b38b802-f919-426e-b172-e82157de8f7b:Node 7b38b802-f919-426e-b172-e82157de8f7b :: false 2020-09-18 11:34:49 | [Mutex] waiting for: [received:nodes:6f2e52e4-5283-4725-a952-926478eacb26:localhost] 2020-09-18 11:34:49 | [Mutex] received everything. 2020-09-18 11:34:49 | [Mutex] isItemNotified: received:node:6f2e52e4-5283-4725-a952-926478eacb26:localhost:node-7b38b802-f919-426e-b172-e82157de8f7b:Node 7b38b802-f919-426e-b172-e82157de8f7b :: false |
publishItemsToNodes | 0.051s |
2020-09-18 11:34:46 |
2020-09-18 11:34:46 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-09-18 11:34:46 | ------------------------------------ 2020-09-18 11:34:46 | on localhost executing action publish-item with content type application/json and payload: { "node": "node-7b38b802-f919-426e-b172-e82157de8f7b", "entry": "<test>item-b313051a-8163-4908-bae8-ac2491ad2b9d</test>", "item-id": "item-b313051a-8163-4908-bae8-ac2491ad2b9d" } 2020-09-18 11:34:46 | from localhost for action publish-item got result code 200 and payload { "Note": "Operation successful", "item-id": "item-b313051a-8163-4908-bae8-ac2491ad2b9d" } 2020-09-18 11:34:46 | [Mutex] waiting for: [published:item:notifieditem-b313051a-8163-4908-bae8-ac2491ad2b9d:admin@test-domain.com] 2020-09-18 11:34:46 | [Mutex] received everything. 2020-09-18 11:34:46 | [Mutex] isItemNotified: published:item:notifieditem-b313051a-8163-4908-bae8-ac2491ad2b9d:admin@test-domain.com :: true |
retractItemsFromNodes | 0.079s |
2020-09-18 11:34:46 |
2020-09-18 11:34:46 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-09-18 11:34:46 | ------------------------------------ 2020-09-18 11:34:46 | on localhost executing action delete-item with content type application/json and payload: { "node": "node-7b38b802-f919-426e-b172-e82157de8f7b", "item-id": "item-b313051a-8163-4908-bae8-ac2491ad2b9d" } 2020-09-18 11:34:47 | from localhost for action delete-item got result code 200 and payload { "Note": "Operation successful", "item-id": "item-b313051a-8163-4908-bae8-ac2491ad2b9d" } 2020-09-18 11:34:47 | [Mutex] received everything. 2020-09-18 11:34:47 | [Mutex] isItemNotified: retracted:item:notifieditem-b313051a-8163-4908-bae8-ac2491ad2b9d:admin@test-domain.com :: true |
retrieveItemsFromNodes | 0.061s |
2020-09-18 11:34:46 |
2020-09-18 11:34:46 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-09-18 11:34:46 | ------------------------------------ 2020-09-18 11:34:46 | on localhost executing action retrieve-item with content type application/json and payload: { "node": "node-7b38b802-f919-426e-b172-e82157de8f7b", "item-id": "item-b313051a-8163-4908-bae8-ac2491ad2b9d" } 2020-09-18 11:34:46 | from localhost for action retrieve-item got result code 200 and payload { "title": "Retrive PubSub node item", "node": "node-7b38b802-f919-426e-b172-e82157de8f7b", "item-id": "item-b313051a-8163-4908-bae8-ac2491ad2b9d", "item": [ "<item id=\"item-b313051a-8163-4908-bae8-ac2491ad2b9d\"><test>item-b313051a-8163-4908-bae8-ac2491ad2b9d</test></item>" ] } 2020-09-18 11:34:46 | [Mutex] notify: [retrieved:item:item-b313051a-8163-4908-bae8-ac2491ad2b9d:payload-matches:true:localhost] 2020-09-18 11:34:46 | [Mutex] received everything. 2020-09-18 11:34:46 | [Mutex] isItemNotified: retrieved:item:item-b313051a-8163-4908-bae8-ac2491ad2b9d:payload-matches:true:localhost :: true |
retrieveUserSubscriptions | 0.047s |
2020-09-18 11:34:46 |
2020-09-18 11:34:46 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-09-18 11:34:46 | ------------------------------------ 2020-09-18 11:34:46 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload: { "jid": "admin@test-domain.com" } 2020-09-18 11:34:46 | from localhost for action retrieve-user-subscriptions got result code 200 and payload { "nodes": [ "test", "node-2fef2e71-f184-4b2b-aedc-1ad9d0373a9d", "node-7b38b802-f919-426e-b172-e82157de8f7b" ] } |
retrieveUserSubscriptionsWithRegex | 0.051s |
2020-09-18 11:34:46 |
2020-09-18 11:34:46 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-09-18 11:34:46 | ------------------------------------ 2020-09-18 11:34:46 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload: { "jid": "admin@test-domain.com", "node-pattern": "(?!node-7b38b802-f919-426e-b172-e82157de8f7b)" } 2020-09-18 11:34:46 | from localhost for action retrieve-user-subscriptions got result code 200 and payload { "nodes": [ ] } |
subscribeNodes | 1.010s |
2020-09-18 11:34:45 |
2020-09-18 11:34:45 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-09-18 11:34:45 | ------------------------------------ 2020-09-18 11:34:45 | on localhost executing action subscribe-node with content type application/json and payload: { "node": "node-7b38b802-f919-426e-b172-e82157de8f7b", "jids": [ "admin@test-domain.com" ] } 2020-09-18 11:34:45 | from localhost for action subscribe-node got result code 200 and payload { "Note": "Operation successful" } |
unsubscribeNodes | 1.055s |
2020-09-18 11:34:47 |
2020-09-18 11:34:47 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-09-18 11:34:47 | ------------------------------------ 2020-09-18 11:34:47 | on localhost executing action unsubscribe-node with content type application/json and payload: { "node": "node-7b38b802-f919-426e-b172-e82157de8f7b", "jids": [ "admin@test-domain.com" ] } 2020-09-18 11:34:47 | from localhost for action unsubscribe-node got result code 200 and payload { "Note": "Operation successful" } |