Test duration : 9.071s
Passed Tests | ||
---|---|---|
tigase.tests.pubsub.TestRestApiUsingJSON | ||
configureNodes | 1.099s |
2020-09-09 23:26:54 |
2020-09-09 23:26:54 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-09-09 23:26:54 | ------------------------------------ 2020-09-09 23:26:54 | [Mutex] waiting for: [configured:node:node-c1a5e515-cd90-4193-9c24-9265c0f29cf0:node-500093f4-787b-4ab0-9754-62d6b9ec8e59] 2020-09-09 23:26:54 | [Mutex] received everything. 2020-09-09 23:26:54 | [Mutex] isItemNotified: configured:node:node-c1a5e515-cd90-4193-9c24-9265c0f29cf0:node-500093f4-787b-4ab0-9754-62d6b9ec8e59 :: true 2020-09-09 23:26:55 | [Mutex] waiting for: [received:nodes:1cb5dc55-7124-42d5-bb9b-68247e37e7a2:localhost] 2020-09-09 23:26:55 | [Mutex] received everything. 2020-09-09 23:26:55 | [Mutex] isItemNotified: received:node:1cb5dc55-7124-42d5-bb9b-68247e37e7a2:localhost:node-c1a5e515-cd90-4193-9c24-9265c0f29cf0:Node c1a5e515-cd90-4193-9c24-9265c0f29cf0 :: true 2020-09-09 23:26:55 | [Mutex] waiting for: [received:nodes:5a64d3f1-1cf5-487a-a39b-18a03fc04ea9:localhost] 2020-09-09 23:26:55 | [Mutex] received everything. 2020-09-09 23:26:55 | [Mutex] isItemNotified: received:node:5a64d3f1-1cf5-487a-a39b-18a03fc04ea9:localhost:node-c1a5e515-cd90-4193-9c24-9265c0f29cf0:Node c1a5e515-cd90-4193-9c24-9265c0f29cf0 :: false |
createNodes | 1.781s |
2020-09-09 23:26:51 |
2020-09-09 23:26:51 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-09-09 23:26:51 | ------------------------------------ 2020-09-09 23:26:52 | on localhost executing action create-node with content type application/json and payload: { "owner": "admin@test-domain.com", "pubsub#node_type": "leaf", "node": "node-c1a5e515-cd90-4193-9c24-9265c0f29cf0", "pubsub#title": "Node c1a5e515-cd90-4193-9c24-9265c0f29cf0" } 2020-09-09 23:26:52 | from localhost for action create-node got result code 200 and payload { "Note": "Operation successful" } 2020-09-09 23:26:53 | [Mutex] waiting for: [received:nodes:5ea9009d-fd44-4417-a13d-623931a7ada3:localhost] 2020-09-09 23:26:53 | [Mutex] received everything. 2020-09-09 23:26:53 | [Mutex] isItemNotified: received:node:5ea9009d-fd44-4417-a13d-623931a7ada3:localhost:node-c1a5e515-cd90-4193-9c24-9265c0f29cf0:Node c1a5e515-cd90-4193-9c24-9265c0f29cf0 :: true |
createSubnodes | 1.028s |
2020-09-09 23:26:53 |
2020-09-09 23:26:53 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-09-09 23:26:53 | ------------------------------------ 2020-09-09 23:26:53 | on localhost executing action create-node with content type application/json and payload: { "owner": "admin@test-domain.com", "pubsub#node_type": "collection", "node": "node-500093f4-787b-4ab0-9754-62d6b9ec8e59", "pubsub#title": "Node 500093f4-787b-4ab0-9754-62d6b9ec8e59" } 2020-09-09 23:26:53 | from localhost for action create-node got result code 200 and payload { "Note": "Operation successful" } 2020-09-09 23:26:54 | [Mutex] waiting for: [received:nodes:10097d82-e2dd-4f1d-a1f9-7be4559f5383:localhost] 2020-09-09 23:26:54 | [Mutex] received everything. 2020-09-09 23:26:54 | [Mutex] isItemNotified: received:node:10097d82-e2dd-4f1d-a1f9-7be4559f5383:localhost:node-500093f4-787b-4ab0-9754-62d6b9ec8e59:Node 500093f4-787b-4ab0-9754-62d6b9ec8e59 :: true |
deleteNodes | 1.022s |
2020-09-09 23:26:58 |
2020-09-09 23:26:58 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-09-09 23:26:58 | ------------------------------------ 2020-09-09 23:26:58 | on localhost executing action delete-node with content type application/json and payload: { "node": "node-500093f4-787b-4ab0-9754-62d6b9ec8e59" } 2020-09-09 23:26:58 | from localhost for action delete-node got result code 200 and payload { "Note": "Operation successful" } 2020-09-09 23:26:59 | [Mutex] waiting for: [received:nodes:8c098ae9-bdd9-4423-ad6f-84698cdd9acf:localhost] 2020-09-09 23:26:59 | [Mutex] received everything. 2020-09-09 23:26:59 | [Mutex] isItemNotified: received:node:8c098ae9-bdd9-4423-ad6f-84698cdd9acf:localhost:node-500093f4-787b-4ab0-9754-62d6b9ec8e59:Node 500093f4-787b-4ab0-9754-62d6b9ec8e59 :: false |
deleteSubnodes | 1.050s |
2020-09-09 23:26:57 |
2020-09-09 23:26:57 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-09-09 23:26:57 | ------------------------------------ 2020-09-09 23:26:57 | on localhost executing action delete-node with content type application/json and payload: { "node": "node-c1a5e515-cd90-4193-9c24-9265c0f29cf0" } 2020-09-09 23:26:57 | from localhost for action delete-node got result code 200 and payload { "Note": "Operation successful" } 2020-09-09 23:26:58 | [Mutex] waiting for: [received:nodes:93c84672-91e0-4a1f-9995-7b8e9e9d37c6:localhost] 2020-09-09 23:26:58 | [Mutex] waiting for: [received:nodes:93c84672-91e0-4a1f-9995-7b8e9e9d37c6:localhost] 2020-09-09 23:26:58 | [Mutex] waiting for: [received:nodes:93c84672-91e0-4a1f-9995-7b8e9e9d37c6:localhost] 2020-09-09 23:26:58 | [Mutex] waiting for: [received:nodes:93c84672-91e0-4a1f-9995-7b8e9e9d37c6:localhost] 2020-09-09 23:26:58 | [Mutex] received everything. 2020-09-09 23:26:58 | [Mutex] isItemNotified: received:node:93c84672-91e0-4a1f-9995-7b8e9e9d37c6:localhost:node-c1a5e515-cd90-4193-9c24-9265c0f29cf0:Node c1a5e515-cd90-4193-9c24-9265c0f29cf0 :: false 2020-09-09 23:26:58 | [Mutex] waiting for: [received:nodes:6c503a5d-d350-428d-b3a2-091957a76ec0:localhost] 2020-09-09 23:26:58 | [Mutex] received everything. 2020-09-09 23:26:58 | [Mutex] isItemNotified: received:node:6c503a5d-d350-428d-b3a2-091957a76ec0:localhost:node-c1a5e515-cd90-4193-9c24-9265c0f29cf0:Node c1a5e515-cd90-4193-9c24-9265c0f29cf0 :: false |
publishItemsToNodes | 0.031s |
2020-09-09 23:26:56 |
2020-09-09 23:26:56 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-09-09 23:26:56 | ------------------------------------ 2020-09-09 23:26:56 | on localhost executing action publish-item with content type application/json and payload: { "node": "node-c1a5e515-cd90-4193-9c24-9265c0f29cf0", "entry": "<test>item-6ebe4eab-8418-4d07-bb18-2b614f2126a2</test>", "item-id": "item-6ebe4eab-8418-4d07-bb18-2b614f2126a2" } 2020-09-09 23:26:56 | from localhost for action publish-item got result code 200 and payload { "Note": "Operation successful", "item-id": "item-6ebe4eab-8418-4d07-bb18-2b614f2126a2" } 2020-09-09 23:26:56 | [Mutex] received everything. 2020-09-09 23:26:56 | [Mutex] isItemNotified: published:item:notifieditem-6ebe4eab-8418-4d07-bb18-2b614f2126a2:admin@test-domain.com :: true |
retractItemsFromNodes | 0.060s |
2020-09-09 23:26:56 |
2020-09-09 23:26:56 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-09-09 23:26:56 | ------------------------------------ 2020-09-09 23:26:56 | on localhost executing action delete-item with content type application/json and payload: { "node": "node-c1a5e515-cd90-4193-9c24-9265c0f29cf0", "item-id": "item-6ebe4eab-8418-4d07-bb18-2b614f2126a2" } 2020-09-09 23:26:56 | from localhost for action delete-item got result code 200 and payload { "Note": "Operation successful", "item-id": "item-6ebe4eab-8418-4d07-bb18-2b614f2126a2" } 2020-09-09 23:26:56 | [Mutex] received everything. 2020-09-09 23:26:56 | [Mutex] isItemNotified: retracted:item:notifieditem-6ebe4eab-8418-4d07-bb18-2b614f2126a2:admin@test-domain.com :: true |
retrieveItemsFromNodes | 0.079s |
2020-09-09 23:26:56 |
2020-09-09 23:26:56 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-09-09 23:26:56 | ------------------------------------ 2020-09-09 23:26:56 | on localhost executing action retrieve-item with content type application/json and payload: { "node": "node-c1a5e515-cd90-4193-9c24-9265c0f29cf0", "item-id": "item-6ebe4eab-8418-4d07-bb18-2b614f2126a2" } 2020-09-09 23:26:56 | from localhost for action retrieve-item got result code 200 and payload { "title": "Retrive PubSub node item", "node": "node-c1a5e515-cd90-4193-9c24-9265c0f29cf0", "item-id": "item-6ebe4eab-8418-4d07-bb18-2b614f2126a2", "item": [ "<item id=\"item-6ebe4eab-8418-4d07-bb18-2b614f2126a2\"><test>item-6ebe4eab-8418-4d07-bb18-2b614f2126a2</test></item>" ] } 2020-09-09 23:26:56 | [Mutex] notify: [retrieved:item:item-6ebe4eab-8418-4d07-bb18-2b614f2126a2:payload-matches:true:localhost] 2020-09-09 23:26:56 | [Mutex] received everything. 2020-09-09 23:26:56 | [Mutex] isItemNotified: retrieved:item:item-6ebe4eab-8418-4d07-bb18-2b614f2126a2:payload-matches:true:localhost :: true |
retrieveUserSubscriptions | 0.051s |
2020-09-09 23:26:56 |
2020-09-09 23:26:56 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-09-09 23:26:56 | ------------------------------------ 2020-09-09 23:26:56 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload: { "jid": "admin@test-domain.com" } 2020-09-09 23:26:56 | from localhost for action retrieve-user-subscriptions got result code 200 and payload { "nodes": [ "test", "node-c1a5e515-cd90-4193-9c24-9265c0f29cf0", "node-500093f4-787b-4ab0-9754-62d6b9ec8e59" ] } |
retrieveUserSubscriptionsWithRegex | 0.052s |
2020-09-09 23:26:56 |
2020-09-09 23:26:56 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-09-09 23:26:56 | ------------------------------------ 2020-09-09 23:26:56 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload: { "jid": "admin@test-domain.com", "node-pattern": "(?!node-c1a5e515-cd90-4193-9c24-9265c0f29cf0)" } 2020-09-09 23:26:56 | from localhost for action retrieve-user-subscriptions got result code 200 and payload { "nodes": [ ] } |
subscribeNodes | 1.011s |
2020-09-09 23:26:55 |
2020-09-09 23:26:55 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-09-09 23:26:55 | ------------------------------------ 2020-09-09 23:26:55 | on localhost executing action subscribe-node with content type application/json and payload: { "node": "node-c1a5e515-cd90-4193-9c24-9265c0f29cf0", "jids": [ "admin@test-domain.com" ] } 2020-09-09 23:26:55 | from localhost for action subscribe-node got result code 200 and payload { "Note": "Operation successful" } |
unsubscribeNodes | 1.055s |
2020-09-09 23:26:56 |
2020-09-09 23:26:56 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-09-09 23:26:56 | ------------------------------------ 2020-09-09 23:26:56 | on localhost executing action unsubscribe-node with content type application/json and payload: { "node": "node-c1a5e515-cd90-4193-9c24-9265c0f29cf0", "jids": [ "admin@test-domain.com" ] } 2020-09-09 23:26:56 | from localhost for action unsubscribe-node got result code 200 and payload { "Note": "Operation successful" } |