Test duration : 8.987s
Passed Tests | ||
---|---|---|
tigase.tests.pubsub.TestRestApiUsingJSON | ||
configureNodes | 1.097s |
2020-09-29 23:07:57 |
2020-09-29 23:07:57 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-09-29 23:07:57 | ------------------------------------ 2020-09-29 23:07:57 | [Mutex] waiting for: [configured:node:node-0f2becb9-f067-4149-a8a7-6232da0849da:node-ad158b26-9686-4fe7-afae-f6a0686613a5] 2020-09-29 23:07:57 | [Mutex] received everything. 2020-09-29 23:07:57 | [Mutex] isItemNotified: configured:node:node-0f2becb9-f067-4149-a8a7-6232da0849da:node-ad158b26-9686-4fe7-afae-f6a0686613a5 :: true 2020-09-29 23:07:58 | [Mutex] waiting for: [received:nodes:e955d13d-47a9-436d-b7b8-431a7fa14574:localhost] 2020-09-29 23:07:58 | [Mutex] waiting for: [received:nodes:e955d13d-47a9-436d-b7b8-431a7fa14574:localhost] 2020-09-29 23:07:58 | [Mutex] received everything. 2020-09-29 23:07:58 | [Mutex] isItemNotified: received:node:e955d13d-47a9-436d-b7b8-431a7fa14574:localhost:node-0f2becb9-f067-4149-a8a7-6232da0849da:Node 0f2becb9-f067-4149-a8a7-6232da0849da :: true 2020-09-29 23:07:58 | [Mutex] waiting for: [received:nodes:b2dfff71-b1d1-4ae7-8cfb-f18c8b1d2b9e:localhost] 2020-09-29 23:07:58 | [Mutex] received everything. 2020-09-29 23:07:58 | [Mutex] isItemNotified: received:node:b2dfff71-b1d1-4ae7-8cfb-f18c8b1d2b9e:localhost:node-0f2becb9-f067-4149-a8a7-6232da0849da:Node 0f2becb9-f067-4149-a8a7-6232da0849da :: false |
createNodes | 1.661s |
2020-09-29 23:07:55 |
2020-09-29 23:07:55 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-09-29 23:07:55 | ------------------------------------ 2020-09-29 23:07:55 | on localhost executing action create-node with content type application/json and payload: { "owner": "admin@test-domain.com", "pubsub#node_type": "leaf", "node": "node-0f2becb9-f067-4149-a8a7-6232da0849da", "pubsub#title": "Node 0f2becb9-f067-4149-a8a7-6232da0849da" } 2020-09-29 23:07:55 | from localhost for action create-node got result code 200 and payload { "Note": "Operation successful" } 2020-09-29 23:07:56 | [Mutex] waiting for: [received:nodes:b474213c-ab0c-48f1-95a7-cd8cda0394f6:localhost] 2020-09-29 23:07:56 | [Mutex] received everything. 2020-09-29 23:07:56 | [Mutex] isItemNotified: received:node:b474213c-ab0c-48f1-95a7-cd8cda0394f6:localhost:node-0f2becb9-f067-4149-a8a7-6232da0849da:Node 0f2becb9-f067-4149-a8a7-6232da0849da :: true |
createSubnodes | 1.034s |
2020-09-29 23:07:56 |
2020-09-29 23:07:56 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-09-29 23:07:56 | ------------------------------------ 2020-09-29 23:07:56 | on localhost executing action create-node with content type application/json and payload: { "owner": "admin@test-domain.com", "pubsub#node_type": "collection", "node": "node-ad158b26-9686-4fe7-afae-f6a0686613a5", "pubsub#title": "Node ad158b26-9686-4fe7-afae-f6a0686613a5" } 2020-09-29 23:07:56 | from localhost for action create-node got result code 200 and payload { "Note": "Operation successful" } 2020-09-29 23:07:57 | [Mutex] waiting for: [received:nodes:c1d1300f-fd92-40d4-9ec7-6d72e66b31f7:localhost] 2020-09-29 23:07:57 | [Mutex] received everything. 2020-09-29 23:07:57 | [Mutex] isItemNotified: received:node:c1d1300f-fd92-40d4-9ec7-6d72e66b31f7:localhost:node-ad158b26-9686-4fe7-afae-f6a0686613a5:Node ad158b26-9686-4fe7-afae-f6a0686613a5 :: true |
deleteNodes | 1.025s |
2020-09-29 23:08:02 |
2020-09-29 23:08:02 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-09-29 23:08:02 | ------------------------------------ 2020-09-29 23:08:02 | on localhost executing action delete-node with content type application/json and payload: { "node": "node-ad158b26-9686-4fe7-afae-f6a0686613a5" } 2020-09-29 23:08:02 | from localhost for action delete-node got result code 200 and payload { "Note": "Operation successful" } 2020-09-29 23:08:03 | [Mutex] waiting for: [received:nodes:2291dbf3-9296-4ba9-b23c-440299f43808:localhost] 2020-09-29 23:08:03 | [Mutex] received everything. 2020-09-29 23:08:03 | [Mutex] isItemNotified: received:node:2291dbf3-9296-4ba9-b23c-440299f43808:localhost:node-ad158b26-9686-4fe7-afae-f6a0686613a5:Node ad158b26-9686-4fe7-afae-f6a0686613a5 :: false |
deleteSubnodes | 1.050s |
2020-09-29 23:08:01 |
2020-09-29 23:08:01 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-09-29 23:08:01 | ------------------------------------ 2020-09-29 23:08:01 | on localhost executing action delete-node with content type application/json and payload: { "node": "node-0f2becb9-f067-4149-a8a7-6232da0849da" } 2020-09-29 23:08:01 | from localhost for action delete-node got result code 200 and payload { "Note": "Operation successful" } 2020-09-29 23:08:02 | [Mutex] waiting for: [received:nodes:b612285f-f85b-4a8d-942e-f35b2ee94a2d:localhost] 2020-09-29 23:08:02 | [Mutex] waiting for: [received:nodes:b612285f-f85b-4a8d-942e-f35b2ee94a2d:localhost] 2020-09-29 23:08:02 | [Mutex] waiting for: [received:nodes:b612285f-f85b-4a8d-942e-f35b2ee94a2d:localhost] 2020-09-29 23:08:02 | [Mutex] received everything. 2020-09-29 23:08:02 | [Mutex] isItemNotified: received:node:b612285f-f85b-4a8d-942e-f35b2ee94a2d:localhost:node-0f2becb9-f067-4149-a8a7-6232da0849da:Node 0f2becb9-f067-4149-a8a7-6232da0849da :: false 2020-09-29 23:08:02 | [Mutex] waiting for: [received:nodes:bf573457-e8d3-4cb2-89bd-4e0634014928:localhost] 2020-09-29 23:08:02 | [Mutex] received everything. 2020-09-29 23:08:02 | [Mutex] isItemNotified: received:node:bf573457-e8d3-4cb2-89bd-4e0634014928:localhost:node-0f2becb9-f067-4149-a8a7-6232da0849da:Node 0f2becb9-f067-4149-a8a7-6232da0849da :: false |
publishItemsToNodes | 0.029s |
2020-09-29 23:07:59 |
2020-09-29 23:07:59 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-09-29 23:07:59 | ------------------------------------ 2020-09-29 23:07:59 | on localhost executing action publish-item with content type application/json and payload: { "node": "node-0f2becb9-f067-4149-a8a7-6232da0849da", "entry": "<test>item-1cbf7e98-a788-4173-9ff5-d6a9a7d28641</test>", "item-id": "item-1cbf7e98-a788-4173-9ff5-d6a9a7d28641" } 2020-09-29 23:07:59 | from localhost for action publish-item got result code 200 and payload { "Note": "Operation successful", "item-id": "item-1cbf7e98-a788-4173-9ff5-d6a9a7d28641" } 2020-09-29 23:07:59 | [Mutex] waiting for: [published:item:notifieditem-1cbf7e98-a788-4173-9ff5-d6a9a7d28641:admin@test-domain.com] 2020-09-29 23:07:59 | [Mutex] received everything. 2020-09-29 23:07:59 | [Mutex] isItemNotified: published:item:notifieditem-1cbf7e98-a788-4173-9ff5-d6a9a7d28641:admin@test-domain.com :: true |
retractItemsFromNodes | 0.063s |
2020-09-29 23:08:00 |
2020-09-29 23:08:00 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-09-29 23:08:00 | ------------------------------------ 2020-09-29 23:08:00 | on localhost executing action delete-item with content type application/json and payload: { "node": "node-0f2becb9-f067-4149-a8a7-6232da0849da", "item-id": "item-1cbf7e98-a788-4173-9ff5-d6a9a7d28641" } 2020-09-29 23:08:00 | from localhost for action delete-item got result code 200 and payload { "Note": "Operation successful", "item-id": "item-1cbf7e98-a788-4173-9ff5-d6a9a7d28641" } 2020-09-29 23:08:00 | [Mutex] received everything. 2020-09-29 23:08:00 | [Mutex] isItemNotified: retracted:item:notifieditem-1cbf7e98-a788-4173-9ff5-d6a9a7d28641:admin@test-domain.com :: true |
retrieveItemsFromNodes | 0.068s |
2020-09-29 23:07:59 |
2020-09-29 23:07:59 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-09-29 23:07:59 | ------------------------------------ 2020-09-29 23:07:59 | on localhost executing action retrieve-item with content type application/json and payload: { "node": "node-0f2becb9-f067-4149-a8a7-6232da0849da", "item-id": "item-1cbf7e98-a788-4173-9ff5-d6a9a7d28641" } 2020-09-29 23:08:00 | from localhost for action retrieve-item got result code 200 and payload { "title": "Retrive PubSub node item", "node": "node-0f2becb9-f067-4149-a8a7-6232da0849da", "item-id": "item-1cbf7e98-a788-4173-9ff5-d6a9a7d28641", "item": [ "<item id=\"item-1cbf7e98-a788-4173-9ff5-d6a9a7d28641\"><test>item-1cbf7e98-a788-4173-9ff5-d6a9a7d28641</test></item>" ] } 2020-09-29 23:08:00 | [Mutex] notify: [retrieved:item:item-1cbf7e98-a788-4173-9ff5-d6a9a7d28641:payload-matches:true:localhost] 2020-09-29 23:08:00 | [Mutex] received everything. 2020-09-29 23:08:00 | [Mutex] isItemNotified: retrieved:item:item-1cbf7e98-a788-4173-9ff5-d6a9a7d28641:payload-matches:true:localhost :: true |
retrieveUserSubscriptions | 0.051s |
2020-09-29 23:08:00 |
2020-09-29 23:08:00 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-09-29 23:08:00 | ------------------------------------ 2020-09-29 23:08:00 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload: { "jid": "admin@test-domain.com" } 2020-09-29 23:08:00 | from localhost for action retrieve-user-subscriptions got result code 200 and payload { "nodes": [ "test", "node-ad158b26-9686-4fe7-afae-f6a0686613a5", "node-0f2becb9-f067-4149-a8a7-6232da0849da" ] } |
retrieveUserSubscriptionsWithRegex | 0.059s |
2020-09-29 23:08:00 |
2020-09-29 23:08:00 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-09-29 23:08:00 | ------------------------------------ 2020-09-29 23:08:00 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload: { "jid": "admin@test-domain.com", "node-pattern": "(?!node-0f2becb9-f067-4149-a8a7-6232da0849da)" } 2020-09-29 23:08:00 | from localhost for action retrieve-user-subscriptions got result code 200 and payload { "nodes": [ ] } |
subscribeNodes | 1.012s |
2020-09-29 23:07:58 |
2020-09-29 23:07:58 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-09-29 23:07:58 | ------------------------------------ 2020-09-29 23:07:58 | on localhost executing action subscribe-node with content type application/json and payload: { "node": "node-0f2becb9-f067-4149-a8a7-6232da0849da", "jids": [ "admin@test-domain.com" ] } 2020-09-29 23:07:58 | from localhost for action subscribe-node got result code 200 and payload { "Note": "Operation successful" } |
unsubscribeNodes | 1.063s |
2020-09-29 23:08:00 |
2020-09-29 23:08:00 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-09-29 23:08:00 | ------------------------------------ 2020-09-29 23:08:00 | on localhost executing action unsubscribe-node with content type application/json and payload: { "node": "node-0f2becb9-f067-4149-a8a7-6232da0849da", "jids": [ "admin@test-domain.com" ] } 2020-09-29 23:08:00 | from localhost for action unsubscribe-node got result code 200 and payload { "Note": "Operation successful" } |