Test duration : 8.970s
Passed Tests | ||
---|---|---|
tigase.tests.pubsub.TestRestApiUsingJSON | ||
configureNodes | 1.110s |
2021-04-26 23:05:27 |
2021-04-26 23:05:27 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-04-26 23:05:27 | ------------------------------------ 2021-04-26 23:05:27 | [Mutex] waiting for: [configured:node:node-2fabe874-2e3b-43e8-a806-0c099db704a7:node-202437b0-83d4-4587-9962-f071726328e2] 2021-04-26 23:05:27 | [Mutex] received everything. 2021-04-26 23:05:27 | [Mutex] isItemNotified: configured:node:node-2fabe874-2e3b-43e8-a806-0c099db704a7:node-202437b0-83d4-4587-9962-f071726328e2 :: true 2021-04-26 23:05:28 | [Mutex] waiting for: [received:nodes:74089418-55af-4147-aad0-465fcd627bfc:localhost] 2021-04-26 23:05:28 | [Mutex] received everything. 2021-04-26 23:05:28 | [Mutex] isItemNotified: received:node:74089418-55af-4147-aad0-465fcd627bfc:localhost:node-2fabe874-2e3b-43e8-a806-0c099db704a7:Node 2fabe874-2e3b-43e8-a806-0c099db704a7 :: true 2021-04-26 23:05:28 | [Mutex] waiting for: [received:nodes:428acbaa-4f3d-418c-9779-915d0717d37c:localhost] 2021-04-26 23:05:28 | [Mutex] received everything. 2021-04-26 23:05:28 | [Mutex] isItemNotified: received:node:428acbaa-4f3d-418c-9779-915d0717d37c:localhost:node-2fabe874-2e3b-43e8-a806-0c099db704a7:Node 2fabe874-2e3b-43e8-a806-0c099db704a7 :: false |
createNodes | 1.632s |
2021-04-26 23:05:24 |
2021-04-26 23:05:24 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-04-26 23:05:24 | ------------------------------------ 2021-04-26 23:05:25 | on localhost executing action create-node with content type application/json and payload: { "owner": "admin@test-domain.com", "pubsub#node_type": "leaf", "node": "node-2fabe874-2e3b-43e8-a806-0c099db704a7", "pubsub#title": "Node 2fabe874-2e3b-43e8-a806-0c099db704a7" } 2021-04-26 23:05:25 | from localhost for action create-node got result code 200 and payload { "Note": "Operation successful" } 2021-04-26 23:05:26 | [Mutex] waiting for: [received:nodes:0fd5a323-af68-4ee8-a3f2-d8bf10caf22e:localhost] 2021-04-26 23:05:26 | [Mutex] waiting for: [received:nodes:0fd5a323-af68-4ee8-a3f2-d8bf10caf22e:localhost] 2021-04-26 23:05:26 | [Mutex] received everything. 2021-04-26 23:05:26 | [Mutex] isItemNotified: received:node:0fd5a323-af68-4ee8-a3f2-d8bf10caf22e:localhost:node-2fabe874-2e3b-43e8-a806-0c099db704a7:Node 2fabe874-2e3b-43e8-a806-0c099db704a7 :: true |
createSubnodes | 1.023s |
2021-04-26 23:05:26 |
2021-04-26 23:05:26 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-04-26 23:05:26 | ------------------------------------ 2021-04-26 23:05:26 | on localhost executing action create-node with content type application/json and payload: { "owner": "admin@test-domain.com", "pubsub#node_type": "collection", "node": "node-202437b0-83d4-4587-9962-f071726328e2", "pubsub#title": "Node 202437b0-83d4-4587-9962-f071726328e2" } 2021-04-26 23:05:26 | from localhost for action create-node got result code 200 and payload { "Note": "Operation successful" } 2021-04-26 23:05:27 | [Mutex] waiting for: [received:nodes:1dbc0a50-18e3-43cc-9d3a-5ee574744fc2:localhost] 2021-04-26 23:05:27 | [Mutex] waiting for: [received:nodes:1dbc0a50-18e3-43cc-9d3a-5ee574744fc2:localhost] 2021-04-26 23:05:27 | [Mutex] received everything. 2021-04-26 23:05:27 | [Mutex] isItemNotified: received:node:1dbc0a50-18e3-43cc-9d3a-5ee574744fc2:localhost:node-202437b0-83d4-4587-9962-f071726328e2:Node 202437b0-83d4-4587-9962-f071726328e2 :: true |
deleteNodes | 1.032s |
2021-04-26 23:05:31 |
2021-04-26 23:05:31 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-04-26 23:05:31 | ------------------------------------ 2021-04-26 23:05:31 | on localhost executing action delete-node with content type application/json and payload: { "node": "node-202437b0-83d4-4587-9962-f071726328e2" } 2021-04-26 23:05:32 | from localhost for action delete-node got result code 200 and payload { "Note": "Operation successful" } 2021-04-26 23:05:33 | [Mutex] waiting for: [received:nodes:c317e3c1-781a-49f7-99f2-b7b40e41b63e:localhost] 2021-04-26 23:05:33 | [Mutex] received everything. 2021-04-26 23:05:33 | [Mutex] isItemNotified: received:node:c317e3c1-781a-49f7-99f2-b7b40e41b63e:localhost:node-202437b0-83d4-4587-9962-f071726328e2:Node 202437b0-83d4-4587-9962-f071726328e2 :: false |
deleteSubnodes | 1.036s |
2021-04-26 23:05:30 |
2021-04-26 23:05:30 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-04-26 23:05:30 | ------------------------------------ 2021-04-26 23:05:30 | on localhost executing action delete-node with content type application/json and payload: { "node": "node-2fabe874-2e3b-43e8-a806-0c099db704a7" } 2021-04-26 23:05:30 | from localhost for action delete-node got result code 200 and payload { "Note": "Operation successful" } 2021-04-26 23:05:31 | [Mutex] waiting for: [received:nodes:af1b7eb3-ec91-4208-a221-f9aa0f44dce9:localhost] 2021-04-26 23:05:31 | [Mutex] received everything. 2021-04-26 23:05:31 | [Mutex] isItemNotified: received:node:af1b7eb3-ec91-4208-a221-f9aa0f44dce9:localhost:node-2fabe874-2e3b-43e8-a806-0c099db704a7:Node 2fabe874-2e3b-43e8-a806-0c099db704a7 :: false 2021-04-26 23:05:31 | [Mutex] waiting for: [received:nodes:3b4473a7-b758-422f-ab2f-7b6e3d34ee7e:localhost] 2021-04-26 23:05:31 | [Mutex] received everything. 2021-04-26 23:05:31 | [Mutex] isItemNotified: received:node:3b4473a7-b758-422f-ab2f-7b6e3d34ee7e:localhost:node-2fabe874-2e3b-43e8-a806-0c099db704a7:Node 2fabe874-2e3b-43e8-a806-0c099db704a7 :: false |
publishItemsToNodes | 0.103s |
2021-04-26 23:05:29 |
2021-04-26 23:05:29 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-04-26 23:05:29 | ------------------------------------ 2021-04-26 23:05:29 | on localhost executing action publish-item with content type application/json and payload: { "node": "node-2fabe874-2e3b-43e8-a806-0c099db704a7", "entry": "<test>item-b4f376fd-6bc5-493f-b9f4-26600e47ddb1</test>", "item-id": "item-b4f376fd-6bc5-493f-b9f4-26600e47ddb1" } 2021-04-26 23:05:29 | from localhost for action publish-item got result code 200 and payload { "Note": "Operation successful", "item-id": "item-b4f376fd-6bc5-493f-b9f4-26600e47ddb1" } 2021-04-26 23:05:29 | [Mutex] waiting for: [published:item:notifieditem-b4f376fd-6bc5-493f-b9f4-26600e47ddb1:admin@test-domain.com] 2021-04-26 23:05:29 | [Mutex] received everything. 2021-04-26 23:05:29 | [Mutex] isItemNotified: published:item:notifieditem-b4f376fd-6bc5-493f-b9f4-26600e47ddb1:admin@test-domain.com :: true |
retractItemsFromNodes | 0.084s |
2021-04-26 23:05:29 |
2021-04-26 23:05:29 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-04-26 23:05:29 | ------------------------------------ 2021-04-26 23:05:29 | on localhost executing action delete-item with content type application/json and payload: { "node": "node-2fabe874-2e3b-43e8-a806-0c099db704a7", "item-id": "item-b4f376fd-6bc5-493f-b9f4-26600e47ddb1" } 2021-04-26 23:05:29 | from localhost for action delete-item got result code 200 and payload { "Note": "Operation successful", "item-id": "item-b4f376fd-6bc5-493f-b9f4-26600e47ddb1" } 2021-04-26 23:05:29 | [Mutex] received everything. 2021-04-26 23:05:29 | [Mutex] isItemNotified: retracted:item:notifieditem-b4f376fd-6bc5-493f-b9f4-26600e47ddb1:admin@test-domain.com :: true |
retrieveItemsFromNodes | 0.073s |
2021-04-26 23:05:29 |
2021-04-26 23:05:29 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-04-26 23:05:29 | ------------------------------------ 2021-04-26 23:05:29 | on localhost executing action retrieve-item with content type application/json and payload: { "node": "node-2fabe874-2e3b-43e8-a806-0c099db704a7", "item-id": "item-b4f376fd-6bc5-493f-b9f4-26600e47ddb1" } 2021-04-26 23:05:29 | from localhost for action retrieve-item got result code 200 and payload { "title": "Retrive PubSub node item", "node": "node-2fabe874-2e3b-43e8-a806-0c099db704a7", "item-id": "item-b4f376fd-6bc5-493f-b9f4-26600e47ddb1", "item": [ "<item id=\"item-b4f376fd-6bc5-493f-b9f4-26600e47ddb1\"><test>item-b4f376fd-6bc5-493f-b9f4-26600e47ddb1</test></item>" ] } 2021-04-26 23:05:29 | [Mutex] notify: [retrieved:item:item-b4f376fd-6bc5-493f-b9f4-26600e47ddb1:payload-matches:true:localhost] 2021-04-26 23:05:29 | [Mutex] received everything. 2021-04-26 23:05:29 | [Mutex] isItemNotified: retrieved:item:item-b4f376fd-6bc5-493f-b9f4-26600e47ddb1:payload-matches:true:localhost :: true |
retrieveUserSubscriptions | 0.051s |
2021-04-26 23:05:29 |
2021-04-26 23:05:29 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-04-26 23:05:29 | ------------------------------------ 2021-04-26 23:05:29 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload: { "jid": "admin@test-domain.com" } 2021-04-26 23:05:29 | from localhost for action retrieve-user-subscriptions got result code 200 and payload { "nodes": [ "test", "node-202437b0-83d4-4587-9962-f071726328e2", "node-2fabe874-2e3b-43e8-a806-0c099db704a7" ] } |
retrieveUserSubscriptionsWithRegex | 0.052s |
2021-04-26 23:05:29 |
2021-04-26 23:05:29 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-04-26 23:05:29 | ------------------------------------ 2021-04-26 23:05:29 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload: { "jid": "admin@test-domain.com", "node-pattern": "(?!node-2fabe874-2e3b-43e8-a806-0c099db704a7)" } 2021-04-26 23:05:29 | from localhost for action retrieve-user-subscriptions got result code 200 and payload { "nodes": [ ] } |
subscribeNodes | 1.011s |
2021-04-26 23:05:28 |
2021-04-26 23:05:28 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-04-26 23:05:28 | ------------------------------------ 2021-04-26 23:05:28 | on localhost executing action subscribe-node with content type application/json and payload: { "node": "node-2fabe874-2e3b-43e8-a806-0c099db704a7", "jids": [ "admin@test-domain.com" ] } 2021-04-26 23:05:28 | from localhost for action subscribe-node got result code 200 and payload { "Note": "Operation successful" } |
unsubscribeNodes | 1.076s |
2021-04-26 23:05:29 |
2021-04-26 23:05:29 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-04-26 23:05:29 | ------------------------------------ 2021-04-26 23:05:29 | on localhost executing action unsubscribe-node with content type application/json and payload: { "node": "node-2fabe874-2e3b-43e8-a806-0c099db704a7", "jids": [ "admin@test-domain.com" ] } 2021-04-26 23:05:29 | from localhost for action unsubscribe-node got result code 200 and payload { "Note": "Operation successful" } |