Test duration : 9.052s
Passed Tests | ||
---|---|---|
tigase.tests.pubsub.TestRestApiUsingJSON | ||
configureNodes | 1.116s |
2022-02-17 04:10:47 |
2022-02-17 04:10:47 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-02-17 04:10:47 | ------------------------------------ 2022-02-17 04:10:47 | [Mutex] waiting for: [configured:node:node-5b9ef377-8de5-43fc-aeed-ac9f0f4c908d:node-34814102-2950-4570-b633-6c08abbd44e1] 2022-02-17 04:10:47 | [Mutex] received everything. 2022-02-17 04:10:47 | [Mutex] isItemNotified: configured:node:node-5b9ef377-8de5-43fc-aeed-ac9f0f4c908d:node-34814102-2950-4570-b633-6c08abbd44e1 :: true 2022-02-17 04:10:48 | [Mutex] waiting for: [received:nodes:ec066c26-cf10-4945-86ea-af73d9708ca5:localhost] 2022-02-17 04:10:48 | [Mutex] received everything. 2022-02-17 04:10:48 | [Mutex] isItemNotified: received:node:ec066c26-cf10-4945-86ea-af73d9708ca5:localhost:node-5b9ef377-8de5-43fc-aeed-ac9f0f4c908d:Node 5b9ef377-8de5-43fc-aeed-ac9f0f4c908d :: true 2022-02-17 04:10:48 | [Mutex] waiting for: [received:nodes:abf05f4c-276c-4c4d-a427-ca86f08d2aae:localhost] 2022-02-17 04:10:48 | [Mutex] received everything. 2022-02-17 04:10:48 | [Mutex] isItemNotified: received:node:abf05f4c-276c-4c4d-a427-ca86f08d2aae:localhost:node-5b9ef377-8de5-43fc-aeed-ac9f0f4c908d:Node 5b9ef377-8de5-43fc-aeed-ac9f0f4c908d :: false |
createNodes | 1.639s |
2022-02-17 04:10:44 |
2022-02-17 04:10:44 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-02-17 04:10:44 | ------------------------------------ 2022-02-17 04:10: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-5b9ef377-8de5-43fc-aeed-ac9f0f4c908d", "pubsub#title": "Node 5b9ef377-8de5-43fc-aeed-ac9f0f4c908d" } 2022-02-17 04:10:44 | from localhost for action create-node got result code 200 and payload { "Note": "Operation successful" } 2022-02-17 04:10:45 | [Mutex] waiting for: [received:nodes:54e7be2a-3650-4357-9785-f3c9a9936bdc:localhost] 2022-02-17 04:10:45 | [Mutex] received everything. 2022-02-17 04:10:45 | [Mutex] isItemNotified: received:node:54e7be2a-3650-4357-9785-f3c9a9936bdc:localhost:node-5b9ef377-8de5-43fc-aeed-ac9f0f4c908d:Node 5b9ef377-8de5-43fc-aeed-ac9f0f4c908d :: true |
createSubnodes | 1.038s |
2022-02-17 04:10:45 |
2022-02-17 04:10:45 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-02-17 04:10:45 | ------------------------------------ 2022-02-17 04:10: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-34814102-2950-4570-b633-6c08abbd44e1", "pubsub#title": "Node 34814102-2950-4570-b633-6c08abbd44e1" } 2022-02-17 04:10:46 | from localhost for action create-node got result code 200 and payload { "Note": "Operation successful" } 2022-02-17 04:10:47 | [Mutex] waiting for: [received:nodes:4826bf0b-c010-4a93-9ef8-80b58cadd8c0:localhost] 2022-02-17 04:10:47 | [Mutex] received everything. 2022-02-17 04:10:47 | [Mutex] isItemNotified: received:node:4826bf0b-c010-4a93-9ef8-80b58cadd8c0:localhost:node-34814102-2950-4570-b633-6c08abbd44e1:Node 34814102-2950-4570-b633-6c08abbd44e1 :: true |
deleteNodes | 1.025s |
2022-02-17 04:10:51 |
2022-02-17 04:10:51 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-02-17 04:10:51 | ------------------------------------ 2022-02-17 04:10:51 | on localhost executing action delete-node with content type application/json and payload: { "node": "node-34814102-2950-4570-b633-6c08abbd44e1" } 2022-02-17 04:10:51 | from localhost for action delete-node got result code 200 and payload { "Note": "Operation successful" } 2022-02-17 04:10:52 | [Mutex] waiting for: [received:nodes:cac2ca9f-4851-4eac-8120-a2e5b13390bc:localhost] 2022-02-17 04:10:52 | [Mutex] waiting for: [received:nodes:cac2ca9f-4851-4eac-8120-a2e5b13390bc:localhost] 2022-02-17 04:10:52 | [Mutex] received everything. 2022-02-17 04:10:52 | [Mutex] isItemNotified: received:node:cac2ca9f-4851-4eac-8120-a2e5b13390bc:localhost:node-34814102-2950-4570-b633-6c08abbd44e1:Node 34814102-2950-4570-b633-6c08abbd44e1 :: false |
deleteSubnodes | 1.039s |
2022-02-17 04:10:50 |
2022-02-17 04:10:50 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-02-17 04:10:50 | ------------------------------------ 2022-02-17 04:10:50 | on localhost executing action delete-node with content type application/json and payload: { "node": "node-5b9ef377-8de5-43fc-aeed-ac9f0f4c908d" } 2022-02-17 04:10:50 | from localhost for action delete-node got result code 200 and payload { "Note": "Operation successful" } 2022-02-17 04:10:51 | [Mutex] waiting for: [received:nodes:f87f8dae-d984-4a79-8fc9-a756a4d4a8a3:localhost] 2022-02-17 04:10:51 | [Mutex] waiting for: [received:nodes:f87f8dae-d984-4a79-8fc9-a756a4d4a8a3:localhost] 2022-02-17 04:10:51 | [Mutex] received everything. 2022-02-17 04:10:51 | [Mutex] isItemNotified: received:node:f87f8dae-d984-4a79-8fc9-a756a4d4a8a3:localhost:node-5b9ef377-8de5-43fc-aeed-ac9f0f4c908d:Node 5b9ef377-8de5-43fc-aeed-ac9f0f4c908d :: false 2022-02-17 04:10:51 | [Mutex] waiting for: [received:nodes:1049afd5-ffa4-4b93-8197-a341a460f495:localhost] 2022-02-17 04:10:51 | [Mutex] received everything. 2022-02-17 04:10:51 | [Mutex] isItemNotified: received:node:1049afd5-ffa4-4b93-8197-a341a460f495:localhost:node-5b9ef377-8de5-43fc-aeed-ac9f0f4c908d:Node 5b9ef377-8de5-43fc-aeed-ac9f0f4c908d :: false |
publishItemsToNodes | 0.052s |
2022-02-17 04:10:49 |
2022-02-17 04:10:49 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-02-17 04:10:49 | ------------------------------------ 2022-02-17 04:10:49 | on localhost executing action publish-item with content type application/json and payload: { "node": "node-5b9ef377-8de5-43fc-aeed-ac9f0f4c908d", "entry": "<test>item-847540c4-18f5-4fa6-b826-9f91523479a7</test>", "item-id": "item-847540c4-18f5-4fa6-b826-9f91523479a7" } 2022-02-17 04:10:49 | from localhost for action publish-item got result code 200 and payload { "Note": "Operation successful", "item-id": "item-847540c4-18f5-4fa6-b826-9f91523479a7" } 2022-02-17 04:10:49 | [Mutex] received everything. 2022-02-17 04:10:49 | [Mutex] isItemNotified: published:item:notifieditem-847540c4-18f5-4fa6-b826-9f91523479a7:admin@test-domain.com :: true |
retractItemsFromNodes | 0.098s |
2022-02-17 04:10:49 |
2022-02-17 04:10:49 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-02-17 04:10:49 | ------------------------------------ 2022-02-17 04:10:49 | on localhost executing action delete-item with content type application/json and payload: { "node": "node-5b9ef377-8de5-43fc-aeed-ac9f0f4c908d", "item-id": "item-847540c4-18f5-4fa6-b826-9f91523479a7" } 2022-02-17 04:10:49 | from localhost for action delete-item got result code 200 and payload { "Note": "Operation successful", "item-id": "item-847540c4-18f5-4fa6-b826-9f91523479a7" } 2022-02-17 04:10:49 | [Mutex] received everything. 2022-02-17 04:10:49 | [Mutex] isItemNotified: retracted:item:notifieditem-847540c4-18f5-4fa6-b826-9f91523479a7:admin@test-domain.com :: true |
retrieveItemsFromNodes | 0.093s |
2022-02-17 04:10:49 |
2022-02-17 04:10:49 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-02-17 04:10:49 | ------------------------------------ 2022-02-17 04:10:49 | on localhost executing action retrieve-item with content type application/json and payload: { "node": "node-5b9ef377-8de5-43fc-aeed-ac9f0f4c908d", "item-id": "item-847540c4-18f5-4fa6-b826-9f91523479a7" } 2022-02-17 04:10:49 | from localhost for action retrieve-item got result code 200 and payload { "title": "Retrive PubSub node item", "node": "node-5b9ef377-8de5-43fc-aeed-ac9f0f4c908d", "item-id": "item-847540c4-18f5-4fa6-b826-9f91523479a7", "item": [ "<item id=\"item-847540c4-18f5-4fa6-b826-9f91523479a7\"><test>item-847540c4-18f5-4fa6-b826-9f91523479a7</test></item>" ] } 2022-02-17 04:10:49 | [Mutex] notify: [retrieved:item:item-847540c4-18f5-4fa6-b826-9f91523479a7:payload-matches:true:localhost] 2022-02-17 04:10:49 | [Mutex] received everything. 2022-02-17 04:10:49 | [Mutex] isItemNotified: retrieved:item:item-847540c4-18f5-4fa6-b826-9f91523479a7:payload-matches:true:localhost :: true |
retrieveUserSubscriptions | 0.055s |
2022-02-17 04:10:49 |
2022-02-17 04:10:49 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-02-17 04:10:49 | ------------------------------------ 2022-02-17 04:10:49 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload: { "jid": "admin@test-domain.com" } 2022-02-17 04:10:49 | from localhost for action retrieve-user-subscriptions got result code 200 and payload { "nodes": [ "node-34814102-2950-4570-b633-6c08abbd44e1", "test", "node-5b9ef377-8de5-43fc-aeed-ac9f0f4c908d" ] } |
retrieveUserSubscriptionsWithRegex | 0.051s |
2022-02-17 04:10:49 |
2022-02-17 04:10:49 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-02-17 04:10:49 | ------------------------------------ 2022-02-17 04:10:49 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload: { "jid": "admin@test-domain.com", "node-pattern": "(?!node-5b9ef377-8de5-43fc-aeed-ac9f0f4c908d)" } 2022-02-17 04:10:49 | from localhost for action retrieve-user-subscriptions got result code 200 and payload { "nodes": [ ] } |
subscribeNodes | 1.011s |
2022-02-17 04:10:48 |
2022-02-17 04:10:48 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-02-17 04:10:48 | ------------------------------------ 2022-02-17 04:10:48 | on localhost executing action subscribe-node with content type application/json and payload: { "node": "node-5b9ef377-8de5-43fc-aeed-ac9f0f4c908d", "jids": [ "admin@test-domain.com" ] } 2022-02-17 04:10:48 | from localhost for action subscribe-node got result code 200 and payload { "Note": "Operation successful" } |
unsubscribeNodes | 1.064s |
2022-02-17 04:10:49 |
2022-02-17 04:10:49 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-02-17 04:10:49 | ------------------------------------ 2022-02-17 04:10:49 | on localhost executing action unsubscribe-node with content type application/json and payload: { "node": "node-5b9ef377-8de5-43fc-aeed-ac9f0f4c908d", "jids": [ "admin@test-domain.com" ] } 2022-02-17 04:10:49 | from localhost for action unsubscribe-node got result code 200 and payload { "Note": "Operation successful" } |