Test duration : 9.316s
Passed Tests | ||
---|---|---|
tigase.tests.pubsub.TestRestApiUsingJSON | ||
configureNodes | 1.122s |
2021-03-18 22:48:35 |
2021-03-18 22:48:35 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-03-18 22:48:35 | ------------------------------------ 2021-03-18 22:48:35 | [Mutex] waiting for: [configured:node:node-2c87df62-bfd6-4964-96fd-72b02b56605c:node-c5b9fafb-f3c3-4416-9c79-e901735202d1] 2021-03-18 22:48:35 | [Mutex] received everything. 2021-03-18 22:48:35 | [Mutex] isItemNotified: configured:node:node-2c87df62-bfd6-4964-96fd-72b02b56605c:node-c5b9fafb-f3c3-4416-9c79-e901735202d1 :: true 2021-03-18 22:48:36 | [Mutex] waiting for: [received:nodes:129f4aff-8c97-4540-b679-fcd1c2fa9df3:localhost] 2021-03-18 22:48:36 | [Mutex] received everything. 2021-03-18 22:48:36 | [Mutex] isItemNotified: received:node:129f4aff-8c97-4540-b679-fcd1c2fa9df3:localhost:node-2c87df62-bfd6-4964-96fd-72b02b56605c:Node 2c87df62-bfd6-4964-96fd-72b02b56605c :: true 2021-03-18 22:48:36 | [Mutex] waiting for: [received:nodes:87e38aa3-cc8f-4a73-a935-1aac22f4227f:localhost] 2021-03-18 22:48:36 | [Mutex] received everything. 2021-03-18 22:48:36 | [Mutex] isItemNotified: received:node:87e38aa3-cc8f-4a73-a935-1aac22f4227f:localhost:node-2c87df62-bfd6-4964-96fd-72b02b56605c:Node 2c87df62-bfd6-4964-96fd-72b02b56605c :: false |
createNodes | 1.828s |
2021-03-18 22:48:32 |
2021-03-18 22:48:32 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-03-18 22:48:32 | ------------------------------------ 2021-03-18 22:48:33 | on localhost executing action create-node with content type application/json and payload: { "owner": "admin@test-domain.com", "pubsub#node_type": "leaf", "node": "node-2c87df62-bfd6-4964-96fd-72b02b56605c", "pubsub#title": "Node 2c87df62-bfd6-4964-96fd-72b02b56605c" } 2021-03-18 22:48:33 | from localhost for action create-node got result code 200 and payload { "Note": "Operation successful" } 2021-03-18 22:48:34 | [Mutex] waiting for: [received:nodes:496a0acb-813b-4c1e-819b-3bcf33a7f623:localhost] 2021-03-18 22:48:34 | [Mutex] received everything. 2021-03-18 22:48:34 | [Mutex] isItemNotified: received:node:496a0acb-813b-4c1e-819b-3bcf33a7f623:localhost:node-2c87df62-bfd6-4964-96fd-72b02b56605c:Node 2c87df62-bfd6-4964-96fd-72b02b56605c :: true |
createSubnodes | 1.035s |
2021-03-18 22:48:34 |
2021-03-18 22:48:34 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-03-18 22:48:34 | ------------------------------------ 2021-03-18 22:48:34 | on localhost executing action create-node with content type application/json and payload: { "owner": "admin@test-domain.com", "pubsub#node_type": "collection", "node": "node-c5b9fafb-f3c3-4416-9c79-e901735202d1", "pubsub#title": "Node c5b9fafb-f3c3-4416-9c79-e901735202d1" } 2021-03-18 22:48:34 | from localhost for action create-node got result code 200 and payload { "Note": "Operation successful" } 2021-03-18 22:48:35 | [Mutex] waiting for: [received:nodes:e1543432-99a0-4c44-b522-826cfe374f69:localhost] 2021-03-18 22:48:35 | [Mutex] received everything. 2021-03-18 22:48:35 | [Mutex] isItemNotified: received:node:e1543432-99a0-4c44-b522-826cfe374f69:localhost:node-c5b9fafb-f3c3-4416-9c79-e901735202d1:Node c5b9fafb-f3c3-4416-9c79-e901735202d1 :: true |
deleteNodes | 1.042s |
2021-03-18 22:48:39 |
2021-03-18 22:48:39 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-03-18 22:48:39 | ------------------------------------ 2021-03-18 22:48:39 | on localhost executing action delete-node with content type application/json and payload: { "node": "node-c5b9fafb-f3c3-4416-9c79-e901735202d1" } 2021-03-18 22:48:39 | from localhost for action delete-node got result code 200 and payload { "Note": "Operation successful" } 2021-03-18 22:48:40 | [Mutex] waiting for: [received:nodes:37a63fd6-652f-4345-8d8b-7076781197f6:localhost] 2021-03-18 22:48:40 | [Mutex] received everything. 2021-03-18 22:48:40 | [Mutex] isItemNotified: received:node:37a63fd6-652f-4345-8d8b-7076781197f6:localhost:node-c5b9fafb-f3c3-4416-9c79-e901735202d1:Node c5b9fafb-f3c3-4416-9c79-e901735202d1 :: false |
deleteSubnodes | 1.037s |
2021-03-18 22:48:38 |
2021-03-18 22:48:38 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-03-18 22:48:38 | ------------------------------------ 2021-03-18 22:48:38 | on localhost executing action delete-node with content type application/json and payload: { "node": "node-2c87df62-bfd6-4964-96fd-72b02b56605c" } 2021-03-18 22:48:38 | from localhost for action delete-node got result code 200 and payload { "Note": "Operation successful" } 2021-03-18 22:48:39 | [Mutex] waiting for: [received:nodes:4ab4c65c-5c82-407a-9a8d-34b56d70dc30:localhost] 2021-03-18 22:48:39 | [Mutex] received everything. 2021-03-18 22:48:39 | [Mutex] isItemNotified: received:node:4ab4c65c-5c82-407a-9a8d-34b56d70dc30:localhost:node-2c87df62-bfd6-4964-96fd-72b02b56605c:Node 2c87df62-bfd6-4964-96fd-72b02b56605c :: false 2021-03-18 22:48:39 | [Mutex] waiting for: [received:nodes:b202c185-4f9e-4ec9-bfb1-a4785e32cbd0:localhost] 2021-03-18 22:48:39 | [Mutex] received everything. 2021-03-18 22:48:39 | [Mutex] isItemNotified: received:node:b202c185-4f9e-4ec9-bfb1-a4785e32cbd0:localhost:node-2c87df62-bfd6-4964-96fd-72b02b56605c:Node 2c87df62-bfd6-4964-96fd-72b02b56605c :: false |
publishItemsToNodes | 0.044s |
2021-03-18 22:48:37 |
2021-03-18 22:48:37 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-03-18 22:48:37 | ------------------------------------ 2021-03-18 22:48:37 | on localhost executing action publish-item with content type application/json and payload: { "node": "node-2c87df62-bfd6-4964-96fd-72b02b56605c", "entry": "<test>item-3ad4857b-a3a7-40c8-a887-395b5ca8e6b1</test>", "item-id": "item-3ad4857b-a3a7-40c8-a887-395b5ca8e6b1" } 2021-03-18 22:48:37 | from localhost for action publish-item got result code 200 and payload { "Note": "Operation successful", "item-id": "item-3ad4857b-a3a7-40c8-a887-395b5ca8e6b1" } 2021-03-18 22:48:37 | [Mutex] waiting for: [published:item:notifieditem-3ad4857b-a3a7-40c8-a887-395b5ca8e6b1:admin@test-domain.com] 2021-03-18 22:48:37 | [Mutex] received everything. 2021-03-18 22:48:37 | [Mutex] isItemNotified: published:item:notifieditem-3ad4857b-a3a7-40c8-a887-395b5ca8e6b1:admin@test-domain.com :: true |
retractItemsFromNodes | 0.064s |
2021-03-18 22:48:37 |
2021-03-18 22:48:37 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-03-18 22:48:37 | ------------------------------------ 2021-03-18 22:48:37 | on localhost executing action delete-item with content type application/json and payload: { "node": "node-2c87df62-bfd6-4964-96fd-72b02b56605c", "item-id": "item-3ad4857b-a3a7-40c8-a887-395b5ca8e6b1" } 2021-03-18 22:48:37 | from localhost for action delete-item got result code 200 and payload { "Note": "Operation successful", "item-id": "item-3ad4857b-a3a7-40c8-a887-395b5ca8e6b1" } 2021-03-18 22:48:37 | [Mutex] received everything. 2021-03-18 22:48:37 | [Mutex] isItemNotified: retracted:item:notifieditem-3ad4857b-a3a7-40c8-a887-395b5ca8e6b1:admin@test-domain.com :: true |
retrieveItemsFromNodes | 0.074s |
2021-03-18 22:48:37 |
2021-03-18 22:48:37 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-03-18 22:48:37 | ------------------------------------ 2021-03-18 22:48:37 | on localhost executing action retrieve-item with content type application/json and payload: { "node": "node-2c87df62-bfd6-4964-96fd-72b02b56605c", "item-id": "item-3ad4857b-a3a7-40c8-a887-395b5ca8e6b1" } 2021-03-18 22:48:37 | from localhost for action retrieve-item got result code 200 and payload { "title": "Retrive PubSub node item", "node": "node-2c87df62-bfd6-4964-96fd-72b02b56605c", "item-id": "item-3ad4857b-a3a7-40c8-a887-395b5ca8e6b1", "item": [ "<item id=\"item-3ad4857b-a3a7-40c8-a887-395b5ca8e6b1\"><test>item-3ad4857b-a3a7-40c8-a887-395b5ca8e6b1</test></item>" ] } 2021-03-18 22:48:37 | [Mutex] notify: [retrieved:item:item-3ad4857b-a3a7-40c8-a887-395b5ca8e6b1:payload-matches:true:localhost] 2021-03-18 22:48:37 | [Mutex] received everything. 2021-03-18 22:48:37 | [Mutex] isItemNotified: retrieved:item:item-3ad4857b-a3a7-40c8-a887-395b5ca8e6b1:payload-matches:true:localhost :: true |
retrieveUserSubscriptions | 0.051s |
2021-03-18 22:48:37 |
2021-03-18 22:48:37 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-03-18 22:48:37 | ------------------------------------ 2021-03-18 22:48:37 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload: { "jid": "admin@test-domain.com" } 2021-03-18 22:48:37 | from localhost for action retrieve-user-subscriptions got result code 200 and payload { "nodes": [ "test", "node-2c87df62-bfd6-4964-96fd-72b02b56605c", "node-c5b9fafb-f3c3-4416-9c79-e901735202d1" ] } |
retrieveUserSubscriptionsWithRegex | 0.051s |
2021-03-18 22:48:37 |
2021-03-18 22:48:37 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-03-18 22:48:37 | ------------------------------------ 2021-03-18 22:48:37 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload: { "jid": "admin@test-domain.com", "node-pattern": "(?!node-2c87df62-bfd6-4964-96fd-72b02b56605c)" } 2021-03-18 22:48:37 | from localhost for action retrieve-user-subscriptions got result code 200 and payload { "nodes": [ ] } |
subscribeNodes | 1.016s |
2021-03-18 22:48:36 |
2021-03-18 22:48:36 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-03-18 22:48:36 | ------------------------------------ 2021-03-18 22:48:36 | on localhost executing action subscribe-node with content type application/json and payload: { "node": "node-2c87df62-bfd6-4964-96fd-72b02b56605c", "jids": [ "admin@test-domain.com" ] } 2021-03-18 22:48:36 | from localhost for action subscribe-node got result code 200 and payload { "Note": "Operation successful" } |
unsubscribeNodes | 1.075s |
2021-03-18 22:48:37 |
2021-03-18 22:48:37 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-03-18 22:48:37 | ------------------------------------ 2021-03-18 22:48:37 | on localhost executing action unsubscribe-node with content type application/json and payload: { "node": "node-2c87df62-bfd6-4964-96fd-72b02b56605c", "jids": [ "admin@test-domain.com" ] } 2021-03-18 22:48:37 | from localhost for action unsubscribe-node got result code 200 and payload { "Note": "Operation successful" } |