Test duration : 9.152s
Passed Tests | ||
---|---|---|
tigase.tests.pubsub.TestRestApiUsingJSON | ||
configureNodes | 1.126s |
2021-12-20 21:57:53 |
2021-12-20 21:57:53 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-12-20 21:57:53 | ------------------------------------ 2021-12-20 21:57:53 | [Mutex] waiting for: [configured:node:node-dce0eb21-9649-4888-b333-9b17ff97f7b5:node-dbf14c91-9f72-4922-ba04-f1886247be69] 2021-12-20 21:57:53 | [Mutex] received everything. 2021-12-20 21:57:53 | [Mutex] isItemNotified: configured:node:node-dce0eb21-9649-4888-b333-9b17ff97f7b5:node-dbf14c91-9f72-4922-ba04-f1886247be69 :: true 2021-12-20 21:57:54 | [Mutex] waiting for: [received:nodes:9d590bba-70ee-42b2-b001-7642b882b888:localhost] 2021-12-20 21:57:54 | [Mutex] received everything. 2021-12-20 21:57:54 | [Mutex] isItemNotified: received:node:9d590bba-70ee-42b2-b001-7642b882b888:localhost:node-dce0eb21-9649-4888-b333-9b17ff97f7b5:Node dce0eb21-9649-4888-b333-9b17ff97f7b5 :: true 2021-12-20 21:57:54 | [Mutex] waiting for: [received:nodes:5b2823f8-c0c8-4738-addc-682bba2dbc6c:localhost] 2021-12-20 21:57:54 | [Mutex] waiting for: [received:nodes:5b2823f8-c0c8-4738-addc-682bba2dbc6c:localhost] 2021-12-20 21:57:54 | [Mutex] received everything. 2021-12-20 21:57:54 | [Mutex] isItemNotified: received:node:5b2823f8-c0c8-4738-addc-682bba2dbc6c:localhost:node-dce0eb21-9649-4888-b333-9b17ff97f7b5:Node dce0eb21-9649-4888-b333-9b17ff97f7b5 :: false |
createNodes | 1.639s |
2021-12-20 21:57:50 |
2021-12-20 21:57:50 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-12-20 21:57:50 | ------------------------------------ 2021-12-20 21:57:51 | on localhost executing action create-node with content type application/json and payload: { "owner": "admin@test-domain.com", "pubsub#node_type": "leaf", "node": "node-dce0eb21-9649-4888-b333-9b17ff97f7b5", "pubsub#title": "Node dce0eb21-9649-4888-b333-9b17ff97f7b5" } 2021-12-20 21:57:51 | from localhost for action create-node got result code 200 and payload { "Note": "Operation successful" } 2021-12-20 21:57:52 | [Mutex] waiting for: [received:nodes:11de8c9b-fbba-45df-9e1f-9cc9338397d3:localhost] 2021-12-20 21:57:52 | [Mutex] waiting for: [received:nodes:11de8c9b-fbba-45df-9e1f-9cc9338397d3:localhost] 2021-12-20 21:57:52 | [Mutex] received everything. 2021-12-20 21:57:52 | [Mutex] isItemNotified: received:node:11de8c9b-fbba-45df-9e1f-9cc9338397d3:localhost:node-dce0eb21-9649-4888-b333-9b17ff97f7b5:Node dce0eb21-9649-4888-b333-9b17ff97f7b5 :: true |
createSubnodes | 1.033s |
2021-12-20 21:57:52 |
2021-12-20 21:57:52 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-12-20 21:57:52 | ------------------------------------ 2021-12-20 21:57:52 | on localhost executing action create-node with content type application/json and payload: { "owner": "admin@test-domain.com", "pubsub#node_type": "collection", "node": "node-dbf14c91-9f72-4922-ba04-f1886247be69", "pubsub#title": "Node dbf14c91-9f72-4922-ba04-f1886247be69" } 2021-12-20 21:57:52 | from localhost for action create-node got result code 200 and payload { "Note": "Operation successful" } 2021-12-20 21:57:53 | [Mutex] waiting for: [received:nodes:dbd2adca-3bbf-4c6c-8d6f-20723e39a1df:localhost] 2021-12-20 21:57:53 | [Mutex] received everything. 2021-12-20 21:57:53 | [Mutex] isItemNotified: received:node:dbd2adca-3bbf-4c6c-8d6f-20723e39a1df:localhost:node-dbf14c91-9f72-4922-ba04-f1886247be69:Node dbf14c91-9f72-4922-ba04-f1886247be69 :: true |
deleteNodes | 1.034s |
2021-12-20 21:57:58 |
2021-12-20 21:57:58 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-12-20 21:57:58 | ------------------------------------ 2021-12-20 21:57:58 | on localhost executing action delete-node with content type application/json and payload: { "node": "node-dbf14c91-9f72-4922-ba04-f1886247be69" } 2021-12-20 21:57:58 | from localhost for action delete-node got result code 200 and payload { "Note": "Operation successful" } 2021-12-20 21:57:59 | [Mutex] waiting for: [received:nodes:04df2b77-f533-48e1-8283-d0b6c9e7cf14:localhost] 2021-12-20 21:57:59 | [Mutex] waiting for: [received:nodes:04df2b77-f533-48e1-8283-d0b6c9e7cf14:localhost] 2021-12-20 21:57:59 | [Mutex] received everything. 2021-12-20 21:57:59 | [Mutex] isItemNotified: received:node:04df2b77-f533-48e1-8283-d0b6c9e7cf14:localhost:node-dbf14c91-9f72-4922-ba04-f1886247be69:Node dbf14c91-9f72-4922-ba04-f1886247be69 :: false |
deleteSubnodes | 1.034s |
2021-12-20 21:57:56 |
2021-12-20 21:57:56 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-12-20 21:57:56 | ------------------------------------ 2021-12-20 21:57:56 | on localhost executing action delete-node with content type application/json and payload: { "node": "node-dce0eb21-9649-4888-b333-9b17ff97f7b5" } 2021-12-20 21:57:57 | from localhost for action delete-node got result code 200 and payload { "Note": "Operation successful" } 2021-12-20 21:57:58 | [Mutex] waiting for: [received:nodes:455c4650-0eb6-4eca-ba9b-1e865bb72198:localhost] 2021-12-20 21:57:58 | [Mutex] received everything. 2021-12-20 21:57:58 | [Mutex] isItemNotified: received:node:455c4650-0eb6-4eca-ba9b-1e865bb72198:localhost:node-dce0eb21-9649-4888-b333-9b17ff97f7b5:Node dce0eb21-9649-4888-b333-9b17ff97f7b5 :: false 2021-12-20 21:57:58 | [Mutex] waiting for: [received:nodes:544fd464-b126-46bc-a551-b5faa43bdf19:localhost] 2021-12-20 21:57:58 | [Mutex] received everything. 2021-12-20 21:57:58 | [Mutex] isItemNotified: received:node:544fd464-b126-46bc-a551-b5faa43bdf19:localhost:node-dce0eb21-9649-4888-b333-9b17ff97f7b5:Node dce0eb21-9649-4888-b333-9b17ff97f7b5 :: false |
publishItemsToNodes | 0.065s |
2021-12-20 21:57:55 |
2021-12-20 21:57:55 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-12-20 21:57:55 | ------------------------------------ 2021-12-20 21:57:55 | on localhost executing action publish-item with content type application/json and payload: { "node": "node-dce0eb21-9649-4888-b333-9b17ff97f7b5", "entry": "<test>item-a4557052-1a20-40af-8ee7-d5c11fc33ec1</test>", "item-id": "item-a4557052-1a20-40af-8ee7-d5c11fc33ec1" } 2021-12-20 21:57:55 | from localhost for action publish-item got result code 200 and payload { "Note": "Operation successful", "item-id": "item-a4557052-1a20-40af-8ee7-d5c11fc33ec1" } 2021-12-20 21:57:55 | [Mutex] waiting for: [published:item:notifieditem-a4557052-1a20-40af-8ee7-d5c11fc33ec1:admin@test-domain.com] 2021-12-20 21:57:55 | [Mutex] received everything. 2021-12-20 21:57:55 | [Mutex] isItemNotified: published:item:notifieditem-a4557052-1a20-40af-8ee7-d5c11fc33ec1:admin@test-domain.com :: true |
retractItemsFromNodes | 0.115s |
2021-12-20 21:57:55 |
2021-12-20 21:57:55 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-12-20 21:57:55 | ------------------------------------ 2021-12-20 21:57:55 | on localhost executing action delete-item with content type application/json and payload: { "node": "node-dce0eb21-9649-4888-b333-9b17ff97f7b5", "item-id": "item-a4557052-1a20-40af-8ee7-d5c11fc33ec1" } 2021-12-20 21:57:55 | from localhost for action delete-item got result code 200 and payload { "Note": "Operation successful", "item-id": "item-a4557052-1a20-40af-8ee7-d5c11fc33ec1" } 2021-12-20 21:57:55 | [Mutex] received everything. 2021-12-20 21:57:55 | [Mutex] isItemNotified: retracted:item:notifieditem-a4557052-1a20-40af-8ee7-d5c11fc33ec1:admin@test-domain.com :: true |
retrieveItemsFromNodes | 0.026s |
2021-12-20 21:57:55 |
2021-12-20 21:57:55 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-12-20 21:57:55 | ------------------------------------ 2021-12-20 21:57:55 | on localhost executing action retrieve-item with content type application/json and payload: { "node": "node-dce0eb21-9649-4888-b333-9b17ff97f7b5", "item-id": "item-a4557052-1a20-40af-8ee7-d5c11fc33ec1" } 2021-12-20 21:57:55 | from localhost for action retrieve-item got result code 200 and payload { "title": "Retrive PubSub node item", "node": "node-dce0eb21-9649-4888-b333-9b17ff97f7b5", "item-id": "item-a4557052-1a20-40af-8ee7-d5c11fc33ec1", "item": [ "<item id=\"item-a4557052-1a20-40af-8ee7-d5c11fc33ec1\"><test>item-a4557052-1a20-40af-8ee7-d5c11fc33ec1</test></item>" ] } 2021-12-20 21:57:55 | [Mutex] notify: [retrieved:item:item-a4557052-1a20-40af-8ee7-d5c11fc33ec1:payload-matches:true:localhost] 2021-12-20 21:57:55 | [Mutex] received everything. 2021-12-20 21:57:55 | [Mutex] isItemNotified: retrieved:item:item-a4557052-1a20-40af-8ee7-d5c11fc33ec1:payload-matches:true:localhost :: true |
retrieveUserSubscriptions | 0.088s |
2021-12-20 21:57:55 |
2021-12-20 21:57:55 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-12-20 21:57:55 | ------------------------------------ 2021-12-20 21:57:55 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload: { "jid": "admin@test-domain.com" } 2021-12-20 21:57:55 | from localhost for action retrieve-user-subscriptions got result code 200 and payload { "nodes": [ "node-dce0eb21-9649-4888-b333-9b17ff97f7b5", "test", "node-dbf14c91-9f72-4922-ba04-f1886247be69" ] } |
retrieveUserSubscriptionsWithRegex | 0.059s |
2021-12-20 21:57:55 |
2021-12-20 21:57:55 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-12-20 21:57:55 | ------------------------------------ 2021-12-20 21:57:55 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload: { "jid": "admin@test-domain.com", "node-pattern": "(?!node-dce0eb21-9649-4888-b333-9b17ff97f7b5)" } 2021-12-20 21:57:55 | from localhost for action retrieve-user-subscriptions got result code 200 and payload { "nodes": [ ] } |
subscribeNodes | 1.011s |
2021-12-20 21:57:54 |
2021-12-20 21:57:54 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-12-20 21:57:54 | ------------------------------------ 2021-12-20 21:57:54 | on localhost executing action subscribe-node with content type application/json and payload: { "node": "node-dce0eb21-9649-4888-b333-9b17ff97f7b5", "jids": [ "admin@test-domain.com" ] } 2021-12-20 21:57:54 | from localhost for action subscribe-node got result code 200 and payload { "Note": "Operation successful" } |
unsubscribeNodes | 1.071s |
2021-12-20 21:57:55 |
2021-12-20 21:57:55 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-12-20 21:57:55 | ------------------------------------ 2021-12-20 21:57:55 | on localhost executing action unsubscribe-node with content type application/json and payload: { "node": "node-dce0eb21-9649-4888-b333-9b17ff97f7b5", "jids": [ "admin@test-domain.com" ] } 2021-12-20 21:57:55 | from localhost for action unsubscribe-node got result code 200 and payload { "Note": "Operation successful" } |