Test duration : 9.153s
Passed Tests | ||
---|---|---|
tigase.tests.pubsub.TestRestApiUsingJSON | ||
configureNodes | 1.155s |
2020-10-18 23:27:56 |
2020-10-18 23:27:56 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-10-18 23:27:56 | ------------------------------------ 2020-10-18 23:27:56 | [Mutex] waiting for: [configured:node:node-eed923e4-6178-407f-8e37-a75e7336fb9e:node-defd413b-75f1-4ace-a9b6-882f80628e67] 2020-10-18 23:27:57 | [Mutex] received everything. 2020-10-18 23:27:57 | [Mutex] isItemNotified: configured:node:node-eed923e4-6178-407f-8e37-a75e7336fb9e:node-defd413b-75f1-4ace-a9b6-882f80628e67 :: true 2020-10-18 23:27:58 | [Mutex] waiting for: [received:nodes:a3588674-c036-48cf-a247-8f47ce4bc7c6:localhost] 2020-10-18 23:27:58 | [Mutex] received everything. 2020-10-18 23:27:58 | [Mutex] isItemNotified: received:node:a3588674-c036-48cf-a247-8f47ce4bc7c6:localhost:node-eed923e4-6178-407f-8e37-a75e7336fb9e:Node eed923e4-6178-407f-8e37-a75e7336fb9e :: true 2020-10-18 23:27:58 | [Mutex] waiting for: [received:nodes:363909a9-9485-44a7-98f9-8666348aeb9b:localhost] 2020-10-18 23:27:58 | [Mutex] received everything. 2020-10-18 23:27:58 | [Mutex] isItemNotified: received:node:363909a9-9485-44a7-98f9-8666348aeb9b:localhost:node-eed923e4-6178-407f-8e37-a75e7336fb9e:Node eed923e4-6178-407f-8e37-a75e7336fb9e :: false |
createNodes | 1.725s |
2020-10-18 23:27:54 |
2020-10-18 23:27:54 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-10-18 23:27:54 | ------------------------------------ 2020-10-18 23:27:54 | on localhost executing action create-node with content type application/json and payload: { "owner": "admin@test-domain.com", "pubsub#node_type": "leaf", "node": "node-eed923e4-6178-407f-8e37-a75e7336fb9e", "pubsub#title": "Node eed923e4-6178-407f-8e37-a75e7336fb9e" } 2020-10-18 23:27:54 | from localhost for action create-node got result code 200 and payload { "Note": "Operation successful" } 2020-10-18 23:27:55 | [Mutex] waiting for: [received:nodes:98ede6e1-77d6-44c6-9ac3-5018ce903b7c:localhost] 2020-10-18 23:27:55 | [Mutex] received everything. 2020-10-18 23:27:55 | [Mutex] isItemNotified: received:node:98ede6e1-77d6-44c6-9ac3-5018ce903b7c:localhost:node-eed923e4-6178-407f-8e37-a75e7336fb9e:Node eed923e4-6178-407f-8e37-a75e7336fb9e :: true |
createSubnodes | 1.027s |
2020-10-18 23:27:55 |
2020-10-18 23:27:55 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-10-18 23:27:55 | ------------------------------------ 2020-10-18 23:27:55 | on localhost executing action create-node with content type application/json and payload: { "owner": "admin@test-domain.com", "pubsub#node_type": "collection", "node": "node-defd413b-75f1-4ace-a9b6-882f80628e67", "pubsub#title": "Node defd413b-75f1-4ace-a9b6-882f80628e67" } 2020-10-18 23:27:55 | from localhost for action create-node got result code 200 and payload { "Note": "Operation successful" } 2020-10-18 23:27:56 | [Mutex] waiting for: [received:nodes:b61ec2ae-e13b-404a-96f0-53b0e3a7e16c:localhost] 2020-10-18 23:27:56 | [Mutex] received everything. 2020-10-18 23:27:56 | [Mutex] isItemNotified: received:node:b61ec2ae-e13b-404a-96f0-53b0e3a7e16c:localhost:node-defd413b-75f1-4ace-a9b6-882f80628e67:Node defd413b-75f1-4ace-a9b6-882f80628e67 :: true |
deleteNodes | 1.028s |
2020-10-18 23:28:01 |
2020-10-18 23:28:01 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-10-18 23:28:01 | ------------------------------------ 2020-10-18 23:28:01 | on localhost executing action delete-node with content type application/json and payload: { "node": "node-defd413b-75f1-4ace-a9b6-882f80628e67" } 2020-10-18 23:28:01 | from localhost for action delete-node got result code 200 and payload { "Note": "Operation successful" } 2020-10-18 23:28:02 | [Mutex] waiting for: [received:nodes:7044bc97-c508-47a1-b7ee-21b5927158e0:localhost] 2020-10-18 23:28:02 | [Mutex] waiting for: [received:nodes:7044bc97-c508-47a1-b7ee-21b5927158e0:localhost] 2020-10-18 23:28:02 | [Mutex] received everything. 2020-10-18 23:28:02 | [Mutex] isItemNotified: received:node:7044bc97-c508-47a1-b7ee-21b5927158e0:localhost:node-defd413b-75f1-4ace-a9b6-882f80628e67:Node defd413b-75f1-4ace-a9b6-882f80628e67 :: false |
deleteSubnodes | 1.034s |
2020-10-18 23:28:00 |
2020-10-18 23:28:00 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-10-18 23:28:00 | ------------------------------------ 2020-10-18 23:28:00 | on localhost executing action delete-node with content type application/json and payload: { "node": "node-eed923e4-6178-407f-8e37-a75e7336fb9e" } 2020-10-18 23:28:00 | from localhost for action delete-node got result code 200 and payload { "Note": "Operation successful" } 2020-10-18 23:28:01 | [Mutex] waiting for: [received:nodes:8e2120a3-8f62-439c-b58d-1df6e1b37911:localhost] 2020-10-18 23:28:01 | [Mutex] received everything. 2020-10-18 23:28:01 | [Mutex] isItemNotified: received:node:8e2120a3-8f62-439c-b58d-1df6e1b37911:localhost:node-eed923e4-6178-407f-8e37-a75e7336fb9e:Node eed923e4-6178-407f-8e37-a75e7336fb9e :: false 2020-10-18 23:28:01 | [Mutex] waiting for: [received:nodes:10fe9e8e-cfc6-4362-b1e9-4fe022cbc56f:localhost] 2020-10-18 23:28:01 | [Mutex] received everything. 2020-10-18 23:28:01 | [Mutex] isItemNotified: received:node:10fe9e8e-cfc6-4362-b1e9-4fe022cbc56f:localhost:node-eed923e4-6178-407f-8e37-a75e7336fb9e:Node eed923e4-6178-407f-8e37-a75e7336fb9e :: false |
publishItemsToNodes | 0.052s |
2020-10-18 23:27:59 |
2020-10-18 23:27:59 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-10-18 23:27:59 | ------------------------------------ 2020-10-18 23:27:59 | on localhost executing action publish-item with content type application/json and payload: { "node": "node-eed923e4-6178-407f-8e37-a75e7336fb9e", "entry": "<test>item-850b48ac-7e8c-413d-8e31-b490c90e6c04</test>", "item-id": "item-850b48ac-7e8c-413d-8e31-b490c90e6c04" } 2020-10-18 23:27:59 | from localhost for action publish-item got result code 200 and payload { "Note": "Operation successful", "item-id": "item-850b48ac-7e8c-413d-8e31-b490c90e6c04" } 2020-10-18 23:27:59 | [Mutex] received everything. 2020-10-18 23:27:59 | [Mutex] isItemNotified: published:item:notifieditem-850b48ac-7e8c-413d-8e31-b490c90e6c04:admin@test-domain.com :: true |
retractItemsFromNodes | 0.075s |
2020-10-18 23:27:59 |
2020-10-18 23:27:59 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-10-18 23:27:59 | ------------------------------------ 2020-10-18 23:27:59 | on localhost executing action delete-item with content type application/json and payload: { "node": "node-eed923e4-6178-407f-8e37-a75e7336fb9e", "item-id": "item-850b48ac-7e8c-413d-8e31-b490c90e6c04" } 2020-10-18 23:27:59 | from localhost for action delete-item got result code 200 and payload { "Note": "Operation successful", "item-id": "item-850b48ac-7e8c-413d-8e31-b490c90e6c04" } 2020-10-18 23:27:59 | [Mutex] received everything. 2020-10-18 23:27:59 | [Mutex] isItemNotified: retracted:item:notifieditem-850b48ac-7e8c-413d-8e31-b490c90e6c04:admin@test-domain.com :: true |
retrieveItemsFromNodes | 0.077s |
2020-10-18 23:27:59 |
2020-10-18 23:27:59 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-10-18 23:27:59 | ------------------------------------ 2020-10-18 23:27:59 | on localhost executing action retrieve-item with content type application/json and payload: { "node": "node-eed923e4-6178-407f-8e37-a75e7336fb9e", "item-id": "item-850b48ac-7e8c-413d-8e31-b490c90e6c04" } 2020-10-18 23:27:59 | from localhost for action retrieve-item got result code 200 and payload { "title": "Retrive PubSub node item", "node": "node-eed923e4-6178-407f-8e37-a75e7336fb9e", "item-id": "item-850b48ac-7e8c-413d-8e31-b490c90e6c04", "item": [ "<item id=\"item-850b48ac-7e8c-413d-8e31-b490c90e6c04\"><test>item-850b48ac-7e8c-413d-8e31-b490c90e6c04</test></item>" ] } 2020-10-18 23:27:59 | [Mutex] notify: [retrieved:item:item-850b48ac-7e8c-413d-8e31-b490c90e6c04:payload-matches:true:localhost] 2020-10-18 23:27:59 | [Mutex] received everything. 2020-10-18 23:27:59 | [Mutex] isItemNotified: retrieved:item:item-850b48ac-7e8c-413d-8e31-b490c90e6c04:payload-matches:true:localhost :: true |
retrieveUserSubscriptions | 0.051s |
2020-10-18 23:27:59 |
2020-10-18 23:27:59 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-10-18 23:27:59 | ------------------------------------ 2020-10-18 23:27:59 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload: { "jid": "admin@test-domain.com" } 2020-10-18 23:27:59 | from localhost for action retrieve-user-subscriptions got result code 200 and payload { "nodes": [ "test", "node-defd413b-75f1-4ace-a9b6-882f80628e67", "node-eed923e4-6178-407f-8e37-a75e7336fb9e" ] } |
retrieveUserSubscriptionsWithRegex | 0.051s |
2020-10-18 23:27:59 |
2020-10-18 23:27:59 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-10-18 23:27:59 | ------------------------------------ 2020-10-18 23:27:59 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload: { "jid": "admin@test-domain.com", "node-pattern": "(?!node-eed923e4-6178-407f-8e37-a75e7336fb9e)" } 2020-10-18 23:27:59 | from localhost for action retrieve-user-subscriptions got result code 200 and payload { "nodes": [ ] } |
subscribeNodes | 1.015s |
2020-10-18 23:27:58 |
2020-10-18 23:27:58 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-10-18 23:27:58 | ------------------------------------ 2020-10-18 23:27:58 | on localhost executing action subscribe-node with content type application/json and payload: { "node": "node-eed923e4-6178-407f-8e37-a75e7336fb9e", "jids": [ "admin@test-domain.com" ] } 2020-10-18 23:27:58 | from localhost for action subscribe-node got result code 200 and payload { "Note": "Operation successful" } |
unsubscribeNodes | 1.087s |
2020-10-18 23:27:59 |
2020-10-18 23:27:59 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-10-18 23:27:59 | ------------------------------------ 2020-10-18 23:27:59 | on localhost executing action unsubscribe-node with content type application/json and payload: { "node": "node-eed923e4-6178-407f-8e37-a75e7336fb9e", "jids": [ "admin@test-domain.com" ] } 2020-10-18 23:27:59 | from localhost for action unsubscribe-node got result code 200 and payload { "Note": "Operation successful" } |