Test duration : 8.974s
Passed Tests | ||
---|---|---|
tigase.tests.pubsub.TestRestApiUsingJSON | ||
configureNodes | 1.115s |
2021-04-29 22:38:11 |
2021-04-29 22:38:11 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-04-29 22:38:11 | ------------------------------------ 2021-04-29 22:38:11 | [Mutex] waiting for: [configured:node:node-4747d2f3-d41a-42e2-a82e-c9e61ad91ed0:node-6d3736d0-6d48-40c7-9ff1-2c0f5b3ed712] 2021-04-29 22:38:11 | [Mutex] received everything. 2021-04-29 22:38:11 | [Mutex] isItemNotified: configured:node:node-4747d2f3-d41a-42e2-a82e-c9e61ad91ed0:node-6d3736d0-6d48-40c7-9ff1-2c0f5b3ed712 :: true 2021-04-29 22:38:12 | [Mutex] waiting for: [received:nodes:dac7ab3d-e08d-403f-a57d-56dc8551ddb9:localhost] 2021-04-29 22:38:12 | [Mutex] received everything. 2021-04-29 22:38:12 | [Mutex] isItemNotified: received:node:dac7ab3d-e08d-403f-a57d-56dc8551ddb9:localhost:node-4747d2f3-d41a-42e2-a82e-c9e61ad91ed0:Node 4747d2f3-d41a-42e2-a82e-c9e61ad91ed0 :: true 2021-04-29 22:38:12 | [Mutex] waiting for: [received:nodes:3d43ee1e-6e27-4aa6-8170-caff313efd69:localhost] 2021-04-29 22:38:12 | [Mutex] received everything. 2021-04-29 22:38:12 | [Mutex] isItemNotified: received:node:3d43ee1e-6e27-4aa6-8170-caff313efd69:localhost:node-4747d2f3-d41a-42e2-a82e-c9e61ad91ed0:Node 4747d2f3-d41a-42e2-a82e-c9e61ad91ed0 :: false |
createNodes | 1.655s |
2021-04-29 22:38:08 |
2021-04-29 22:38:08 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-04-29 22:38:08 | ------------------------------------ 2021-04-29 22:38:09 | on localhost executing action create-node with content type application/json and payload: { "owner": "admin@test-domain.com", "pubsub#node_type": "leaf", "node": "node-4747d2f3-d41a-42e2-a82e-c9e61ad91ed0", "pubsub#title": "Node 4747d2f3-d41a-42e2-a82e-c9e61ad91ed0" } 2021-04-29 22:38:09 | from localhost for action create-node got result code 200 and payload { "Note": "Operation successful" } 2021-04-29 22:38:10 | [Mutex] waiting for: [received:nodes:938ce78e-b530-4dcc-9bee-9a832afe60f7:localhost] 2021-04-29 22:38:10 | [Mutex] received everything. 2021-04-29 22:38:10 | [Mutex] isItemNotified: received:node:938ce78e-b530-4dcc-9bee-9a832afe60f7:localhost:node-4747d2f3-d41a-42e2-a82e-c9e61ad91ed0:Node 4747d2f3-d41a-42e2-a82e-c9e61ad91ed0 :: true |
createSubnodes | 1.035s |
2021-04-29 22:38:10 |
2021-04-29 22:38:10 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-04-29 22:38:10 | ------------------------------------ 2021-04-29 22:38:10 | on localhost executing action create-node with content type application/json and payload: { "owner": "admin@test-domain.com", "pubsub#node_type": "collection", "node": "node-6d3736d0-6d48-40c7-9ff1-2c0f5b3ed712", "pubsub#title": "Node 6d3736d0-6d48-40c7-9ff1-2c0f5b3ed712" } 2021-04-29 22:38:10 | from localhost for action create-node got result code 200 and payload { "Note": "Operation successful" } 2021-04-29 22:38:11 | [Mutex] waiting for: [received:nodes:e1c414fd-e5e9-4d55-af77-7b9ddae8ff29:localhost] 2021-04-29 22:38:11 | [Mutex] waiting for: [received:nodes:e1c414fd-e5e9-4d55-af77-7b9ddae8ff29:localhost] 2021-04-29 22:38:11 | [Mutex] received everything. 2021-04-29 22:38:11 | [Mutex] isItemNotified: received:node:e1c414fd-e5e9-4d55-af77-7b9ddae8ff29:localhost:node-6d3736d0-6d48-40c7-9ff1-2c0f5b3ed712:Node 6d3736d0-6d48-40c7-9ff1-2c0f5b3ed712 :: true |
deleteNodes | 1.027s |
2021-04-29 22:38:15 |
2021-04-29 22:38:15 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-04-29 22:38:15 | ------------------------------------ 2021-04-29 22:38:15 | on localhost executing action delete-node with content type application/json and payload: { "node": "node-6d3736d0-6d48-40c7-9ff1-2c0f5b3ed712" } 2021-04-29 22:38:15 | from localhost for action delete-node got result code 200 and payload { "Note": "Operation successful" } 2021-04-29 22:38:16 | [Mutex] waiting for: [received:nodes:8ffdb0a5-3daa-4468-ae56-a5f840871643:localhost] 2021-04-29 22:38:16 | [Mutex] received everything. 2021-04-29 22:38:16 | [Mutex] isItemNotified: received:node:8ffdb0a5-3daa-4468-ae56-a5f840871643:localhost:node-6d3736d0-6d48-40c7-9ff1-2c0f5b3ed712:Node 6d3736d0-6d48-40c7-9ff1-2c0f5b3ed712 :: false |
deleteSubnodes | 1.028s |
2021-04-29 22:38:14 |
2021-04-29 22:38:14 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-04-29 22:38:14 | ------------------------------------ 2021-04-29 22:38:14 | on localhost executing action delete-node with content type application/json and payload: { "node": "node-4747d2f3-d41a-42e2-a82e-c9e61ad91ed0" } 2021-04-29 22:38:14 | from localhost for action delete-node got result code 200 and payload { "Note": "Operation successful" } 2021-04-29 22:38:15 | [Mutex] waiting for: [received:nodes:db8c8341-ba51-46b7-a237-2f4fffffb541:localhost] 2021-04-29 22:38:15 | [Mutex] received everything. 2021-04-29 22:38:15 | [Mutex] isItemNotified: received:node:db8c8341-ba51-46b7-a237-2f4fffffb541:localhost:node-4747d2f3-d41a-42e2-a82e-c9e61ad91ed0:Node 4747d2f3-d41a-42e2-a82e-c9e61ad91ed0 :: false 2021-04-29 22:38:15 | [Mutex] waiting for: [received:nodes:721dfebe-e924-4fac-a8a4-351421fa34d2:localhost] 2021-04-29 22:38:15 | [Mutex] received everything. 2021-04-29 22:38:15 | [Mutex] isItemNotified: received:node:721dfebe-e924-4fac-a8a4-351421fa34d2:localhost:node-4747d2f3-d41a-42e2-a82e-c9e61ad91ed0:Node 4747d2f3-d41a-42e2-a82e-c9e61ad91ed0 :: false |
publishItemsToNodes | 0.061s |
2021-04-29 22:38:13 |
2021-04-29 22:38:13 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-04-29 22:38:13 | ------------------------------------ 2021-04-29 22:38:13 | on localhost executing action publish-item with content type application/json and payload: { "node": "node-4747d2f3-d41a-42e2-a82e-c9e61ad91ed0", "entry": "<test>item-324b7a78-6a72-4ebd-b5b5-ce8181dfe406</test>", "item-id": "item-324b7a78-6a72-4ebd-b5b5-ce8181dfe406" } 2021-04-29 22:38:13 | from localhost for action publish-item got result code 200 and payload { "Note": "Operation successful", "item-id": "item-324b7a78-6a72-4ebd-b5b5-ce8181dfe406" } 2021-04-29 22:38:13 | [Mutex] waiting for: [published:item:notifieditem-324b7a78-6a72-4ebd-b5b5-ce8181dfe406:admin@test-domain.com] 2021-04-29 22:38:13 | [Mutex] received everything. 2021-04-29 22:38:13 | [Mutex] isItemNotified: published:item:notifieditem-324b7a78-6a72-4ebd-b5b5-ce8181dfe406:admin@test-domain.com :: true |
retractItemsFromNodes | 0.125s |
2021-04-29 22:38:13 |
2021-04-29 22:38:13 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-04-29 22:38:13 | ------------------------------------ 2021-04-29 22:38:13 | on localhost executing action delete-item with content type application/json and payload: { "node": "node-4747d2f3-d41a-42e2-a82e-c9e61ad91ed0", "item-id": "item-324b7a78-6a72-4ebd-b5b5-ce8181dfe406" } 2021-04-29 22:38:13 | from localhost for action delete-item got result code 200 and payload { "Note": "Operation successful", "item-id": "item-324b7a78-6a72-4ebd-b5b5-ce8181dfe406" } 2021-04-29 22:38:13 | [Mutex] waiting for: [retracted:item:notifieditem-324b7a78-6a72-4ebd-b5b5-ce8181dfe406:admin@test-domain.com] 2021-04-29 22:38:13 | [Mutex] received everything. 2021-04-29 22:38:13 | [Mutex] isItemNotified: retracted:item:notifieditem-324b7a78-6a72-4ebd-b5b5-ce8181dfe406:admin@test-domain.com :: true |
retrieveItemsFromNodes | 0.035s |
2021-04-29 22:38:13 |
2021-04-29 22:38:13 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-04-29 22:38:13 | ------------------------------------ 2021-04-29 22:38:13 | on localhost executing action retrieve-item with content type application/json and payload: { "node": "node-4747d2f3-d41a-42e2-a82e-c9e61ad91ed0", "item-id": "item-324b7a78-6a72-4ebd-b5b5-ce8181dfe406" } 2021-04-29 22:38:13 | from localhost for action retrieve-item got result code 200 and payload { "title": "Retrive PubSub node item", "node": "node-4747d2f3-d41a-42e2-a82e-c9e61ad91ed0", "item-id": "item-324b7a78-6a72-4ebd-b5b5-ce8181dfe406", "item": [ "<item id=\"item-324b7a78-6a72-4ebd-b5b5-ce8181dfe406\"><test>item-324b7a78-6a72-4ebd-b5b5-ce8181dfe406</test></item>" ] } 2021-04-29 22:38:13 | [Mutex] notify: [retrieved:item:item-324b7a78-6a72-4ebd-b5b5-ce8181dfe406:payload-matches:true:localhost] 2021-04-29 22:38:13 | [Mutex] received everything. 2021-04-29 22:38:13 | [Mutex] isItemNotified: retrieved:item:item-324b7a78-6a72-4ebd-b5b5-ce8181dfe406:payload-matches:true:localhost :: true |
retrieveUserSubscriptions | 0.069s |
2021-04-29 22:38:13 |
2021-04-29 22:38:13 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-04-29 22:38:13 | ------------------------------------ 2021-04-29 22:38:13 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload: { "jid": "admin@test-domain.com" } 2021-04-29 22:38:13 | from localhost for action retrieve-user-subscriptions got result code 200 and payload { "nodes": [ "node-6d3736d0-6d48-40c7-9ff1-2c0f5b3ed712", "test", "node-4747d2f3-d41a-42e2-a82e-c9e61ad91ed0" ] } |
retrieveUserSubscriptionsWithRegex | 0.051s |
2021-04-29 22:38:13 |
2021-04-29 22:38:13 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-04-29 22:38:13 | ------------------------------------ 2021-04-29 22:38:13 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload: { "jid": "admin@test-domain.com", "node-pattern": "(?!node-4747d2f3-d41a-42e2-a82e-c9e61ad91ed0)" } 2021-04-29 22:38:13 | from localhost for action retrieve-user-subscriptions got result code 200 and payload { "nodes": [ ] } |
subscribeNodes | 1.012s |
2021-04-29 22:38:12 |
2021-04-29 22:38:12 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-04-29 22:38:12 | ------------------------------------ 2021-04-29 22:38:12 | on localhost executing action subscribe-node with content type application/json and payload: { "node": "node-4747d2f3-d41a-42e2-a82e-c9e61ad91ed0", "jids": [ "admin@test-domain.com" ] } 2021-04-29 22:38:12 | from localhost for action subscribe-node got result code 200 and payload { "Note": "Operation successful" } |
unsubscribeNodes | 1.077s |
2021-04-29 22:38:13 |
2021-04-29 22:38:13 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-04-29 22:38:13 | ------------------------------------ 2021-04-29 22:38:13 | on localhost executing action unsubscribe-node with content type application/json and payload: { "node": "node-4747d2f3-d41a-42e2-a82e-c9e61ad91ed0", "jids": [ "admin@test-domain.com" ] } 2021-04-29 22:38:13 | from localhost for action unsubscribe-node got result code 200 and payload { "Note": "Operation successful" } |