Test duration : 8.705s
Passed Tests | ||
---|---|---|
tigase.tests.pubsub.TestRestApiUsingJSON | ||
configureNodes | 1.118s |
2021-12-06 21:42:10 |
2021-12-06 21:42:10 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-12-06 21:42:10 | ------------------------------------ 2021-12-06 21:42:10 | [Mutex] waiting for: [configured:node:node-2d6f375d-3bdc-416a-af35-20898f0bcadb:node-770ba543-44e7-48a8-92d2-20f4b3f3c560] 2021-12-06 21:42:10 | [Mutex] received everything. 2021-12-06 21:42:10 | [Mutex] isItemNotified: configured:node:node-2d6f375d-3bdc-416a-af35-20898f0bcadb:node-770ba543-44e7-48a8-92d2-20f4b3f3c560 :: true 2021-12-06 21:42:11 | [Mutex] waiting for: [received:nodes:47dbc734-5002-421e-9b5e-922736f4c5f5:localhost] 2021-12-06 21:42:11 | [Mutex] received everything. 2021-12-06 21:42:11 | [Mutex] isItemNotified: received:node:47dbc734-5002-421e-9b5e-922736f4c5f5:localhost:node-2d6f375d-3bdc-416a-af35-20898f0bcadb:Node 2d6f375d-3bdc-416a-af35-20898f0bcadb :: true 2021-12-06 21:42:11 | [Mutex] waiting for: [received:nodes:d27b454c-83aa-4c60-8375-7bb3f44dfde2:localhost] 2021-12-06 21:42:11 | [Mutex] received everything. 2021-12-06 21:42:11 | [Mutex] isItemNotified: received:node:d27b454c-83aa-4c60-8375-7bb3f44dfde2:localhost:node-2d6f375d-3bdc-416a-af35-20898f0bcadb:Node 2d6f375d-3bdc-416a-af35-20898f0bcadb :: false |
createNodes | 1.561s |
2021-12-06 21:42:07 |
2021-12-06 21:42:07 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-12-06 21:42:07 | ------------------------------------ 2021-12-06 21:42:08 | on localhost executing action create-node with content type application/json and payload: { "owner": "admin@test-domain.com", "pubsub#node_type": "leaf", "node": "node-2d6f375d-3bdc-416a-af35-20898f0bcadb", "pubsub#title": "Node 2d6f375d-3bdc-416a-af35-20898f0bcadb" } 2021-12-06 21:42:08 | from localhost for action create-node got result code 200 and payload { "Note": "Operation successful" } 2021-12-06 21:42:09 | [Mutex] waiting for: [received:nodes:35401a41-946b-4ec8-9c28-f3156b1d8a16:localhost] 2021-12-06 21:42:09 | [Mutex] waiting for: [received:nodes:35401a41-946b-4ec8-9c28-f3156b1d8a16:localhost] 2021-12-06 21:42:09 | [Mutex] waiting for: [received:nodes:35401a41-946b-4ec8-9c28-f3156b1d8a16:localhost] 2021-12-06 21:42:09 | [Mutex] received everything. 2021-12-06 21:42:09 | [Mutex] isItemNotified: received:node:35401a41-946b-4ec8-9c28-f3156b1d8a16:localhost:node-2d6f375d-3bdc-416a-af35-20898f0bcadb:Node 2d6f375d-3bdc-416a-af35-20898f0bcadb :: true |
createSubnodes | 1.024s |
2021-12-06 21:42:09 |
2021-12-06 21:42:09 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-12-06 21:42:09 | ------------------------------------ 2021-12-06 21:42:09 | on localhost executing action create-node with content type application/json and payload: { "owner": "admin@test-domain.com", "pubsub#node_type": "collection", "node": "node-770ba543-44e7-48a8-92d2-20f4b3f3c560", "pubsub#title": "Node 770ba543-44e7-48a8-92d2-20f4b3f3c560" } 2021-12-06 21:42:09 | from localhost for action create-node got result code 200 and payload { "Note": "Operation successful" } 2021-12-06 21:42:10 | [Mutex] waiting for: [received:nodes:fe1d7fae-ed8b-4756-999f-be35b99938fb:localhost] 2021-12-06 21:42:10 | [Mutex] received everything. 2021-12-06 21:42:10 | [Mutex] isItemNotified: received:node:fe1d7fae-ed8b-4756-999f-be35b99938fb:localhost:node-770ba543-44e7-48a8-92d2-20f4b3f3c560:Node 770ba543-44e7-48a8-92d2-20f4b3f3c560 :: true |
deleteNodes | 1.021s |
2021-12-06 21:42:14 |
2021-12-06 21:42:14 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-12-06 21:42:14 | ------------------------------------ 2021-12-06 21:42:14 | on localhost executing action delete-node with content type application/json and payload: { "node": "node-770ba543-44e7-48a8-92d2-20f4b3f3c560" } 2021-12-06 21:42:14 | from localhost for action delete-node got result code 200 and payload { "Note": "Operation successful" } 2021-12-06 21:42:15 | [Mutex] waiting for: [received:nodes:14b0252d-726b-4b45-bdc6-356a2f9c08db:localhost] 2021-12-06 21:42:15 | [Mutex] received everything. 2021-12-06 21:42:15 | [Mutex] isItemNotified: received:node:14b0252d-726b-4b45-bdc6-356a2f9c08db:localhost:node-770ba543-44e7-48a8-92d2-20f4b3f3c560:Node 770ba543-44e7-48a8-92d2-20f4b3f3c560 :: false |
deleteSubnodes | 1.032s |
2021-12-06 21:42:13 |
2021-12-06 21:42:13 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-12-06 21:42:13 | ------------------------------------ 2021-12-06 21:42:13 | on localhost executing action delete-node with content type application/json and payload: { "node": "node-2d6f375d-3bdc-416a-af35-20898f0bcadb" } 2021-12-06 21:42:13 | from localhost for action delete-node got result code 200 and payload { "Note": "Operation successful" } 2021-12-06 21:42:14 | [Mutex] waiting for: [received:nodes:fb320404-7cb6-4002-b9fd-be7be35cdd97:localhost] 2021-12-06 21:42:14 | [Mutex] waiting for: [received:nodes:fb320404-7cb6-4002-b9fd-be7be35cdd97:localhost] 2021-12-06 21:42:14 | [Mutex] received everything. 2021-12-06 21:42:14 | [Mutex] isItemNotified: received:node:fb320404-7cb6-4002-b9fd-be7be35cdd97:localhost:node-2d6f375d-3bdc-416a-af35-20898f0bcadb:Node 2d6f375d-3bdc-416a-af35-20898f0bcadb :: false 2021-12-06 21:42:14 | [Mutex] waiting for: [received:nodes:f51adb45-75ea-4843-b410-45a0bd05f07e:localhost] 2021-12-06 21:42:14 | [Mutex] received everything. 2021-12-06 21:42:14 | [Mutex] isItemNotified: received:node:f51adb45-75ea-4843-b410-45a0bd05f07e:localhost:node-2d6f375d-3bdc-416a-af35-20898f0bcadb:Node 2d6f375d-3bdc-416a-af35-20898f0bcadb :: false |
publishItemsToNodes | 0.062s |
2021-12-06 21:42:12 |
2021-12-06 21:42:12 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-12-06 21:42:12 | ------------------------------------ 2021-12-06 21:42:12 | on localhost executing action publish-item with content type application/json and payload: { "node": "node-2d6f375d-3bdc-416a-af35-20898f0bcadb", "entry": "<test>item-941ab1d8-55cc-431b-bb9d-478452173c01</test>", "item-id": "item-941ab1d8-55cc-431b-bb9d-478452173c01" } 2021-12-06 21:42:12 | from localhost for action publish-item got result code 200 and payload { "Note": "Operation successful", "item-id": "item-941ab1d8-55cc-431b-bb9d-478452173c01" } 2021-12-06 21:42:12 | [Mutex] waiting for: [published:item:notifieditem-941ab1d8-55cc-431b-bb9d-478452173c01:admin@test-domain.com] 2021-12-06 21:42:12 | [Mutex] received everything. 2021-12-06 21:42:12 | [Mutex] isItemNotified: published:item:notifieditem-941ab1d8-55cc-431b-bb9d-478452173c01:admin@test-domain.com :: true |
retractItemsFromNodes | 0.055s |
2021-12-06 21:42:12 |
2021-12-06 21:42:12 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-12-06 21:42:12 | ------------------------------------ 2021-12-06 21:42:12 | on localhost executing action delete-item with content type application/json and payload: { "node": "node-2d6f375d-3bdc-416a-af35-20898f0bcadb", "item-id": "item-941ab1d8-55cc-431b-bb9d-478452173c01" } 2021-12-06 21:42:12 | from localhost for action delete-item got result code 200 and payload { "Note": "Operation successful", "item-id": "item-941ab1d8-55cc-431b-bb9d-478452173c01" } 2021-12-06 21:42:12 | [Mutex] received everything. 2021-12-06 21:42:12 | [Mutex] isItemNotified: retracted:item:notifieditem-941ab1d8-55cc-431b-bb9d-478452173c01:admin@test-domain.com :: true |
retrieveItemsFromNodes | 0.076s |
2021-12-06 21:42:12 |
2021-12-06 21:42:12 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-12-06 21:42:12 | ------------------------------------ 2021-12-06 21:42:12 | on localhost executing action retrieve-item with content type application/json and payload: { "node": "node-2d6f375d-3bdc-416a-af35-20898f0bcadb", "item-id": "item-941ab1d8-55cc-431b-bb9d-478452173c01" } 2021-12-06 21:42:12 | from localhost for action retrieve-item got result code 200 and payload { "title": "Retrive PubSub node item", "node": "node-2d6f375d-3bdc-416a-af35-20898f0bcadb", "item-id": "item-941ab1d8-55cc-431b-bb9d-478452173c01", "item": [ "<item id=\"item-941ab1d8-55cc-431b-bb9d-478452173c01\"><test>item-941ab1d8-55cc-431b-bb9d-478452173c01</test></item>" ] } 2021-12-06 21:42:12 | [Mutex] notify: [retrieved:item:item-941ab1d8-55cc-431b-bb9d-478452173c01:payload-matches:true:localhost] 2021-12-06 21:42:12 | [Mutex] received everything. 2021-12-06 21:42:12 | [Mutex] isItemNotified: retrieved:item:item-941ab1d8-55cc-431b-bb9d-478452173c01:payload-matches:true:localhost :: true |
retrieveUserSubscriptions | 0.050s |
2021-12-06 21:42:12 |
2021-12-06 21:42:12 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-12-06 21:42:12 | ------------------------------------ 2021-12-06 21:42:12 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload: { "jid": "admin@test-domain.com" } 2021-12-06 21:42:12 | from localhost for action retrieve-user-subscriptions got result code 200 and payload { "nodes": [ "node-770ba543-44e7-48a8-92d2-20f4b3f3c560", "test", "node-2d6f375d-3bdc-416a-af35-20898f0bcadb" ] } |
retrieveUserSubscriptionsWithRegex | 0.051s |
2021-12-06 21:42:12 |
2021-12-06 21:42:12 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-12-06 21:42:12 | ------------------------------------ 2021-12-06 21:42:12 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload: { "jid": "admin@test-domain.com", "node-pattern": "(?!node-2d6f375d-3bdc-416a-af35-20898f0bcadb)" } 2021-12-06 21:42:12 | from localhost for action retrieve-user-subscriptions got result code 200 and payload { "nodes": [ ] } |
subscribeNodes | 1.012s |
2021-12-06 21:42:11 |
2021-12-06 21:42:11 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-12-06 21:42:11 | ------------------------------------ 2021-12-06 21:42:11 | on localhost executing action subscribe-node with content type application/json and payload: { "node": "node-2d6f375d-3bdc-416a-af35-20898f0bcadb", "jids": [ "admin@test-domain.com" ] } 2021-12-06 21:42:11 | from localhost for action subscribe-node got result code 200 and payload { "Note": "Operation successful" } |
unsubscribeNodes | 1.064s |
2021-12-06 21:42:12 |
2021-12-06 21:42:12 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-12-06 21:42:12 | ------------------------------------ 2021-12-06 21:42:12 | on localhost executing action unsubscribe-node with content type application/json and payload: { "node": "node-2d6f375d-3bdc-416a-af35-20898f0bcadb", "jids": [ "admin@test-domain.com" ] } 2021-12-06 21:42:12 | from localhost for action unsubscribe-node got result code 200 and payload { "Note": "Operation successful" } |