Test duration : 8.974s
Passed Tests | ||
---|---|---|
tigase.tests.pubsub.TestRestApiUsingJSON | ||
configureNodes | 1.089s |
2021-12-06 22:09:11 |
2021-12-06 22:09:11 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-12-06 22:09:11 | ------------------------------------ 2021-12-06 22:09:11 | [Mutex] waiting for: [configured:node:node-ebf49d79-f684-4a6d-95e0-2c9c6cfa7ba7:node-1992b25f-8cad-47d7-9cc0-26623cb64b17] 2021-12-06 22:09:11 | [Mutex] received everything. 2021-12-06 22:09:11 | [Mutex] isItemNotified: configured:node:node-ebf49d79-f684-4a6d-95e0-2c9c6cfa7ba7:node-1992b25f-8cad-47d7-9cc0-26623cb64b17 :: true 2021-12-06 22:09:12 | [Mutex] waiting for: [received:nodes:34446788-3aa3-4fa0-a6ee-4044d60b646c:localhost] 2021-12-06 22:09:12 | [Mutex] received everything. 2021-12-06 22:09:12 | [Mutex] isItemNotified: received:node:34446788-3aa3-4fa0-a6ee-4044d60b646c:localhost:node-ebf49d79-f684-4a6d-95e0-2c9c6cfa7ba7:Node ebf49d79-f684-4a6d-95e0-2c9c6cfa7ba7 :: true 2021-12-06 22:09:12 | [Mutex] waiting for: [received:nodes:aa5c3862-85fd-407e-9d7d-bb851063daa5:localhost] 2021-12-06 22:09:12 | [Mutex] received everything. 2021-12-06 22:09:12 | [Mutex] isItemNotified: received:node:aa5c3862-85fd-407e-9d7d-bb851063daa5:localhost:node-ebf49d79-f684-4a6d-95e0-2c9c6cfa7ba7:Node ebf49d79-f684-4a6d-95e0-2c9c6cfa7ba7 :: false |
createNodes | 1.681s |
2021-12-06 22:09:08 |
2021-12-06 22:09:08 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-12-06 22:09:08 | ------------------------------------ 2021-12-06 22:09: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-ebf49d79-f684-4a6d-95e0-2c9c6cfa7ba7", "pubsub#title": "Node ebf49d79-f684-4a6d-95e0-2c9c6cfa7ba7" } 2021-12-06 22:09:09 | from localhost for action create-node got result code 200 and payload { "Note": "Operation successful" } 2021-12-06 22:09:10 | [Mutex] waiting for: [received:nodes:d179d408-a98f-4cc7-b10d-d1051ba16ec8:localhost] 2021-12-06 22:09:10 | [Mutex] received everything. 2021-12-06 22:09:10 | [Mutex] isItemNotified: received:node:d179d408-a98f-4cc7-b10d-d1051ba16ec8:localhost:node-ebf49d79-f684-4a6d-95e0-2c9c6cfa7ba7:Node ebf49d79-f684-4a6d-95e0-2c9c6cfa7ba7 :: true |
createSubnodes | 1.026s |
2021-12-06 22:09:10 |
2021-12-06 22:09:10 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-12-06 22:09:10 | ------------------------------------ 2021-12-06 22:09:10 | on localhost executing action create-node with content type application/json and payload: { "owner": "admin@test-domain.com", "pubsub#node_type": "collection", "node": "node-1992b25f-8cad-47d7-9cc0-26623cb64b17", "pubsub#title": "Node 1992b25f-8cad-47d7-9cc0-26623cb64b17" } 2021-12-06 22:09:10 | from localhost for action create-node got result code 200 and payload { "Note": "Operation successful" } 2021-12-06 22:09:11 | [Mutex] waiting for: [received:nodes:61015d89-e947-4c4e-88ea-0d22347fe425:localhost] 2021-12-06 22:09:11 | [Mutex] received everything. 2021-12-06 22:09:11 | [Mutex] isItemNotified: received:node:61015d89-e947-4c4e-88ea-0d22347fe425:localhost:node-1992b25f-8cad-47d7-9cc0-26623cb64b17:Node 1992b25f-8cad-47d7-9cc0-26623cb64b17 :: true |
deleteNodes | 1.024s |
2021-12-06 22:09:15 |
2021-12-06 22:09:15 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-12-06 22:09:15 | ------------------------------------ 2021-12-06 22:09:15 | on localhost executing action delete-node with content type application/json and payload: { "node": "node-1992b25f-8cad-47d7-9cc0-26623cb64b17" } 2021-12-06 22:09:15 | from localhost for action delete-node got result code 200 and payload { "Note": "Operation successful" } 2021-12-06 22:09:16 | [Mutex] waiting for: [received:nodes:16256f08-efbe-4aa5-9079-8e7f62c34e2e:localhost] 2021-12-06 22:09:16 | [Mutex] received everything. 2021-12-06 22:09:16 | [Mutex] isItemNotified: received:node:16256f08-efbe-4aa5-9079-8e7f62c34e2e:localhost:node-1992b25f-8cad-47d7-9cc0-26623cb64b17:Node 1992b25f-8cad-47d7-9cc0-26623cb64b17 :: false |
deleteSubnodes | 1.032s |
2021-12-06 22:09:14 |
2021-12-06 22:09:14 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-12-06 22:09:14 | ------------------------------------ 2021-12-06 22:09:14 | on localhost executing action delete-node with content type application/json and payload: { "node": "node-ebf49d79-f684-4a6d-95e0-2c9c6cfa7ba7" } 2021-12-06 22:09:14 | from localhost for action delete-node got result code 200 and payload { "Note": "Operation successful" } 2021-12-06 22:09:15 | [Mutex] waiting for: [received:nodes:4c8b1746-4664-4da2-a56a-1de04414bfcf:localhost] 2021-12-06 22:09:15 | [Mutex] received everything. 2021-12-06 22:09:15 | [Mutex] isItemNotified: received:node:4c8b1746-4664-4da2-a56a-1de04414bfcf:localhost:node-ebf49d79-f684-4a6d-95e0-2c9c6cfa7ba7:Node ebf49d79-f684-4a6d-95e0-2c9c6cfa7ba7 :: false 2021-12-06 22:09:15 | [Mutex] waiting for: [received:nodes:f4ec2fb4-daaa-43bd-8dd3-b0cc92d8bd6b:localhost] 2021-12-06 22:09:15 | [Mutex] received everything. 2021-12-06 22:09:15 | [Mutex] isItemNotified: received:node:f4ec2fb4-daaa-43bd-8dd3-b0cc92d8bd6b:localhost:node-ebf49d79-f684-4a6d-95e0-2c9c6cfa7ba7:Node ebf49d79-f684-4a6d-95e0-2c9c6cfa7ba7 :: false |
publishItemsToNodes | 0.062s |
2021-12-06 22:09:13 |
2021-12-06 22:09:13 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-12-06 22:09:13 | ------------------------------------ 2021-12-06 22:09:13 | on localhost executing action publish-item with content type application/json and payload: { "node": "node-ebf49d79-f684-4a6d-95e0-2c9c6cfa7ba7", "entry": "<test>item-0190af2b-c2c8-438e-8118-53c7ba3debd5</test>", "item-id": "item-0190af2b-c2c8-438e-8118-53c7ba3debd5" } 2021-12-06 22:09:13 | from localhost for action publish-item got result code 200 and payload { "Note": "Operation successful", "item-id": "item-0190af2b-c2c8-438e-8118-53c7ba3debd5" } 2021-12-06 22:09:13 | [Mutex] waiting for: [published:item:notifieditem-0190af2b-c2c8-438e-8118-53c7ba3debd5:admin@test-domain.com] 2021-12-06 22:09:13 | [Mutex] received everything. 2021-12-06 22:09:13 | [Mutex] isItemNotified: published:item:notifieditem-0190af2b-c2c8-438e-8118-53c7ba3debd5:admin@test-domain.com :: true |
retractItemsFromNodes | 0.099s |
2021-12-06 22:09:13 |
2021-12-06 22:09:13 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-12-06 22:09:13 | ------------------------------------ 2021-12-06 22:09:13 | on localhost executing action delete-item with content type application/json and payload: { "node": "node-ebf49d79-f684-4a6d-95e0-2c9c6cfa7ba7", "item-id": "item-0190af2b-c2c8-438e-8118-53c7ba3debd5" } 2021-12-06 22:09:13 | from localhost for action delete-item got result code 200 and payload { "Note": "Operation successful", "item-id": "item-0190af2b-c2c8-438e-8118-53c7ba3debd5" } 2021-12-06 22:09:13 | [Mutex] received everything. 2021-12-06 22:09:13 | [Mutex] isItemNotified: retracted:item:notifieditem-0190af2b-c2c8-438e-8118-53c7ba3debd5:admin@test-domain.com :: true |
retrieveItemsFromNodes | 0.087s |
2021-12-06 22:09:13 |
2021-12-06 22:09:13 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-12-06 22:09:13 | ------------------------------------ 2021-12-06 22:09:13 | on localhost executing action retrieve-item with content type application/json and payload: { "node": "node-ebf49d79-f684-4a6d-95e0-2c9c6cfa7ba7", "item-id": "item-0190af2b-c2c8-438e-8118-53c7ba3debd5" } 2021-12-06 22:09:13 | from localhost for action retrieve-item got result code 200 and payload { "title": "Retrive PubSub node item", "node": "node-ebf49d79-f684-4a6d-95e0-2c9c6cfa7ba7", "item-id": "item-0190af2b-c2c8-438e-8118-53c7ba3debd5", "item": [ "<item id=\"item-0190af2b-c2c8-438e-8118-53c7ba3debd5\"><test>item-0190af2b-c2c8-438e-8118-53c7ba3debd5</test></item>" ] } 2021-12-06 22:09:13 | [Mutex] notify: [retrieved:item:item-0190af2b-c2c8-438e-8118-53c7ba3debd5:payload-matches:true:localhost] 2021-12-06 22:09:13 | [Mutex] received everything. 2021-12-06 22:09:13 | [Mutex] isItemNotified: retrieved:item:item-0190af2b-c2c8-438e-8118-53c7ba3debd5:payload-matches:true:localhost :: true |
retrieveUserSubscriptions | 0.059s |
2021-12-06 22:09:13 |
2021-12-06 22:09:13 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-12-06 22:09:13 | ------------------------------------ 2021-12-06 22:09:13 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload: { "jid": "admin@test-domain.com" } 2021-12-06 22:09:13 | from localhost for action retrieve-user-subscriptions got result code 200 and payload { "nodes": [ "node-ebf49d79-f684-4a6d-95e0-2c9c6cfa7ba7", "test", "node-1992b25f-8cad-47d7-9cc0-26623cb64b17" ] } |
retrieveUserSubscriptionsWithRegex | 0.051s |
2021-12-06 22:09:13 |
2021-12-06 22:09:13 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-12-06 22:09:13 | ------------------------------------ 2021-12-06 22:09:13 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload: { "jid": "admin@test-domain.com", "node-pattern": "(?!node-ebf49d79-f684-4a6d-95e0-2c9c6cfa7ba7)" } 2021-12-06 22:09:13 | from localhost for action retrieve-user-subscriptions got result code 200 and payload { "nodes": [ ] } |
subscribeNodes | 1.015s |
2021-12-06 22:09:12 |
2021-12-06 22:09:12 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-12-06 22:09:12 | ------------------------------------ 2021-12-06 22:09:12 | on localhost executing action subscribe-node with content type application/json and payload: { "node": "node-ebf49d79-f684-4a6d-95e0-2c9c6cfa7ba7", "jids": [ "admin@test-domain.com" ] } 2021-12-06 22:09:12 | from localhost for action subscribe-node got result code 200 and payload { "Note": "Operation successful" } |
unsubscribeNodes | 1.057s |
2021-12-06 22:09:13 |
2021-12-06 22:09:13 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-12-06 22:09:13 | ------------------------------------ 2021-12-06 22:09:13 | on localhost executing action unsubscribe-node with content type application/json and payload: { "node": "node-ebf49d79-f684-4a6d-95e0-2c9c6cfa7ba7", "jids": [ "admin@test-domain.com" ] } 2021-12-06 22:09:13 | from localhost for action unsubscribe-node got result code 200 and payload { "Note": "Operation successful" } |