Test duration : 8.753s
Passed Tests | ||
---|---|---|
tigase.tests.pubsub.TestRestApiUsingJSON | ||
configureNodes | 1.103s |
2023-07-06 22:31:00 |
2023-07-06 22:31:00 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2023-07-06 22:31:00 | ------------------------------------ 2023-07-06 22:31:00 | [Mutex] waiting for: [configured:node:node-aa79e3c0-a318-45d0-9453-c71145763478:node-d8c76225-85ed-40d5-8076-cbe671f0f8f0] 2023-07-06 22:31:00 | [Mutex] received everything. 2023-07-06 22:31:00 | [Mutex] isItemNotified: configured:node:node-aa79e3c0-a318-45d0-9453-c71145763478:node-d8c76225-85ed-40d5-8076-cbe671f0f8f0 :: true 2023-07-06 22:31:01 | [Mutex] waiting for: [received:nodes:1239e091-fe5d-4638-af3e-925603c67a51:localhost] 2023-07-06 22:31:01 | [Mutex] received everything. 2023-07-06 22:31:01 | [Mutex] isItemNotified: received:node:1239e091-fe5d-4638-af3e-925603c67a51:localhost:node-aa79e3c0-a318-45d0-9453-c71145763478:Node aa79e3c0-a318-45d0-9453-c71145763478 :: true 2023-07-06 22:31:01 | [Mutex] waiting for: [received:nodes:f63b0928-b6dc-456c-a15c-3ed67d242c18:localhost] 2023-07-06 22:31:01 | [Mutex] waiting for: [received:nodes:f63b0928-b6dc-456c-a15c-3ed67d242c18:localhost] 2023-07-06 22:31:01 | [Mutex] waiting for: [received:nodes:f63b0928-b6dc-456c-a15c-3ed67d242c18:localhost] 2023-07-06 22:31:01 | [Mutex] received everything. 2023-07-06 22:31:01 | [Mutex] isItemNotified: received:node:f63b0928-b6dc-456c-a15c-3ed67d242c18:localhost:node-aa79e3c0-a318-45d0-9453-c71145763478:Node aa79e3c0-a318-45d0-9453-c71145763478 :: false |
createNodes | 1.705s |
2023-07-06 22:30:57 |
2023-07-06 22:30:57 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2023-07-06 22:30:57 | ------------------------------------ 2023-07-06 22:30: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-aa79e3c0-a318-45d0-9453-c71145763478", "pubsub#title": "Node aa79e3c0-a318-45d0-9453-c71145763478" } 2023-07-06 22:30:57 | from localhost for action create-node got result code 200 and payload { "Note": "Operation successful" } 2023-07-06 22:30:58 | [Mutex] waiting for: [received:nodes:23f7ad92-1b76-4b3d-bdc0-9edaacf4afd0:localhost] 2023-07-06 22:30:58 | [Mutex] waiting for: [received:nodes:23f7ad92-1b76-4b3d-bdc0-9edaacf4afd0:localhost] 2023-07-06 22:30:58 | [Mutex] waiting for: [received:nodes:23f7ad92-1b76-4b3d-bdc0-9edaacf4afd0:localhost] 2023-07-06 22:30:58 | [Mutex] waiting for: [received:nodes:23f7ad92-1b76-4b3d-bdc0-9edaacf4afd0:localhost] 2023-07-06 22:30:58 | [Mutex] received everything. 2023-07-06 22:30:58 | [Mutex] isItemNotified: received:node:23f7ad92-1b76-4b3d-bdc0-9edaacf4afd0:localhost:node-aa79e3c0-a318-45d0-9453-c71145763478:Node aa79e3c0-a318-45d0-9453-c71145763478 :: true |
createSubnodes | 1.023s |
2023-07-06 22:30:58 |
2023-07-06 22:30:58 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2023-07-06 22:30:58 | ------------------------------------ 2023-07-06 22:30: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-d8c76225-85ed-40d5-8076-cbe671f0f8f0", "pubsub#title": "Node d8c76225-85ed-40d5-8076-cbe671f0f8f0" } 2023-07-06 22:30:58 | from localhost for action create-node got result code 200 and payload { "Note": "Operation successful" } 2023-07-06 22:30:59 | [Mutex] waiting for: [received:nodes:a61bb000-fcb4-4feb-9980-c7b77183240d:localhost] 2023-07-06 22:31:00 | [Mutex] received everything. 2023-07-06 22:31:00 | [Mutex] isItemNotified: received:node:a61bb000-fcb4-4feb-9980-c7b77183240d:localhost:node-d8c76225-85ed-40d5-8076-cbe671f0f8f0:Node d8c76225-85ed-40d5-8076-cbe671f0f8f0 :: true |
deleteNodes | 1.017s |
2023-07-06 22:31:04 |
2023-07-06 22:31:04 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2023-07-06 22:31:04 | ------------------------------------ 2023-07-06 22:31:04 | on localhost executing action delete-node with content type application/json and payload: { "node": "node-d8c76225-85ed-40d5-8076-cbe671f0f8f0" } 2023-07-06 22:31:04 | from localhost for action delete-node got result code 200 and payload { "Note": "Operation successful" } 2023-07-06 22:31:05 | [Mutex] waiting for: [received:nodes:e8bec024-2964-474d-8cce-b4f9ee843972:localhost] 2023-07-06 22:31:05 | [Mutex] waiting for: [received:nodes:e8bec024-2964-474d-8cce-b4f9ee843972:localhost] 2023-07-06 22:31:05 | [Mutex] waiting for: [received:nodes:e8bec024-2964-474d-8cce-b4f9ee843972:localhost] 2023-07-06 22:31:05 | [Mutex] received everything. 2023-07-06 22:31:05 | [Mutex] isItemNotified: received:node:e8bec024-2964-474d-8cce-b4f9ee843972:localhost:node-d8c76225-85ed-40d5-8076-cbe671f0f8f0:Node d8c76225-85ed-40d5-8076-cbe671f0f8f0 :: false |
deleteSubnodes | 1.028s |
2023-07-06 22:31:03 |
2023-07-06 22:31:03 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2023-07-06 22:31:03 | ------------------------------------ 2023-07-06 22:31:03 | on localhost executing action delete-node with content type application/json and payload: { "node": "node-aa79e3c0-a318-45d0-9453-c71145763478" } 2023-07-06 22:31:03 | from localhost for action delete-node got result code 200 and payload { "Note": "Operation successful" } 2023-07-06 22:31:04 | [Mutex] waiting for: [received:nodes:abdf1f53-d34b-4af5-b494-164c8360dd75:localhost] 2023-07-06 22:31:04 | [Mutex] received everything. 2023-07-06 22:31:04 | [Mutex] isItemNotified: received:node:abdf1f53-d34b-4af5-b494-164c8360dd75:localhost:node-aa79e3c0-a318-45d0-9453-c71145763478:Node aa79e3c0-a318-45d0-9453-c71145763478 :: false 2023-07-06 22:31:04 | [Mutex] waiting for: [received:nodes:59960505-6c7d-4cce-bfdd-5e368f34645a:localhost] 2023-07-06 22:31:04 | [Mutex] received everything. 2023-07-06 22:31:04 | [Mutex] isItemNotified: received:node:59960505-6c7d-4cce-bfdd-5e368f34645a:localhost:node-aa79e3c0-a318-45d0-9453-c71145763478:Node aa79e3c0-a318-45d0-9453-c71145763478 :: false |
publishItemsToNodes | 0.123s |
2023-07-06 22:31:02 |
2023-07-06 22:31:02 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2023-07-06 22:31:02 | ------------------------------------ 2023-07-06 22:31:02 | on localhost executing action publish-item with content type application/json and payload: { "node": "node-aa79e3c0-a318-45d0-9453-c71145763478", "entry": "<test>item-ca106f09-d2a7-423a-8be3-e70c47de7cdf</test>", "item-id": "item-ca106f09-d2a7-423a-8be3-e70c47de7cdf" } 2023-07-06 22:31:02 | from localhost for action publish-item got result code 200 and payload { "Note": "Operation successful", "item-id": "item-ca106f09-d2a7-423a-8be3-e70c47de7cdf" } 2023-07-06 22:31:02 | [Mutex] waiting for: [published:item:notifieditem-ca106f09-d2a7-423a-8be3-e70c47de7cdf:admin@test-domain.com] 2023-07-06 22:31:02 | [Mutex] received everything. 2023-07-06 22:31:02 | [Mutex] isItemNotified: published:item:notifieditem-ca106f09-d2a7-423a-8be3-e70c47de7cdf:admin@test-domain.com :: true |
retractItemsFromNodes | 0.076s |
2023-07-06 22:31:02 |
2023-07-06 22:31:02 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2023-07-06 22:31:02 | ------------------------------------ 2023-07-06 22:31:02 | on localhost executing action delete-item with content type application/json and payload: { "node": "node-aa79e3c0-a318-45d0-9453-c71145763478", "item-id": "item-ca106f09-d2a7-423a-8be3-e70c47de7cdf" } 2023-07-06 22:31:02 | from localhost for action delete-item got result code 200 and payload { "Note": "Operation successful", "item-id": "item-ca106f09-d2a7-423a-8be3-e70c47de7cdf" } 2023-07-06 22:31:02 | [Mutex] waiting for: [retracted:item:notifieditem-ca106f09-d2a7-423a-8be3-e70c47de7cdf:admin@test-domain.com] 2023-07-06 22:31:02 | [Mutex] received everything. 2023-07-06 22:31:02 | [Mutex] isItemNotified: retracted:item:notifieditem-ca106f09-d2a7-423a-8be3-e70c47de7cdf:admin@test-domain.com :: true |
retrieveItemsFromNodes | 0.029s |
2023-07-06 22:31:02 |
2023-07-06 22:31:02 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2023-07-06 22:31:02 | ------------------------------------ 2023-07-06 22:31:02 | on localhost executing action retrieve-item with content type application/json and payload: { "node": "node-aa79e3c0-a318-45d0-9453-c71145763478", "item-id": "item-ca106f09-d2a7-423a-8be3-e70c47de7cdf" } 2023-07-06 22:31:02 | from localhost for action retrieve-item got result code 200 and payload { "title": "Retrive PubSub node item", "node": "node-aa79e3c0-a318-45d0-9453-c71145763478", "item-id": "item-ca106f09-d2a7-423a-8be3-e70c47de7cdf", "item": [ "<item id=\"item-ca106f09-d2a7-423a-8be3-e70c47de7cdf\"><test>item-ca106f09-d2a7-423a-8be3-e70c47de7cdf</test></item>" ] } 2023-07-06 22:31:02 | [Mutex] notify: [retrieved:item:item-ca106f09-d2a7-423a-8be3-e70c47de7cdf:payload-matches:true:localhost] 2023-07-06 22:31:02 | [Mutex] received everything. 2023-07-06 22:31:02 | [Mutex] isItemNotified: retrieved:item:item-ca106f09-d2a7-423a-8be3-e70c47de7cdf:payload-matches:true:localhost :: true |
retrieveUserSubscriptions | 0.064s |
2023-07-06 22:31:02 |
2023-07-06 22:31:02 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2023-07-06 22:31:02 | ------------------------------------ 2023-07-06 22:31:02 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload: { "jid": "admin@test-domain.com" } 2023-07-06 22:31:02 | from localhost for action retrieve-user-subscriptions got result code 200 and payload { "nodes": [ "test", "node-aa79e3c0-a318-45d0-9453-c71145763478", "node-d8c76225-85ed-40d5-8076-cbe671f0f8f0" ] } |
retrieveUserSubscriptionsWithRegex | 0.051s |
2023-07-06 22:31:02 |
2023-07-06 22:31:02 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2023-07-06 22:31:02 | ------------------------------------ 2023-07-06 22:31:02 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload: { "jid": "admin@test-domain.com", "node-pattern": "(?!node-aa79e3c0-a318-45d0-9453-c71145763478)" } 2023-07-06 22:31:02 | from localhost for action retrieve-user-subscriptions got result code 200 and payload { "nodes": [ ] } |
subscribeNodes | 1.011s |
2023-07-06 22:31:01 |
2023-07-06 22:31:01 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2023-07-06 22:31:01 | ------------------------------------ 2023-07-06 22:31:01 | on localhost executing action subscribe-node with content type application/json and payload: { "node": "node-aa79e3c0-a318-45d0-9453-c71145763478", "jids": [ "admin@test-domain.com" ] } 2023-07-06 22:31:01 | from localhost for action subscribe-node got result code 200 and payload { "Note": "Operation successful" } |
unsubscribeNodes | 1.057s |
2023-07-06 22:31:02 |
2023-07-06 22:31:02 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2023-07-06 22:31:02 | ------------------------------------ 2023-07-06 22:31:02 | on localhost executing action unsubscribe-node with content type application/json and payload: { "node": "node-aa79e3c0-a318-45d0-9453-c71145763478", "jids": [ "admin@test-domain.com" ] } 2023-07-06 22:31:02 | from localhost for action unsubscribe-node got result code 200 and payload { "Note": "Operation successful" } |