Test duration : 9.125s
Passed Tests | ||
---|---|---|
tigase.tests.pubsub.TestRestApiUsingJSON | ||
configureNodes | 1.112s |
2020-11-01 21:57:37 |
2020-11-01 21:57:37 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-11-01 21:57:37 | ------------------------------------ 2020-11-01 21:57:37 | [Mutex] waiting for: [configured:node:node-9c95674c-50be-4478-860a-7b585ab9edac:node-8c875cc0-60f3-49c0-8026-ed10be9c8504] 2020-11-01 21:57:37 | [Mutex] received everything. 2020-11-01 21:57:37 | [Mutex] isItemNotified: configured:node:node-9c95674c-50be-4478-860a-7b585ab9edac:node-8c875cc0-60f3-49c0-8026-ed10be9c8504 :: true 2020-11-01 21:57:38 | [Mutex] waiting for: [received:nodes:b70407d2-65a1-4da0-a3ac-5ee5c927db79:localhost] 2020-11-01 21:57:38 | [Mutex] waiting for: [received:nodes:b70407d2-65a1-4da0-a3ac-5ee5c927db79:localhost] 2020-11-01 21:57:38 | [Mutex] received everything. 2020-11-01 21:57:38 | [Mutex] isItemNotified: received:node:b70407d2-65a1-4da0-a3ac-5ee5c927db79:localhost:node-9c95674c-50be-4478-860a-7b585ab9edac:Node 9c95674c-50be-4478-860a-7b585ab9edac :: true 2020-11-01 21:57:38 | [Mutex] waiting for: [received:nodes:c5991e37-8fce-4e9d-8111-7f3971b221ce:localhost] 2020-11-01 21:57:38 | [Mutex] received everything. 2020-11-01 21:57:38 | [Mutex] isItemNotified: received:node:c5991e37-8fce-4e9d-8111-7f3971b221ce:localhost:node-9c95674c-50be-4478-860a-7b585ab9edac:Node 9c95674c-50be-4478-860a-7b585ab9edac :: false |
createNodes | 1.662s |
2020-11-01 21:57:35 |
2020-11-01 21:57:35 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-11-01 21:57:35 | ------------------------------------ 2020-11-01 21:57:35 | on localhost executing action create-node with content type application/json and payload: { "owner": "admin@test-domain.com", "pubsub#node_type": "leaf", "node": "node-9c95674c-50be-4478-860a-7b585ab9edac", "pubsub#title": "Node 9c95674c-50be-4478-860a-7b585ab9edac" } 2020-11-01 21:57:35 | from localhost for action create-node got result code 200 and payload { "Note": "Operation successful" } 2020-11-01 21:57:36 | [Mutex] waiting for: [received:nodes:65fc6e9e-a273-49ff-a48b-cdd4033b3d9f:localhost] 2020-11-01 21:57:36 | [Mutex] received everything. 2020-11-01 21:57:36 | [Mutex] isItemNotified: received:node:65fc6e9e-a273-49ff-a48b-cdd4033b3d9f:localhost:node-9c95674c-50be-4478-860a-7b585ab9edac:Node 9c95674c-50be-4478-860a-7b585ab9edac :: true |
createSubnodes | 1.034s |
2020-11-01 21:57:36 |
2020-11-01 21:57:36 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-11-01 21:57:36 | ------------------------------------ 2020-11-01 21:57:36 | on localhost executing action create-node with content type application/json and payload: { "owner": "admin@test-domain.com", "pubsub#node_type": "collection", "node": "node-8c875cc0-60f3-49c0-8026-ed10be9c8504", "pubsub#title": "Node 8c875cc0-60f3-49c0-8026-ed10be9c8504" } 2020-11-01 21:57:36 | from localhost for action create-node got result code 200 and payload { "Note": "Operation successful" } 2020-11-01 21:57:37 | [Mutex] waiting for: [received:nodes:ace806ae-d624-4327-92f2-1543a673f3d0:localhost] 2020-11-01 21:57:37 | [Mutex] received everything. 2020-11-01 21:57:37 | [Mutex] isItemNotified: received:node:ace806ae-d624-4327-92f2-1543a673f3d0:localhost:node-8c875cc0-60f3-49c0-8026-ed10be9c8504:Node 8c875cc0-60f3-49c0-8026-ed10be9c8504 :: true |
deleteNodes | 1.025s |
2020-11-01 21:57:42 |
2020-11-01 21:57:42 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-11-01 21:57:42 | ------------------------------------ 2020-11-01 21:57:42 | on localhost executing action delete-node with content type application/json and payload: { "node": "node-8c875cc0-60f3-49c0-8026-ed10be9c8504" } 2020-11-01 21:57:42 | from localhost for action delete-node got result code 200 and payload { "Note": "Operation successful" } 2020-11-01 21:57:43 | [Mutex] waiting for: [received:nodes:dc79a657-2cf6-4d25-9e75-51974b9bcdbf:localhost] 2020-11-01 21:57:43 | [Mutex] received everything. 2020-11-01 21:57:43 | [Mutex] isItemNotified: received:node:dc79a657-2cf6-4d25-9e75-51974b9bcdbf:localhost:node-8c875cc0-60f3-49c0-8026-ed10be9c8504:Node 8c875cc0-60f3-49c0-8026-ed10be9c8504 :: false |
deleteSubnodes | 1.031s |
2020-11-01 21:57:41 |
2020-11-01 21:57:41 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-11-01 21:57:41 | ------------------------------------ 2020-11-01 21:57:41 | on localhost executing action delete-node with content type application/json and payload: { "node": "node-9c95674c-50be-4478-860a-7b585ab9edac" } 2020-11-01 21:57:41 | from localhost for action delete-node got result code 200 and payload { "Note": "Operation successful" } 2020-11-01 21:57:42 | [Mutex] waiting for: [received:nodes:e53a171b-5cb7-4a24-9417-7a0b0dc4111c:localhost] 2020-11-01 21:57:42 | [Mutex] received everything. 2020-11-01 21:57:42 | [Mutex] isItemNotified: received:node:e53a171b-5cb7-4a24-9417-7a0b0dc4111c:localhost:node-9c95674c-50be-4478-860a-7b585ab9edac:Node 9c95674c-50be-4478-860a-7b585ab9edac :: false 2020-11-01 21:57:42 | [Mutex] waiting for: [received:nodes:33fbb218-2e37-4db3-b7a4-4a034895c6ea:localhost] 2020-11-01 21:57:42 | [Mutex] received everything. 2020-11-01 21:57:42 | [Mutex] isItemNotified: received:node:33fbb218-2e37-4db3-b7a4-4a034895c6ea:localhost:node-9c95674c-50be-4478-860a-7b585ab9edac:Node 9c95674c-50be-4478-860a-7b585ab9edac :: false |
publishItemsToNodes | 0.052s |
2020-11-01 21:57:40 |
2020-11-01 21:57:40 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-11-01 21:57:40 | ------------------------------------ 2020-11-01 21:57:40 | on localhost executing action publish-item with content type application/json and payload: { "node": "node-9c95674c-50be-4478-860a-7b585ab9edac", "entry": "<test>item-7e2a59c0-67f3-4f1d-a7c0-8be6f3035fdc</test>", "item-id": "item-7e2a59c0-67f3-4f1d-a7c0-8be6f3035fdc" } 2020-11-01 21:57:40 | from localhost for action publish-item got result code 200 and payload { "Note": "Operation successful", "item-id": "item-7e2a59c0-67f3-4f1d-a7c0-8be6f3035fdc" } 2020-11-01 21:57:40 | [Mutex] waiting for: [published:item:notifieditem-7e2a59c0-67f3-4f1d-a7c0-8be6f3035fdc:admin@test-domain.com] 2020-11-01 21:57:40 | [Mutex] received everything. 2020-11-01 21:57:40 | [Mutex] isItemNotified: published:item:notifieditem-7e2a59c0-67f3-4f1d-a7c0-8be6f3035fdc:admin@test-domain.com :: true |
retractItemsFromNodes | 0.072s |
2020-11-01 21:57:40 |
2020-11-01 21:57:40 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-11-01 21:57:40 | ------------------------------------ 2020-11-01 21:57:40 | on localhost executing action delete-item with content type application/json and payload: { "node": "node-9c95674c-50be-4478-860a-7b585ab9edac", "item-id": "item-7e2a59c0-67f3-4f1d-a7c0-8be6f3035fdc" } 2020-11-01 21:57:40 | from localhost for action delete-item got result code 200 and payload { "Note": "Operation successful", "item-id": "item-7e2a59c0-67f3-4f1d-a7c0-8be6f3035fdc" } 2020-11-01 21:57:40 | [Mutex] received everything. 2020-11-01 21:57:40 | [Mutex] isItemNotified: retracted:item:notifieditem-7e2a59c0-67f3-4f1d-a7c0-8be6f3035fdc:admin@test-domain.com :: true |
retrieveItemsFromNodes | 0.067s |
2020-11-01 21:57:40 |
2020-11-01 21:57:40 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-11-01 21:57:40 | ------------------------------------ 2020-11-01 21:57:40 | on localhost executing action retrieve-item with content type application/json and payload: { "node": "node-9c95674c-50be-4478-860a-7b585ab9edac", "item-id": "item-7e2a59c0-67f3-4f1d-a7c0-8be6f3035fdc" } 2020-11-01 21:57:40 | from localhost for action retrieve-item got result code 200 and payload { "title": "Retrive PubSub node item", "node": "node-9c95674c-50be-4478-860a-7b585ab9edac", "item-id": "item-7e2a59c0-67f3-4f1d-a7c0-8be6f3035fdc", "item": [ "<item id=\"item-7e2a59c0-67f3-4f1d-a7c0-8be6f3035fdc\"><test>item-7e2a59c0-67f3-4f1d-a7c0-8be6f3035fdc</test></item>" ] } 2020-11-01 21:57:40 | [Mutex] notify: [retrieved:item:item-7e2a59c0-67f3-4f1d-a7c0-8be6f3035fdc:payload-matches:true:localhost] 2020-11-01 21:57:40 | [Mutex] received everything. 2020-11-01 21:57:40 | [Mutex] isItemNotified: retrieved:item:item-7e2a59c0-67f3-4f1d-a7c0-8be6f3035fdc:payload-matches:true:localhost :: true |
retrieveUserSubscriptions | 0.054s |
2020-11-01 21:57:40 |
2020-11-01 21:57:40 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-11-01 21:57:40 | ------------------------------------ 2020-11-01 21:57:40 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload: { "jid": "admin@test-domain.com" } 2020-11-01 21:57:40 | from localhost for action retrieve-user-subscriptions got result code 200 and payload { "nodes": [ "node-9c95674c-50be-4478-860a-7b585ab9edac", "test", "node-8c875cc0-60f3-49c0-8026-ed10be9c8504" ] } |
retrieveUserSubscriptionsWithRegex | 0.051s |
2020-11-01 21:57:40 |
2020-11-01 21:57:40 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-11-01 21:57:40 | ------------------------------------ 2020-11-01 21:57:40 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload: { "jid": "admin@test-domain.com", "node-pattern": "(?!node-9c95674c-50be-4478-860a-7b585ab9edac)" } 2020-11-01 21:57:40 | from localhost for action retrieve-user-subscriptions got result code 200 and payload { "nodes": [ ] } |
subscribeNodes | 1.016s |
2020-11-01 21:57:38 |
2020-11-01 21:57:38 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-11-01 21:57:38 | ------------------------------------ 2020-11-01 21:57:38 | on localhost executing action subscribe-node with content type application/json and payload: { "node": "node-9c95674c-50be-4478-860a-7b585ab9edac", "jids": [ "admin@test-domain.com" ] } 2020-11-01 21:57:39 | from localhost for action subscribe-node got result code 200 and payload { "Note": "Operation successful" } |
unsubscribeNodes | 1.083s |
2020-11-01 21:57:40 |
2020-11-01 21:57:40 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-11-01 21:57:40 | ------------------------------------ 2020-11-01 21:57:40 | on localhost executing action unsubscribe-node with content type application/json and payload: { "node": "node-9c95674c-50be-4478-860a-7b585ab9edac", "jids": [ "admin@test-domain.com" ] } 2020-11-01 21:57:40 | from localhost for action unsubscribe-node got result code 200 and payload { "Note": "Operation successful" } |