Test duration : 8.601s
Passed Tests | ||
---|---|---|
tigase.tests.pubsub.TestRestApiUsingJSON | ||
configureNodes | 1.107s |
2023-03-14 22:29:57 |
2023-03-14 22:29:57 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2023-03-14 22:29:57 | ------------------------------------ 2023-03-14 22:29:57 | [Mutex] waiting for: [configured:node:node-20f33039-bc6b-4dea-b81f-b57b290f7dd9:node-309e56d8-18a5-4613-afa9-1839269b136e] 2023-03-14 22:29:57 | [Mutex] received everything. 2023-03-14 22:29:57 | [Mutex] isItemNotified: configured:node:node-20f33039-bc6b-4dea-b81f-b57b290f7dd9:node-309e56d8-18a5-4613-afa9-1839269b136e :: true 2023-03-14 22:29:58 | [Mutex] waiting for: [received:nodes:6f35ac8b-c6a3-49a9-80d0-17f0eb24b3d7:localhost] 2023-03-14 22:29:58 | [Mutex] received everything. 2023-03-14 22:29:58 | [Mutex] isItemNotified: received:node:6f35ac8b-c6a3-49a9-80d0-17f0eb24b3d7:localhost:node-20f33039-bc6b-4dea-b81f-b57b290f7dd9:Node 20f33039-bc6b-4dea-b81f-b57b290f7dd9 :: true 2023-03-14 22:29:58 | [Mutex] waiting for: [received:nodes:937dbc3a-f09b-4c75-a0df-631255da172d:localhost] 2023-03-14 22:29:58 | [Mutex] waiting for: [received:nodes:937dbc3a-f09b-4c75-a0df-631255da172d:localhost] 2023-03-14 22:29:58 | [Mutex] waiting for: [received:nodes:937dbc3a-f09b-4c75-a0df-631255da172d:localhost] 2023-03-14 22:29:58 | [Mutex] waiting for: [received:nodes:937dbc3a-f09b-4c75-a0df-631255da172d:localhost] 2023-03-14 22:29:58 | [Mutex] received everything. 2023-03-14 22:29:58 | [Mutex] isItemNotified: received:node:937dbc3a-f09b-4c75-a0df-631255da172d:localhost:node-20f33039-bc6b-4dea-b81f-b57b290f7dd9:Node 20f33039-bc6b-4dea-b81f-b57b290f7dd9 :: false |
createNodes | 1.577s |
2023-03-14 22:29:54 |
2023-03-14 22:29:54 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2023-03-14 22:29:54 | ------------------------------------ 2023-03-14 22:29:55 | on localhost executing action create-node with content type application/json and payload: { "owner": "admin@test-domain.com", "pubsub#node_type": "leaf", "node": "node-20f33039-bc6b-4dea-b81f-b57b290f7dd9", "pubsub#title": "Node 20f33039-bc6b-4dea-b81f-b57b290f7dd9" } 2023-03-14 22:29:55 | from localhost for action create-node got result code 200 and payload { "Note": "Operation successful" } 2023-03-14 22:29:56 | [Mutex] waiting for: [received:nodes:7daba10e-5968-42e0-866a-22d56e7cecd0:localhost] 2023-03-14 22:29:56 | [Mutex] waiting for: [received:nodes:7daba10e-5968-42e0-866a-22d56e7cecd0:localhost] 2023-03-14 22:29:56 | [Mutex] received everything. 2023-03-14 22:29:56 | [Mutex] isItemNotified: received:node:7daba10e-5968-42e0-866a-22d56e7cecd0:localhost:node-20f33039-bc6b-4dea-b81f-b57b290f7dd9:Node 20f33039-bc6b-4dea-b81f-b57b290f7dd9 :: true |
createSubnodes | 1.031s |
2023-03-14 22:29:56 |
2023-03-14 22:29:56 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2023-03-14 22:29:56 | ------------------------------------ 2023-03-14 22:29:56 | on localhost executing action create-node with content type application/json and payload: { "owner": "admin@test-domain.com", "pubsub#node_type": "collection", "node": "node-309e56d8-18a5-4613-afa9-1839269b136e", "pubsub#title": "Node 309e56d8-18a5-4613-afa9-1839269b136e" } 2023-03-14 22:29:56 | from localhost for action create-node got result code 200 and payload { "Note": "Operation successful" } 2023-03-14 22:29:57 | [Mutex] waiting for: [received:nodes:14b412f4-74b2-48ca-8572-db5a3fdb185b:localhost] 2023-03-14 22:29:57 | [Mutex] received everything. 2023-03-14 22:29:57 | [Mutex] isItemNotified: received:node:14b412f4-74b2-48ca-8572-db5a3fdb185b:localhost:node-309e56d8-18a5-4613-afa9-1839269b136e:Node 309e56d8-18a5-4613-afa9-1839269b136e :: true |
deleteNodes | 1.023s |
2023-03-14 22:30:01 |
2023-03-14 22:30:01 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2023-03-14 22:30:01 | ------------------------------------ 2023-03-14 22:30:01 | on localhost executing action delete-node with content type application/json and payload: { "node": "node-309e56d8-18a5-4613-afa9-1839269b136e" } 2023-03-14 22:30:01 | from localhost for action delete-node got result code 200 and payload { "Note": "Operation successful" } 2023-03-14 22:30:02 | [Mutex] waiting for: [received:nodes:230c353a-4f1e-49fb-a03e-adc5a1e98abc:localhost] 2023-03-14 22:30:02 | [Mutex] waiting for: [received:nodes:230c353a-4f1e-49fb-a03e-adc5a1e98abc:localhost] 2023-03-14 22:30:02 | [Mutex] waiting for: [received:nodes:230c353a-4f1e-49fb-a03e-adc5a1e98abc:localhost] 2023-03-14 22:30:02 | [Mutex] received everything. 2023-03-14 22:30:02 | [Mutex] isItemNotified: received:node:230c353a-4f1e-49fb-a03e-adc5a1e98abc:localhost:node-309e56d8-18a5-4613-afa9-1839269b136e:Node 309e56d8-18a5-4613-afa9-1839269b136e :: false |
deleteSubnodes | 1.030s |
2023-03-14 22:30:00 |
2023-03-14 22:30:00 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2023-03-14 22:30:00 | ------------------------------------ 2023-03-14 22:30:00 | on localhost executing action delete-node with content type application/json and payload: { "node": "node-20f33039-bc6b-4dea-b81f-b57b290f7dd9" } 2023-03-14 22:30:00 | from localhost for action delete-node got result code 200 and payload { "Note": "Operation successful" } 2023-03-14 22:30:01 | [Mutex] waiting for: [received:nodes:5662e9c3-ce83-4734-b3d3-806c0944a6c8:localhost] 2023-03-14 22:30:01 | [Mutex] waiting for: [received:nodes:5662e9c3-ce83-4734-b3d3-806c0944a6c8:localhost] 2023-03-14 22:30:01 | [Mutex] waiting for: [received:nodes:5662e9c3-ce83-4734-b3d3-806c0944a6c8:localhost] 2023-03-14 22:30:01 | [Mutex] waiting for: [received:nodes:5662e9c3-ce83-4734-b3d3-806c0944a6c8:localhost] 2023-03-14 22:30:01 | [Mutex] received everything. 2023-03-14 22:30:01 | [Mutex] isItemNotified: received:node:5662e9c3-ce83-4734-b3d3-806c0944a6c8:localhost:node-20f33039-bc6b-4dea-b81f-b57b290f7dd9:Node 20f33039-bc6b-4dea-b81f-b57b290f7dd9 :: false 2023-03-14 22:30:01 | [Mutex] waiting for: [received:nodes:c6f2f9ef-7f47-47df-8c1a-ac8a22913cd6:localhost] 2023-03-14 22:30:01 | [Mutex] received everything. 2023-03-14 22:30:01 | [Mutex] isItemNotified: received:node:c6f2f9ef-7f47-47df-8c1a-ac8a22913cd6:localhost:node-20f33039-bc6b-4dea-b81f-b57b290f7dd9:Node 20f33039-bc6b-4dea-b81f-b57b290f7dd9 :: false |
publishItemsToNodes | 0.035s |
2023-03-14 22:29:59 |
2023-03-14 22:29:59 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2023-03-14 22:29:59 | ------------------------------------ 2023-03-14 22:29:59 | on localhost executing action publish-item with content type application/json and payload: { "node": "node-20f33039-bc6b-4dea-b81f-b57b290f7dd9", "entry": "<test>item-b0afb7e0-9741-4f15-ae53-b843e155e579</test>", "item-id": "item-b0afb7e0-9741-4f15-ae53-b843e155e579" } 2023-03-14 22:29:59 | from localhost for action publish-item got result code 200 and payload { "Note": "Operation successful", "item-id": "item-b0afb7e0-9741-4f15-ae53-b843e155e579" } 2023-03-14 22:29:59 | [Mutex] waiting for: [published:item:notifieditem-b0afb7e0-9741-4f15-ae53-b843e155e579:admin@test-domain.com] 2023-03-14 22:29:59 | [Mutex] received everything. 2023-03-14 22:29:59 | [Mutex] isItemNotified: published:item:notifieditem-b0afb7e0-9741-4f15-ae53-b843e155e579:admin@test-domain.com :: true |
retractItemsFromNodes | 0.090s |
2023-03-14 22:29:59 |
2023-03-14 22:29:59 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2023-03-14 22:29:59 | ------------------------------------ 2023-03-14 22:29:59 | on localhost executing action delete-item with content type application/json and payload: { "node": "node-20f33039-bc6b-4dea-b81f-b57b290f7dd9", "item-id": "item-b0afb7e0-9741-4f15-ae53-b843e155e579" } 2023-03-14 22:29:59 | from localhost for action delete-item got result code 200 and payload { "Note": "Operation successful", "item-id": "item-b0afb7e0-9741-4f15-ae53-b843e155e579" } 2023-03-14 22:29:59 | [Mutex] waiting for: [retracted:item:notifieditem-b0afb7e0-9741-4f15-ae53-b843e155e579:admin@test-domain.com] 2023-03-14 22:29:59 | [Mutex] received everything. 2023-03-14 22:29:59 | [Mutex] isItemNotified: retracted:item:notifieditem-b0afb7e0-9741-4f15-ae53-b843e155e579:admin@test-domain.com :: true |
retrieveItemsFromNodes | 0.056s |
2023-03-14 22:29:59 |
2023-03-14 22:29:59 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2023-03-14 22:29:59 | ------------------------------------ 2023-03-14 22:29:59 | on localhost executing action retrieve-item with content type application/json and payload: { "node": "node-20f33039-bc6b-4dea-b81f-b57b290f7dd9", "item-id": "item-b0afb7e0-9741-4f15-ae53-b843e155e579" } 2023-03-14 22:29:59 | from localhost for action retrieve-item got result code 200 and payload { "title": "Retrive PubSub node item", "node": "node-20f33039-bc6b-4dea-b81f-b57b290f7dd9", "item-id": "item-b0afb7e0-9741-4f15-ae53-b843e155e579", "item": [ "<item id=\"item-b0afb7e0-9741-4f15-ae53-b843e155e579\"><test>item-b0afb7e0-9741-4f15-ae53-b843e155e579</test></item>" ] } 2023-03-14 22:29:59 | [Mutex] notify: [retrieved:item:item-b0afb7e0-9741-4f15-ae53-b843e155e579:payload-matches:true:localhost] 2023-03-14 22:29:59 | [Mutex] received everything. 2023-03-14 22:29:59 | [Mutex] isItemNotified: retrieved:item:item-b0afb7e0-9741-4f15-ae53-b843e155e579:payload-matches:true:localhost :: true |
retrieveUserSubscriptions | 0.046s |
2023-03-14 22:29:59 |
2023-03-14 22:29:59 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2023-03-14 22:29:59 | ------------------------------------ 2023-03-14 22:29:59 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload: { "jid": "admin@test-domain.com" } 2023-03-14 22:29:59 | from localhost for action retrieve-user-subscriptions got result code 200 and payload { "nodes": [ "node-20f33039-bc6b-4dea-b81f-b57b290f7dd9", "node-309e56d8-18a5-4613-afa9-1839269b136e", "test" ] } |
retrieveUserSubscriptionsWithRegex | 0.050s |
2023-03-14 22:29:59 |
2023-03-14 22:29:59 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2023-03-14 22:29:59 | ------------------------------------ 2023-03-14 22:29:59 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload: { "jid": "admin@test-domain.com", "node-pattern": "(?!node-20f33039-bc6b-4dea-b81f-b57b290f7dd9)" } 2023-03-14 22:29:59 | from localhost for action retrieve-user-subscriptions got result code 200 and payload { "nodes": [ ] } |
subscribeNodes | 1.012s |
2023-03-14 22:29:58 |
2023-03-14 22:29:58 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2023-03-14 22:29:58 | ------------------------------------ 2023-03-14 22:29:58 | on localhost executing action subscribe-node with content type application/json and payload: { "node": "node-20f33039-bc6b-4dea-b81f-b57b290f7dd9", "jids": [ "admin@test-domain.com" ] } 2023-03-14 22:29:58 | from localhost for action subscribe-node got result code 200 and payload { "Note": "Operation successful" } |
unsubscribeNodes | 1.049s |
2023-03-14 22:29:59 |
2023-03-14 22:29:59 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2023-03-14 22:29:59 | ------------------------------------ 2023-03-14 22:29:59 | on localhost executing action unsubscribe-node with content type application/json and payload: { "node": "node-20f33039-bc6b-4dea-b81f-b57b290f7dd9", "jids": [ "admin@test-domain.com" ] } 2023-03-14 22:29:59 | from localhost for action unsubscribe-node got result code 200 and payload { "Note": "Operation successful" } |