Test duration : 8.683s
Passed Tests | ||
---|---|---|
tigase.tests.pubsub.TestRestApiUsingJSON | ||
configureNodes | 1.089s |
2023-06-22 22:45:04 |
2023-06-22 22:45:04 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2023-06-22 22:45:04 | ------------------------------------ 2023-06-22 22:45:04 | [Mutex] waiting for: [configured:node:node-6ef0a526-bd6c-44c2-ae90-6abaa1c3628e:node-f176022e-451d-4d4c-b601-c72ea39b2cb8] 2023-06-22 22:45:05 | [Mutex] received everything. 2023-06-22 22:45:05 | [Mutex] isItemNotified: configured:node:node-6ef0a526-bd6c-44c2-ae90-6abaa1c3628e:node-f176022e-451d-4d4c-b601-c72ea39b2cb8 :: true 2023-06-22 22:45:06 | [Mutex] waiting for: [received:nodes:4530ca7b-0fe5-405b-b018-31a1166e71a2:localhost] 2023-06-22 22:45:06 | [Mutex] received everything. 2023-06-22 22:45:06 | [Mutex] isItemNotified: received:node:4530ca7b-0fe5-405b-b018-31a1166e71a2:localhost:node-6ef0a526-bd6c-44c2-ae90-6abaa1c3628e:Node 6ef0a526-bd6c-44c2-ae90-6abaa1c3628e :: true 2023-06-22 22:45:06 | [Mutex] waiting for: [received:nodes:2a97e70b-33c6-4bad-87c0-e153d0bcb88e:localhost] 2023-06-22 22:45:06 | [Mutex] waiting for: [received:nodes:2a97e70b-33c6-4bad-87c0-e153d0bcb88e:localhost] 2023-06-22 22:45:06 | [Mutex] waiting for: [received:nodes:2a97e70b-33c6-4bad-87c0-e153d0bcb88e:localhost] 2023-06-22 22:45:06 | [Mutex] received everything. 2023-06-22 22:45:06 | [Mutex] isItemNotified: received:node:2a97e70b-33c6-4bad-87c0-e153d0bcb88e:localhost:node-6ef0a526-bd6c-44c2-ae90-6abaa1c3628e:Node 6ef0a526-bd6c-44c2-ae90-6abaa1c3628e :: false |
createNodes | 1.708s |
2023-06-22 22:45:02 |
2023-06-22 22:45:02 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2023-06-22 22:45:02 | ------------------------------------ 2023-06-22 22:45:02 | on localhost executing action create-node with content type application/json and payload: { "owner": "admin@test-domain.com", "pubsub#node_type": "leaf", "node": "node-6ef0a526-bd6c-44c2-ae90-6abaa1c3628e", "pubsub#title": "Node 6ef0a526-bd6c-44c2-ae90-6abaa1c3628e" } 2023-06-22 22:45:02 | from localhost for action create-node got result code 200 and payload { "Note": "Operation successful" } 2023-06-22 22:45:03 | [Mutex] waiting for: [received:nodes:174c10f5-fb6d-4064-b4b5-2255ac3858ae:localhost] 2023-06-22 22:45:03 | [Mutex] waiting for: [received:nodes:174c10f5-fb6d-4064-b4b5-2255ac3858ae:localhost] 2023-06-22 22:45:03 | [Mutex] waiting for: [received:nodes:174c10f5-fb6d-4064-b4b5-2255ac3858ae:localhost] 2023-06-22 22:45:03 | [Mutex] received everything. 2023-06-22 22:45:03 | [Mutex] isItemNotified: received:node:174c10f5-fb6d-4064-b4b5-2255ac3858ae:localhost:node-6ef0a526-bd6c-44c2-ae90-6abaa1c3628e:Node 6ef0a526-bd6c-44c2-ae90-6abaa1c3628e :: true |
createSubnodes | 1.034s |
2023-06-22 22:45:03 |
2023-06-22 22:45:03 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2023-06-22 22:45:03 | ------------------------------------ 2023-06-22 22:45:03 | on localhost executing action create-node with content type application/json and payload: { "owner": "admin@test-domain.com", "pubsub#node_type": "collection", "node": "node-f176022e-451d-4d4c-b601-c72ea39b2cb8", "pubsub#title": "Node f176022e-451d-4d4c-b601-c72ea39b2cb8" } 2023-06-22 22:45:03 | from localhost for action create-node got result code 200 and payload { "Note": "Operation successful" } 2023-06-22 22:45:04 | [Mutex] waiting for: [received:nodes:25a10b22-a40e-4443-96db-acee400e4323:localhost] 2023-06-22 22:45:04 | [Mutex] waiting for: [received:nodes:25a10b22-a40e-4443-96db-acee400e4323:localhost] 2023-06-22 22:45:04 | [Mutex] waiting for: [received:nodes:25a10b22-a40e-4443-96db-acee400e4323:localhost] 2023-06-22 22:45:04 | [Mutex] received everything. 2023-06-22 22:45:04 | [Mutex] isItemNotified: received:node:25a10b22-a40e-4443-96db-acee400e4323:localhost:node-f176022e-451d-4d4c-b601-c72ea39b2cb8:Node f176022e-451d-4d4c-b601-c72ea39b2cb8 :: true |
deleteNodes | 1.022s |
2023-06-22 22:45:09 |
2023-06-22 22:45:09 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2023-06-22 22:45:09 | ------------------------------------ 2023-06-22 22:45:09 | on localhost executing action delete-node with content type application/json and payload: { "node": "node-f176022e-451d-4d4c-b601-c72ea39b2cb8" } 2023-06-22 22:45:09 | from localhost for action delete-node got result code 200 and payload { "Note": "Operation successful" } 2023-06-22 22:45:10 | [Mutex] waiting for: [received:nodes:3c48c928-f13b-44b3-a73d-2a53985d2819:localhost] 2023-06-22 22:45:10 | [Mutex] waiting for: [received:nodes:3c48c928-f13b-44b3-a73d-2a53985d2819:localhost] 2023-06-22 22:45:10 | [Mutex] received everything. 2023-06-22 22:45:10 | [Mutex] isItemNotified: received:node:3c48c928-f13b-44b3-a73d-2a53985d2819:localhost:node-f176022e-451d-4d4c-b601-c72ea39b2cb8:Node f176022e-451d-4d4c-b601-c72ea39b2cb8 :: false |
deleteSubnodes | 1.026s |
2023-06-22 22:45:08 |
2023-06-22 22:45:08 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2023-06-22 22:45:08 | ------------------------------------ 2023-06-22 22:45:08 | on localhost executing action delete-node with content type application/json and payload: { "node": "node-6ef0a526-bd6c-44c2-ae90-6abaa1c3628e" } 2023-06-22 22:45:08 | from localhost for action delete-node got result code 200 and payload { "Note": "Operation successful" } 2023-06-22 22:45:09 | [Mutex] waiting for: [received:nodes:90017796-003a-4feb-8b82-b4c7e7993b70:localhost] 2023-06-22 22:45:09 | [Mutex] waiting for: [received:nodes:90017796-003a-4feb-8b82-b4c7e7993b70:localhost] 2023-06-22 22:45:09 | [Mutex] waiting for: [received:nodes:90017796-003a-4feb-8b82-b4c7e7993b70:localhost] 2023-06-22 22:45:09 | [Mutex] received everything. 2023-06-22 22:45:09 | [Mutex] isItemNotified: received:node:90017796-003a-4feb-8b82-b4c7e7993b70:localhost:node-6ef0a526-bd6c-44c2-ae90-6abaa1c3628e:Node 6ef0a526-bd6c-44c2-ae90-6abaa1c3628e :: false 2023-06-22 22:45:09 | [Mutex] waiting for: [received:nodes:202f7399-88ab-41cf-8cc6-689e7a0bd165:localhost] 2023-06-22 22:45:09 | [Mutex] received everything. 2023-06-22 22:45:09 | [Mutex] isItemNotified: received:node:202f7399-88ab-41cf-8cc6-689e7a0bd165:localhost:node-6ef0a526-bd6c-44c2-ae90-6abaa1c3628e:Node 6ef0a526-bd6c-44c2-ae90-6abaa1c3628e :: false |
publishItemsToNodes | 0.055s |
2023-06-22 22:45:07 |
2023-06-22 22:45:07 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2023-06-22 22:45:07 | ------------------------------------ 2023-06-22 22:45:07 | on localhost executing action publish-item with content type application/json and payload: { "node": "node-6ef0a526-bd6c-44c2-ae90-6abaa1c3628e", "entry": "<test>item-adee32c3-832e-4fc3-b5fa-cc0f7fe7bd23</test>", "item-id": "item-adee32c3-832e-4fc3-b5fa-cc0f7fe7bd23" } 2023-06-22 22:45:07 | from localhost for action publish-item got result code 200 and payload { "Note": "Operation successful", "item-id": "item-adee32c3-832e-4fc3-b5fa-cc0f7fe7bd23" } 2023-06-22 22:45:07 | [Mutex] waiting for: [published:item:notifieditem-adee32c3-832e-4fc3-b5fa-cc0f7fe7bd23:admin@test-domain.com] 2023-06-22 22:45:07 | [Mutex] received everything. 2023-06-22 22:45:07 | [Mutex] isItemNotified: published:item:notifieditem-adee32c3-832e-4fc3-b5fa-cc0f7fe7bd23:admin@test-domain.com :: true |
retractItemsFromNodes | 0.056s |
2023-06-22 22:45:07 |
2023-06-22 22:45:07 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2023-06-22 22:45:07 | ------------------------------------ 2023-06-22 22:45:07 | on localhost executing action delete-item with content type application/json and payload: { "node": "node-6ef0a526-bd6c-44c2-ae90-6abaa1c3628e", "item-id": "item-adee32c3-832e-4fc3-b5fa-cc0f7fe7bd23" } 2023-06-22 22:45:07 | from localhost for action delete-item got result code 200 and payload { "Note": "Operation successful", "item-id": "item-adee32c3-832e-4fc3-b5fa-cc0f7fe7bd23" } 2023-06-22 22:45:07 | [Mutex] received everything. 2023-06-22 22:45:07 | [Mutex] isItemNotified: retracted:item:notifieditem-adee32c3-832e-4fc3-b5fa-cc0f7fe7bd23:admin@test-domain.com :: true |
retrieveItemsFromNodes | 0.055s |
2023-06-22 22:45:07 |
2023-06-22 22:45:07 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2023-06-22 22:45:07 | ------------------------------------ 2023-06-22 22:45:07 | on localhost executing action retrieve-item with content type application/json and payload: { "node": "node-6ef0a526-bd6c-44c2-ae90-6abaa1c3628e", "item-id": "item-adee32c3-832e-4fc3-b5fa-cc0f7fe7bd23" } 2023-06-22 22:45:07 | from localhost for action retrieve-item got result code 200 and payload { "title": "Retrive PubSub node item", "node": "node-6ef0a526-bd6c-44c2-ae90-6abaa1c3628e", "item-id": "item-adee32c3-832e-4fc3-b5fa-cc0f7fe7bd23", "item": [ "<item id=\"item-adee32c3-832e-4fc3-b5fa-cc0f7fe7bd23\"><test>item-adee32c3-832e-4fc3-b5fa-cc0f7fe7bd23</test></item>" ] } 2023-06-22 22:45:07 | [Mutex] notify: [retrieved:item:item-adee32c3-832e-4fc3-b5fa-cc0f7fe7bd23:payload-matches:true:localhost] 2023-06-22 22:45:07 | [Mutex] received everything. 2023-06-22 22:45:07 | [Mutex] isItemNotified: retrieved:item:item-adee32c3-832e-4fc3-b5fa-cc0f7fe7bd23:payload-matches:true:localhost :: true |
retrieveUserSubscriptions | 0.047s |
2023-06-22 22:45:07 |
2023-06-22 22:45:07 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2023-06-22 22:45:07 | ------------------------------------ 2023-06-22 22:45:07 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload: { "jid": "admin@test-domain.com" } 2023-06-22 22:45:07 | from localhost for action retrieve-user-subscriptions got result code 200 and payload { "nodes": [ "test", "node-f176022e-451d-4d4c-b601-c72ea39b2cb8", "node-6ef0a526-bd6c-44c2-ae90-6abaa1c3628e" ] } |
retrieveUserSubscriptionsWithRegex | 0.048s |
2023-06-22 22:45:07 |
2023-06-22 22:45:07 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2023-06-22 22:45:07 | ------------------------------------ 2023-06-22 22:45:07 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload: { "jid": "admin@test-domain.com", "node-pattern": "(?!node-6ef0a526-bd6c-44c2-ae90-6abaa1c3628e)" } 2023-06-22 22:45:07 | from localhost for action retrieve-user-subscriptions got result code 200 and payload { "nodes": [ ] } |
subscribeNodes | 1.018s |
2023-06-22 22:45:06 |
2023-06-22 22:45:06 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2023-06-22 22:45:06 | ------------------------------------ 2023-06-22 22:45:06 | on localhost executing action subscribe-node with content type application/json and payload: { "node": "node-6ef0a526-bd6c-44c2-ae90-6abaa1c3628e", "jids": [ "admin@test-domain.com" ] } 2023-06-22 22:45:06 | from localhost for action subscribe-node got result code 200 and payload { "Note": "Operation successful" } |
unsubscribeNodes | 1.079s |
2023-06-22 22:45:07 |
2023-06-22 22:45:07 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2023-06-22 22:45:07 | ------------------------------------ 2023-06-22 22:45:07 | on localhost executing action unsubscribe-node with content type application/json and payload: { "node": "node-6ef0a526-bd6c-44c2-ae90-6abaa1c3628e", "jids": [ "admin@test-domain.com" ] } 2023-06-22 22:45:07 | from localhost for action unsubscribe-node got result code 200 and payload { "Note": "Operation successful" } |