Test duration : 8.817s
Passed Tests | ||
---|---|---|
tigase.tests.pubsub.TestRestApiUsingJSON | ||
configureNodes | 1.083s |
2020-09-20 00:10:59 |
2020-09-20 00:10:59 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-09-20 00:10:59 | ------------------------------------ 2020-09-20 00:10:59 | [Mutex] waiting for: [configured:node:node-acd61231-a29f-482c-8e4a-ac2149da6ae6:node-3ebaeaec-3d8c-476d-baa7-0be696c11153] 2020-09-20 00:11:00 | [Mutex] received everything. 2020-09-20 00:11:00 | [Mutex] isItemNotified: configured:node:node-acd61231-a29f-482c-8e4a-ac2149da6ae6:node-3ebaeaec-3d8c-476d-baa7-0be696c11153 :: true 2020-09-20 00:11:01 | [Mutex] waiting for: [received:nodes:f9e8bbbf-990b-4e43-9ab9-4e8f6f03b36c:localhost] 2020-09-20 00:11:01 | [Mutex] received everything. 2020-09-20 00:11:01 | [Mutex] isItemNotified: received:node:f9e8bbbf-990b-4e43-9ab9-4e8f6f03b36c:localhost:node-acd61231-a29f-482c-8e4a-ac2149da6ae6:Node acd61231-a29f-482c-8e4a-ac2149da6ae6 :: true 2020-09-20 00:11:01 | [Mutex] waiting for: [received:nodes:ec25b45b-f88f-4b04-b811-038a7ec10ca7:localhost] 2020-09-20 00:11:01 | [Mutex] received everything. 2020-09-20 00:11:01 | [Mutex] isItemNotified: received:node:ec25b45b-f88f-4b04-b811-038a7ec10ca7:localhost:node-acd61231-a29f-482c-8e4a-ac2149da6ae6:Node acd61231-a29f-482c-8e4a-ac2149da6ae6 :: false |
createNodes | 1.532s |
2020-09-20 00:10:57 |
2020-09-20 00:10:57 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-09-20 00:10:57 | ------------------------------------ 2020-09-20 00:10:57 | on localhost executing action create-node with content type application/json and payload: { "owner": "admin@test-domain.com", "pubsub#node_type": "leaf", "node": "node-acd61231-a29f-482c-8e4a-ac2149da6ae6", "pubsub#title": "Node acd61231-a29f-482c-8e4a-ac2149da6ae6" } 2020-09-20 00:10:57 | from localhost for action create-node got result code 200 and payload { "Note": "Operation successful" } 2020-09-20 00:10:58 | [Mutex] waiting for: [received:nodes:97952483-6384-446b-9fe9-fcd1b63d1dbd:localhost] 2020-09-20 00:10:58 | [Mutex] received everything. 2020-09-20 00:10:58 | [Mutex] isItemNotified: received:node:97952483-6384-446b-9fe9-fcd1b63d1dbd:localhost:node-acd61231-a29f-482c-8e4a-ac2149da6ae6:Node acd61231-a29f-482c-8e4a-ac2149da6ae6 :: true |
createSubnodes | 1.024s |
2020-09-20 00:10:58 |
2020-09-20 00:10:58 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-09-20 00:10:58 | ------------------------------------ 2020-09-20 00:10:58 | on localhost executing action create-node with content type application/json and payload: { "owner": "admin@test-domain.com", "pubsub#node_type": "collection", "node": "node-3ebaeaec-3d8c-476d-baa7-0be696c11153", "pubsub#title": "Node 3ebaeaec-3d8c-476d-baa7-0be696c11153" } 2020-09-20 00:10:58 | from localhost for action create-node got result code 200 and payload { "Note": "Operation successful" } 2020-09-20 00:10:59 | [Mutex] waiting for: [received:nodes:6250cda5-d429-4b10-96e5-65cb8d14e372:localhost] 2020-09-20 00:10:59 | [Mutex] received everything. 2020-09-20 00:10:59 | [Mutex] isItemNotified: received:node:6250cda5-d429-4b10-96e5-65cb8d14e372:localhost:node-3ebaeaec-3d8c-476d-baa7-0be696c11153:Node 3ebaeaec-3d8c-476d-baa7-0be696c11153 :: true |
deleteNodes | 1.042s |
2020-09-20 00:11:04 |
2020-09-20 00:11:04 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-09-20 00:11:04 | ------------------------------------ 2020-09-20 00:11:04 | on localhost executing action delete-node with content type application/json and payload: { "node": "node-3ebaeaec-3d8c-476d-baa7-0be696c11153" } 2020-09-20 00:11:04 | from localhost for action delete-node got result code 200 and payload { "Note": "Operation successful" } 2020-09-20 00:11:05 | [Mutex] waiting for: [received:nodes:e8c54d5b-9fd7-4802-b5e1-f25e4028d450:localhost] 2020-09-20 00:11:05 | [Mutex] received everything. 2020-09-20 00:11:05 | [Mutex] isItemNotified: received:node:e8c54d5b-9fd7-4802-b5e1-f25e4028d450:localhost:node-3ebaeaec-3d8c-476d-baa7-0be696c11153:Node 3ebaeaec-3d8c-476d-baa7-0be696c11153 :: false |
deleteSubnodes | 1.023s |
2020-09-20 00:11:03 |
2020-09-20 00:11:03 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-09-20 00:11:03 | ------------------------------------ 2020-09-20 00:11:03 | on localhost executing action delete-node with content type application/json and payload: { "node": "node-acd61231-a29f-482c-8e4a-ac2149da6ae6" } 2020-09-20 00:11:03 | from localhost for action delete-node got result code 200 and payload { "Note": "Operation successful" } 2020-09-20 00:11:04 | [Mutex] waiting for: [received:nodes:defd0b68-7f6f-46c8-8d94-62318097dcb0:localhost] 2020-09-20 00:11:04 | [Mutex] received everything. 2020-09-20 00:11:04 | [Mutex] isItemNotified: received:node:defd0b68-7f6f-46c8-8d94-62318097dcb0:localhost:node-acd61231-a29f-482c-8e4a-ac2149da6ae6:Node acd61231-a29f-482c-8e4a-ac2149da6ae6 :: false 2020-09-20 00:11:04 | [Mutex] waiting for: [received:nodes:8565a195-32b6-4987-a484-88e9c78f7d57:localhost] 2020-09-20 00:11:04 | [Mutex] received everything. 2020-09-20 00:11:04 | [Mutex] isItemNotified: received:node:8565a195-32b6-4987-a484-88e9c78f7d57:localhost:node-acd61231-a29f-482c-8e4a-ac2149da6ae6:Node acd61231-a29f-482c-8e4a-ac2149da6ae6 :: false |
publishItemsToNodes | 0.034s |
2020-09-20 00:11:02 |
2020-09-20 00:11:02 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-09-20 00:11:02 | ------------------------------------ 2020-09-20 00:11:02 | on localhost executing action publish-item with content type application/json and payload: { "node": "node-acd61231-a29f-482c-8e4a-ac2149da6ae6", "entry": "<test>item-176af655-7e55-4af4-81a0-fbc8ad1b2659</test>", "item-id": "item-176af655-7e55-4af4-81a0-fbc8ad1b2659" } 2020-09-20 00:11:02 | from localhost for action publish-item got result code 200 and payload { "Note": "Operation successful", "item-id": "item-176af655-7e55-4af4-81a0-fbc8ad1b2659" } 2020-09-20 00:11:02 | [Mutex] waiting for: [published:item:notifieditem-176af655-7e55-4af4-81a0-fbc8ad1b2659:admin@test-domain.com] 2020-09-20 00:11:02 | [Mutex] received everything. 2020-09-20 00:11:02 | [Mutex] isItemNotified: published:item:notifieditem-176af655-7e55-4af4-81a0-fbc8ad1b2659:admin@test-domain.com :: true |
retractItemsFromNodes | 0.087s |
2020-09-20 00:11:02 |
2020-09-20 00:11:02 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-09-20 00:11:02 | ------------------------------------ 2020-09-20 00:11:02 | on localhost executing action delete-item with content type application/json and payload: { "node": "node-acd61231-a29f-482c-8e4a-ac2149da6ae6", "item-id": "item-176af655-7e55-4af4-81a0-fbc8ad1b2659" } 2020-09-20 00:11:02 | from localhost for action delete-item got result code 200 and payload { "Note": "Operation successful", "item-id": "item-176af655-7e55-4af4-81a0-fbc8ad1b2659" } 2020-09-20 00:11:02 | [Mutex] received everything. 2020-09-20 00:11:02 | [Mutex] isItemNotified: retracted:item:notifieditem-176af655-7e55-4af4-81a0-fbc8ad1b2659:admin@test-domain.com :: true |
retrieveItemsFromNodes | 0.070s |
2020-09-20 00:11:02 |
2020-09-20 00:11:02 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-09-20 00:11:02 | ------------------------------------ 2020-09-20 00:11:02 | on localhost executing action retrieve-item with content type application/json and payload: { "node": "node-acd61231-a29f-482c-8e4a-ac2149da6ae6", "item-id": "item-176af655-7e55-4af4-81a0-fbc8ad1b2659" } 2020-09-20 00:11:02 | from localhost for action retrieve-item got result code 200 and payload { "title": "Retrive PubSub node item", "node": "node-acd61231-a29f-482c-8e4a-ac2149da6ae6", "item-id": "item-176af655-7e55-4af4-81a0-fbc8ad1b2659", "item": [ "<item id=\"item-176af655-7e55-4af4-81a0-fbc8ad1b2659\"><test>item-176af655-7e55-4af4-81a0-fbc8ad1b2659</test></item>" ] } 2020-09-20 00:11:02 | [Mutex] notify: [retrieved:item:item-176af655-7e55-4af4-81a0-fbc8ad1b2659:payload-matches:true:localhost] 2020-09-20 00:11:02 | [Mutex] received everything. 2020-09-20 00:11:02 | [Mutex] isItemNotified: retrieved:item:item-176af655-7e55-4af4-81a0-fbc8ad1b2659:payload-matches:true:localhost :: true |
retrieveUserSubscriptions | 0.052s |
2020-09-20 00:11:02 |
2020-09-20 00:11:02 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-09-20 00:11:02 | ------------------------------------ 2020-09-20 00:11:02 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload: { "jid": "admin@test-domain.com" } 2020-09-20 00:11:02 | from localhost for action retrieve-user-subscriptions got result code 200 and payload { "nodes": [ "node-3ebaeaec-3d8c-476d-baa7-0be696c11153", "test", "node-acd61231-a29f-482c-8e4a-ac2149da6ae6" ] } |
retrieveUserSubscriptionsWithRegex | 0.048s |
2020-09-20 00:11:02 |
2020-09-20 00:11:02 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-09-20 00:11:02 | ------------------------------------ 2020-09-20 00:11:02 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload: { "jid": "admin@test-domain.com", "node-pattern": "(?!node-acd61231-a29f-482c-8e4a-ac2149da6ae6)" } 2020-09-20 00:11:02 | from localhost for action retrieve-user-subscriptions got result code 200 and payload { "nodes": [ ] } |
subscribeNodes | 1.012s |
2020-09-20 00:11:01 |
2020-09-20 00:11:01 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-09-20 00:11:01 | ------------------------------------ 2020-09-20 00:11:01 | on localhost executing action subscribe-node with content type application/json and payload: { "node": "node-acd61231-a29f-482c-8e4a-ac2149da6ae6", "jids": [ "admin@test-domain.com" ] } 2020-09-20 00:11:01 | from localhost for action subscribe-node got result code 200 and payload { "Note": "Operation successful" } |
unsubscribeNodes | 1.056s |
2020-09-20 00:11:02 |
2020-09-20 00:11:02 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-09-20 00:11:02 | ------------------------------------ 2020-09-20 00:11:02 | on localhost executing action unsubscribe-node with content type application/json and payload: { "node": "node-acd61231-a29f-482c-8e4a-ac2149da6ae6", "jids": [ "admin@test-domain.com" ] } 2020-09-20 00:11:02 | from localhost for action unsubscribe-node got result code 200 and payload { "Note": "Operation successful" } |