Test duration : 9.034s
Passed Tests | ||
---|---|---|
tigase.tests.pubsub.TestRestApiUsingJSON | ||
configureNodes | 1.108s |
2020-11-26 21:58:30 |
2020-11-26 21:58:30 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-11-26 21:58:30 | ------------------------------------ 2020-11-26 21:58:30 | [Mutex] waiting for: [configured:node:node-29aaee83-5d0d-43b1-9656-959f5e80930c:node-75b04b59-ae89-4f7b-8413-2472fd097aca] 2020-11-26 21:58:30 | [Mutex] received everything. 2020-11-26 21:58:30 | [Mutex] isItemNotified: configured:node:node-29aaee83-5d0d-43b1-9656-959f5e80930c:node-75b04b59-ae89-4f7b-8413-2472fd097aca :: true 2020-11-26 21:58:31 | [Mutex] waiting for: [received:nodes:15e742cb-831e-4c0b-89a3-5e3dead494dd:localhost] 2020-11-26 21:58:31 | [Mutex] waiting for: [received:nodes:15e742cb-831e-4c0b-89a3-5e3dead494dd:localhost] 2020-11-26 21:58:31 | [Mutex] received everything. 2020-11-26 21:58:31 | [Mutex] isItemNotified: received:node:15e742cb-831e-4c0b-89a3-5e3dead494dd:localhost:node-29aaee83-5d0d-43b1-9656-959f5e80930c:Node 29aaee83-5d0d-43b1-9656-959f5e80930c :: true 2020-11-26 21:58:31 | [Mutex] waiting for: [received:nodes:e2b5ddaf-d63e-4f93-aa42-ca401f4aecb9:localhost] 2020-11-26 21:58:31 | [Mutex] received everything. 2020-11-26 21:58:31 | [Mutex] isItemNotified: received:node:e2b5ddaf-d63e-4f93-aa42-ca401f4aecb9:localhost:node-29aaee83-5d0d-43b1-9656-959f5e80930c:Node 29aaee83-5d0d-43b1-9656-959f5e80930c :: false |
createNodes | 1.625s |
2020-11-26 21:58:27 |
2020-11-26 21:58:27 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-11-26 21:58:27 | ------------------------------------ 2020-11-26 21:58:28 | on localhost executing action create-node with content type application/json and payload: { "owner": "admin@test-domain.com", "pubsub#node_type": "leaf", "node": "node-29aaee83-5d0d-43b1-9656-959f5e80930c", "pubsub#title": "Node 29aaee83-5d0d-43b1-9656-959f5e80930c" } 2020-11-26 21:58:28 | from localhost for action create-node got result code 200 and payload { "Note": "Operation successful" } 2020-11-26 21:58:29 | [Mutex] waiting for: [received:nodes:e48dda73-45f5-41e4-a5d8-6fe422d83513:localhost] 2020-11-26 21:58:29 | [Mutex] waiting for: [received:nodes:e48dda73-45f5-41e4-a5d8-6fe422d83513:localhost] 2020-11-26 21:58:29 | [Mutex] waiting for: [received:nodes:e48dda73-45f5-41e4-a5d8-6fe422d83513:localhost] 2020-11-26 21:58:29 | [Mutex] received everything. 2020-11-26 21:58:29 | [Mutex] isItemNotified: received:node:e48dda73-45f5-41e4-a5d8-6fe422d83513:localhost:node-29aaee83-5d0d-43b1-9656-959f5e80930c:Node 29aaee83-5d0d-43b1-9656-959f5e80930c :: true |
createSubnodes | 1.027s |
2020-11-26 21:58:29 |
2020-11-26 21:58:29 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-11-26 21:58:29 | ------------------------------------ 2020-11-26 21:58:29 | on localhost executing action create-node with content type application/json and payload: { "owner": "admin@test-domain.com", "pubsub#node_type": "collection", "node": "node-75b04b59-ae89-4f7b-8413-2472fd097aca", "pubsub#title": "Node 75b04b59-ae89-4f7b-8413-2472fd097aca" } 2020-11-26 21:58:29 | from localhost for action create-node got result code 200 and payload { "Note": "Operation successful" } 2020-11-26 21:58:30 | [Mutex] waiting for: [received:nodes:63cb8b5a-1150-419d-9c7a-57f734a2727d:localhost] 2020-11-26 21:58:30 | [Mutex] received everything. 2020-11-26 21:58:30 | [Mutex] isItemNotified: received:node:63cb8b5a-1150-419d-9c7a-57f734a2727d:localhost:node-75b04b59-ae89-4f7b-8413-2472fd097aca:Node 75b04b59-ae89-4f7b-8413-2472fd097aca :: true |
deleteNodes | 1.023s |
2020-11-26 21:58:34 |
2020-11-26 21:58:34 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-11-26 21:58:34 | ------------------------------------ 2020-11-26 21:58:34 | on localhost executing action delete-node with content type application/json and payload: { "node": "node-75b04b59-ae89-4f7b-8413-2472fd097aca" } 2020-11-26 21:58:34 | from localhost for action delete-node got result code 200 and payload { "Note": "Operation successful" } 2020-11-26 21:58:35 | [Mutex] waiting for: [received:nodes:69bf4956-cfc1-4d4f-966e-97b9c59386a3:localhost] 2020-11-26 21:58:35 | [Mutex] received everything. 2020-11-26 21:58:35 | [Mutex] isItemNotified: received:node:69bf4956-cfc1-4d4f-966e-97b9c59386a3:localhost:node-75b04b59-ae89-4f7b-8413-2472fd097aca:Node 75b04b59-ae89-4f7b-8413-2472fd097aca :: false |
deleteSubnodes | 1.027s |
2020-11-26 21:58:33 |
2020-11-26 21:58:33 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-11-26 21:58:33 | ------------------------------------ 2020-11-26 21:58:33 | on localhost executing action delete-node with content type application/json and payload: { "node": "node-29aaee83-5d0d-43b1-9656-959f5e80930c" } 2020-11-26 21:58:33 | from localhost for action delete-node got result code 200 and payload { "Note": "Operation successful" } 2020-11-26 21:58:34 | [Mutex] waiting for: [received:nodes:02a93c63-ce60-400a-b9b1-e7d6ab1976c6:localhost] 2020-11-26 21:58:34 | [Mutex] received everything. 2020-11-26 21:58:34 | [Mutex] isItemNotified: received:node:02a93c63-ce60-400a-b9b1-e7d6ab1976c6:localhost:node-29aaee83-5d0d-43b1-9656-959f5e80930c:Node 29aaee83-5d0d-43b1-9656-959f5e80930c :: false 2020-11-26 21:58:34 | [Mutex] waiting for: [received:nodes:fe5dc700-8241-496c-bdee-9c4337f0ca74:localhost] 2020-11-26 21:58:34 | [Mutex] received everything. 2020-11-26 21:58:34 | [Mutex] isItemNotified: received:node:fe5dc700-8241-496c-bdee-9c4337f0ca74:localhost:node-29aaee83-5d0d-43b1-9656-959f5e80930c:Node 29aaee83-5d0d-43b1-9656-959f5e80930c :: false |
publishItemsToNodes | 0.064s |
2020-11-26 21:58:32 |
2020-11-26 21:58:32 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-11-26 21:58:32 | ------------------------------------ 2020-11-26 21:58:32 | on localhost executing action publish-item with content type application/json and payload: { "node": "node-29aaee83-5d0d-43b1-9656-959f5e80930c", "entry": "<test>item-7ac43e5e-fb3e-4560-9fbf-7586a490dfb0</test>", "item-id": "item-7ac43e5e-fb3e-4560-9fbf-7586a490dfb0" } 2020-11-26 21:58:32 | from localhost for action publish-item got result code 200 and payload { "Note": "Operation successful", "item-id": "item-7ac43e5e-fb3e-4560-9fbf-7586a490dfb0" } 2020-11-26 21:58:32 | [Mutex] waiting for: [published:item:notifieditem-7ac43e5e-fb3e-4560-9fbf-7586a490dfb0:admin@test-domain.com] 2020-11-26 21:58:32 | [Mutex] received everything. 2020-11-26 21:58:32 | [Mutex] isItemNotified: published:item:notifieditem-7ac43e5e-fb3e-4560-9fbf-7586a490dfb0:admin@test-domain.com :: true |
retractItemsFromNodes | 0.066s |
2020-11-26 21:58:32 |
2020-11-26 21:58:32 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-11-26 21:58:32 | ------------------------------------ 2020-11-26 21:58:32 | on localhost executing action delete-item with content type application/json and payload: { "node": "node-29aaee83-5d0d-43b1-9656-959f5e80930c", "item-id": "item-7ac43e5e-fb3e-4560-9fbf-7586a490dfb0" } 2020-11-26 21:58:32 | from localhost for action delete-item got result code 200 and payload { "Note": "Operation successful", "item-id": "item-7ac43e5e-fb3e-4560-9fbf-7586a490dfb0" } 2020-11-26 21:58:32 | [Mutex] waiting for: [retracted:item:notifieditem-7ac43e5e-fb3e-4560-9fbf-7586a490dfb0:admin@test-domain.com] 2020-11-26 21:58:32 | [Mutex] received everything. 2020-11-26 21:58:32 | [Mutex] isItemNotified: retracted:item:notifieditem-7ac43e5e-fb3e-4560-9fbf-7586a490dfb0:admin@test-domain.com :: true |
retrieveItemsFromNodes | 0.079s |
2020-11-26 21:58:32 |
2020-11-26 21:58:32 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-11-26 21:58:32 | ------------------------------------ 2020-11-26 21:58:32 | on localhost executing action retrieve-item with content type application/json and payload: { "node": "node-29aaee83-5d0d-43b1-9656-959f5e80930c", "item-id": "item-7ac43e5e-fb3e-4560-9fbf-7586a490dfb0" } 2020-11-26 21:58:32 | from localhost for action retrieve-item got result code 200 and payload { "title": "Retrive PubSub node item", "node": "node-29aaee83-5d0d-43b1-9656-959f5e80930c", "item-id": "item-7ac43e5e-fb3e-4560-9fbf-7586a490dfb0", "item": [ "<item id=\"item-7ac43e5e-fb3e-4560-9fbf-7586a490dfb0\"><test>item-7ac43e5e-fb3e-4560-9fbf-7586a490dfb0</test></item>" ] } 2020-11-26 21:58:32 | [Mutex] notify: [retrieved:item:item-7ac43e5e-fb3e-4560-9fbf-7586a490dfb0:payload-matches:true:localhost] 2020-11-26 21:58:32 | [Mutex] received everything. 2020-11-26 21:58:32 | [Mutex] isItemNotified: retrieved:item:item-7ac43e5e-fb3e-4560-9fbf-7586a490dfb0:payload-matches:true:localhost :: true |
retrieveUserSubscriptions | 0.080s |
2020-11-26 21:58:32 |
2020-11-26 21:58:32 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-11-26 21:58:32 | ------------------------------------ 2020-11-26 21:58:32 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload: { "jid": "admin@test-domain.com" } 2020-11-26 21:58:32 | from localhost for action retrieve-user-subscriptions got result code 200 and payload { "nodes": [ "node-29aaee83-5d0d-43b1-9656-959f5e80930c", "test", "node-75b04b59-ae89-4f7b-8413-2472fd097aca" ] } |
retrieveUserSubscriptionsWithRegex | 0.051s |
2020-11-26 21:58:32 |
2020-11-26 21:58:32 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-11-26 21:58:32 | ------------------------------------ 2020-11-26 21:58:32 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload: { "jid": "admin@test-domain.com", "node-pattern": "(?!node-29aaee83-5d0d-43b1-9656-959f5e80930c)" } 2020-11-26 21:58:32 | from localhost for action retrieve-user-subscriptions got result code 200 and payload { "nodes": [ ] } |
subscribeNodes | 1.012s |
2020-11-26 21:58:31 |
2020-11-26 21:58:31 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-11-26 21:58:31 | ------------------------------------ 2020-11-26 21:58:31 | on localhost executing action subscribe-node with content type application/json and payload: { "node": "node-29aaee83-5d0d-43b1-9656-959f5e80930c", "jids": [ "admin@test-domain.com" ] } 2020-11-26 21:58:31 | from localhost for action subscribe-node got result code 200 and payload { "Note": "Operation successful" } |
unsubscribeNodes | 1.060s |
2020-11-26 21:58:32 |
2020-11-26 21:58:32 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-11-26 21:58:32 | ------------------------------------ 2020-11-26 21:58:32 | on localhost executing action unsubscribe-node with content type application/json and payload: { "node": "node-29aaee83-5d0d-43b1-9656-959f5e80930c", "jids": [ "admin@test-domain.com" ] } 2020-11-26 21:58:32 | from localhost for action unsubscribe-node got result code 200 and payload { "Note": "Operation successful" } |