Test duration : 8.894s
Passed Tests | ||
---|---|---|
tigase.tests.pubsub.TestRestApiUsingJSON | ||
configureNodes | 1.098s |
2021-05-06 22:47:40 |
2021-05-06 22:47:40 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-05-06 22:47:40 | ------------------------------------ 2021-05-06 22:47:40 | [Mutex] waiting for: [configured:node:node-a219eb89-f03c-4a71-9d01-8e7615d1f993:node-ba747d63-3c78-4810-92c7-9b2d43c3b2ad] 2021-05-06 22:47:40 | [Mutex] received everything. 2021-05-06 22:47:40 | [Mutex] isItemNotified: configured:node:node-a219eb89-f03c-4a71-9d01-8e7615d1f993:node-ba747d63-3c78-4810-92c7-9b2d43c3b2ad :: true 2021-05-06 22:47:41 | [Mutex] waiting for: [received:nodes:f4ac136e-c17c-4cf9-b1a4-5e4911ee0b7b:localhost] 2021-05-06 22:47:41 | [Mutex] received everything. 2021-05-06 22:47:41 | [Mutex] isItemNotified: received:node:f4ac136e-c17c-4cf9-b1a4-5e4911ee0b7b:localhost:node-a219eb89-f03c-4a71-9d01-8e7615d1f993:Node a219eb89-f03c-4a71-9d01-8e7615d1f993 :: true 2021-05-06 22:47:41 | [Mutex] waiting for: [received:nodes:a1bf61a3-23ba-4d1f-b2ef-d4c8cac93f88:localhost] 2021-05-06 22:47:41 | [Mutex] waiting for: [received:nodes:a1bf61a3-23ba-4d1f-b2ef-d4c8cac93f88:localhost] 2021-05-06 22:47:41 | [Mutex] received everything. 2021-05-06 22:47:41 | [Mutex] isItemNotified: received:node:a1bf61a3-23ba-4d1f-b2ef-d4c8cac93f88:localhost:node-a219eb89-f03c-4a71-9d01-8e7615d1f993:Node a219eb89-f03c-4a71-9d01-8e7615d1f993 :: false |
createNodes | 1.577s |
2021-05-06 22:47:37 |
2021-05-06 22:47:37 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-05-06 22:47:37 | ------------------------------------ 2021-05-06 22:47:38 | on localhost executing action create-node with content type application/json and payload: { "owner": "admin@test-domain.com", "pubsub#node_type": "leaf", "node": "node-a219eb89-f03c-4a71-9d01-8e7615d1f993", "pubsub#title": "Node a219eb89-f03c-4a71-9d01-8e7615d1f993" } 2021-05-06 22:47:38 | from localhost for action create-node got result code 200 and payload { "Note": "Operation successful" } 2021-05-06 22:47:39 | [Mutex] waiting for: [received:nodes:0e772600-36db-4417-a010-a4aa4710c971:localhost] 2021-05-06 22:47:39 | [Mutex] received everything. 2021-05-06 22:47:39 | [Mutex] isItemNotified: received:node:0e772600-36db-4417-a010-a4aa4710c971:localhost:node-a219eb89-f03c-4a71-9d01-8e7615d1f993:Node a219eb89-f03c-4a71-9d01-8e7615d1f993 :: true |
createSubnodes | 1.025s |
2021-05-06 22:47:39 |
2021-05-06 22:47:39 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-05-06 22:47:39 | ------------------------------------ 2021-05-06 22:47:39 | on localhost executing action create-node with content type application/json and payload: { "owner": "admin@test-domain.com", "pubsub#node_type": "collection", "node": "node-ba747d63-3c78-4810-92c7-9b2d43c3b2ad", "pubsub#title": "Node ba747d63-3c78-4810-92c7-9b2d43c3b2ad" } 2021-05-06 22:47:39 | from localhost for action create-node got result code 200 and payload { "Note": "Operation successful" } 2021-05-06 22:47:40 | [Mutex] waiting for: [received:nodes:fbd1c0f9-709a-4781-811e-b22bdd812dd0:localhost] 2021-05-06 22:47:40 | [Mutex] received everything. 2021-05-06 22:47:40 | [Mutex] isItemNotified: received:node:fbd1c0f9-709a-4781-811e-b22bdd812dd0:localhost:node-ba747d63-3c78-4810-92c7-9b2d43c3b2ad:Node ba747d63-3c78-4810-92c7-9b2d43c3b2ad :: true |
deleteNodes | 1.028s |
2021-05-06 22:47:45 |
2021-05-06 22:47:45 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-05-06 22:47:45 | ------------------------------------ 2021-05-06 22:47:45 | on localhost executing action delete-node with content type application/json and payload: { "node": "node-ba747d63-3c78-4810-92c7-9b2d43c3b2ad" } 2021-05-06 22:47:45 | from localhost for action delete-node got result code 200 and payload { "Note": "Operation successful" } 2021-05-06 22:47:46 | [Mutex] waiting for: [received:nodes:87836ea0-7de7-4e3c-a229-f38715b677aa:localhost] 2021-05-06 22:47:46 | [Mutex] received everything. 2021-05-06 22:47:46 | [Mutex] isItemNotified: received:node:87836ea0-7de7-4e3c-a229-f38715b677aa:localhost:node-ba747d63-3c78-4810-92c7-9b2d43c3b2ad:Node ba747d63-3c78-4810-92c7-9b2d43c3b2ad :: false |
deleteSubnodes | 1.028s |
2021-05-06 22:47:44 |
2021-05-06 22:47:44 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-05-06 22:47:44 | ------------------------------------ 2021-05-06 22:47:44 | on localhost executing action delete-node with content type application/json and payload: { "node": "node-a219eb89-f03c-4a71-9d01-8e7615d1f993" } 2021-05-06 22:47:44 | from localhost for action delete-node got result code 200 and payload { "Note": "Operation successful" } 2021-05-06 22:47:45 | [Mutex] waiting for: [received:nodes:56ede27c-6036-4a26-8621-999ff450668d:localhost] 2021-05-06 22:47:45 | [Mutex] waiting for: [received:nodes:56ede27c-6036-4a26-8621-999ff450668d:localhost] 2021-05-06 22:47:45 | [Mutex] received everything. 2021-05-06 22:47:45 | [Mutex] isItemNotified: received:node:56ede27c-6036-4a26-8621-999ff450668d:localhost:node-a219eb89-f03c-4a71-9d01-8e7615d1f993:Node a219eb89-f03c-4a71-9d01-8e7615d1f993 :: false 2021-05-06 22:47:45 | [Mutex] waiting for: [received:nodes:96afc87f-3290-42b2-b07f-48baaf03824e:localhost] 2021-05-06 22:47:45 | [Mutex] received everything. 2021-05-06 22:47:45 | [Mutex] isItemNotified: received:node:96afc87f-3290-42b2-b07f-48baaf03824e:localhost:node-a219eb89-f03c-4a71-9d01-8e7615d1f993:Node a219eb89-f03c-4a71-9d01-8e7615d1f993 :: false |
publishItemsToNodes | 0.065s |
2021-05-06 22:47:42 |
2021-05-06 22:47:42 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-05-06 22:47:42 | ------------------------------------ 2021-05-06 22:47:42 | on localhost executing action publish-item with content type application/json and payload: { "node": "node-a219eb89-f03c-4a71-9d01-8e7615d1f993", "entry": "<test>item-87a1d278-c5c5-4822-9c6d-2617941fc37e</test>", "item-id": "item-87a1d278-c5c5-4822-9c6d-2617941fc37e" } 2021-05-06 22:47:42 | from localhost for action publish-item got result code 200 and payload { "Note": "Operation successful", "item-id": "item-87a1d278-c5c5-4822-9c6d-2617941fc37e" } 2021-05-06 22:47:42 | [Mutex] waiting for: [published:item:notifieditem-87a1d278-c5c5-4822-9c6d-2617941fc37e:admin@test-domain.com] 2021-05-06 22:47:42 | [Mutex] received everything. 2021-05-06 22:47:42 | [Mutex] isItemNotified: published:item:notifieditem-87a1d278-c5c5-4822-9c6d-2617941fc37e:admin@test-domain.com :: true |
retractItemsFromNodes | 0.059s |
2021-05-06 22:47:42 |
2021-05-06 22:47:42 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-05-06 22:47:42 | ------------------------------------ 2021-05-06 22:47:42 | on localhost executing action delete-item with content type application/json and payload: { "node": "node-a219eb89-f03c-4a71-9d01-8e7615d1f993", "item-id": "item-87a1d278-c5c5-4822-9c6d-2617941fc37e" } 2021-05-06 22:47:42 | from localhost for action delete-item got result code 200 and payload { "Note": "Operation successful", "item-id": "item-87a1d278-c5c5-4822-9c6d-2617941fc37e" } 2021-05-06 22:47:42 | [Mutex] waiting for: [retracted:item:notifieditem-87a1d278-c5c5-4822-9c6d-2617941fc37e:admin@test-domain.com] 2021-05-06 22:47:42 | [Mutex] received everything. 2021-05-06 22:47:42 | [Mutex] isItemNotified: retracted:item:notifieditem-87a1d278-c5c5-4822-9c6d-2617941fc37e:admin@test-domain.com :: true |
retrieveItemsFromNodes | 0.043s |
2021-05-06 22:47:42 |
2021-05-06 22:47:42 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-05-06 22:47:42 | ------------------------------------ 2021-05-06 22:47:42 | on localhost executing action retrieve-item with content type application/json and payload: { "node": "node-a219eb89-f03c-4a71-9d01-8e7615d1f993", "item-id": "item-87a1d278-c5c5-4822-9c6d-2617941fc37e" } 2021-05-06 22:47:42 | from localhost for action retrieve-item got result code 200 and payload { "title": "Retrive PubSub node item", "node": "node-a219eb89-f03c-4a71-9d01-8e7615d1f993", "item-id": "item-87a1d278-c5c5-4822-9c6d-2617941fc37e", "item": [ "<item id=\"item-87a1d278-c5c5-4822-9c6d-2617941fc37e\"><test>item-87a1d278-c5c5-4822-9c6d-2617941fc37e</test></item>" ] } 2021-05-06 22:47:42 | [Mutex] notify: [retrieved:item:item-87a1d278-c5c5-4822-9c6d-2617941fc37e:payload-matches:true:localhost] 2021-05-06 22:47:42 | [Mutex] received everything. 2021-05-06 22:47:42 | [Mutex] isItemNotified: retrieved:item:item-87a1d278-c5c5-4822-9c6d-2617941fc37e:payload-matches:true:localhost :: true |
retrieveUserSubscriptions | 0.068s |
2021-05-06 22:47:42 |
2021-05-06 22:47:42 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-05-06 22:47:42 | ------------------------------------ 2021-05-06 22:47:42 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload: { "jid": "admin@test-domain.com" } 2021-05-06 22:47:42 | from localhost for action retrieve-user-subscriptions got result code 200 and payload { "nodes": [ "test", "node-a219eb89-f03c-4a71-9d01-8e7615d1f993", "node-ba747d63-3c78-4810-92c7-9b2d43c3b2ad" ] } |
retrieveUserSubscriptionsWithRegex | 0.056s |
2021-05-06 22:47:42 |
2021-05-06 22:47:42 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-05-06 22:47:42 | ------------------------------------ 2021-05-06 22:47:42 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload: { "jid": "admin@test-domain.com", "node-pattern": "(?!node-a219eb89-f03c-4a71-9d01-8e7615d1f993)" } 2021-05-06 22:47:42 | from localhost for action retrieve-user-subscriptions got result code 200 and payload { "nodes": [ ] } |
subscribeNodes | 1.014s |
2021-05-06 22:47:41 |
2021-05-06 22:47:41 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-05-06 22:47:41 | ------------------------------------ 2021-05-06 22:47:41 | on localhost executing action subscribe-node with content type application/json and payload: { "node": "node-a219eb89-f03c-4a71-9d01-8e7615d1f993", "jids": [ "admin@test-domain.com" ] } 2021-05-06 22:47:41 | from localhost for action subscribe-node got result code 200 and payload { "Note": "Operation successful" } |
unsubscribeNodes | 1.059s |
2021-05-06 22:47:42 |
2021-05-06 22:47:42 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-05-06 22:47:42 | ------------------------------------ 2021-05-06 22:47:42 | on localhost executing action unsubscribe-node with content type application/json and payload: { "node": "node-a219eb89-f03c-4a71-9d01-8e7615d1f993", "jids": [ "admin@test-domain.com" ] } 2021-05-06 22:47:43 | from localhost for action unsubscribe-node got result code 200 and payload { "Note": "Operation successful" } |