Test duration : 8.587s
Passed Tests | ||
---|---|---|
tigase.tests.pubsub.TestRestApiUsingJSON | ||
configureNodes | 1.126s |
2022-10-02 22:36:41 |
2022-10-02 22:36:41 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-10-02 22:36:41 | ------------------------------------ 2022-10-02 22:36:41 | [Mutex] waiting for: [configured:node:node-4e0cce9c-ddea-4519-865e-0d1fba9b9c4f:node-3336718a-b625-470e-aee8-6a5cc05e2913] 2022-10-02 22:36:41 | [Mutex] received everything. 2022-10-02 22:36:41 | [Mutex] isItemNotified: configured:node:node-4e0cce9c-ddea-4519-865e-0d1fba9b9c4f:node-3336718a-b625-470e-aee8-6a5cc05e2913 :: true 2022-10-02 22:36:42 | [Mutex] waiting for: [received:nodes:6163f7de-5e57-4a92-90d9-15c66c690bf4:localhost] 2022-10-02 22:36:42 | [Mutex] received everything. 2022-10-02 22:36:42 | [Mutex] isItemNotified: received:node:6163f7de-5e57-4a92-90d9-15c66c690bf4:localhost:node-4e0cce9c-ddea-4519-865e-0d1fba9b9c4f:Node 4e0cce9c-ddea-4519-865e-0d1fba9b9c4f :: true 2022-10-02 22:36:42 | [Mutex] waiting for: [received:nodes:079bb7e8-43ba-4ff7-82ce-41947c92c65c:localhost] 2022-10-02 22:36:42 | [Mutex] received everything. 2022-10-02 22:36:42 | [Mutex] isItemNotified: received:node:079bb7e8-43ba-4ff7-82ce-41947c92c65c:localhost:node-4e0cce9c-ddea-4519-865e-0d1fba9b9c4f:Node 4e0cce9c-ddea-4519-865e-0d1fba9b9c4f :: false |
createNodes | 1.545s |
2022-10-02 22:36:38 |
2022-10-02 22:36:38 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-10-02 22:36:38 | ------------------------------------ 2022-10-02 22:36:39 | on localhost executing action create-node with content type application/json and payload: { "owner": "admin@test-domain.com", "pubsub#node_type": "leaf", "node": "node-4e0cce9c-ddea-4519-865e-0d1fba9b9c4f", "pubsub#title": "Node 4e0cce9c-ddea-4519-865e-0d1fba9b9c4f" } 2022-10-02 22:36:39 | from localhost for action create-node got result code 200 and payload { "Note": "Operation successful" } 2022-10-02 22:36:40 | [Mutex] waiting for: [received:nodes:c2122745-9c94-42f1-8a4f-88337dc1b706:localhost] 2022-10-02 22:36:40 | [Mutex] received everything. 2022-10-02 22:36:40 | [Mutex] isItemNotified: received:node:c2122745-9c94-42f1-8a4f-88337dc1b706:localhost:node-4e0cce9c-ddea-4519-865e-0d1fba9b9c4f:Node 4e0cce9c-ddea-4519-865e-0d1fba9b9c4f :: true |
createSubnodes | 1.022s |
2022-10-02 22:36:40 |
2022-10-02 22:36:40 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-10-02 22:36:40 | ------------------------------------ 2022-10-02 22:36:40 | on localhost executing action create-node with content type application/json and payload: { "owner": "admin@test-domain.com", "pubsub#node_type": "collection", "node": "node-3336718a-b625-470e-aee8-6a5cc05e2913", "pubsub#title": "Node 3336718a-b625-470e-aee8-6a5cc05e2913" } 2022-10-02 22:36:40 | from localhost for action create-node got result code 200 and payload { "Note": "Operation successful" } 2022-10-02 22:36:41 | [Mutex] waiting for: [received:nodes:e7c2071e-e6ab-4bf2-99f7-5a6391b01a77:localhost] 2022-10-02 22:36:41 | [Mutex] waiting for: [received:nodes:e7c2071e-e6ab-4bf2-99f7-5a6391b01a77:localhost] 2022-10-02 22:36:41 | [Mutex] received everything. 2022-10-02 22:36:41 | [Mutex] isItemNotified: received:node:e7c2071e-e6ab-4bf2-99f7-5a6391b01a77:localhost:node-3336718a-b625-470e-aee8-6a5cc05e2913:Node 3336718a-b625-470e-aee8-6a5cc05e2913 :: true |
deleteNodes | 1.017s |
2022-10-02 22:36:45 |
2022-10-02 22:36:45 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-10-02 22:36:45 | ------------------------------------ 2022-10-02 22:36:45 | on localhost executing action delete-node with content type application/json and payload: { "node": "node-3336718a-b625-470e-aee8-6a5cc05e2913" } 2022-10-02 22:36:45 | from localhost for action delete-node got result code 200 and payload { "Note": "Operation successful" } 2022-10-02 22:36:46 | [Mutex] waiting for: [received:nodes:b060158a-126c-4a3e-9de9-2365f7415fc6:localhost] 2022-10-02 22:36:46 | [Mutex] waiting for: [received:nodes:b060158a-126c-4a3e-9de9-2365f7415fc6:localhost] 2022-10-02 22:36:46 | [Mutex] received everything. 2022-10-02 22:36:46 | [Mutex] isItemNotified: received:node:b060158a-126c-4a3e-9de9-2365f7415fc6:localhost:node-3336718a-b625-470e-aee8-6a5cc05e2913:Node 3336718a-b625-470e-aee8-6a5cc05e2913 :: false |
deleteSubnodes | 1.023s |
2022-10-02 22:36:44 |
2022-10-02 22:36:44 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-10-02 22:36:44 | ------------------------------------ 2022-10-02 22:36:44 | on localhost executing action delete-node with content type application/json and payload: { "node": "node-4e0cce9c-ddea-4519-865e-0d1fba9b9c4f" } 2022-10-02 22:36:44 | from localhost for action delete-node got result code 200 and payload { "Note": "Operation successful" } 2022-10-02 22:36:45 | [Mutex] waiting for: [received:nodes:462b8c73-ec7c-4d79-a4ae-0ca70874a6b9:localhost] 2022-10-02 22:36:45 | [Mutex] waiting for: [received:nodes:462b8c73-ec7c-4d79-a4ae-0ca70874a6b9:localhost] 2022-10-02 22:36:45 | [Mutex] received everything. 2022-10-02 22:36:45 | [Mutex] isItemNotified: received:node:462b8c73-ec7c-4d79-a4ae-0ca70874a6b9:localhost:node-4e0cce9c-ddea-4519-865e-0d1fba9b9c4f:Node 4e0cce9c-ddea-4519-865e-0d1fba9b9c4f :: false 2022-10-02 22:36:45 | [Mutex] waiting for: [received:nodes:b1e589ad-38be-49a9-a296-1c648dde8364:localhost] 2022-10-02 22:36:45 | [Mutex] received everything. 2022-10-02 22:36:45 | [Mutex] isItemNotified: received:node:b1e589ad-38be-49a9-a296-1c648dde8364:localhost:node-4e0cce9c-ddea-4519-865e-0d1fba9b9c4f:Node 4e0cce9c-ddea-4519-865e-0d1fba9b9c4f :: false |
publishItemsToNodes | 0.043s |
2022-10-02 22:36:43 |
2022-10-02 22:36:43 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-10-02 22:36:43 | ------------------------------------ 2022-10-02 22:36:43 | on localhost executing action publish-item with content type application/json and payload: { "node": "node-4e0cce9c-ddea-4519-865e-0d1fba9b9c4f", "entry": "<test>item-0ce1f41e-78b2-46d0-b117-d4c07696c782</test>", "item-id": "item-0ce1f41e-78b2-46d0-b117-d4c07696c782" } 2022-10-02 22:36:43 | from localhost for action publish-item got result code 200 and payload { "Note": "Operation successful", "item-id": "item-0ce1f41e-78b2-46d0-b117-d4c07696c782" } 2022-10-02 22:36:43 | [Mutex] received everything. 2022-10-02 22:36:43 | [Mutex] isItemNotified: published:item:notifieditem-0ce1f41e-78b2-46d0-b117-d4c07696c782:admin@test-domain.com :: true |
retractItemsFromNodes | 0.056s |
2022-10-02 22:36:43 |
2022-10-02 22:36:43 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-10-02 22:36:43 | ------------------------------------ 2022-10-02 22:36:43 | on localhost executing action delete-item with content type application/json and payload: { "node": "node-4e0cce9c-ddea-4519-865e-0d1fba9b9c4f", "item-id": "item-0ce1f41e-78b2-46d0-b117-d4c07696c782" } 2022-10-02 22:36:43 | from localhost for action delete-item got result code 200 and payload { "Note": "Operation successful", "item-id": "item-0ce1f41e-78b2-46d0-b117-d4c07696c782" } 2022-10-02 22:36:43 | [Mutex] received everything. 2022-10-02 22:36:43 | [Mutex] isItemNotified: retracted:item:notifieditem-0ce1f41e-78b2-46d0-b117-d4c07696c782:admin@test-domain.com :: true |
retrieveItemsFromNodes | 0.063s |
2022-10-02 22:36:43 |
2022-10-02 22:36:43 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-10-02 22:36:43 | ------------------------------------ 2022-10-02 22:36:43 | on localhost executing action retrieve-item with content type application/json and payload: { "node": "node-4e0cce9c-ddea-4519-865e-0d1fba9b9c4f", "item-id": "item-0ce1f41e-78b2-46d0-b117-d4c07696c782" } 2022-10-02 22:36:43 | from localhost for action retrieve-item got result code 200 and payload { "title": "Retrive PubSub node item", "node": "node-4e0cce9c-ddea-4519-865e-0d1fba9b9c4f", "item-id": "item-0ce1f41e-78b2-46d0-b117-d4c07696c782", "item": [ "<item id=\"item-0ce1f41e-78b2-46d0-b117-d4c07696c782\"><test>item-0ce1f41e-78b2-46d0-b117-d4c07696c782</test></item>" ] } 2022-10-02 22:36:43 | [Mutex] notify: [retrieved:item:item-0ce1f41e-78b2-46d0-b117-d4c07696c782:payload-matches:true:localhost] 2022-10-02 22:36:43 | [Mutex] received everything. 2022-10-02 22:36:43 | [Mutex] isItemNotified: retrieved:item:item-0ce1f41e-78b2-46d0-b117-d4c07696c782:payload-matches:true:localhost :: true |
retrieveUserSubscriptions | 0.051s |
2022-10-02 22:36:43 |
2022-10-02 22:36:43 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-10-02 22:36:43 | ------------------------------------ 2022-10-02 22:36:43 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload: { "jid": "admin@test-domain.com" } 2022-10-02 22:36:43 | from localhost for action retrieve-user-subscriptions got result code 200 and payload { "nodes": [ "test", "node-3336718a-b625-470e-aee8-6a5cc05e2913", "node-4e0cce9c-ddea-4519-865e-0d1fba9b9c4f" ] } |
retrieveUserSubscriptionsWithRegex | 0.051s |
2022-10-02 22:36:43 |
2022-10-02 22:36:43 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-10-02 22:36:43 | ------------------------------------ 2022-10-02 22:36:43 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload: { "jid": "admin@test-domain.com", "node-pattern": "(?!node-4e0cce9c-ddea-4519-865e-0d1fba9b9c4f)" } 2022-10-02 22:36:43 | from localhost for action retrieve-user-subscriptions got result code 200 and payload { "nodes": [ ] } |
subscribeNodes | 1.012s |
2022-10-02 22:36:42 |
2022-10-02 22:36:42 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-10-02 22:36:42 | ------------------------------------ 2022-10-02 22:36:42 | on localhost executing action subscribe-node with content type application/json and payload: { "node": "node-4e0cce9c-ddea-4519-865e-0d1fba9b9c4f", "jids": [ "admin@test-domain.com" ] } 2022-10-02 22:36:42 | from localhost for action subscribe-node got result code 200 and payload { "Note": "Operation successful" } |
unsubscribeNodes | 1.056s |
2022-10-02 22:36:43 |
2022-10-02 22:36:43 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-10-02 22:36:43 | ------------------------------------ 2022-10-02 22:36:43 | on localhost executing action unsubscribe-node with content type application/json and payload: { "node": "node-4e0cce9c-ddea-4519-865e-0d1fba9b9c4f", "jids": [ "admin@test-domain.com" ] } 2022-10-02 22:36:43 | from localhost for action unsubscribe-node got result code 200 and payload { "Note": "Operation successful" } |