Test duration : 8.634s
Passed Tests | ||
---|---|---|
tigase.tests.pubsub.TestRestApiUsingJSON | ||
configureNodes | 1.093s |
2022-05-29 22:37:57 |
2022-05-29 22:37:57 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-05-29 22:37:57 | ------------------------------------ 2022-05-29 22:37:57 | [Mutex] waiting for: [configured:node:node-cf5b918c-b52f-422f-ae25-60cc77c4122a:node-89c688de-c3ce-4f87-b06c-275c7943902a] 2022-05-29 22:37:57 | [Mutex] received everything. 2022-05-29 22:37:57 | [Mutex] isItemNotified: configured:node:node-cf5b918c-b52f-422f-ae25-60cc77c4122a:node-89c688de-c3ce-4f87-b06c-275c7943902a :: true 2022-05-29 22:37:58 | [Mutex] waiting for: [received:nodes:6230223c-0ef7-435c-984c-056d3912be1d:localhost] 2022-05-29 22:37:58 | [Mutex] received everything. 2022-05-29 22:37:58 | [Mutex] isItemNotified: received:node:6230223c-0ef7-435c-984c-056d3912be1d:localhost:node-cf5b918c-b52f-422f-ae25-60cc77c4122a:Node cf5b918c-b52f-422f-ae25-60cc77c4122a :: true 2022-05-29 22:37:58 | [Mutex] waiting for: [received:nodes:750600ff-705c-4e67-a2dd-f65b856ed718:localhost] 2022-05-29 22:37:58 | [Mutex] received everything. 2022-05-29 22:37:58 | [Mutex] isItemNotified: received:node:750600ff-705c-4e67-a2dd-f65b856ed718:localhost:node-cf5b918c-b52f-422f-ae25-60cc77c4122a:Node cf5b918c-b52f-422f-ae25-60cc77c4122a :: false |
createNodes | 1.590s |
2022-05-29 22:37:54 |
2022-05-29 22:37:54 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-05-29 22:37:54 | ------------------------------------ 2022-05-29 22:37:54 | on localhost executing action create-node with content type application/json and payload: { "owner": "admin@test-domain.com", "pubsub#node_type": "leaf", "node": "node-cf5b918c-b52f-422f-ae25-60cc77c4122a", "pubsub#title": "Node cf5b918c-b52f-422f-ae25-60cc77c4122a" } 2022-05-29 22:37:54 | from localhost for action create-node got result code 200 and payload { "Note": "Operation successful" } 2022-05-29 22:37:56 | [Mutex] waiting for: [received:nodes:16da342c-2d5f-4faa-94c0-bc2f6135d2f8:localhost] 2022-05-29 22:37:56 | [Mutex] received everything. 2022-05-29 22:37:56 | [Mutex] isItemNotified: received:node:16da342c-2d5f-4faa-94c0-bc2f6135d2f8:localhost:node-cf5b918c-b52f-422f-ae25-60cc77c4122a:Node cf5b918c-b52f-422f-ae25-60cc77c4122a :: true |
createSubnodes | 1.030s |
2022-05-29 22:37:56 |
2022-05-29 22:37:56 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-05-29 22:37:56 | ------------------------------------ 2022-05-29 22:37:56 | on localhost executing action create-node with content type application/json and payload: { "owner": "admin@test-domain.com", "pubsub#node_type": "collection", "node": "node-89c688de-c3ce-4f87-b06c-275c7943902a", "pubsub#title": "Node 89c688de-c3ce-4f87-b06c-275c7943902a" } 2022-05-29 22:37:56 | from localhost for action create-node got result code 200 and payload { "Note": "Operation successful" } 2022-05-29 22:37:57 | [Mutex] waiting for: [received:nodes:709d6c25-99b8-4889-ba3c-845258d9804b:localhost] 2022-05-29 22:37:57 | [Mutex] received everything. 2022-05-29 22:37:57 | [Mutex] isItemNotified: received:node:709d6c25-99b8-4889-ba3c-845258d9804b:localhost:node-89c688de-c3ce-4f87-b06c-275c7943902a:Node 89c688de-c3ce-4f87-b06c-275c7943902a :: true |
deleteNodes | 1.024s |
2022-05-29 22:38:01 |
2022-05-29 22:38:01 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-05-29 22:38:01 | ------------------------------------ 2022-05-29 22:38:01 | on localhost executing action delete-node with content type application/json and payload: { "node": "node-89c688de-c3ce-4f87-b06c-275c7943902a" } 2022-05-29 22:38:01 | from localhost for action delete-node got result code 200 and payload { "Note": "Operation successful" } 2022-05-29 22:38:02 | [Mutex] waiting for: [received:nodes:9abb8e11-eee4-4cb2-9999-7f7d73d7a196:localhost] 2022-05-29 22:38:02 | [Mutex] waiting for: [received:nodes:9abb8e11-eee4-4cb2-9999-7f7d73d7a196:localhost] 2022-05-29 22:38:02 | [Mutex] waiting for: [received:nodes:9abb8e11-eee4-4cb2-9999-7f7d73d7a196:localhost] 2022-05-29 22:38:02 | [Mutex] received everything. 2022-05-29 22:38:02 | [Mutex] isItemNotified: received:node:9abb8e11-eee4-4cb2-9999-7f7d73d7a196:localhost:node-89c688de-c3ce-4f87-b06c-275c7943902a:Node 89c688de-c3ce-4f87-b06c-275c7943902a :: false |
deleteSubnodes | 1.028s |
2022-05-29 22:38:00 |
2022-05-29 22:38:00 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-05-29 22:38:00 | ------------------------------------ 2022-05-29 22:38:00 | on localhost executing action delete-node with content type application/json and payload: { "node": "node-cf5b918c-b52f-422f-ae25-60cc77c4122a" } 2022-05-29 22:38:00 | from localhost for action delete-node got result code 200 and payload { "Note": "Operation successful" } 2022-05-29 22:38:01 | [Mutex] waiting for: [received:nodes:95366308-915f-4c0b-bc8d-ab57dcab97ae:localhost] 2022-05-29 22:38:01 | [Mutex] received everything. 2022-05-29 22:38:01 | [Mutex] isItemNotified: received:node:95366308-915f-4c0b-bc8d-ab57dcab97ae:localhost:node-cf5b918c-b52f-422f-ae25-60cc77c4122a:Node cf5b918c-b52f-422f-ae25-60cc77c4122a :: false 2022-05-29 22:38:01 | [Mutex] waiting for: [received:nodes:4b0c95e1-0f59-460f-9481-754239f393b9:localhost] 2022-05-29 22:38:01 | [Mutex] received everything. 2022-05-29 22:38:01 | [Mutex] isItemNotified: received:node:4b0c95e1-0f59-460f-9481-754239f393b9:localhost:node-cf5b918c-b52f-422f-ae25-60cc77c4122a:Node cf5b918c-b52f-422f-ae25-60cc77c4122a :: false |
publishItemsToNodes | 0.101s |
2022-05-29 22:37:59 |
2022-05-29 22:37:59 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-05-29 22:37:59 | ------------------------------------ 2022-05-29 22:37:59 | on localhost executing action publish-item with content type application/json and payload: { "node": "node-cf5b918c-b52f-422f-ae25-60cc77c4122a", "entry": "<test>item-2acf560a-763f-4353-ae22-44e268b3a346</test>", "item-id": "item-2acf560a-763f-4353-ae22-44e268b3a346" } 2022-05-29 22:37:59 | from localhost for action publish-item got result code 200 and payload { "Note": "Operation successful", "item-id": "item-2acf560a-763f-4353-ae22-44e268b3a346" } 2022-05-29 22:37:59 | [Mutex] waiting for: [published:item:notifieditem-2acf560a-763f-4353-ae22-44e268b3a346:admin@test-domain.com] 2022-05-29 22:37:59 | [Mutex] received everything. 2022-05-29 22:37:59 | [Mutex] isItemNotified: published:item:notifieditem-2acf560a-763f-4353-ae22-44e268b3a346:admin@test-domain.com :: true |
retractItemsFromNodes | 0.051s |
2022-05-29 22:37:59 |
2022-05-29 22:37:59 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-05-29 22:37:59 | ------------------------------------ 2022-05-29 22:37:59 | on localhost executing action delete-item with content type application/json and payload: { "node": "node-cf5b918c-b52f-422f-ae25-60cc77c4122a", "item-id": "item-2acf560a-763f-4353-ae22-44e268b3a346" } 2022-05-29 22:37:59 | from localhost for action delete-item got result code 200 and payload { "Note": "Operation successful", "item-id": "item-2acf560a-763f-4353-ae22-44e268b3a346" } 2022-05-29 22:37:59 | [Mutex] received everything. 2022-05-29 22:37:59 | [Mutex] isItemNotified: retracted:item:notifieditem-2acf560a-763f-4353-ae22-44e268b3a346:admin@test-domain.com :: true |
retrieveItemsFromNodes | 0.016s |
2022-05-29 22:37:59 |
2022-05-29 22:37:59 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-05-29 22:37:59 | ------------------------------------ 2022-05-29 22:37:59 | on localhost executing action retrieve-item with content type application/json and payload: { "node": "node-cf5b918c-b52f-422f-ae25-60cc77c4122a", "item-id": "item-2acf560a-763f-4353-ae22-44e268b3a346" } 2022-05-29 22:37:59 | from localhost for action retrieve-item got result code 200 and payload { "title": "Retrive PubSub node item", "node": "node-cf5b918c-b52f-422f-ae25-60cc77c4122a", "item-id": "item-2acf560a-763f-4353-ae22-44e268b3a346", "item": [ "<item id=\"item-2acf560a-763f-4353-ae22-44e268b3a346\"><test>item-2acf560a-763f-4353-ae22-44e268b3a346</test></item>" ] } 2022-05-29 22:37:59 | [Mutex] notify: [retrieved:item:item-2acf560a-763f-4353-ae22-44e268b3a346:payload-matches:true:localhost] 2022-05-29 22:37:59 | [Mutex] received everything. 2022-05-29 22:37:59 | [Mutex] isItemNotified: retrieved:item:item-2acf560a-763f-4353-ae22-44e268b3a346:payload-matches:true:localhost :: true |
retrieveUserSubscriptions | 0.061s |
2022-05-29 22:37:59 |
2022-05-29 22:37:59 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-05-29 22:37:59 | ------------------------------------ 2022-05-29 22:37:59 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload: { "jid": "admin@test-domain.com" } 2022-05-29 22:37:59 | from localhost for action retrieve-user-subscriptions got result code 200 and payload { "nodes": [ "node-cf5b918c-b52f-422f-ae25-60cc77c4122a", "test", "node-89c688de-c3ce-4f87-b06c-275c7943902a" ] } |
retrieveUserSubscriptionsWithRegex | 0.056s |
2022-05-29 22:37:59 |
2022-05-29 22:37:59 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-05-29 22:37:59 | ------------------------------------ 2022-05-29 22:37:59 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload: { "jid": "admin@test-domain.com", "node-pattern": "(?!node-cf5b918c-b52f-422f-ae25-60cc77c4122a)" } 2022-05-29 22:37:59 | from localhost for action retrieve-user-subscriptions got result code 200 and payload { "nodes": [ ] } |
subscribeNodes | 1.010s |
2022-05-29 22:37:58 |
2022-05-29 22:37:58 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-05-29 22:37:58 | ------------------------------------ 2022-05-29 22:37:58 | on localhost executing action subscribe-node with content type application/json and payload: { "node": "node-cf5b918c-b52f-422f-ae25-60cc77c4122a", "jids": [ "admin@test-domain.com" ] } 2022-05-29 22:37:58 | from localhost for action subscribe-node got result code 200 and payload { "Note": "Operation successful" } |
unsubscribeNodes | 1.051s |
2022-05-29 22:37:59 |
2022-05-29 22:37:59 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-05-29 22:37:59 | ------------------------------------ 2022-05-29 22:37:59 | on localhost executing action unsubscribe-node with content type application/json and payload: { "node": "node-cf5b918c-b52f-422f-ae25-60cc77c4122a", "jids": [ "admin@test-domain.com" ] } 2022-05-29 22:37:59 | from localhost for action unsubscribe-node got result code 200 and payload { "Note": "Operation successful" } |