Test duration : 8.626s
Passed Tests | ||
---|---|---|
tigase.tests.pubsub.TestRestApiUsingJSON | ||
configureNodes | 1.145s |
2022-10-06 22:35:57 |
2022-10-06 22:35:57 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-10-06 22:35:57 | ------------------------------------ 2022-10-06 22:35:57 | [Mutex] waiting for: [configured:node:node-7c5f2e52-7888-488b-bb44-4d4c118753ef:node-14feb108-af33-4bc2-81c2-ac4d7b3b7e39] 2022-10-06 22:35:57 | [Mutex] received everything. 2022-10-06 22:35:57 | [Mutex] isItemNotified: configured:node:node-7c5f2e52-7888-488b-bb44-4d4c118753ef:node-14feb108-af33-4bc2-81c2-ac4d7b3b7e39 :: true 2022-10-06 22:35:58 | [Mutex] waiting for: [received:nodes:0090021a-c275-4cf3-90a7-58071508ec88:localhost] 2022-10-06 22:35:58 | [Mutex] received everything. 2022-10-06 22:35:58 | [Mutex] isItemNotified: received:node:0090021a-c275-4cf3-90a7-58071508ec88:localhost:node-7c5f2e52-7888-488b-bb44-4d4c118753ef:Node 7c5f2e52-7888-488b-bb44-4d4c118753ef :: true 2022-10-06 22:35:58 | [Mutex] waiting for: [received:nodes:73e45467-24b1-49e5-887c-8250607354b0:localhost] 2022-10-06 22:35:58 | [Mutex] received everything. 2022-10-06 22:35:58 | [Mutex] isItemNotified: received:node:73e45467-24b1-49e5-887c-8250607354b0:localhost:node-7c5f2e52-7888-488b-bb44-4d4c118753ef:Node 7c5f2e52-7888-488b-bb44-4d4c118753ef :: false |
createNodes | 1.540s |
2022-10-06 22:35:55 |
2022-10-06 22:35:55 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-10-06 22:35:55 | ------------------------------------ 2022-10-06 22:35:55 | on localhost executing action create-node with content type application/json and payload: { "owner": "admin@test-domain.com", "pubsub#node_type": "leaf", "node": "node-7c5f2e52-7888-488b-bb44-4d4c118753ef", "pubsub#title": "Node 7c5f2e52-7888-488b-bb44-4d4c118753ef" } 2022-10-06 22:35:55 | from localhost for action create-node got result code 200 and payload { "Note": "Operation successful" } 2022-10-06 22:35:56 | [Mutex] waiting for: [received:nodes:1b4fe2f1-707b-4461-9188-8255a3574753:localhost] 2022-10-06 22:35:56 | [Mutex] waiting for: [received:nodes:1b4fe2f1-707b-4461-9188-8255a3574753:localhost] 2022-10-06 22:35:56 | [Mutex] received everything. 2022-10-06 22:35:56 | [Mutex] isItemNotified: received:node:1b4fe2f1-707b-4461-9188-8255a3574753:localhost:node-7c5f2e52-7888-488b-bb44-4d4c118753ef:Node 7c5f2e52-7888-488b-bb44-4d4c118753ef :: true |
createSubnodes | 1.026s |
2022-10-06 22:35:56 |
2022-10-06 22:35:56 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-10-06 22:35:56 | ------------------------------------ 2022-10-06 22:35: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-14feb108-af33-4bc2-81c2-ac4d7b3b7e39", "pubsub#title": "Node 14feb108-af33-4bc2-81c2-ac4d7b3b7e39" } 2022-10-06 22:35:56 | from localhost for action create-node got result code 200 and payload { "Note": "Operation successful" } 2022-10-06 22:35:57 | [Mutex] waiting for: [received:nodes:4a479890-67f3-4d2a-a12f-07b9f77a9eae:localhost] 2022-10-06 22:35:57 | [Mutex] received everything. 2022-10-06 22:35:57 | [Mutex] isItemNotified: received:node:4a479890-67f3-4d2a-a12f-07b9f77a9eae:localhost:node-14feb108-af33-4bc2-81c2-ac4d7b3b7e39:Node 14feb108-af33-4bc2-81c2-ac4d7b3b7e39 :: true |
deleteNodes | 1.020s |
2022-10-06 22:36:02 |
2022-10-06 22:36:02 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-10-06 22:36:02 | ------------------------------------ 2022-10-06 22:36:02 | on localhost executing action delete-node with content type application/json and payload: { "node": "node-14feb108-af33-4bc2-81c2-ac4d7b3b7e39" } 2022-10-06 22:36:02 | from localhost for action delete-node got result code 200 and payload { "Note": "Operation successful" } 2022-10-06 22:36:03 | [Mutex] waiting for: [received:nodes:b9bc1625-8917-4e00-a927-4a632d01fbfb:localhost] 2022-10-06 22:36:03 | [Mutex] waiting for: [received:nodes:b9bc1625-8917-4e00-a927-4a632d01fbfb:localhost] 2022-10-06 22:36:03 | [Mutex] received everything. 2022-10-06 22:36:03 | [Mutex] isItemNotified: received:node:b9bc1625-8917-4e00-a927-4a632d01fbfb:localhost:node-14feb108-af33-4bc2-81c2-ac4d7b3b7e39:Node 14feb108-af33-4bc2-81c2-ac4d7b3b7e39 :: false |
deleteSubnodes | 1.029s |
2022-10-06 22:36:01 |
2022-10-06 22:36:01 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-10-06 22:36:01 | ------------------------------------ 2022-10-06 22:36:01 | on localhost executing action delete-node with content type application/json and payload: { "node": "node-7c5f2e52-7888-488b-bb44-4d4c118753ef" } 2022-10-06 22:36:01 | from localhost for action delete-node got result code 200 and payload { "Note": "Operation successful" } 2022-10-06 22:36:02 | [Mutex] waiting for: [received:nodes:0136b454-d771-4824-8d75-e831f4dd945d:localhost] 2022-10-06 22:36:02 | [Mutex] received everything. 2022-10-06 22:36:02 | [Mutex] isItemNotified: received:node:0136b454-d771-4824-8d75-e831f4dd945d:localhost:node-7c5f2e52-7888-488b-bb44-4d4c118753ef:Node 7c5f2e52-7888-488b-bb44-4d4c118753ef :: false 2022-10-06 22:36:02 | [Mutex] waiting for: [received:nodes:dc15d7d6-9be9-4c1e-a1e7-9ef63104cadf:localhost] 2022-10-06 22:36:02 | [Mutex] received everything. 2022-10-06 22:36:02 | [Mutex] isItemNotified: received:node:dc15d7d6-9be9-4c1e-a1e7-9ef63104cadf:localhost:node-7c5f2e52-7888-488b-bb44-4d4c118753ef:Node 7c5f2e52-7888-488b-bb44-4d4c118753ef :: false |
publishItemsToNodes | 0.034s |
2022-10-06 22:35:59 |
2022-10-06 22:35:59 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-10-06 22:35:59 | ------------------------------------ 2022-10-06 22:35:59 | on localhost executing action publish-item with content type application/json and payload: { "node": "node-7c5f2e52-7888-488b-bb44-4d4c118753ef", "entry": "<test>item-5388eb68-7063-4ad1-92df-9641981fd54c</test>", "item-id": "item-5388eb68-7063-4ad1-92df-9641981fd54c" } 2022-10-06 22:35:59 | from localhost for action publish-item got result code 200 and payload { "Note": "Operation successful", "item-id": "item-5388eb68-7063-4ad1-92df-9641981fd54c" } 2022-10-06 22:35:59 | [Mutex] waiting for: [published:item:notifieditem-5388eb68-7063-4ad1-92df-9641981fd54c:admin@test-domain.com] 2022-10-06 22:35:59 | [Mutex] received everything. 2022-10-06 22:35:59 | [Mutex] isItemNotified: published:item:notifieditem-5388eb68-7063-4ad1-92df-9641981fd54c:admin@test-domain.com :: true |
retractItemsFromNodes | 0.056s |
2022-10-06 22:36:00 |
2022-10-06 22:36:00 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-10-06 22:36:00 | ------------------------------------ 2022-10-06 22:36:00 | on localhost executing action delete-item with content type application/json and payload: { "node": "node-7c5f2e52-7888-488b-bb44-4d4c118753ef", "item-id": "item-5388eb68-7063-4ad1-92df-9641981fd54c" } 2022-10-06 22:36:00 | from localhost for action delete-item got result code 200 and payload { "Note": "Operation successful", "item-id": "item-5388eb68-7063-4ad1-92df-9641981fd54c" } 2022-10-06 22:36:00 | [Mutex] received everything. 2022-10-06 22:36:00 | [Mutex] isItemNotified: retracted:item:notifieditem-5388eb68-7063-4ad1-92df-9641981fd54c:admin@test-domain.com :: true |
retrieveItemsFromNodes | 0.088s |
2022-10-06 22:35:59 |
2022-10-06 22:35:59 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-10-06 22:35:59 | ------------------------------------ 2022-10-06 22:35:59 | on localhost executing action retrieve-item with content type application/json and payload: { "node": "node-7c5f2e52-7888-488b-bb44-4d4c118753ef", "item-id": "item-5388eb68-7063-4ad1-92df-9641981fd54c" } 2022-10-06 22:35:59 | from localhost for action retrieve-item got result code 200 and payload { "title": "Retrive PubSub node item", "node": "node-7c5f2e52-7888-488b-bb44-4d4c118753ef", "item-id": "item-5388eb68-7063-4ad1-92df-9641981fd54c", "item": [ "<item id=\"item-5388eb68-7063-4ad1-92df-9641981fd54c\"><test>item-5388eb68-7063-4ad1-92df-9641981fd54c</test></item>" ] } 2022-10-06 22:35:59 | [Mutex] notify: [retrieved:item:item-5388eb68-7063-4ad1-92df-9641981fd54c:payload-matches:true:localhost] 2022-10-06 22:35:59 | [Mutex] received everything. 2022-10-06 22:35:59 | [Mutex] isItemNotified: retrieved:item:item-5388eb68-7063-4ad1-92df-9641981fd54c:payload-matches:true:localhost :: true |
retrieveUserSubscriptions | 0.050s |
2022-10-06 22:35:59 |
2022-10-06 22:35:59 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-10-06 22:35:59 | ------------------------------------ 2022-10-06 22:35:59 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload: { "jid": "admin@test-domain.com" } 2022-10-06 22:35:59 | from localhost for action retrieve-user-subscriptions got result code 200 and payload { "nodes": [ "test", "node-7c5f2e52-7888-488b-bb44-4d4c118753ef", "node-14feb108-af33-4bc2-81c2-ac4d7b3b7e39" ] } |
retrieveUserSubscriptionsWithRegex | 0.048s |
2022-10-06 22:35:59 |
2022-10-06 22:35:59 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-10-06 22:35:59 | ------------------------------------ 2022-10-06 22:35:59 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload: { "jid": "admin@test-domain.com", "node-pattern": "(?!node-7c5f2e52-7888-488b-bb44-4d4c118753ef)" } 2022-10-06 22:36:00 | from localhost for action retrieve-user-subscriptions got result code 200 and payload { "nodes": [ ] } |
subscribeNodes | 1.011s |
2022-10-06 22:35:58 |
2022-10-06 22:35:58 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-10-06 22:35:58 | ------------------------------------ 2022-10-06 22:35:58 | on localhost executing action subscribe-node with content type application/json and payload: { "node": "node-7c5f2e52-7888-488b-bb44-4d4c118753ef", "jids": [ "admin@test-domain.com" ] } 2022-10-06 22:35:58 | from localhost for action subscribe-node got result code 200 and payload { "Note": "Operation successful" } |
unsubscribeNodes | 1.056s |
2022-10-06 22:36:00 |
2022-10-06 22:36:00 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-10-06 22:36:00 | ------------------------------------ 2022-10-06 22:36:00 | on localhost executing action unsubscribe-node with content type application/json and payload: { "node": "node-7c5f2e52-7888-488b-bb44-4d4c118753ef", "jids": [ "admin@test-domain.com" ] } 2022-10-06 22:36:00 | from localhost for action unsubscribe-node got result code 200 and payload { "Note": "Operation successful" } |