Test duration : 8.605s
Passed Tests | ||
---|---|---|
tigase.tests.pubsub.TestRestApiUsingJSON | ||
configureNodes | 1.104s |
2022-08-11 23:05:11 |
2022-08-11 23:05:11 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-08-11 23:05:11 | ------------------------------------ 2022-08-11 23:05:11 | [Mutex] waiting for: [configured:node:node-8c36c37a-5b98-40df-a812-1c7557af1ba1:node-8d1e4ba0-94a6-43e0-b79c-58049cf6cc7d] 2022-08-11 23:05:11 | [Mutex] received everything. 2022-08-11 23:05:11 | [Mutex] isItemNotified: configured:node:node-8c36c37a-5b98-40df-a812-1c7557af1ba1:node-8d1e4ba0-94a6-43e0-b79c-58049cf6cc7d :: true 2022-08-11 23:05:12 | [Mutex] waiting for: [received:nodes:1adb485d-dcc3-4d9b-a4b0-c0985068a55f:localhost] 2022-08-11 23:05:12 | [Mutex] received everything. 2022-08-11 23:05:12 | [Mutex] isItemNotified: received:node:1adb485d-dcc3-4d9b-a4b0-c0985068a55f:localhost:node-8c36c37a-5b98-40df-a812-1c7557af1ba1:Node 8c36c37a-5b98-40df-a812-1c7557af1ba1 :: true 2022-08-11 23:05:12 | [Mutex] waiting for: [received:nodes:64d65d48-9610-483c-8b52-0907fac14618:localhost] 2022-08-11 23:05:12 | [Mutex] received everything. 2022-08-11 23:05:12 | [Mutex] isItemNotified: received:node:64d65d48-9610-483c-8b52-0907fac14618:localhost:node-8c36c37a-5b98-40df-a812-1c7557af1ba1:Node 8c36c37a-5b98-40df-a812-1c7557af1ba1 :: false |
createNodes | 1.506s |
2022-08-11 23:05:08 |
2022-08-11 23:05:08 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-08-11 23:05:08 | ------------------------------------ 2022-08-11 23:05: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-8c36c37a-5b98-40df-a812-1c7557af1ba1", "pubsub#title": "Node 8c36c37a-5b98-40df-a812-1c7557af1ba1" } 2022-08-11 23:05:09 | from localhost for action create-node got result code 200 and payload { "Note": "Operation successful" } 2022-08-11 23:05:10 | [Mutex] waiting for: [received:nodes:6bcbea4c-9771-456f-84af-b368549b8dc9:localhost] 2022-08-11 23:05:10 | [Mutex] waiting for: [received:nodes:6bcbea4c-9771-456f-84af-b368549b8dc9:localhost] 2022-08-11 23:05:10 | [Mutex] received everything. 2022-08-11 23:05:10 | [Mutex] isItemNotified: received:node:6bcbea4c-9771-456f-84af-b368549b8dc9:localhost:node-8c36c37a-5b98-40df-a812-1c7557af1ba1:Node 8c36c37a-5b98-40df-a812-1c7557af1ba1 :: true |
createSubnodes | 1.022s |
2022-08-11 23:05:10 |
2022-08-11 23:05:10 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-08-11 23:05:10 | ------------------------------------ 2022-08-11 23:05: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-8d1e4ba0-94a6-43e0-b79c-58049cf6cc7d", "pubsub#title": "Node 8d1e4ba0-94a6-43e0-b79c-58049cf6cc7d" } 2022-08-11 23:05:10 | from localhost for action create-node got result code 200 and payload { "Note": "Operation successful" } 2022-08-11 23:05:11 | [Mutex] waiting for: [received:nodes:e31aeb3a-f176-4f65-b567-2447703729dd:localhost] 2022-08-11 23:05:11 | [Mutex] waiting for: [received:nodes:e31aeb3a-f176-4f65-b567-2447703729dd:localhost] 2022-08-11 23:05:11 | [Mutex] waiting for: [received:nodes:e31aeb3a-f176-4f65-b567-2447703729dd:localhost] 2022-08-11 23:05:11 | [Mutex] received everything. 2022-08-11 23:05:11 | [Mutex] isItemNotified: received:node:e31aeb3a-f176-4f65-b567-2447703729dd:localhost:node-8d1e4ba0-94a6-43e0-b79c-58049cf6cc7d:Node 8d1e4ba0-94a6-43e0-b79c-58049cf6cc7d :: true |
deleteNodes | 1.021s |
2022-08-11 23:05:15 |
2022-08-11 23:05:15 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-08-11 23:05:15 | ------------------------------------ 2022-08-11 23:05:15 | on localhost executing action delete-node with content type application/json and payload: { "node": "node-8d1e4ba0-94a6-43e0-b79c-58049cf6cc7d" } 2022-08-11 23:05:15 | from localhost for action delete-node got result code 200 and payload { "Note": "Operation successful" } 2022-08-11 23:05:16 | [Mutex] waiting for: [received:nodes:86a6285f-3f69-4456-b816-c8fee05ba489:localhost] 2022-08-11 23:05:16 | [Mutex] waiting for: [received:nodes:86a6285f-3f69-4456-b816-c8fee05ba489:localhost] 2022-08-11 23:05:16 | [Mutex] received everything. 2022-08-11 23:05:16 | [Mutex] isItemNotified: received:node:86a6285f-3f69-4456-b816-c8fee05ba489:localhost:node-8d1e4ba0-94a6-43e0-b79c-58049cf6cc7d:Node 8d1e4ba0-94a6-43e0-b79c-58049cf6cc7d :: false |
deleteSubnodes | 1.067s |
2022-08-11 23:05:14 |
2022-08-11 23:05:14 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-08-11 23:05:14 | ------------------------------------ 2022-08-11 23:05:14 | on localhost executing action delete-node with content type application/json and payload: { "node": "node-8c36c37a-5b98-40df-a812-1c7557af1ba1" } 2022-08-11 23:05:14 | from localhost for action delete-node got result code 200 and payload { "Note": "Operation successful" } 2022-08-11 23:05:15 | [Mutex] waiting for: [received:nodes:36255e2f-5b55-4633-80b1-98d86f8757d3:localhost] 2022-08-11 23:05:15 | [Mutex] waiting for: [received:nodes:36255e2f-5b55-4633-80b1-98d86f8757d3:localhost] 2022-08-11 23:05:15 | [Mutex] received everything. 2022-08-11 23:05:15 | [Mutex] isItemNotified: received:node:36255e2f-5b55-4633-80b1-98d86f8757d3:localhost:node-8c36c37a-5b98-40df-a812-1c7557af1ba1:Node 8c36c37a-5b98-40df-a812-1c7557af1ba1 :: false 2022-08-11 23:05:15 | [Mutex] waiting for: [received:nodes:2e184b2b-32d8-4179-a2c1-1cb9209a4ed3:localhost] 2022-08-11 23:05:15 | [Mutex] received everything. 2022-08-11 23:05:15 | [Mutex] isItemNotified: received:node:2e184b2b-32d8-4179-a2c1-1cb9209a4ed3:localhost:node-8c36c37a-5b98-40df-a812-1c7557af1ba1:Node 8c36c37a-5b98-40df-a812-1c7557af1ba1 :: false |
publishItemsToNodes | 0.052s |
2022-08-11 23:05:13 |
2022-08-11 23:05:13 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-08-11 23:05:13 | ------------------------------------ 2022-08-11 23:05:13 | on localhost executing action publish-item with content type application/json and payload: { "node": "node-8c36c37a-5b98-40df-a812-1c7557af1ba1", "entry": "<test>item-03c27d72-cc1c-46b2-a2a6-d5603cf5bf25</test>", "item-id": "item-03c27d72-cc1c-46b2-a2a6-d5603cf5bf25" } 2022-08-11 23:05:13 | from localhost for action publish-item got result code 200 and payload { "Note": "Operation successful", "item-id": "item-03c27d72-cc1c-46b2-a2a6-d5603cf5bf25" } 2022-08-11 23:05:13 | [Mutex] waiting for: [published:item:notifieditem-03c27d72-cc1c-46b2-a2a6-d5603cf5bf25:admin@test-domain.com] 2022-08-11 23:05:13 | [Mutex] received everything. 2022-08-11 23:05:13 | [Mutex] isItemNotified: published:item:notifieditem-03c27d72-cc1c-46b2-a2a6-d5603cf5bf25:admin@test-domain.com :: true |
retractItemsFromNodes | 0.052s |
2022-08-11 23:05:13 |
2022-08-11 23:05:13 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-08-11 23:05:13 | ------------------------------------ 2022-08-11 23:05:13 | on localhost executing action delete-item with content type application/json and payload: { "node": "node-8c36c37a-5b98-40df-a812-1c7557af1ba1", "item-id": "item-03c27d72-cc1c-46b2-a2a6-d5603cf5bf25" } 2022-08-11 23:05:13 | from localhost for action delete-item got result code 200 and payload { "Note": "Operation successful", "item-id": "item-03c27d72-cc1c-46b2-a2a6-d5603cf5bf25" } 2022-08-11 23:05:13 | [Mutex] received everything. 2022-08-11 23:05:13 | [Mutex] isItemNotified: retracted:item:notifieditem-03c27d72-cc1c-46b2-a2a6-d5603cf5bf25:admin@test-domain.com :: true |
retrieveItemsFromNodes | 0.044s |
2022-08-11 23:05:13 |
2022-08-11 23:05:13 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-08-11 23:05:13 | ------------------------------------ 2022-08-11 23:05:13 | on localhost executing action retrieve-item with content type application/json and payload: { "node": "node-8c36c37a-5b98-40df-a812-1c7557af1ba1", "item-id": "item-03c27d72-cc1c-46b2-a2a6-d5603cf5bf25" } 2022-08-11 23:05:13 | from localhost for action retrieve-item got result code 200 and payload { "title": "Retrive PubSub node item", "node": "node-8c36c37a-5b98-40df-a812-1c7557af1ba1", "item-id": "item-03c27d72-cc1c-46b2-a2a6-d5603cf5bf25", "item": [ "<item id=\"item-03c27d72-cc1c-46b2-a2a6-d5603cf5bf25\"><test>item-03c27d72-cc1c-46b2-a2a6-d5603cf5bf25</test></item>" ] } 2022-08-11 23:05:13 | [Mutex] notify: [retrieved:item:item-03c27d72-cc1c-46b2-a2a6-d5603cf5bf25:payload-matches:true:localhost] 2022-08-11 23:05:13 | [Mutex] received everything. 2022-08-11 23:05:13 | [Mutex] isItemNotified: retrieved:item:item-03c27d72-cc1c-46b2-a2a6-d5603cf5bf25:payload-matches:true:localhost :: true |
retrieveUserSubscriptions | 0.049s |
2022-08-11 23:05:13 |
2022-08-11 23:05:13 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-08-11 23:05:13 | ------------------------------------ 2022-08-11 23:05:13 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload: { "jid": "admin@test-domain.com" } 2022-08-11 23:05:13 | from localhost for action retrieve-user-subscriptions got result code 200 and payload { "nodes": [ "test", "node-8d1e4ba0-94a6-43e0-b79c-58049cf6cc7d", "node-8c36c37a-5b98-40df-a812-1c7557af1ba1" ] } |
retrieveUserSubscriptionsWithRegex | 0.047s |
2022-08-11 23:05:13 |
2022-08-11 23:05:13 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-08-11 23:05:13 | ------------------------------------ 2022-08-11 23:05:13 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload: { "jid": "admin@test-domain.com", "node-pattern": "(?!node-8c36c37a-5b98-40df-a812-1c7557af1ba1)" } 2022-08-11 23:05:13 | from localhost for action retrieve-user-subscriptions got result code 200 and payload { "nodes": [ ] } |
subscribeNodes | 1.010s |
2022-08-11 23:05:12 |
2022-08-11 23:05:12 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-08-11 23:05:12 | ------------------------------------ 2022-08-11 23:05:12 | on localhost executing action subscribe-node with content type application/json and payload: { "node": "node-8c36c37a-5b98-40df-a812-1c7557af1ba1", "jids": [ "admin@test-domain.com" ] } 2022-08-11 23:05:12 | from localhost for action subscribe-node got result code 200 and payload { "Note": "Operation successful" } |
unsubscribeNodes | 1.069s |
2022-08-11 23:05:13 |
2022-08-11 23:05:13 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-08-11 23:05:13 | ------------------------------------ 2022-08-11 23:05:13 | on localhost executing action unsubscribe-node with content type application/json and payload: { "node": "node-8c36c37a-5b98-40df-a812-1c7557af1ba1", "jids": [ "admin@test-domain.com" ] } 2022-08-11 23:05:13 | from localhost for action unsubscribe-node got result code 200 and payload { "Note": "Operation successful" } |