Test duration : 8.716s
Passed Tests | ||
---|---|---|
tigase.tests.pubsub.TestRestApiUsingJSON | ||
configureNodes | 1.113s |
2022-05-16 22:38:46 |
2022-05-16 22:38:46 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-05-16 22:38:46 | ------------------------------------ 2022-05-16 22:38:46 | [Mutex] waiting for: [configured:node:node-11cb357f-6e04-4563-a6ef-0cd2ca3970c3:node-7b8f2cf5-b942-4070-955d-57b34be15a1e] 2022-05-16 22:38:46 | [Mutex] received everything. 2022-05-16 22:38:46 | [Mutex] isItemNotified: configured:node:node-11cb357f-6e04-4563-a6ef-0cd2ca3970c3:node-7b8f2cf5-b942-4070-955d-57b34be15a1e :: true 2022-05-16 22:38:47 | [Mutex] waiting for: [received:nodes:fdda93ff-92fd-4d21-a977-c7aeb6c39172:localhost] 2022-05-16 22:38:47 | [Mutex] received everything. 2022-05-16 22:38:47 | [Mutex] isItemNotified: received:node:fdda93ff-92fd-4d21-a977-c7aeb6c39172:localhost:node-11cb357f-6e04-4563-a6ef-0cd2ca3970c3:Node 11cb357f-6e04-4563-a6ef-0cd2ca3970c3 :: true 2022-05-16 22:38:47 | [Mutex] waiting for: [received:nodes:991a2df1-171b-4902-b75a-da29520837e1:localhost] 2022-05-16 22:38:47 | [Mutex] received everything. 2022-05-16 22:38:47 | [Mutex] isItemNotified: received:node:991a2df1-171b-4902-b75a-da29520837e1:localhost:node-11cb357f-6e04-4563-a6ef-0cd2ca3970c3:Node 11cb357f-6e04-4563-a6ef-0cd2ca3970c3 :: false |
createNodes | 1.587s |
2022-05-16 22:38:43 |
2022-05-16 22:38:43 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-05-16 22:38:43 | ------------------------------------ 2022-05-16 22:38:44 | on localhost executing action create-node with content type application/json and payload: { "owner": "admin@test-domain.com", "pubsub#node_type": "leaf", "node": "node-11cb357f-6e04-4563-a6ef-0cd2ca3970c3", "pubsub#title": "Node 11cb357f-6e04-4563-a6ef-0cd2ca3970c3" } 2022-05-16 22:38:44 | from localhost for action create-node got result code 200 and payload { "Note": "Operation successful" } 2022-05-16 22:38:45 | [Mutex] waiting for: [received:nodes:44711d7d-6559-4a5c-ac96-007260ebc917:localhost] 2022-05-16 22:38:45 | [Mutex] received everything. 2022-05-16 22:38:45 | [Mutex] isItemNotified: received:node:44711d7d-6559-4a5c-ac96-007260ebc917:localhost:node-11cb357f-6e04-4563-a6ef-0cd2ca3970c3:Node 11cb357f-6e04-4563-a6ef-0cd2ca3970c3 :: true |
createSubnodes | 1.032s |
2022-05-16 22:38:45 |
2022-05-16 22:38:45 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-05-16 22:38:45 | ------------------------------------ 2022-05-16 22:38:45 | on localhost executing action create-node with content type application/json and payload: { "owner": "admin@test-domain.com", "pubsub#node_type": "collection", "node": "node-7b8f2cf5-b942-4070-955d-57b34be15a1e", "pubsub#title": "Node 7b8f2cf5-b942-4070-955d-57b34be15a1e" } 2022-05-16 22:38:45 | from localhost for action create-node got result code 200 and payload { "Note": "Operation successful" } 2022-05-16 22:38:46 | [Mutex] waiting for: [received:nodes:abf7796d-b54e-4b18-9770-45da6ce70eb6:localhost] 2022-05-16 22:38:46 | [Mutex] received everything. 2022-05-16 22:38:46 | [Mutex] isItemNotified: received:node:abf7796d-b54e-4b18-9770-45da6ce70eb6:localhost:node-7b8f2cf5-b942-4070-955d-57b34be15a1e:Node 7b8f2cf5-b942-4070-955d-57b34be15a1e :: true |
deleteNodes | 1.029s |
2022-05-16 22:38:50 |
2022-05-16 22:38:50 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-05-16 22:38:50 | ------------------------------------ 2022-05-16 22:38:50 | on localhost executing action delete-node with content type application/json and payload: { "node": "node-7b8f2cf5-b942-4070-955d-57b34be15a1e" } 2022-05-16 22:38:50 | from localhost for action delete-node got result code 200 and payload { "Note": "Operation successful" } 2022-05-16 22:38:51 | [Mutex] waiting for: [received:nodes:abd39c7f-b9ed-456c-8b3e-ac715d699a3d:localhost] 2022-05-16 22:38:51 | [Mutex] waiting for: [received:nodes:abd39c7f-b9ed-456c-8b3e-ac715d699a3d:localhost] 2022-05-16 22:38:51 | [Mutex] waiting for: [received:nodes:abd39c7f-b9ed-456c-8b3e-ac715d699a3d:localhost] 2022-05-16 22:38:51 | [Mutex] received everything. 2022-05-16 22:38:51 | [Mutex] isItemNotified: received:node:abd39c7f-b9ed-456c-8b3e-ac715d699a3d:localhost:node-7b8f2cf5-b942-4070-955d-57b34be15a1e:Node 7b8f2cf5-b942-4070-955d-57b34be15a1e :: false |
deleteSubnodes | 1.030s |
2022-05-16 22:38:49 |
2022-05-16 22:38:49 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-05-16 22:38:49 | ------------------------------------ 2022-05-16 22:38:49 | on localhost executing action delete-node with content type application/json and payload: { "node": "node-11cb357f-6e04-4563-a6ef-0cd2ca3970c3" } 2022-05-16 22:38:49 | from localhost for action delete-node got result code 200 and payload { "Note": "Operation successful" } 2022-05-16 22:38:50 | [Mutex] waiting for: [received:nodes:4ab0236c-1dcc-49a6-a9aa-e44848a6c8ec:localhost] 2022-05-16 22:38:50 | [Mutex] received everything. 2022-05-16 22:38:50 | [Mutex] isItemNotified: received:node:4ab0236c-1dcc-49a6-a9aa-e44848a6c8ec:localhost:node-11cb357f-6e04-4563-a6ef-0cd2ca3970c3:Node 11cb357f-6e04-4563-a6ef-0cd2ca3970c3 :: false 2022-05-16 22:38:50 | [Mutex] waiting for: [received:nodes:998ac735-cbdf-4658-963e-b37124c2446b:localhost] 2022-05-16 22:38:50 | [Mutex] received everything. 2022-05-16 22:38:50 | [Mutex] isItemNotified: received:node:998ac735-cbdf-4658-963e-b37124c2446b:localhost:node-11cb357f-6e04-4563-a6ef-0cd2ca3970c3:Node 11cb357f-6e04-4563-a6ef-0cd2ca3970c3 :: false |
publishItemsToNodes | 0.108s |
2022-05-16 22:38:48 |
2022-05-16 22:38:48 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-05-16 22:38:48 | ------------------------------------ 2022-05-16 22:38:48 | on localhost executing action publish-item with content type application/json and payload: { "node": "node-11cb357f-6e04-4563-a6ef-0cd2ca3970c3", "entry": "<test>item-a4a739ad-9f64-4617-824d-f68ec6f4107a</test>", "item-id": "item-a4a739ad-9f64-4617-824d-f68ec6f4107a" } 2022-05-16 22:38:48 | from localhost for action publish-item got result code 200 and payload { "Note": "Operation successful", "item-id": "item-a4a739ad-9f64-4617-824d-f68ec6f4107a" } 2022-05-16 22:38:48 | [Mutex] waiting for: [published:item:notifieditem-a4a739ad-9f64-4617-824d-f68ec6f4107a:admin@test-domain.com] 2022-05-16 22:38:48 | [Mutex] received everything. 2022-05-16 22:38:48 | [Mutex] isItemNotified: published:item:notifieditem-a4a739ad-9f64-4617-824d-f68ec6f4107a:admin@test-domain.com :: true |
retractItemsFromNodes | 0.060s |
2022-05-16 22:38:48 |
2022-05-16 22:38:48 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-05-16 22:38:48 | ------------------------------------ 2022-05-16 22:38:48 | on localhost executing action delete-item with content type application/json and payload: { "node": "node-11cb357f-6e04-4563-a6ef-0cd2ca3970c3", "item-id": "item-a4a739ad-9f64-4617-824d-f68ec6f4107a" } 2022-05-16 22:38:48 | from localhost for action delete-item got result code 200 and payload { "Note": "Operation successful", "item-id": "item-a4a739ad-9f64-4617-824d-f68ec6f4107a" } 2022-05-16 22:38:48 | [Mutex] waiting for: [retracted:item:notifieditem-a4a739ad-9f64-4617-824d-f68ec6f4107a:admin@test-domain.com] 2022-05-16 22:38:48 | [Mutex] received everything. 2022-05-16 22:38:48 | [Mutex] isItemNotified: retracted:item:notifieditem-a4a739ad-9f64-4617-824d-f68ec6f4107a:admin@test-domain.com :: true |
retrieveItemsFromNodes | 0.018s |
2022-05-16 22:38:48 |
2022-05-16 22:38:48 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-05-16 22:38:48 | ------------------------------------ 2022-05-16 22:38:48 | on localhost executing action retrieve-item with content type application/json and payload: { "node": "node-11cb357f-6e04-4563-a6ef-0cd2ca3970c3", "item-id": "item-a4a739ad-9f64-4617-824d-f68ec6f4107a" } 2022-05-16 22:38:48 | from localhost for action retrieve-item got result code 200 and payload { "title": "Retrive PubSub node item", "node": "node-11cb357f-6e04-4563-a6ef-0cd2ca3970c3", "item-id": "item-a4a739ad-9f64-4617-824d-f68ec6f4107a", "item": [ "<item id=\"item-a4a739ad-9f64-4617-824d-f68ec6f4107a\"><test>item-a4a739ad-9f64-4617-824d-f68ec6f4107a</test></item>" ] } 2022-05-16 22:38:48 | [Mutex] notify: [retrieved:item:item-a4a739ad-9f64-4617-824d-f68ec6f4107a:payload-matches:true:localhost] 2022-05-16 22:38:48 | [Mutex] received everything. 2022-05-16 22:38:48 | [Mutex] isItemNotified: retrieved:item:item-a4a739ad-9f64-4617-824d-f68ec6f4107a:payload-matches:true:localhost :: true |
retrieveUserSubscriptions | 0.050s |
2022-05-16 22:38:48 |
2022-05-16 22:38:48 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-05-16 22:38:48 | ------------------------------------ 2022-05-16 22:38:48 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload: { "jid": "admin@test-domain.com" } 2022-05-16 22:38:48 | from localhost for action retrieve-user-subscriptions got result code 200 and payload { "nodes": [ "node-11cb357f-6e04-4563-a6ef-0cd2ca3970c3", "node-7b8f2cf5-b942-4070-955d-57b34be15a1e", "test" ] } |
retrieveUserSubscriptionsWithRegex | 0.051s |
2022-05-16 22:38:48 |
2022-05-16 22:38:48 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-05-16 22:38:48 | ------------------------------------ 2022-05-16 22:38:48 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload: { "jid": "admin@test-domain.com", "node-pattern": "(?!node-11cb357f-6e04-4563-a6ef-0cd2ca3970c3)" } 2022-05-16 22:38:48 | from localhost for action retrieve-user-subscriptions got result code 200 and payload { "nodes": [ ] } |
subscribeNodes | 1.012s |
2022-05-16 22:38:47 |
2022-05-16 22:38:47 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-05-16 22:38:47 | ------------------------------------ 2022-05-16 22:38:47 | on localhost executing action subscribe-node with content type application/json and payload: { "node": "node-11cb357f-6e04-4563-a6ef-0cd2ca3970c3", "jids": [ "admin@test-domain.com" ] } 2022-05-16 22:38:47 | from localhost for action subscribe-node got result code 200 and payload { "Note": "Operation successful" } |
unsubscribeNodes | 1.062s |
2022-05-16 22:38:48 |
2022-05-16 22:38:48 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-05-16 22:38:48 | ------------------------------------ 2022-05-16 22:38:48 | on localhost executing action unsubscribe-node with content type application/json and payload: { "node": "node-11cb357f-6e04-4563-a6ef-0cd2ca3970c3", "jids": [ "admin@test-domain.com" ] } 2022-05-16 22:38:48 | from localhost for action unsubscribe-node got result code 200 and payload { "Note": "Operation successful" } |