Test duration : 8.684s
Passed Tests | ||
---|---|---|
tigase.tests.pubsub.TestRestApiUsingJSON | ||
configureNodes | 1.142s |
2022-08-24 23:00:59 |
2022-08-24 23:00:59 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-08-24 23:00:59 | ------------------------------------ 2022-08-24 23:00:59 | [Mutex] waiting for: [configured:node:node-417055a0-7c86-4fa0-9113-5394ef8ddee1:node-4971abe4-d832-4583-93ef-f79750029754] 2022-08-24 23:00:59 | [Mutex] received everything. 2022-08-24 23:00:59 | [Mutex] isItemNotified: configured:node:node-417055a0-7c86-4fa0-9113-5394ef8ddee1:node-4971abe4-d832-4583-93ef-f79750029754 :: true 2022-08-24 23:01:00 | [Mutex] waiting for: [received:nodes:31559dcd-b3df-4fb6-809e-deb1bc61d3a8:localhost] 2022-08-24 23:01:00 | [Mutex] received everything. 2022-08-24 23:01:00 | [Mutex] isItemNotified: received:node:31559dcd-b3df-4fb6-809e-deb1bc61d3a8:localhost:node-417055a0-7c86-4fa0-9113-5394ef8ddee1:Node 417055a0-7c86-4fa0-9113-5394ef8ddee1 :: true 2022-08-24 23:01:00 | [Mutex] waiting for: [received:nodes:a0a138fe-c013-4021-954e-83882c2353e0:localhost] 2022-08-24 23:01:00 | [Mutex] received everything. 2022-08-24 23:01:00 | [Mutex] isItemNotified: received:node:a0a138fe-c013-4021-954e-83882c2353e0:localhost:node-417055a0-7c86-4fa0-9113-5394ef8ddee1:Node 417055a0-7c86-4fa0-9113-5394ef8ddee1 :: false |
createNodes | 1.574s |
2022-08-24 23:00:57 |
2022-08-24 23:00:57 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-08-24 23:00:57 | ------------------------------------ 2022-08-24 23:00: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-417055a0-7c86-4fa0-9113-5394ef8ddee1", "pubsub#title": "Node 417055a0-7c86-4fa0-9113-5394ef8ddee1" } 2022-08-24 23:00:57 | from localhost for action create-node got result code 200 and payload { "Note": "Operation successful" } 2022-08-24 23:00:58 | [Mutex] waiting for: [received:nodes:93bf304b-0004-4c80-aa59-aad94cfb473c:localhost] 2022-08-24 23:00:58 | [Mutex] received everything. 2022-08-24 23:00:58 | [Mutex] isItemNotified: received:node:93bf304b-0004-4c80-aa59-aad94cfb473c:localhost:node-417055a0-7c86-4fa0-9113-5394ef8ddee1:Node 417055a0-7c86-4fa0-9113-5394ef8ddee1 :: true |
createSubnodes | 1.025s |
2022-08-24 23:00:58 |
2022-08-24 23:00:58 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-08-24 23:00:58 | ------------------------------------ 2022-08-24 23:00: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-4971abe4-d832-4583-93ef-f79750029754", "pubsub#title": "Node 4971abe4-d832-4583-93ef-f79750029754" } 2022-08-24 23:00:58 | from localhost for action create-node got result code 200 and payload { "Note": "Operation successful" } 2022-08-24 23:00:59 | [Mutex] waiting for: [received:nodes:8b4ecd41-1574-4a6f-9716-ae5b300ef818:localhost] 2022-08-24 23:00:59 | [Mutex] received everything. 2022-08-24 23:00:59 | [Mutex] isItemNotified: received:node:8b4ecd41-1574-4a6f-9716-ae5b300ef818:localhost:node-4971abe4-d832-4583-93ef-f79750029754:Node 4971abe4-d832-4583-93ef-f79750029754 :: true |
deleteNodes | 1.021s |
2022-08-24 23:01:04 |
2022-08-24 23:01:04 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-08-24 23:01:04 | ------------------------------------ 2022-08-24 23:01:04 | on localhost executing action delete-node with content type application/json and payload: { "node": "node-4971abe4-d832-4583-93ef-f79750029754" } 2022-08-24 23:01:04 | from localhost for action delete-node got result code 200 and payload { "Note": "Operation successful" } 2022-08-24 23:01:05 | [Mutex] waiting for: [received:nodes:9d24b3c1-ce0e-4193-9dfe-e69ccaca0fe0:localhost] 2022-08-24 23:01:05 | [Mutex] received everything. 2022-08-24 23:01:05 | [Mutex] isItemNotified: received:node:9d24b3c1-ce0e-4193-9dfe-e69ccaca0fe0:localhost:node-4971abe4-d832-4583-93ef-f79750029754:Node 4971abe4-d832-4583-93ef-f79750029754 :: false |
deleteSubnodes | 1.035s |
2022-08-24 23:01:03 |
2022-08-24 23:01:03 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-08-24 23:01:03 | ------------------------------------ 2022-08-24 23:01:03 | on localhost executing action delete-node with content type application/json and payload: { "node": "node-417055a0-7c86-4fa0-9113-5394ef8ddee1" } 2022-08-24 23:01:03 | from localhost for action delete-node got result code 200 and payload { "Note": "Operation successful" } 2022-08-24 23:01:04 | [Mutex] waiting for: [received:nodes:b935b967-8dd7-498b-a3ec-e18e049e4743:localhost] 2022-08-24 23:01:04 | [Mutex] received everything. 2022-08-24 23:01:04 | [Mutex] isItemNotified: received:node:b935b967-8dd7-498b-a3ec-e18e049e4743:localhost:node-417055a0-7c86-4fa0-9113-5394ef8ddee1:Node 417055a0-7c86-4fa0-9113-5394ef8ddee1 :: false 2022-08-24 23:01:04 | [Mutex] waiting for: [received:nodes:a3f8a75b-e325-479f-88ae-aa452248aa0d:localhost] 2022-08-24 23:01:04 | [Mutex] received everything. 2022-08-24 23:01:04 | [Mutex] isItemNotified: received:node:a3f8a75b-e325-479f-88ae-aa452248aa0d:localhost:node-417055a0-7c86-4fa0-9113-5394ef8ddee1:Node 417055a0-7c86-4fa0-9113-5394ef8ddee1 :: false |
publishItemsToNodes | 0.065s |
2022-08-24 23:01:01 |
2022-08-24 23:01:01 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-08-24 23:01:01 | ------------------------------------ 2022-08-24 23:01:01 | on localhost executing action publish-item with content type application/json and payload: { "node": "node-417055a0-7c86-4fa0-9113-5394ef8ddee1", "entry": "<test>item-c5602b9a-1439-46ca-be98-2ae3fddfd13a</test>", "item-id": "item-c5602b9a-1439-46ca-be98-2ae3fddfd13a" } 2022-08-24 23:01:01 | from localhost for action publish-item got result code 200 and payload { "Note": "Operation successful", "item-id": "item-c5602b9a-1439-46ca-be98-2ae3fddfd13a" } 2022-08-24 23:01:01 | [Mutex] waiting for: [published:item:notifieditem-c5602b9a-1439-46ca-be98-2ae3fddfd13a:admin@test-domain.com] 2022-08-24 23:01:01 | [Mutex] received everything. 2022-08-24 23:01:01 | [Mutex] isItemNotified: published:item:notifieditem-c5602b9a-1439-46ca-be98-2ae3fddfd13a:admin@test-domain.com :: true |
retractItemsFromNodes | 0.055s |
2022-08-24 23:01:02 |
2022-08-24 23:01:02 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-08-24 23:01:02 | ------------------------------------ 2022-08-24 23:01:02 | on localhost executing action delete-item with content type application/json and payload: { "node": "node-417055a0-7c86-4fa0-9113-5394ef8ddee1", "item-id": "item-c5602b9a-1439-46ca-be98-2ae3fddfd13a" } 2022-08-24 23:01:02 | from localhost for action delete-item got result code 200 and payload { "Note": "Operation successful", "item-id": "item-c5602b9a-1439-46ca-be98-2ae3fddfd13a" } 2022-08-24 23:01:02 | [Mutex] received everything. 2022-08-24 23:01:02 | [Mutex] isItemNotified: retracted:item:notifieditem-c5602b9a-1439-46ca-be98-2ae3fddfd13a:admin@test-domain.com :: true |
retrieveItemsFromNodes | 0.075s |
2022-08-24 23:01:01 |
2022-08-24 23:01:01 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-08-24 23:01:01 | ------------------------------------ 2022-08-24 23:01:01 | on localhost executing action retrieve-item with content type application/json and payload: { "node": "node-417055a0-7c86-4fa0-9113-5394ef8ddee1", "item-id": "item-c5602b9a-1439-46ca-be98-2ae3fddfd13a" } 2022-08-24 23:01:01 | from localhost for action retrieve-item got result code 200 and payload { "title": "Retrive PubSub node item", "node": "node-417055a0-7c86-4fa0-9113-5394ef8ddee1", "item-id": "item-c5602b9a-1439-46ca-be98-2ae3fddfd13a", "item": [ "<item id=\"item-c5602b9a-1439-46ca-be98-2ae3fddfd13a\"><test>item-c5602b9a-1439-46ca-be98-2ae3fddfd13a</test></item>" ] } 2022-08-24 23:01:01 | [Mutex] notify: [retrieved:item:item-c5602b9a-1439-46ca-be98-2ae3fddfd13a:payload-matches:true:localhost] 2022-08-24 23:01:01 | [Mutex] received everything. 2022-08-24 23:01:01 | [Mutex] isItemNotified: retrieved:item:item-c5602b9a-1439-46ca-be98-2ae3fddfd13a:payload-matches:true:localhost :: true |
retrieveUserSubscriptions | 0.047s |
2022-08-24 23:01:01 |
2022-08-24 23:01:01 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-08-24 23:01:01 | ------------------------------------ 2022-08-24 23:01:01 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload: { "jid": "admin@test-domain.com" } 2022-08-24 23:01:01 | from localhost for action retrieve-user-subscriptions got result code 200 and payload { "nodes": [ "test", "node-4971abe4-d832-4583-93ef-f79750029754", "node-417055a0-7c86-4fa0-9113-5394ef8ddee1" ] } |
retrieveUserSubscriptionsWithRegex | 0.047s |
2022-08-24 23:01:01 |
2022-08-24 23:01:01 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-08-24 23:01:01 | ------------------------------------ 2022-08-24 23:01:01 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload: { "jid": "admin@test-domain.com", "node-pattern": "(?!node-417055a0-7c86-4fa0-9113-5394ef8ddee1)" } 2022-08-24 23:01:02 | from localhost for action retrieve-user-subscriptions got result code 200 and payload { "nodes": [ ] } |
subscribeNodes | 1.010s |
2022-08-24 23:01:00 |
2022-08-24 23:01:00 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-08-24 23:01:00 | ------------------------------------ 2022-08-24 23:01:00 | on localhost executing action subscribe-node with content type application/json and payload: { "node": "node-417055a0-7c86-4fa0-9113-5394ef8ddee1", "jids": [ "admin@test-domain.com" ] } 2022-08-24 23:01:00 | from localhost for action subscribe-node got result code 200 and payload { "Note": "Operation successful" } |
unsubscribeNodes | 1.071s |
2022-08-24 23:01:02 |
2022-08-24 23:01:02 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-08-24 23:01:02 | ------------------------------------ 2022-08-24 23:01:02 | on localhost executing action unsubscribe-node with content type application/json and payload: { "node": "node-417055a0-7c86-4fa0-9113-5394ef8ddee1", "jids": [ "admin@test-domain.com" ] } 2022-08-24 23:01:02 | from localhost for action unsubscribe-node got result code 200 and payload { "Note": "Operation successful" } |