Test duration : 8.914s
Passed Tests | ||
---|---|---|
tigase.tests.pubsub.TestRestApiUsingJSON | ||
configureNodes | 1.113s |
2022-02-20 21:34:30 |
2022-02-20 21:34:30 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-02-20 21:34:30 | ------------------------------------ 2022-02-20 21:34:30 | [Mutex] waiting for: [configured:node:node-8d493f6b-16df-4165-9e56-bbf6a49de5e2:node-0b2341aa-2c62-4316-ad71-f2fd8ebae47a] 2022-02-20 21:34:30 | [Mutex] received everything. 2022-02-20 21:34:30 | [Mutex] isItemNotified: configured:node:node-8d493f6b-16df-4165-9e56-bbf6a49de5e2:node-0b2341aa-2c62-4316-ad71-f2fd8ebae47a :: true 2022-02-20 21:34:31 | [Mutex] waiting for: [received:nodes:5c60231c-347d-4a4b-8603-c59b7e4f44d5:localhost] 2022-02-20 21:34:31 | [Mutex] received everything. 2022-02-20 21:34:31 | [Mutex] isItemNotified: received:node:5c60231c-347d-4a4b-8603-c59b7e4f44d5:localhost:node-8d493f6b-16df-4165-9e56-bbf6a49de5e2:Node 8d493f6b-16df-4165-9e56-bbf6a49de5e2 :: true 2022-02-20 21:34:31 | [Mutex] waiting for: [received:nodes:ab900b30-09d1-4fba-8dd1-a4455cad9ae3:localhost] 2022-02-20 21:34:31 | [Mutex] received everything. 2022-02-20 21:34:31 | [Mutex] isItemNotified: received:node:ab900b30-09d1-4fba-8dd1-a4455cad9ae3:localhost:node-8d493f6b-16df-4165-9e56-bbf6a49de5e2:Node 8d493f6b-16df-4165-9e56-bbf6a49de5e2 :: false |
createNodes | 1.637s |
2022-02-20 21:34:27 |
2022-02-20 21:34:27 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-02-20 21:34:27 | ------------------------------------ 2022-02-20 21:34:28 | on localhost executing action create-node with content type application/json and payload: { "owner": "admin@test-domain.com", "pubsub#node_type": "leaf", "node": "node-8d493f6b-16df-4165-9e56-bbf6a49de5e2", "pubsub#title": "Node 8d493f6b-16df-4165-9e56-bbf6a49de5e2" } 2022-02-20 21:34:28 | from localhost for action create-node got result code 200 and payload { "Note": "Operation successful" } 2022-02-20 21:34:29 | [Mutex] waiting for: [received:nodes:2a53ba8a-87d8-41e5-88ef-09b0dca3e9fb:localhost] 2022-02-20 21:34:29 | [Mutex] received everything. 2022-02-20 21:34:29 | [Mutex] isItemNotified: received:node:2a53ba8a-87d8-41e5-88ef-09b0dca3e9fb:localhost:node-8d493f6b-16df-4165-9e56-bbf6a49de5e2:Node 8d493f6b-16df-4165-9e56-bbf6a49de5e2 :: true |
createSubnodes | 1.024s |
2022-02-20 21:34:29 |
2022-02-20 21:34:29 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-02-20 21:34:29 | ------------------------------------ 2022-02-20 21:34:29 | on localhost executing action create-node with content type application/json and payload: { "owner": "admin@test-domain.com", "pubsub#node_type": "collection", "node": "node-0b2341aa-2c62-4316-ad71-f2fd8ebae47a", "pubsub#title": "Node 0b2341aa-2c62-4316-ad71-f2fd8ebae47a" } 2022-02-20 21:34:29 | from localhost for action create-node got result code 200 and payload { "Note": "Operation successful" } 2022-02-20 21:34:30 | [Mutex] waiting for: [received:nodes:8d45ead4-7c4b-49a2-8045-35640200eef1:localhost] 2022-02-20 21:34:30 | [Mutex] received everything. 2022-02-20 21:34:30 | [Mutex] isItemNotified: received:node:8d45ead4-7c4b-49a2-8045-35640200eef1:localhost:node-0b2341aa-2c62-4316-ad71-f2fd8ebae47a:Node 0b2341aa-2c62-4316-ad71-f2fd8ebae47a :: true |
deleteNodes | 1.019s |
2022-02-20 21:34:34 |
2022-02-20 21:34:34 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-02-20 21:34:34 | ------------------------------------ 2022-02-20 21:34:34 | on localhost executing action delete-node with content type application/json and payload: { "node": "node-0b2341aa-2c62-4316-ad71-f2fd8ebae47a" } 2022-02-20 21:34:34 | from localhost for action delete-node got result code 200 and payload { "Note": "Operation successful" } 2022-02-20 21:34:35 | [Mutex] waiting for: [received:nodes:10b2dc7f-58ef-438e-9109-71ede2188845:localhost] 2022-02-20 21:34:35 | [Mutex] waiting for: [received:nodes:10b2dc7f-58ef-438e-9109-71ede2188845:localhost] 2022-02-20 21:34:35 | [Mutex] received everything. 2022-02-20 21:34:35 | [Mutex] isItemNotified: received:node:10b2dc7f-58ef-438e-9109-71ede2188845:localhost:node-0b2341aa-2c62-4316-ad71-f2fd8ebae47a:Node 0b2341aa-2c62-4316-ad71-f2fd8ebae47a :: false |
deleteSubnodes | 1.031s |
2022-02-20 21:34:33 |
2022-02-20 21:34:33 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-02-20 21:34:33 | ------------------------------------ 2022-02-20 21:34:33 | on localhost executing action delete-node with content type application/json and payload: { "node": "node-8d493f6b-16df-4165-9e56-bbf6a49de5e2" } 2022-02-20 21:34:33 | from localhost for action delete-node got result code 200 and payload { "Note": "Operation successful" } 2022-02-20 21:34:34 | [Mutex] waiting for: [received:nodes:d34d71e1-bd02-4651-a63b-155e8da7b512:localhost] 2022-02-20 21:34:34 | [Mutex] waiting for: [received:nodes:d34d71e1-bd02-4651-a63b-155e8da7b512:localhost] 2022-02-20 21:34:34 | [Mutex] waiting for: [received:nodes:d34d71e1-bd02-4651-a63b-155e8da7b512:localhost] 2022-02-20 21:34:34 | [Mutex] received everything. 2022-02-20 21:34:34 | [Mutex] isItemNotified: received:node:d34d71e1-bd02-4651-a63b-155e8da7b512:localhost:node-8d493f6b-16df-4165-9e56-bbf6a49de5e2:Node 8d493f6b-16df-4165-9e56-bbf6a49de5e2 :: false 2022-02-20 21:34:34 | [Mutex] waiting for: [received:nodes:aee726ce-d255-4f3f-8ada-f083070e7030:localhost] 2022-02-20 21:34:34 | [Mutex] received everything. 2022-02-20 21:34:34 | [Mutex] isItemNotified: received:node:aee726ce-d255-4f3f-8ada-f083070e7030:localhost:node-8d493f6b-16df-4165-9e56-bbf6a49de5e2:Node 8d493f6b-16df-4165-9e56-bbf6a49de5e2 :: false |
publishItemsToNodes | 0.067s |
2022-02-20 21:34:32 |
2022-02-20 21:34:32 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-02-20 21:34:32 | ------------------------------------ 2022-02-20 21:34:32 | on localhost executing action publish-item with content type application/json and payload: { "node": "node-8d493f6b-16df-4165-9e56-bbf6a49de5e2", "entry": "<test>item-88ea5bc9-4292-4672-a4b6-30eda8fe71a8</test>", "item-id": "item-88ea5bc9-4292-4672-a4b6-30eda8fe71a8" } 2022-02-20 21:34:32 | from localhost for action publish-item got result code 200 and payload { "Note": "Operation successful", "item-id": "item-88ea5bc9-4292-4672-a4b6-30eda8fe71a8" } 2022-02-20 21:34:32 | [Mutex] waiting for: [published:item:notifieditem-88ea5bc9-4292-4672-a4b6-30eda8fe71a8:admin@test-domain.com] 2022-02-20 21:34:32 | [Mutex] received everything. 2022-02-20 21:34:32 | [Mutex] isItemNotified: published:item:notifieditem-88ea5bc9-4292-4672-a4b6-30eda8fe71a8:admin@test-domain.com :: true |
retractItemsFromNodes | 0.065s |
2022-02-20 21:34:32 |
2022-02-20 21:34:32 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-02-20 21:34:32 | ------------------------------------ 2022-02-20 21:34:32 | on localhost executing action delete-item with content type application/json and payload: { "node": "node-8d493f6b-16df-4165-9e56-bbf6a49de5e2", "item-id": "item-88ea5bc9-4292-4672-a4b6-30eda8fe71a8" } 2022-02-20 21:34:32 | from localhost for action delete-item got result code 200 and payload { "Note": "Operation successful", "item-id": "item-88ea5bc9-4292-4672-a4b6-30eda8fe71a8" } 2022-02-20 21:34:32 | [Mutex] waiting for: [retracted:item:notifieditem-88ea5bc9-4292-4672-a4b6-30eda8fe71a8:admin@test-domain.com] 2022-02-20 21:34:32 | [Mutex] received everything. 2022-02-20 21:34:32 | [Mutex] isItemNotified: retracted:item:notifieditem-88ea5bc9-4292-4672-a4b6-30eda8fe71a8:admin@test-domain.com :: true |
retrieveItemsFromNodes | 0.111s |
2022-02-20 21:34:32 |
2022-02-20 21:34:32 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-02-20 21:34:32 | ------------------------------------ 2022-02-20 21:34:32 | on localhost executing action retrieve-item with content type application/json and payload: { "node": "node-8d493f6b-16df-4165-9e56-bbf6a49de5e2", "item-id": "item-88ea5bc9-4292-4672-a4b6-30eda8fe71a8" } 2022-02-20 21:34:32 | from localhost for action retrieve-item got result code 200 and payload { "title": "Retrive PubSub node item", "node": "node-8d493f6b-16df-4165-9e56-bbf6a49de5e2", "item-id": "item-88ea5bc9-4292-4672-a4b6-30eda8fe71a8", "item": [ "<item id=\"item-88ea5bc9-4292-4672-a4b6-30eda8fe71a8\"><test>item-88ea5bc9-4292-4672-a4b6-30eda8fe71a8</test></item>" ] } 2022-02-20 21:34:32 | [Mutex] notify: [retrieved:item:item-88ea5bc9-4292-4672-a4b6-30eda8fe71a8:payload-matches:true:localhost] 2022-02-20 21:34:32 | [Mutex] received everything. 2022-02-20 21:34:32 | [Mutex] isItemNotified: retrieved:item:item-88ea5bc9-4292-4672-a4b6-30eda8fe71a8:payload-matches:true:localhost :: true |
retrieveUserSubscriptions | 0.060s |
2022-02-20 21:34:32 |
2022-02-20 21:34:32 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-02-20 21:34:32 | ------------------------------------ 2022-02-20 21:34:32 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload: { "jid": "admin@test-domain.com" } 2022-02-20 21:34:32 | from localhost for action retrieve-user-subscriptions got result code 200 and payload { "nodes": [ "test", "node-0b2341aa-2c62-4316-ad71-f2fd8ebae47a", "node-8d493f6b-16df-4165-9e56-bbf6a49de5e2" ] } |
retrieveUserSubscriptionsWithRegex | 0.055s |
2022-02-20 21:34:32 |
2022-02-20 21:34:32 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-02-20 21:34:32 | ------------------------------------ 2022-02-20 21:34:32 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload: { "jid": "admin@test-domain.com", "node-pattern": "(?!node-8d493f6b-16df-4165-9e56-bbf6a49de5e2)" } 2022-02-20 21:34:32 | from localhost for action retrieve-user-subscriptions got result code 200 and payload { "nodes": [ ] } |
subscribeNodes | 1.011s |
2022-02-20 21:34:31 |
2022-02-20 21:34:31 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-02-20 21:34:31 | ------------------------------------ 2022-02-20 21:34:31 | on localhost executing action subscribe-node with content type application/json and payload: { "node": "node-8d493f6b-16df-4165-9e56-bbf6a49de5e2", "jids": [ "admin@test-domain.com" ] } 2022-02-20 21:34:31 | from localhost for action subscribe-node got result code 200 and payload { "Note": "Operation successful" } |
unsubscribeNodes | 1.066s |
2022-02-20 21:34:32 |
2022-02-20 21:34:32 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-02-20 21:34:32 | ------------------------------------ 2022-02-20 21:34:32 | on localhost executing action unsubscribe-node with content type application/json and payload: { "node": "node-8d493f6b-16df-4165-9e56-bbf6a49de5e2", "jids": [ "admin@test-domain.com" ] } 2022-02-20 21:34:32 | from localhost for action unsubscribe-node got result code 200 and payload { "Note": "Operation successful" } |