Test duration : 8.729s
Passed Tests | ||
---|---|---|
tigase.tests.pubsub.TestRestApiUsingJSON | ||
configureNodes | 1.101s |
2023-07-07 22:31:13 |
2023-07-07 22:31:13 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2023-07-07 22:31:13 | ------------------------------------ 2023-07-07 22:31:13 | [Mutex] waiting for: [configured:node:node-46d8c9a2-0e0d-4fe3-a44e-52b6d4efdac4:node-0bc8c61a-75ca-4742-97e9-8e3d196837ee] 2023-07-07 22:31:13 | [Mutex] received everything. 2023-07-07 22:31:13 | [Mutex] isItemNotified: configured:node:node-46d8c9a2-0e0d-4fe3-a44e-52b6d4efdac4:node-0bc8c61a-75ca-4742-97e9-8e3d196837ee :: true 2023-07-07 22:31:14 | [Mutex] waiting for: [received:nodes:e4d84c98-27cc-4586-82b3-20ee074fc2f4:localhost] 2023-07-07 22:31:14 | [Mutex] received everything. 2023-07-07 22:31:14 | [Mutex] isItemNotified: received:node:e4d84c98-27cc-4586-82b3-20ee074fc2f4:localhost:node-46d8c9a2-0e0d-4fe3-a44e-52b6d4efdac4:Node 46d8c9a2-0e0d-4fe3-a44e-52b6d4efdac4 :: true 2023-07-07 22:31:14 | [Mutex] waiting for: [received:nodes:690a5af6-7aa8-40e5-986d-66031faa8058:localhost] 2023-07-07 22:31:14 | [Mutex] waiting for: [received:nodes:690a5af6-7aa8-40e5-986d-66031faa8058:localhost] 2023-07-07 22:31:14 | [Mutex] waiting for: [received:nodes:690a5af6-7aa8-40e5-986d-66031faa8058:localhost] 2023-07-07 22:31:14 | [Mutex] waiting for: [received:nodes:690a5af6-7aa8-40e5-986d-66031faa8058:localhost] 2023-07-07 22:31:14 | [Mutex] received everything. 2023-07-07 22:31:14 | [Mutex] isItemNotified: received:node:690a5af6-7aa8-40e5-986d-66031faa8058:localhost:node-46d8c9a2-0e0d-4fe3-a44e-52b6d4efdac4:Node 46d8c9a2-0e0d-4fe3-a44e-52b6d4efdac4 :: false |
createNodes | 1.726s |
2023-07-07 22:31:10 |
2023-07-07 22:31:10 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2023-07-07 22:31:10 | ------------------------------------ 2023-07-07 22:31:11 | on localhost executing action create-node with content type application/json and payload: { "owner": "admin@test-domain.com", "pubsub#node_type": "leaf", "node": "node-46d8c9a2-0e0d-4fe3-a44e-52b6d4efdac4", "pubsub#title": "Node 46d8c9a2-0e0d-4fe3-a44e-52b6d4efdac4" } 2023-07-07 22:31:11 | from localhost for action create-node got result code 200 and payload { "Note": "Operation successful" } 2023-07-07 22:31:12 | [Mutex] waiting for: [received:nodes:b7207aa1-e77c-438e-9712-c91cd00b15ef:localhost] 2023-07-07 22:31:12 | [Mutex] waiting for: [received:nodes:b7207aa1-e77c-438e-9712-c91cd00b15ef:localhost] 2023-07-07 22:31:12 | [Mutex] waiting for: [received:nodes:b7207aa1-e77c-438e-9712-c91cd00b15ef:localhost] 2023-07-07 22:31:12 | [Mutex] waiting for: [received:nodes:b7207aa1-e77c-438e-9712-c91cd00b15ef:localhost] 2023-07-07 22:31:12 | [Mutex] waiting for: [received:nodes:b7207aa1-e77c-438e-9712-c91cd00b15ef:localhost] 2023-07-07 22:31:12 | [Mutex] received everything. 2023-07-07 22:31:12 | [Mutex] isItemNotified: received:node:b7207aa1-e77c-438e-9712-c91cd00b15ef:localhost:node-46d8c9a2-0e0d-4fe3-a44e-52b6d4efdac4:Node 46d8c9a2-0e0d-4fe3-a44e-52b6d4efdac4 :: true |
createSubnodes | 1.024s |
2023-07-07 22:31:12 |
2023-07-07 22:31:12 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2023-07-07 22:31:12 | ------------------------------------ 2023-07-07 22:31:12 | on localhost executing action create-node with content type application/json and payload: { "owner": "admin@test-domain.com", "pubsub#node_type": "collection", "node": "node-0bc8c61a-75ca-4742-97e9-8e3d196837ee", "pubsub#title": "Node 0bc8c61a-75ca-4742-97e9-8e3d196837ee" } 2023-07-07 22:31:12 | from localhost for action create-node got result code 200 and payload { "Note": "Operation successful" } 2023-07-07 22:31:13 | [Mutex] waiting for: [received:nodes:411566d6-35f9-4c8f-8d85-754ecc46edd3:localhost] 2023-07-07 22:31:13 | [Mutex] waiting for: [received:nodes:411566d6-35f9-4c8f-8d85-754ecc46edd3:localhost] 2023-07-07 22:31:13 | [Mutex] waiting for: [received:nodes:411566d6-35f9-4c8f-8d85-754ecc46edd3:localhost] 2023-07-07 22:31:13 | [Mutex] waiting for: [received:nodes:411566d6-35f9-4c8f-8d85-754ecc46edd3:localhost] 2023-07-07 22:31:13 | [Mutex] waiting for: [received:nodes:411566d6-35f9-4c8f-8d85-754ecc46edd3:localhost] 2023-07-07 22:31:13 | [Mutex] received everything. 2023-07-07 22:31:13 | [Mutex] isItemNotified: received:node:411566d6-35f9-4c8f-8d85-754ecc46edd3:localhost:node-0bc8c61a-75ca-4742-97e9-8e3d196837ee:Node 0bc8c61a-75ca-4742-97e9-8e3d196837ee :: true |
deleteNodes | 1.022s |
2023-07-07 22:31:17 |
2023-07-07 22:31:17 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2023-07-07 22:31:17 | ------------------------------------ 2023-07-07 22:31:17 | on localhost executing action delete-node with content type application/json and payload: { "node": "node-0bc8c61a-75ca-4742-97e9-8e3d196837ee" } 2023-07-07 22:31:17 | from localhost for action delete-node got result code 200 and payload { "Note": "Operation successful" } 2023-07-07 22:31:18 | [Mutex] waiting for: [received:nodes:4b3d85e0-d815-4499-b14a-a0f445ff0f6e:localhost] 2023-07-07 22:31:18 | [Mutex] waiting for: [received:nodes:4b3d85e0-d815-4499-b14a-a0f445ff0f6e:localhost] 2023-07-07 22:31:18 | [Mutex] received everything. 2023-07-07 22:31:18 | [Mutex] isItemNotified: received:node:4b3d85e0-d815-4499-b14a-a0f445ff0f6e:localhost:node-0bc8c61a-75ca-4742-97e9-8e3d196837ee:Node 0bc8c61a-75ca-4742-97e9-8e3d196837ee :: false |
deleteSubnodes | 1.024s |
2023-07-07 22:31:16 |
2023-07-07 22:31:16 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2023-07-07 22:31:16 | ------------------------------------ 2023-07-07 22:31:16 | on localhost executing action delete-node with content type application/json and payload: { "node": "node-46d8c9a2-0e0d-4fe3-a44e-52b6d4efdac4" } 2023-07-07 22:31:16 | from localhost for action delete-node got result code 200 and payload { "Note": "Operation successful" } 2023-07-07 22:31:17 | [Mutex] waiting for: [received:nodes:9bf25462-8031-49b0-b95d-9a72400d2012:localhost] 2023-07-07 22:31:17 | [Mutex] waiting for: [received:nodes:9bf25462-8031-49b0-b95d-9a72400d2012:localhost] 2023-07-07 22:31:17 | [Mutex] waiting for: [received:nodes:9bf25462-8031-49b0-b95d-9a72400d2012:localhost] 2023-07-07 22:31:17 | [Mutex] received everything. 2023-07-07 22:31:17 | [Mutex] isItemNotified: received:node:9bf25462-8031-49b0-b95d-9a72400d2012:localhost:node-46d8c9a2-0e0d-4fe3-a44e-52b6d4efdac4:Node 46d8c9a2-0e0d-4fe3-a44e-52b6d4efdac4 :: false 2023-07-07 22:31:17 | [Mutex] waiting for: [received:nodes:2a5fcf7e-1e83-4a83-ba88-a7c8ea5cd628:localhost] 2023-07-07 22:31:17 | [Mutex] received everything. 2023-07-07 22:31:17 | [Mutex] isItemNotified: received:node:2a5fcf7e-1e83-4a83-ba88-a7c8ea5cd628:localhost:node-46d8c9a2-0e0d-4fe3-a44e-52b6d4efdac4:Node 46d8c9a2-0e0d-4fe3-a44e-52b6d4efdac4 :: false |
publishItemsToNodes | 0.046s |
2023-07-07 22:31:15 |
2023-07-07 22:31:15 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2023-07-07 22:31:15 | ------------------------------------ 2023-07-07 22:31:15 | on localhost executing action publish-item with content type application/json and payload: { "node": "node-46d8c9a2-0e0d-4fe3-a44e-52b6d4efdac4", "entry": "<test>item-3ff83f0c-b546-44d2-a541-af376a92f4b5</test>", "item-id": "item-3ff83f0c-b546-44d2-a541-af376a92f4b5" } 2023-07-07 22:31:15 | from localhost for action publish-item got result code 200 and payload { "Note": "Operation successful", "item-id": "item-3ff83f0c-b546-44d2-a541-af376a92f4b5" } 2023-07-07 22:31:15 | [Mutex] waiting for: [published:item:notifieditem-3ff83f0c-b546-44d2-a541-af376a92f4b5:admin@test-domain.com] 2023-07-07 22:31:15 | [Mutex] received everything. 2023-07-07 22:31:15 | [Mutex] isItemNotified: published:item:notifieditem-3ff83f0c-b546-44d2-a541-af376a92f4b5:admin@test-domain.com :: true |
retractItemsFromNodes | 0.075s |
2023-07-07 22:31:15 |
2023-07-07 22:31:15 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2023-07-07 22:31:15 | ------------------------------------ 2023-07-07 22:31:15 | on localhost executing action delete-item with content type application/json and payload: { "node": "node-46d8c9a2-0e0d-4fe3-a44e-52b6d4efdac4", "item-id": "item-3ff83f0c-b546-44d2-a541-af376a92f4b5" } 2023-07-07 22:31:15 | from localhost for action delete-item got result code 200 and payload { "Note": "Operation successful", "item-id": "item-3ff83f0c-b546-44d2-a541-af376a92f4b5" } 2023-07-07 22:31:15 | [Mutex] received everything. 2023-07-07 22:31:15 | [Mutex] isItemNotified: retracted:item:notifieditem-3ff83f0c-b546-44d2-a541-af376a92f4b5:admin@test-domain.com :: true |
retrieveItemsFromNodes | 0.083s |
2023-07-07 22:31:15 |
2023-07-07 22:31:15 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2023-07-07 22:31:15 | ------------------------------------ 2023-07-07 22:31:15 | on localhost executing action retrieve-item with content type application/json and payload: { "node": "node-46d8c9a2-0e0d-4fe3-a44e-52b6d4efdac4", "item-id": "item-3ff83f0c-b546-44d2-a541-af376a92f4b5" } 2023-07-07 22:31:15 | from localhost for action retrieve-item got result code 200 and payload { "title": "Retrive PubSub node item", "node": "node-46d8c9a2-0e0d-4fe3-a44e-52b6d4efdac4", "item-id": "item-3ff83f0c-b546-44d2-a541-af376a92f4b5", "item": [ "<item id=\"item-3ff83f0c-b546-44d2-a541-af376a92f4b5\"><test>item-3ff83f0c-b546-44d2-a541-af376a92f4b5</test></item>" ] } 2023-07-07 22:31:15 | [Mutex] notify: [retrieved:item:item-3ff83f0c-b546-44d2-a541-af376a92f4b5:payload-matches:true:localhost] 2023-07-07 22:31:15 | [Mutex] received everything. 2023-07-07 22:31:15 | [Mutex] isItemNotified: retrieved:item:item-3ff83f0c-b546-44d2-a541-af376a92f4b5:payload-matches:true:localhost :: true |
retrieveUserSubscriptions | 0.046s |
2023-07-07 22:31:15 |
2023-07-07 22:31:15 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2023-07-07 22:31:15 | ------------------------------------ 2023-07-07 22:31:15 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload: { "jid": "admin@test-domain.com" } 2023-07-07 22:31:15 | from localhost for action retrieve-user-subscriptions got result code 200 and payload { "nodes": [ "node-46d8c9a2-0e0d-4fe3-a44e-52b6d4efdac4", "node-0bc8c61a-75ca-4742-97e9-8e3d196837ee", "test" ] } |
retrieveUserSubscriptionsWithRegex | 0.051s |
2023-07-07 22:31:15 |
2023-07-07 22:31:15 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2023-07-07 22:31:15 | ------------------------------------ 2023-07-07 22:31:15 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload: { "jid": "admin@test-domain.com", "node-pattern": "(?!node-46d8c9a2-0e0d-4fe3-a44e-52b6d4efdac4)" } 2023-07-07 22:31:15 | from localhost for action retrieve-user-subscriptions got result code 200 and payload { "nodes": [ ] } |
subscribeNodes | 1.010s |
2023-07-07 22:31:14 |
2023-07-07 22:31:14 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2023-07-07 22:31:14 | ------------------------------------ 2023-07-07 22:31:14 | on localhost executing action subscribe-node with content type application/json and payload: { "node": "node-46d8c9a2-0e0d-4fe3-a44e-52b6d4efdac4", "jids": [ "admin@test-domain.com" ] } 2023-07-07 22:31:14 | from localhost for action subscribe-node got result code 200 and payload { "Note": "Operation successful" } |
unsubscribeNodes | 1.059s |
2023-07-07 22:31:15 |
2023-07-07 22:31:15 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2023-07-07 22:31:15 | ------------------------------------ 2023-07-07 22:31:15 | on localhost executing action unsubscribe-node with content type application/json and payload: { "node": "node-46d8c9a2-0e0d-4fe3-a44e-52b6d4efdac4", "jids": [ "admin@test-domain.com" ] } 2023-07-07 22:31:15 | from localhost for action unsubscribe-node got result code 200 and payload { "Note": "Operation successful" } |