Test duration : 8.778s
Passed Tests | ||
---|---|---|
tigase.tests.pubsub.TestRestApiUsingJSON | ||
configureNodes | 1.126s |
2022-09-07 23:03:28 |
2022-09-07 23:03:28 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-09-07 23:03:28 | ------------------------------------ 2022-09-07 23:03:28 | [Mutex] waiting for: [configured:node:node-8336451b-3402-4caf-8ec0-1e4563247e3e:node-941bff8f-aa42-4baa-8b47-0b9e1f6b7264] 2022-09-07 23:03:29 | [Mutex] received everything. 2022-09-07 23:03:29 | [Mutex] isItemNotified: configured:node:node-8336451b-3402-4caf-8ec0-1e4563247e3e:node-941bff8f-aa42-4baa-8b47-0b9e1f6b7264 :: true 2022-09-07 23:03:30 | [Mutex] waiting for: [received:nodes:d8114611-0874-4fdb-bfd3-42bad30fa742:localhost] 2022-09-07 23:03:30 | [Mutex] received everything. 2022-09-07 23:03:30 | [Mutex] isItemNotified: received:node:d8114611-0874-4fdb-bfd3-42bad30fa742:localhost:node-8336451b-3402-4caf-8ec0-1e4563247e3e:Node 8336451b-3402-4caf-8ec0-1e4563247e3e :: true 2022-09-07 23:03:30 | [Mutex] waiting for: [received:nodes:f1155a7d-fc66-41c0-942d-c286a336bbe1:localhost] 2022-09-07 23:03:30 | [Mutex] received everything. 2022-09-07 23:03:30 | [Mutex] isItemNotified: received:node:f1155a7d-fc66-41c0-942d-c286a336bbe1:localhost:node-8336451b-3402-4caf-8ec0-1e4563247e3e:Node 8336451b-3402-4caf-8ec0-1e4563247e3e :: false |
createNodes | 1.705s |
2022-09-07 23:03:26 |
2022-09-07 23:03:26 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-09-07 23:03:26 | ------------------------------------ 2022-09-07 23:03:26 | on localhost executing action create-node with content type application/json and payload: { "owner": "admin@test-domain.com", "pubsub#node_type": "leaf", "node": "node-8336451b-3402-4caf-8ec0-1e4563247e3e", "pubsub#title": "Node 8336451b-3402-4caf-8ec0-1e4563247e3e" } 2022-09-07 23:03:26 | from localhost for action create-node got result code 200 and payload { "Note": "Operation successful" } 2022-09-07 23:03:27 | [Mutex] waiting for: [received:nodes:65088226-c909-450b-817e-1ef1612ee321:localhost] 2022-09-07 23:03:27 | [Mutex] received everything. 2022-09-07 23:03:27 | [Mutex] isItemNotified: received:node:65088226-c909-450b-817e-1ef1612ee321:localhost:node-8336451b-3402-4caf-8ec0-1e4563247e3e:Node 8336451b-3402-4caf-8ec0-1e4563247e3e :: true |
createSubnodes | 1.021s |
2022-09-07 23:03:27 |
2022-09-07 23:03:27 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-09-07 23:03:27 | ------------------------------------ 2022-09-07 23:03:27 | on localhost executing action create-node with content type application/json and payload: { "owner": "admin@test-domain.com", "pubsub#node_type": "collection", "node": "node-941bff8f-aa42-4baa-8b47-0b9e1f6b7264", "pubsub#title": "Node 941bff8f-aa42-4baa-8b47-0b9e1f6b7264" } 2022-09-07 23:03:27 | from localhost for action create-node got result code 200 and payload { "Note": "Operation successful" } 2022-09-07 23:03:28 | [Mutex] waiting for: [received:nodes:8526d942-a63e-4baf-b3ff-e5a5c9c1e804:localhost] 2022-09-07 23:03:28 | [Mutex] received everything. 2022-09-07 23:03:28 | [Mutex] isItemNotified: received:node:8526d942-a63e-4baf-b3ff-e5a5c9c1e804:localhost:node-941bff8f-aa42-4baa-8b47-0b9e1f6b7264:Node 941bff8f-aa42-4baa-8b47-0b9e1f6b7264 :: true |
deleteNodes | 1.022s |
2022-09-07 23:03:33 |
2022-09-07 23:03:33 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-09-07 23:03:33 | ------------------------------------ 2022-09-07 23:03:33 | on localhost executing action delete-node with content type application/json and payload: { "node": "node-941bff8f-aa42-4baa-8b47-0b9e1f6b7264" } 2022-09-07 23:03:33 | from localhost for action delete-node got result code 200 and payload { "Note": "Operation successful" } 2022-09-07 23:03:34 | [Mutex] waiting for: [received:nodes:be79f481-9368-4058-9aa5-72e82a7685cf:localhost] 2022-09-07 23:03:34 | [Mutex] received everything. 2022-09-07 23:03:34 | [Mutex] isItemNotified: received:node:be79f481-9368-4058-9aa5-72e82a7685cf:localhost:node-941bff8f-aa42-4baa-8b47-0b9e1f6b7264:Node 941bff8f-aa42-4baa-8b47-0b9e1f6b7264 :: false |
deleteSubnodes | 1.026s |
2022-09-07 23:03:32 |
2022-09-07 23:03:32 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-09-07 23:03:32 | ------------------------------------ 2022-09-07 23:03:32 | on localhost executing action delete-node with content type application/json and payload: { "node": "node-8336451b-3402-4caf-8ec0-1e4563247e3e" } 2022-09-07 23:03:32 | from localhost for action delete-node got result code 200 and payload { "Note": "Operation successful" } 2022-09-07 23:03:33 | [Mutex] waiting for: [received:nodes:f3d11e97-b724-4585-9cdd-a54c3d4653b2:localhost] 2022-09-07 23:03:33 | [Mutex] received everything. 2022-09-07 23:03:33 | [Mutex] isItemNotified: received:node:f3d11e97-b724-4585-9cdd-a54c3d4653b2:localhost:node-8336451b-3402-4caf-8ec0-1e4563247e3e:Node 8336451b-3402-4caf-8ec0-1e4563247e3e :: false 2022-09-07 23:03:33 | [Mutex] waiting for: [received:nodes:311a2fa8-0e71-473f-8eee-76db70f9d28c:localhost] 2022-09-07 23:03:33 | [Mutex] received everything. 2022-09-07 23:03:33 | [Mutex] isItemNotified: received:node:311a2fa8-0e71-473f-8eee-76db70f9d28c:localhost:node-8336451b-3402-4caf-8ec0-1e4563247e3e:Node 8336451b-3402-4caf-8ec0-1e4563247e3e :: false |
publishItemsToNodes | 0.059s |
2022-09-07 23:03:31 |
2022-09-07 23:03:31 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-09-07 23:03:31 | ------------------------------------ 2022-09-07 23:03:31 | on localhost executing action publish-item with content type application/json and payload: { "node": "node-8336451b-3402-4caf-8ec0-1e4563247e3e", "entry": "<test>item-55316a86-3f18-47a5-826c-b87aaf779407</test>", "item-id": "item-55316a86-3f18-47a5-826c-b87aaf779407" } 2022-09-07 23:03:31 | from localhost for action publish-item got result code 200 and payload { "Note": "Operation successful", "item-id": "item-55316a86-3f18-47a5-826c-b87aaf779407" } 2022-09-07 23:03:31 | [Mutex] waiting for: [published:item:notifieditem-55316a86-3f18-47a5-826c-b87aaf779407:admin@test-domain.com] 2022-09-07 23:03:31 | [Mutex] received everything. 2022-09-07 23:03:31 | [Mutex] isItemNotified: published:item:notifieditem-55316a86-3f18-47a5-826c-b87aaf779407:admin@test-domain.com :: true |
retractItemsFromNodes | 0.063s |
2022-09-07 23:03:31 |
2022-09-07 23:03:31 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-09-07 23:03:31 | ------------------------------------ 2022-09-07 23:03:31 | on localhost executing action delete-item with content type application/json and payload: { "node": "node-8336451b-3402-4caf-8ec0-1e4563247e3e", "item-id": "item-55316a86-3f18-47a5-826c-b87aaf779407" } 2022-09-07 23:03:31 | from localhost for action delete-item got result code 200 and payload { "Note": "Operation successful", "item-id": "item-55316a86-3f18-47a5-826c-b87aaf779407" } 2022-09-07 23:03:31 | [Mutex] received everything. 2022-09-07 23:03:31 | [Mutex] isItemNotified: retracted:item:notifieditem-55316a86-3f18-47a5-826c-b87aaf779407:admin@test-domain.com :: true |
retrieveItemsFromNodes | 0.022s |
2022-09-07 23:03:31 |
2022-09-07 23:03:31 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-09-07 23:03:31 | ------------------------------------ 2022-09-07 23:03:31 | on localhost executing action retrieve-item with content type application/json and payload: { "node": "node-8336451b-3402-4caf-8ec0-1e4563247e3e", "item-id": "item-55316a86-3f18-47a5-826c-b87aaf779407" } 2022-09-07 23:03:31 | from localhost for action retrieve-item got result code 200 and payload { "title": "Retrive PubSub node item", "node": "node-8336451b-3402-4caf-8ec0-1e4563247e3e", "item-id": "item-55316a86-3f18-47a5-826c-b87aaf779407", "item": [ "<item id=\"item-55316a86-3f18-47a5-826c-b87aaf779407\"><test>item-55316a86-3f18-47a5-826c-b87aaf779407</test></item>" ] } 2022-09-07 23:03:31 | [Mutex] notify: [retrieved:item:item-55316a86-3f18-47a5-826c-b87aaf779407:payload-matches:true:localhost] 2022-09-07 23:03:31 | [Mutex] received everything. 2022-09-07 23:03:31 | [Mutex] isItemNotified: retrieved:item:item-55316a86-3f18-47a5-826c-b87aaf779407:payload-matches:true:localhost :: true |
retrieveUserSubscriptions | 0.073s |
2022-09-07 23:03:31 |
2022-09-07 23:03:31 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-09-07 23:03:31 | ------------------------------------ 2022-09-07 23:03:31 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload: { "jid": "admin@test-domain.com" } 2022-09-07 23:03:31 | from localhost for action retrieve-user-subscriptions got result code 200 and payload { "nodes": [ "test", "node-8336451b-3402-4caf-8ec0-1e4563247e3e", "node-941bff8f-aa42-4baa-8b47-0b9e1f6b7264" ] } |
retrieveUserSubscriptionsWithRegex | 0.047s |
2022-09-07 23:03:31 |
2022-09-07 23:03:31 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-09-07 23:03:31 | ------------------------------------ 2022-09-07 23:03:31 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload: { "jid": "admin@test-domain.com", "node-pattern": "(?!node-8336451b-3402-4caf-8ec0-1e4563247e3e)" } 2022-09-07 23:03:31 | from localhost for action retrieve-user-subscriptions got result code 200 and payload { "nodes": [ ] } |
subscribeNodes | 1.013s |
2022-09-07 23:03:30 |
2022-09-07 23:03:30 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-09-07 23:03:30 | ------------------------------------ 2022-09-07 23:03:30 | on localhost executing action subscribe-node with content type application/json and payload: { "node": "node-8336451b-3402-4caf-8ec0-1e4563247e3e", "jids": [ "admin@test-domain.com" ] } 2022-09-07 23:03:30 | from localhost for action subscribe-node got result code 200 and payload { "Note": "Operation successful" } |
unsubscribeNodes | 1.071s |
2022-09-07 23:03:31 |
2022-09-07 23:03:31 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-09-07 23:03:31 | ------------------------------------ 2022-09-07 23:03:31 | on localhost executing action unsubscribe-node with content type application/json and payload: { "node": "node-8336451b-3402-4caf-8ec0-1e4563247e3e", "jids": [ "admin@test-domain.com" ] } 2022-09-07 23:03:31 | from localhost for action unsubscribe-node got result code 200 and payload { "Note": "Operation successful" } |