Test duration : 8.530s
Passed Tests | ||
---|---|---|
tigase.tests.pubsub.TestRestApiUsingJSON | ||
configureNodes | 1.106s |
2023-03-27 23:00:02 |
2023-03-27 23:00:02 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2023-03-27 23:00:02 | ------------------------------------ 2023-03-27 23:00:02 | [Mutex] waiting for: [configured:node:node-78dad6ff-beca-4899-bf1a-a700943d2a5d:node-64f9bf8d-be6b-4e72-986c-a7d182a099fd] 2023-03-27 23:00:02 | [Mutex] received everything. 2023-03-27 23:00:02 | [Mutex] isItemNotified: configured:node:node-78dad6ff-beca-4899-bf1a-a700943d2a5d:node-64f9bf8d-be6b-4e72-986c-a7d182a099fd :: true 2023-03-27 23:00:03 | [Mutex] waiting for: [received:nodes:4b0fa032-56d1-40e1-a3b9-a1d53e2ede16:localhost] 2023-03-27 23:00:03 | [Mutex] received everything. 2023-03-27 23:00:03 | [Mutex] isItemNotified: received:node:4b0fa032-56d1-40e1-a3b9-a1d53e2ede16:localhost:node-78dad6ff-beca-4899-bf1a-a700943d2a5d:Node 78dad6ff-beca-4899-bf1a-a700943d2a5d :: true 2023-03-27 23:00:03 | [Mutex] waiting for: [received:nodes:6a0deb31-f6c3-45e3-a715-3ddddb4e3e5f:localhost] 2023-03-27 23:00:03 | [Mutex] received everything. 2023-03-27 23:00:03 | [Mutex] isItemNotified: received:node:6a0deb31-f6c3-45e3-a715-3ddddb4e3e5f:localhost:node-78dad6ff-beca-4899-bf1a-a700943d2a5d:Node 78dad6ff-beca-4899-bf1a-a700943d2a5d :: false |
createNodes | 1.547s |
2023-03-27 22:59:59 |
2023-03-27 22:59:59 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2023-03-27 22:59:59 | ------------------------------------ 2023-03-27 22:59:59 | on localhost executing action create-node with content type application/json and payload: { "owner": "admin@test-domain.com", "pubsub#node_type": "leaf", "node": "node-78dad6ff-beca-4899-bf1a-a700943d2a5d", "pubsub#title": "Node 78dad6ff-beca-4899-bf1a-a700943d2a5d" } 2023-03-27 23:00:00 | from localhost for action create-node got result code 200 and payload { "Note": "Operation successful" } 2023-03-27 23:00:01 | [Mutex] waiting for: [received:nodes:f104c254-d770-4299-9712-f84b0366596a:localhost] 2023-03-27 23:00:01 | [Mutex] waiting for: [received:nodes:f104c254-d770-4299-9712-f84b0366596a:localhost] 2023-03-27 23:00:01 | [Mutex] waiting for: [received:nodes:f104c254-d770-4299-9712-f84b0366596a:localhost] 2023-03-27 23:00:01 | [Mutex] waiting for: [received:nodes:f104c254-d770-4299-9712-f84b0366596a:localhost] 2023-03-27 23:00:01 | [Mutex] received everything. 2023-03-27 23:00:01 | [Mutex] isItemNotified: received:node:f104c254-d770-4299-9712-f84b0366596a:localhost:node-78dad6ff-beca-4899-bf1a-a700943d2a5d:Node 78dad6ff-beca-4899-bf1a-a700943d2a5d :: true |
createSubnodes | 1.021s |
2023-03-27 23:00:01 |
2023-03-27 23:00:01 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2023-03-27 23:00:01 | ------------------------------------ 2023-03-27 23:00:01 | on localhost executing action create-node with content type application/json and payload: { "owner": "admin@test-domain.com", "pubsub#node_type": "collection", "node": "node-64f9bf8d-be6b-4e72-986c-a7d182a099fd", "pubsub#title": "Node 64f9bf8d-be6b-4e72-986c-a7d182a099fd" } 2023-03-27 23:00:01 | from localhost for action create-node got result code 200 and payload { "Note": "Operation successful" } 2023-03-27 23:00:02 | [Mutex] waiting for: [received:nodes:172f084f-5492-4629-bc99-dec6c6a1a87c:localhost] 2023-03-27 23:00:02 | [Mutex] waiting for: [received:nodes:172f084f-5492-4629-bc99-dec6c6a1a87c:localhost] 2023-03-27 23:00:02 | [Mutex] waiting for: [received:nodes:172f084f-5492-4629-bc99-dec6c6a1a87c:localhost] 2023-03-27 23:00:02 | [Mutex] waiting for: [received:nodes:172f084f-5492-4629-bc99-dec6c6a1a87c:localhost] 2023-03-27 23:00:02 | [Mutex] waiting for: [received:nodes:172f084f-5492-4629-bc99-dec6c6a1a87c:localhost] 2023-03-27 23:00:02 | [Mutex] received everything. 2023-03-27 23:00:02 | [Mutex] isItemNotified: received:node:172f084f-5492-4629-bc99-dec6c6a1a87c:localhost:node-64f9bf8d-be6b-4e72-986c-a7d182a099fd:Node 64f9bf8d-be6b-4e72-986c-a7d182a099fd :: true |
deleteNodes | 1.023s |
2023-03-27 23:00:06 |
2023-03-27 23:00:06 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2023-03-27 23:00:06 | ------------------------------------ 2023-03-27 23:00:06 | on localhost executing action delete-node with content type application/json and payload: { "node": "node-64f9bf8d-be6b-4e72-986c-a7d182a099fd" } 2023-03-27 23:00:06 | from localhost for action delete-node got result code 200 and payload { "Note": "Operation successful" } 2023-03-27 23:00:07 | [Mutex] waiting for: [received:nodes:8bfd34c3-476d-4e73-9725-7acf20562ee1:localhost] 2023-03-27 23:00:07 | [Mutex] waiting for: [received:nodes:8bfd34c3-476d-4e73-9725-7acf20562ee1:localhost] 2023-03-27 23:00:07 | [Mutex] waiting for: [received:nodes:8bfd34c3-476d-4e73-9725-7acf20562ee1:localhost] 2023-03-27 23:00:07 | [Mutex] received everything. 2023-03-27 23:00:07 | [Mutex] isItemNotified: received:node:8bfd34c3-476d-4e73-9725-7acf20562ee1:localhost:node-64f9bf8d-be6b-4e72-986c-a7d182a099fd:Node 64f9bf8d-be6b-4e72-986c-a7d182a099fd :: false |
deleteSubnodes | 1.024s |
2023-03-27 23:00:05 |
2023-03-27 23:00:05 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2023-03-27 23:00:05 | ------------------------------------ 2023-03-27 23:00:05 | on localhost executing action delete-node with content type application/json and payload: { "node": "node-78dad6ff-beca-4899-bf1a-a700943d2a5d" } 2023-03-27 23:00:05 | from localhost for action delete-node got result code 200 and payload { "Note": "Operation successful" } 2023-03-27 23:00:06 | [Mutex] waiting for: [received:nodes:b4b59227-ee10-4e62-8b52-2bfc1e11f311:localhost] 2023-03-27 23:00:06 | [Mutex] waiting for: [received:nodes:b4b59227-ee10-4e62-8b52-2bfc1e11f311:localhost] 2023-03-27 23:00:06 | [Mutex] waiting for: [received:nodes:b4b59227-ee10-4e62-8b52-2bfc1e11f311:localhost] 2023-03-27 23:00:06 | [Mutex] waiting for: [received:nodes:b4b59227-ee10-4e62-8b52-2bfc1e11f311:localhost] 2023-03-27 23:00:06 | [Mutex] received everything. 2023-03-27 23:00:06 | [Mutex] isItemNotified: received:node:b4b59227-ee10-4e62-8b52-2bfc1e11f311:localhost:node-78dad6ff-beca-4899-bf1a-a700943d2a5d:Node 78dad6ff-beca-4899-bf1a-a700943d2a5d :: false 2023-03-27 23:00:06 | [Mutex] waiting for: [received:nodes:afb02682-8236-4ebe-8189-8a8a29b21328:localhost] 2023-03-27 23:00:06 | [Mutex] received everything. 2023-03-27 23:00:06 | [Mutex] isItemNotified: received:node:afb02682-8236-4ebe-8189-8a8a29b21328:localhost:node-78dad6ff-beca-4899-bf1a-a700943d2a5d:Node 78dad6ff-beca-4899-bf1a-a700943d2a5d :: false |
publishItemsToNodes | 0.031s |
2023-03-27 23:00:04 |
2023-03-27 23:00:04 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2023-03-27 23:00:04 | ------------------------------------ 2023-03-27 23:00:04 | on localhost executing action publish-item with content type application/json and payload: { "node": "node-78dad6ff-beca-4899-bf1a-a700943d2a5d", "entry": "<test>item-e7a10ed0-515e-41ca-8103-5942608577a1</test>", "item-id": "item-e7a10ed0-515e-41ca-8103-5942608577a1" } 2023-03-27 23:00:04 | from localhost for action publish-item got result code 200 and payload { "Note": "Operation successful", "item-id": "item-e7a10ed0-515e-41ca-8103-5942608577a1" } 2023-03-27 23:00:04 | [Mutex] waiting for: [published:item:notifieditem-e7a10ed0-515e-41ca-8103-5942608577a1:admin@test-domain.com] 2023-03-27 23:00:04 | [Mutex] received everything. 2023-03-27 23:00:04 | [Mutex] isItemNotified: published:item:notifieditem-e7a10ed0-515e-41ca-8103-5942608577a1:admin@test-domain.com :: true |
retractItemsFromNodes | 0.055s |
2023-03-27 23:00:04 |
2023-03-27 23:00:04 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2023-03-27 23:00:04 | ------------------------------------ 2023-03-27 23:00:04 | on localhost executing action delete-item with content type application/json and payload: { "node": "node-78dad6ff-beca-4899-bf1a-a700943d2a5d", "item-id": "item-e7a10ed0-515e-41ca-8103-5942608577a1" } 2023-03-27 23:00:04 | from localhost for action delete-item got result code 200 and payload { "Note": "Operation successful", "item-id": "item-e7a10ed0-515e-41ca-8103-5942608577a1" } 2023-03-27 23:00:04 | [Mutex] received everything. 2023-03-27 23:00:04 | [Mutex] isItemNotified: retracted:item:notifieditem-e7a10ed0-515e-41ca-8103-5942608577a1:admin@test-domain.com :: true |
retrieveItemsFromNodes | 0.069s |
2023-03-27 23:00:04 |
2023-03-27 23:00:04 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2023-03-27 23:00:04 | ------------------------------------ 2023-03-27 23:00:04 | on localhost executing action retrieve-item with content type application/json and payload: { "node": "node-78dad6ff-beca-4899-bf1a-a700943d2a5d", "item-id": "item-e7a10ed0-515e-41ca-8103-5942608577a1" } 2023-03-27 23:00:04 | from localhost for action retrieve-item got result code 200 and payload { "title": "Retrive PubSub node item", "node": "node-78dad6ff-beca-4899-bf1a-a700943d2a5d", "item-id": "item-e7a10ed0-515e-41ca-8103-5942608577a1", "item": [ "<item id=\"item-e7a10ed0-515e-41ca-8103-5942608577a1\"><test>item-e7a10ed0-515e-41ca-8103-5942608577a1</test></item>" ] } 2023-03-27 23:00:04 | [Mutex] notify: [retrieved:item:item-e7a10ed0-515e-41ca-8103-5942608577a1:payload-matches:true:localhost] 2023-03-27 23:00:04 | [Mutex] received everything. 2023-03-27 23:00:04 | [Mutex] isItemNotified: retrieved:item:item-e7a10ed0-515e-41ca-8103-5942608577a1:payload-matches:true:localhost :: true |
retrieveUserSubscriptions | 0.047s |
2023-03-27 23:00:04 |
2023-03-27 23:00:04 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2023-03-27 23:00:04 | ------------------------------------ 2023-03-27 23:00:04 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload: { "jid": "admin@test-domain.com" } 2023-03-27 23:00:04 | from localhost for action retrieve-user-subscriptions got result code 200 and payload { "nodes": [ "node-78dad6ff-beca-4899-bf1a-a700943d2a5d", "test", "node-64f9bf8d-be6b-4e72-986c-a7d182a099fd" ] } |
retrieveUserSubscriptionsWithRegex | 0.048s |
2023-03-27 23:00:04 |
2023-03-27 23:00:04 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2023-03-27 23:00:04 | ------------------------------------ 2023-03-27 23:00:04 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload: { "jid": "admin@test-domain.com", "node-pattern": "(?!node-78dad6ff-beca-4899-bf1a-a700943d2a5d)" } 2023-03-27 23:00:04 | from localhost for action retrieve-user-subscriptions got result code 200 and payload { "nodes": [ ] } |
subscribeNodes | 1.011s |
2023-03-27 23:00:03 |
2023-03-27 23:00:03 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2023-03-27 23:00:03 | ------------------------------------ 2023-03-27 23:00:03 | on localhost executing action subscribe-node with content type application/json and payload: { "node": "node-78dad6ff-beca-4899-bf1a-a700943d2a5d", "jids": [ "admin@test-domain.com" ] } 2023-03-27 23:00:03 | from localhost for action subscribe-node got result code 200 and payload { "Note": "Operation successful" } |
unsubscribeNodes | 1.055s |
2023-03-27 23:00:04 |
2023-03-27 23:00:04 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2023-03-27 23:00:04 | ------------------------------------ 2023-03-27 23:00:04 | on localhost executing action unsubscribe-node with content type application/json and payload: { "node": "node-78dad6ff-beca-4899-bf1a-a700943d2a5d", "jids": [ "admin@test-domain.com" ] } 2023-03-27 23:00:04 | from localhost for action unsubscribe-node got result code 200 and payload { "Note": "Operation successful" } |