Test duration : 8.670s
Passed Tests | ||
---|---|---|
tigase.tests.pubsub.TestRestApiUsingJSON | ||
configureNodes | 1.106s |
2022-07-20 23:02:09 |
2022-07-20 23:02:09 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-07-20 23:02:09 | ------------------------------------ 2022-07-20 23:02:09 | [Mutex] waiting for: [configured:node:node-ddd7253a-5f87-4917-b5a8-d36a3063f491:node-a6784065-6874-4022-92bd-fb5857f5d41b] 2022-07-20 23:02:09 | [Mutex] received everything. 2022-07-20 23:02:09 | [Mutex] isItemNotified: configured:node:node-ddd7253a-5f87-4917-b5a8-d36a3063f491:node-a6784065-6874-4022-92bd-fb5857f5d41b :: true 2022-07-20 23:02:10 | [Mutex] waiting for: [received:nodes:9fa93606-b498-4d52-bc3e-97e52f1e53be:localhost] 2022-07-20 23:02:10 | [Mutex] received everything. 2022-07-20 23:02:10 | [Mutex] isItemNotified: received:node:9fa93606-b498-4d52-bc3e-97e52f1e53be:localhost:node-ddd7253a-5f87-4917-b5a8-d36a3063f491:Node ddd7253a-5f87-4917-b5a8-d36a3063f491 :: true 2022-07-20 23:02:10 | [Mutex] waiting for: [received:nodes:217890f7-7ab0-44e7-b2a9-cbdf7601c3a3:localhost] 2022-07-20 23:02:10 | [Mutex] received everything. 2022-07-20 23:02:10 | [Mutex] isItemNotified: received:node:217890f7-7ab0-44e7-b2a9-cbdf7601c3a3:localhost:node-ddd7253a-5f87-4917-b5a8-d36a3063f491:Node ddd7253a-5f87-4917-b5a8-d36a3063f491 :: false |
createNodes | 1.533s |
2022-07-20 23:02:07 |
2022-07-20 23:02:07 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-07-20 23:02:07 | ------------------------------------ 2022-07-20 23:02:07 | on localhost executing action create-node with content type application/json and payload: { "owner": "admin@test-domain.com", "pubsub#node_type": "leaf", "node": "node-ddd7253a-5f87-4917-b5a8-d36a3063f491", "pubsub#title": "Node ddd7253a-5f87-4917-b5a8-d36a3063f491" } 2022-07-20 23:02:07 | from localhost for action create-node got result code 200 and payload { "Note": "Operation successful" } 2022-07-20 23:02:08 | [Mutex] waiting for: [received:nodes:dc374f73-a510-4ed9-a999-4671ae5573e0:localhost] 2022-07-20 23:02:08 | [Mutex] waiting for: [received:nodes:dc374f73-a510-4ed9-a999-4671ae5573e0:localhost] 2022-07-20 23:02:08 | [Mutex] received everything. 2022-07-20 23:02:08 | [Mutex] isItemNotified: received:node:dc374f73-a510-4ed9-a999-4671ae5573e0:localhost:node-ddd7253a-5f87-4917-b5a8-d36a3063f491:Node ddd7253a-5f87-4917-b5a8-d36a3063f491 :: true |
createSubnodes | 1.024s |
2022-07-20 23:02:08 |
2022-07-20 23:02:08 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-07-20 23:02:08 | ------------------------------------ 2022-07-20 23:02:08 | on localhost executing action create-node with content type application/json and payload: { "owner": "admin@test-domain.com", "pubsub#node_type": "collection", "node": "node-a6784065-6874-4022-92bd-fb5857f5d41b", "pubsub#title": "Node a6784065-6874-4022-92bd-fb5857f5d41b" } 2022-07-20 23:02:08 | from localhost for action create-node got result code 200 and payload { "Note": "Operation successful" } 2022-07-20 23:02:09 | [Mutex] waiting for: [received:nodes:9030d2d0-6234-432b-953c-7cf2ccdf072d:localhost] 2022-07-20 23:02:09 | [Mutex] received everything. 2022-07-20 23:02:09 | [Mutex] isItemNotified: received:node:9030d2d0-6234-432b-953c-7cf2ccdf072d:localhost:node-a6784065-6874-4022-92bd-fb5857f5d41b:Node a6784065-6874-4022-92bd-fb5857f5d41b :: true |
deleteNodes | 1.019s |
2022-07-20 23:02:14 |
2022-07-20 23:02:14 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-07-20 23:02:14 | ------------------------------------ 2022-07-20 23:02:14 | on localhost executing action delete-node with content type application/json and payload: { "node": "node-a6784065-6874-4022-92bd-fb5857f5d41b" } 2022-07-20 23:02:14 | from localhost for action delete-node got result code 200 and payload { "Note": "Operation successful" } 2022-07-20 23:02:15 | [Mutex] waiting for: [received:nodes:7b965bf1-eb74-4e04-b4b7-d419c472d69a:localhost] 2022-07-20 23:02:15 | [Mutex] waiting for: [received:nodes:7b965bf1-eb74-4e04-b4b7-d419c472d69a:localhost] 2022-07-20 23:02:15 | [Mutex] waiting for: [received:nodes:7b965bf1-eb74-4e04-b4b7-d419c472d69a:localhost] 2022-07-20 23:02:15 | [Mutex] received everything. 2022-07-20 23:02:15 | [Mutex] isItemNotified: received:node:7b965bf1-eb74-4e04-b4b7-d419c472d69a:localhost:node-a6784065-6874-4022-92bd-fb5857f5d41b:Node a6784065-6874-4022-92bd-fb5857f5d41b :: false |
deleteSubnodes | 1.063s |
2022-07-20 23:02:13 |
2022-07-20 23:02:13 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-07-20 23:02:13 | ------------------------------------ 2022-07-20 23:02:13 | on localhost executing action delete-node with content type application/json and payload: { "node": "node-ddd7253a-5f87-4917-b5a8-d36a3063f491" } 2022-07-20 23:02:13 | from localhost for action delete-node got result code 200 and payload { "Note": "Operation successful" } 2022-07-20 23:02:14 | [Mutex] waiting for: [received:nodes:8bae3cf8-b716-4929-ba2a-d61bf2bcc78b:localhost] 2022-07-20 23:02:14 | [Mutex] received everything. 2022-07-20 23:02:14 | [Mutex] isItemNotified: received:node:8bae3cf8-b716-4929-ba2a-d61bf2bcc78b:localhost:node-ddd7253a-5f87-4917-b5a8-d36a3063f491:Node ddd7253a-5f87-4917-b5a8-d36a3063f491 :: false 2022-07-20 23:02:14 | [Mutex] waiting for: [received:nodes:e28e784d-d4c2-430a-950b-5ad06bcbe14a:localhost] 2022-07-20 23:02:14 | [Mutex] received everything. 2022-07-20 23:02:14 | [Mutex] isItemNotified: received:node:e28e784d-d4c2-430a-950b-5ad06bcbe14a:localhost:node-ddd7253a-5f87-4917-b5a8-d36a3063f491:Node ddd7253a-5f87-4917-b5a8-d36a3063f491 :: false |
publishItemsToNodes | 0.033s |
2022-07-20 23:02:11 |
2022-07-20 23:02:11 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-07-20 23:02:11 | ------------------------------------ 2022-07-20 23:02:11 | on localhost executing action publish-item with content type application/json and payload: { "node": "node-ddd7253a-5f87-4917-b5a8-d36a3063f491", "entry": "<test>item-df193a07-ea08-44ac-b7f0-e44509521b7d</test>", "item-id": "item-df193a07-ea08-44ac-b7f0-e44509521b7d" } 2022-07-20 23:02:11 | from localhost for action publish-item got result code 200 and payload { "Note": "Operation successful", "item-id": "item-df193a07-ea08-44ac-b7f0-e44509521b7d" } 2022-07-20 23:02:11 | [Mutex] waiting for: [published:item:notifieditem-df193a07-ea08-44ac-b7f0-e44509521b7d:admin@test-domain.com] 2022-07-20 23:02:11 | [Mutex] received everything. 2022-07-20 23:02:11 | [Mutex] isItemNotified: published:item:notifieditem-df193a07-ea08-44ac-b7f0-e44509521b7d:admin@test-domain.com :: true |
retractItemsFromNodes | 0.051s |
2022-07-20 23:02:11 |
2022-07-20 23:02:11 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-07-20 23:02:11 | ------------------------------------ 2022-07-20 23:02:11 | on localhost executing action delete-item with content type application/json and payload: { "node": "node-ddd7253a-5f87-4917-b5a8-d36a3063f491", "item-id": "item-df193a07-ea08-44ac-b7f0-e44509521b7d" } 2022-07-20 23:02:11 | from localhost for action delete-item got result code 200 and payload { "Note": "Operation successful", "item-id": "item-df193a07-ea08-44ac-b7f0-e44509521b7d" } 2022-07-20 23:02:11 | [Mutex] received everything. 2022-07-20 23:02:11 | [Mutex] isItemNotified: retracted:item:notifieditem-df193a07-ea08-44ac-b7f0-e44509521b7d:admin@test-domain.com :: true |
retrieveItemsFromNodes | 0.070s |
2022-07-20 23:02:11 |
2022-07-20 23:02:11 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-07-20 23:02:11 | ------------------------------------ 2022-07-20 23:02:11 | on localhost executing action retrieve-item with content type application/json and payload: { "node": "node-ddd7253a-5f87-4917-b5a8-d36a3063f491", "item-id": "item-df193a07-ea08-44ac-b7f0-e44509521b7d" } 2022-07-20 23:02:11 | from localhost for action retrieve-item got result code 200 and payload { "title": "Retrive PubSub node item", "node": "node-ddd7253a-5f87-4917-b5a8-d36a3063f491", "item-id": "item-df193a07-ea08-44ac-b7f0-e44509521b7d", "item": [ "<item id=\"item-df193a07-ea08-44ac-b7f0-e44509521b7d\"><test>item-df193a07-ea08-44ac-b7f0-e44509521b7d</test></item>" ] } 2022-07-20 23:02:11 | [Mutex] notify: [retrieved:item:item-df193a07-ea08-44ac-b7f0-e44509521b7d:payload-matches:true:localhost] 2022-07-20 23:02:11 | [Mutex] received everything. 2022-07-20 23:02:11 | [Mutex] isItemNotified: retrieved:item:item-df193a07-ea08-44ac-b7f0-e44509521b7d:payload-matches:true:localhost :: true |
retrieveUserSubscriptions | 0.047s |
2022-07-20 23:02:11 |
2022-07-20 23:02:11 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-07-20 23:02:11 | ------------------------------------ 2022-07-20 23:02:11 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload: { "jid": "admin@test-domain.com" } 2022-07-20 23:02:11 | from localhost for action retrieve-user-subscriptions got result code 200 and payload { "nodes": [ "test", "node-ddd7253a-5f87-4917-b5a8-d36a3063f491", "node-a6784065-6874-4022-92bd-fb5857f5d41b" ] } |
retrieveUserSubscriptionsWithRegex | 0.048s |
2022-07-20 23:02:11 |
2022-07-20 23:02:11 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-07-20 23:02:11 | ------------------------------------ 2022-07-20 23:02:11 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload: { "jid": "admin@test-domain.com", "node-pattern": "(?!node-ddd7253a-5f87-4917-b5a8-d36a3063f491)" } 2022-07-20 23:02:11 | from localhost for action retrieve-user-subscriptions got result code 200 and payload { "nodes": [ ] } |
subscribeNodes | 1.014s |
2022-07-20 23:02:10 |
2022-07-20 23:02:10 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-07-20 23:02:10 | ------------------------------------ 2022-07-20 23:02:10 | on localhost executing action subscribe-node with content type application/json and payload: { "node": "node-ddd7253a-5f87-4917-b5a8-d36a3063f491", "jids": [ "admin@test-domain.com" ] } 2022-07-20 23:02:10 | from localhost for action subscribe-node got result code 200 and payload { "Note": "Operation successful" } |
unsubscribeNodes | 1.059s |
2022-07-20 23:02:11 |
2022-07-20 23:02:11 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-07-20 23:02:11 | ------------------------------------ 2022-07-20 23:02:11 | on localhost executing action unsubscribe-node with content type application/json and payload: { "node": "node-ddd7253a-5f87-4917-b5a8-d36a3063f491", "jids": [ "admin@test-domain.com" ] } 2022-07-20 23:02:12 | from localhost for action unsubscribe-node got result code 200 and payload { "Note": "Operation successful" } |