Test duration : 8.650s
Passed Tests | ||
---|---|---|
tigase.tests.pubsub.TestRestApiUsingJSON | ||
configureNodes | 1.104s |
2022-08-07 22:34:09 |
2022-08-07 22:34:09 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-08-07 22:34:09 | ------------------------------------ 2022-08-07 22:34:09 | [Mutex] waiting for: [configured:node:node-e6f7eb66-291c-44b4-9ac2-245bca2261bf:node-250e9742-d230-4cb5-baeb-05bdf5ac3592] 2022-08-07 22:34:09 | [Mutex] received everything. 2022-08-07 22:34:09 | [Mutex] isItemNotified: configured:node:node-e6f7eb66-291c-44b4-9ac2-245bca2261bf:node-250e9742-d230-4cb5-baeb-05bdf5ac3592 :: true 2022-08-07 22:34:10 | [Mutex] waiting for: [received:nodes:342dc8b6-c826-4941-b6e0-01e77c5d6c4e:localhost] 2022-08-07 22:34:10 | [Mutex] received everything. 2022-08-07 22:34:10 | [Mutex] isItemNotified: received:node:342dc8b6-c826-4941-b6e0-01e77c5d6c4e:localhost:node-e6f7eb66-291c-44b4-9ac2-245bca2261bf:Node e6f7eb66-291c-44b4-9ac2-245bca2261bf :: true 2022-08-07 22:34:10 | [Mutex] waiting for: [received:nodes:f301c364-fd8b-40eb-9e27-42543ae41899:localhost] 2022-08-07 22:34:10 | [Mutex] waiting for: [received:nodes:f301c364-fd8b-40eb-9e27-42543ae41899:localhost] 2022-08-07 22:34:10 | [Mutex] received everything. 2022-08-07 22:34:10 | [Mutex] isItemNotified: received:node:f301c364-fd8b-40eb-9e27-42543ae41899:localhost:node-e6f7eb66-291c-44b4-9ac2-245bca2261bf:Node e6f7eb66-291c-44b4-9ac2-245bca2261bf :: false |
createNodes | 1.541s |
2022-08-07 22:34:06 |
2022-08-07 22:34:06 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-08-07 22:34:06 | ------------------------------------ 2022-08-07 22:34:07 | on localhost executing action create-node with content type application/json and payload: { "owner": "admin@test-domain.com", "pubsub#node_type": "leaf", "node": "node-e6f7eb66-291c-44b4-9ac2-245bca2261bf", "pubsub#title": "Node e6f7eb66-291c-44b4-9ac2-245bca2261bf" } 2022-08-07 22:34:07 | from localhost for action create-node got result code 200 and payload { "Note": "Operation successful" } 2022-08-07 22:34:08 | [Mutex] waiting for: [received:nodes:3c4af1b2-f6c4-4531-9382-c7f6c9296f6a:localhost] 2022-08-07 22:34:08 | [Mutex] received everything. 2022-08-07 22:34:08 | [Mutex] isItemNotified: received:node:3c4af1b2-f6c4-4531-9382-c7f6c9296f6a:localhost:node-e6f7eb66-291c-44b4-9ac2-245bca2261bf:Node e6f7eb66-291c-44b4-9ac2-245bca2261bf :: true |
createSubnodes | 1.022s |
2022-08-07 22:34:08 |
2022-08-07 22:34:08 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-08-07 22:34:08 | ------------------------------------ 2022-08-07 22:34:08 | on localhost executing action create-node with content type application/json and payload: { "owner": "admin@test-domain.com", "pubsub#node_type": "collection", "node": "node-250e9742-d230-4cb5-baeb-05bdf5ac3592", "pubsub#title": "Node 250e9742-d230-4cb5-baeb-05bdf5ac3592" } 2022-08-07 22:34:08 | from localhost for action create-node got result code 200 and payload { "Note": "Operation successful" } 2022-08-07 22:34:09 | [Mutex] waiting for: [received:nodes:ae30fa46-0a93-4d6c-8e01-a87444bf1ed4:localhost] 2022-08-07 22:34:09 | [Mutex] received everything. 2022-08-07 22:34:09 | [Mutex] isItemNotified: received:node:ae30fa46-0a93-4d6c-8e01-a87444bf1ed4:localhost:node-250e9742-d230-4cb5-baeb-05bdf5ac3592:Node 250e9742-d230-4cb5-baeb-05bdf5ac3592 :: true |
deleteNodes | 1.026s |
2022-08-07 22:34:13 |
2022-08-07 22:34:13 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-08-07 22:34:13 | ------------------------------------ 2022-08-07 22:34:13 | on localhost executing action delete-node with content type application/json and payload: { "node": "node-250e9742-d230-4cb5-baeb-05bdf5ac3592" } 2022-08-07 22:34:13 | from localhost for action delete-node got result code 200 and payload { "Note": "Operation successful" } 2022-08-07 22:34:14 | [Mutex] waiting for: [received:nodes:f0dc01e1-eddf-4551-8a52-728ca6b3cece:localhost] 2022-08-07 22:34:14 | [Mutex] waiting for: [received:nodes:f0dc01e1-eddf-4551-8a52-728ca6b3cece:localhost] 2022-08-07 22:34:14 | [Mutex] received everything. 2022-08-07 22:34:14 | [Mutex] isItemNotified: received:node:f0dc01e1-eddf-4551-8a52-728ca6b3cece:localhost:node-250e9742-d230-4cb5-baeb-05bdf5ac3592:Node 250e9742-d230-4cb5-baeb-05bdf5ac3592 :: false |
deleteSubnodes | 1.024s |
2022-08-07 22:34:12 |
2022-08-07 22:34:12 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-08-07 22:34:12 | ------------------------------------ 2022-08-07 22:34:12 | on localhost executing action delete-node with content type application/json and payload: { "node": "node-e6f7eb66-291c-44b4-9ac2-245bca2261bf" } 2022-08-07 22:34:12 | from localhost for action delete-node got result code 200 and payload { "Note": "Operation successful" } 2022-08-07 22:34:13 | [Mutex] waiting for: [received:nodes:c2a4b89c-eb1d-4567-9e0f-bb358944a7e2:localhost] 2022-08-07 22:34:13 | [Mutex] waiting for: [received:nodes:c2a4b89c-eb1d-4567-9e0f-bb358944a7e2:localhost] 2022-08-07 22:34:13 | [Mutex] waiting for: [received:nodes:c2a4b89c-eb1d-4567-9e0f-bb358944a7e2:localhost] 2022-08-07 22:34:13 | [Mutex] received everything. 2022-08-07 22:34:13 | [Mutex] isItemNotified: received:node:c2a4b89c-eb1d-4567-9e0f-bb358944a7e2:localhost:node-e6f7eb66-291c-44b4-9ac2-245bca2261bf:Node e6f7eb66-291c-44b4-9ac2-245bca2261bf :: false 2022-08-07 22:34:13 | [Mutex] waiting for: [received:nodes:26ed4c1c-f32c-4868-8285-b342a2bb03b9:localhost] 2022-08-07 22:34:13 | [Mutex] received everything. 2022-08-07 22:34:13 | [Mutex] isItemNotified: received:node:26ed4c1c-f32c-4868-8285-b342a2bb03b9:localhost:node-e6f7eb66-291c-44b4-9ac2-245bca2261bf:Node e6f7eb66-291c-44b4-9ac2-245bca2261bf :: false |
publishItemsToNodes | 0.046s |
2022-08-07 22:34:11 |
2022-08-07 22:34:11 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-08-07 22:34:11 | ------------------------------------ 2022-08-07 22:34:11 | on localhost executing action publish-item with content type application/json and payload: { "node": "node-e6f7eb66-291c-44b4-9ac2-245bca2261bf", "entry": "<test>item-c56076a8-aa00-45cf-a373-047b983a5daa</test>", "item-id": "item-c56076a8-aa00-45cf-a373-047b983a5daa" } 2022-08-07 22:34:11 | from localhost for action publish-item got result code 200 and payload { "Note": "Operation successful", "item-id": "item-c56076a8-aa00-45cf-a373-047b983a5daa" } 2022-08-07 22:34:11 | [Mutex] waiting for: [published:item:notifieditem-c56076a8-aa00-45cf-a373-047b983a5daa:admin@test-domain.com] 2022-08-07 22:34:11 | [Mutex] received everything. 2022-08-07 22:34:11 | [Mutex] isItemNotified: published:item:notifieditem-c56076a8-aa00-45cf-a373-047b983a5daa:admin@test-domain.com :: true |
retractItemsFromNodes | 0.098s |
2022-08-07 22:34:11 |
2022-08-07 22:34:11 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-08-07 22:34:11 | ------------------------------------ 2022-08-07 22:34:11 | on localhost executing action delete-item with content type application/json and payload: { "node": "node-e6f7eb66-291c-44b4-9ac2-245bca2261bf", "item-id": "item-c56076a8-aa00-45cf-a373-047b983a5daa" } 2022-08-07 22:34:11 | from localhost for action delete-item got result code 200 and payload { "Note": "Operation successful", "item-id": "item-c56076a8-aa00-45cf-a373-047b983a5daa" } 2022-08-07 22:34:11 | [Mutex] waiting for: [retracted:item:notifieditem-c56076a8-aa00-45cf-a373-047b983a5daa:admin@test-domain.com] 2022-08-07 22:34:11 | [Mutex] received everything. 2022-08-07 22:34:11 | [Mutex] isItemNotified: retracted:item:notifieditem-c56076a8-aa00-45cf-a373-047b983a5daa:admin@test-domain.com :: true |
retrieveItemsFromNodes | 0.069s |
2022-08-07 22:34:11 |
2022-08-07 22:34:11 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-08-07 22:34:11 | ------------------------------------ 2022-08-07 22:34:11 | on localhost executing action retrieve-item with content type application/json and payload: { "node": "node-e6f7eb66-291c-44b4-9ac2-245bca2261bf", "item-id": "item-c56076a8-aa00-45cf-a373-047b983a5daa" } 2022-08-07 22:34:11 | from localhost for action retrieve-item got result code 200 and payload { "title": "Retrive PubSub node item", "node": "node-e6f7eb66-291c-44b4-9ac2-245bca2261bf", "item-id": "item-c56076a8-aa00-45cf-a373-047b983a5daa", "item": [ "<item id=\"item-c56076a8-aa00-45cf-a373-047b983a5daa\"><test>item-c56076a8-aa00-45cf-a373-047b983a5daa</test></item>" ] } 2022-08-07 22:34:11 | [Mutex] notify: [retrieved:item:item-c56076a8-aa00-45cf-a373-047b983a5daa:payload-matches:true:localhost] 2022-08-07 22:34:11 | [Mutex] received everything. 2022-08-07 22:34:11 | [Mutex] isItemNotified: retrieved:item:item-c56076a8-aa00-45cf-a373-047b983a5daa:payload-matches:true:localhost :: true |
retrieveUserSubscriptions | 0.051s |
2022-08-07 22:34:11 |
2022-08-07 22:34:11 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-08-07 22:34:11 | ------------------------------------ 2022-08-07 22:34:11 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload: { "jid": "admin@test-domain.com" } 2022-08-07 22:34:11 | from localhost for action retrieve-user-subscriptions got result code 200 and payload { "nodes": [ "node-250e9742-d230-4cb5-baeb-05bdf5ac3592", "node-e6f7eb66-291c-44b4-9ac2-245bca2261bf", "test" ] } |
retrieveUserSubscriptionsWithRegex | 0.048s |
2022-08-07 22:34:11 |
2022-08-07 22:34:11 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-08-07 22:34:11 | ------------------------------------ 2022-08-07 22:34:11 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload: { "jid": "admin@test-domain.com", "node-pattern": "(?!node-e6f7eb66-291c-44b4-9ac2-245bca2261bf)" } 2022-08-07 22:34:11 | from localhost for action retrieve-user-subscriptions got result code 200 and payload { "nodes": [ ] } |
subscribeNodes | 1.010s |
2022-08-07 22:34:10 |
2022-08-07 22:34:10 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-08-07 22:34:10 | ------------------------------------ 2022-08-07 22:34:10 | on localhost executing action subscribe-node with content type application/json and payload: { "node": "node-e6f7eb66-291c-44b4-9ac2-245bca2261bf", "jids": [ "admin@test-domain.com" ] } 2022-08-07 22:34:10 | from localhost for action subscribe-node got result code 200 and payload { "Note": "Operation successful" } |
unsubscribeNodes | 1.025s |
2022-08-07 22:34:11 |
2022-08-07 22:34:11 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-08-07 22:34:11 | ------------------------------------ 2022-08-07 22:34:11 | on localhost executing action unsubscribe-node with content type application/json and payload: { "node": "node-e6f7eb66-291c-44b4-9ac2-245bca2261bf", "jids": [ "admin@test-domain.com" ] } 2022-08-07 22:34:11 | from localhost for action unsubscribe-node got result code 200 and payload { "Note": "Operation successful" } |