Test duration : 8.674s
Passed Tests | ||
---|---|---|
tigase.tests.pubsub.TestRestApiUsingJSON | ||
configureNodes | 1.108s |
2023-03-18 22:30:51 |
2023-03-18 22:30:51 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2023-03-18 22:30:51 | ------------------------------------ 2023-03-18 22:30:51 | [Mutex] waiting for: [configured:node:node-6f26e9b3-8e40-4850-95d2-5dd22a3af867:node-ba295f5f-e5ee-4143-85f5-632bb20b7f9c] 2023-03-18 22:30:51 | [Mutex] received everything. 2023-03-18 22:30:51 | [Mutex] isItemNotified: configured:node:node-6f26e9b3-8e40-4850-95d2-5dd22a3af867:node-ba295f5f-e5ee-4143-85f5-632bb20b7f9c :: true 2023-03-18 22:30:52 | [Mutex] waiting for: [received:nodes:8d9d8726-6ab9-43b7-b1a6-9b6bdd36d96e:localhost] 2023-03-18 22:30:52 | [Mutex] received everything. 2023-03-18 22:30:52 | [Mutex] isItemNotified: received:node:8d9d8726-6ab9-43b7-b1a6-9b6bdd36d96e:localhost:node-6f26e9b3-8e40-4850-95d2-5dd22a3af867:Node 6f26e9b3-8e40-4850-95d2-5dd22a3af867 :: true 2023-03-18 22:30:52 | [Mutex] waiting for: [received:nodes:ca182d37-56e0-45a7-925a-eefc0b724bc8:localhost] 2023-03-18 22:30:52 | [Mutex] waiting for: [received:nodes:ca182d37-56e0-45a7-925a-eefc0b724bc8:localhost] 2023-03-18 22:30:52 | [Mutex] waiting for: [received:nodes:ca182d37-56e0-45a7-925a-eefc0b724bc8:localhost] 2023-03-18 22:30:52 | [Mutex] received everything. 2023-03-18 22:30:52 | [Mutex] isItemNotified: received:node:ca182d37-56e0-45a7-925a-eefc0b724bc8:localhost:node-6f26e9b3-8e40-4850-95d2-5dd22a3af867:Node 6f26e9b3-8e40-4850-95d2-5dd22a3af867 :: false |
createNodes | 1.602s |
2023-03-18 22:30:48 |
2023-03-18 22:30:48 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2023-03-18 22:30:48 | ------------------------------------ 2023-03-18 22:30:49 | on localhost executing action create-node with content type application/json and payload: { "owner": "admin@test-domain.com", "pubsub#node_type": "leaf", "node": "node-6f26e9b3-8e40-4850-95d2-5dd22a3af867", "pubsub#title": "Node 6f26e9b3-8e40-4850-95d2-5dd22a3af867" } 2023-03-18 22:30:49 | from localhost for action create-node got result code 200 and payload { "Note": "Operation successful" } 2023-03-18 22:30:50 | [Mutex] waiting for: [received:nodes:42077726-e861-4a49-83fa-7dcc7426e937:localhost] 2023-03-18 22:30:50 | [Mutex] waiting for: [received:nodes:42077726-e861-4a49-83fa-7dcc7426e937:localhost] 2023-03-18 22:30:50 | [Mutex] waiting for: [received:nodes:42077726-e861-4a49-83fa-7dcc7426e937:localhost] 2023-03-18 22:30:50 | [Mutex] waiting for: [received:nodes:42077726-e861-4a49-83fa-7dcc7426e937:localhost] 2023-03-18 22:30:50 | [Mutex] received everything. 2023-03-18 22:30:50 | [Mutex] isItemNotified: received:node:42077726-e861-4a49-83fa-7dcc7426e937:localhost:node-6f26e9b3-8e40-4850-95d2-5dd22a3af867:Node 6f26e9b3-8e40-4850-95d2-5dd22a3af867 :: true |
createSubnodes | 1.032s |
2023-03-18 22:30:50 |
2023-03-18 22:30:50 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2023-03-18 22:30:50 | ------------------------------------ 2023-03-18 22:30:50 | on localhost executing action create-node with content type application/json and payload: { "owner": "admin@test-domain.com", "pubsub#node_type": "collection", "node": "node-ba295f5f-e5ee-4143-85f5-632bb20b7f9c", "pubsub#title": "Node ba295f5f-e5ee-4143-85f5-632bb20b7f9c" } 2023-03-18 22:30:50 | from localhost for action create-node got result code 200 and payload { "Note": "Operation successful" } 2023-03-18 22:30:51 | [Mutex] waiting for: [received:nodes:e9fdfebf-eb32-4ae6-a613-aecbb8688a82:localhost] 2023-03-18 22:30:51 | [Mutex] received everything. 2023-03-18 22:30:51 | [Mutex] isItemNotified: received:node:e9fdfebf-eb32-4ae6-a613-aecbb8688a82:localhost:node-ba295f5f-e5ee-4143-85f5-632bb20b7f9c:Node ba295f5f-e5ee-4143-85f5-632bb20b7f9c :: true |
deleteNodes | 1.023s |
2023-03-18 22:30:55 |
2023-03-18 22:30:55 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2023-03-18 22:30:55 | ------------------------------------ 2023-03-18 22:30:55 | on localhost executing action delete-node with content type application/json and payload: { "node": "node-ba295f5f-e5ee-4143-85f5-632bb20b7f9c" } 2023-03-18 22:30:55 | from localhost for action delete-node got result code 200 and payload { "Note": "Operation successful" } 2023-03-18 22:30:56 | [Mutex] waiting for: [received:nodes:1822a91b-40a1-487d-820d-9eab9a75a58d:localhost] 2023-03-18 22:30:56 | [Mutex] waiting for: [received:nodes:1822a91b-40a1-487d-820d-9eab9a75a58d:localhost] 2023-03-18 22:30:56 | [Mutex] waiting for: [received:nodes:1822a91b-40a1-487d-820d-9eab9a75a58d:localhost] 2023-03-18 22:30:56 | [Mutex] received everything. 2023-03-18 22:30:56 | [Mutex] isItemNotified: received:node:1822a91b-40a1-487d-820d-9eab9a75a58d:localhost:node-ba295f5f-e5ee-4143-85f5-632bb20b7f9c:Node ba295f5f-e5ee-4143-85f5-632bb20b7f9c :: false |
deleteSubnodes | 1.029s |
2023-03-18 22:30:54 |
2023-03-18 22:30:54 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2023-03-18 22:30:54 | ------------------------------------ 2023-03-18 22:30:54 | on localhost executing action delete-node with content type application/json and payload: { "node": "node-6f26e9b3-8e40-4850-95d2-5dd22a3af867" } 2023-03-18 22:30:54 | from localhost for action delete-node got result code 200 and payload { "Note": "Operation successful" } 2023-03-18 22:30:55 | [Mutex] waiting for: [received:nodes:406c83de-6d4d-48a0-b088-d41840027f09:localhost] 2023-03-18 22:30:55 | [Mutex] waiting for: [received:nodes:406c83de-6d4d-48a0-b088-d41840027f09:localhost] 2023-03-18 22:30:55 | [Mutex] waiting for: [received:nodes:406c83de-6d4d-48a0-b088-d41840027f09:localhost] 2023-03-18 22:30:55 | [Mutex] waiting for: [received:nodes:406c83de-6d4d-48a0-b088-d41840027f09:localhost] 2023-03-18 22:30:55 | [Mutex] received everything. 2023-03-18 22:30:55 | [Mutex] isItemNotified: received:node:406c83de-6d4d-48a0-b088-d41840027f09:localhost:node-6f26e9b3-8e40-4850-95d2-5dd22a3af867:Node 6f26e9b3-8e40-4850-95d2-5dd22a3af867 :: false 2023-03-18 22:30:55 | [Mutex] waiting for: [received:nodes:eccb9dd0-93e3-4a1d-af99-1b57757e4506:localhost] 2023-03-18 22:30:55 | [Mutex] received everything. 2023-03-18 22:30:55 | [Mutex] isItemNotified: received:node:eccb9dd0-93e3-4a1d-af99-1b57757e4506:localhost:node-6f26e9b3-8e40-4850-95d2-5dd22a3af867:Node 6f26e9b3-8e40-4850-95d2-5dd22a3af867 :: false |
publishItemsToNodes | 0.044s |
2023-03-18 22:30:53 |
2023-03-18 22:30:53 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2023-03-18 22:30:53 | ------------------------------------ 2023-03-18 22:30:53 | on localhost executing action publish-item with content type application/json and payload: { "node": "node-6f26e9b3-8e40-4850-95d2-5dd22a3af867", "entry": "<test>item-8905ebc0-5019-4214-b55d-1cd167407ad7</test>", "item-id": "item-8905ebc0-5019-4214-b55d-1cd167407ad7" } 2023-03-18 22:30:53 | from localhost for action publish-item got result code 200 and payload { "Note": "Operation successful", "item-id": "item-8905ebc0-5019-4214-b55d-1cd167407ad7" } 2023-03-18 22:30:53 | [Mutex] waiting for: [published:item:notifieditem-8905ebc0-5019-4214-b55d-1cd167407ad7:admin@test-domain.com] 2023-03-18 22:30:53 | [Mutex] received everything. 2023-03-18 22:30:53 | [Mutex] isItemNotified: published:item:notifieditem-8905ebc0-5019-4214-b55d-1cd167407ad7:admin@test-domain.com :: true |
retractItemsFromNodes | 0.058s |
2023-03-18 22:30:53 |
2023-03-18 22:30:53 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2023-03-18 22:30:53 | ------------------------------------ 2023-03-18 22:30:53 | on localhost executing action delete-item with content type application/json and payload: { "node": "node-6f26e9b3-8e40-4850-95d2-5dd22a3af867", "item-id": "item-8905ebc0-5019-4214-b55d-1cd167407ad7" } 2023-03-18 22:30:53 | from localhost for action delete-item got result code 200 and payload { "Note": "Operation successful", "item-id": "item-8905ebc0-5019-4214-b55d-1cd167407ad7" } 2023-03-18 22:30:53 | [Mutex] received everything. 2023-03-18 22:30:53 | [Mutex] isItemNotified: retracted:item:notifieditem-8905ebc0-5019-4214-b55d-1cd167407ad7:admin@test-domain.com :: true |
retrieveItemsFromNodes | 0.036s |
2023-03-18 22:30:53 |
2023-03-18 22:30:53 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2023-03-18 22:30:53 | ------------------------------------ 2023-03-18 22:30:53 | on localhost executing action retrieve-item with content type application/json and payload: { "node": "node-6f26e9b3-8e40-4850-95d2-5dd22a3af867", "item-id": "item-8905ebc0-5019-4214-b55d-1cd167407ad7" } 2023-03-18 22:30:53 | from localhost for action retrieve-item got result code 200 and payload { "title": "Retrive PubSub node item", "node": "node-6f26e9b3-8e40-4850-95d2-5dd22a3af867", "item-id": "item-8905ebc0-5019-4214-b55d-1cd167407ad7", "item": [ "<item id=\"item-8905ebc0-5019-4214-b55d-1cd167407ad7\"><test>item-8905ebc0-5019-4214-b55d-1cd167407ad7</test></item>" ] } 2023-03-18 22:30:53 | [Mutex] notify: [retrieved:item:item-8905ebc0-5019-4214-b55d-1cd167407ad7:payload-matches:true:localhost] 2023-03-18 22:30:53 | [Mutex] received everything. 2023-03-18 22:30:53 | [Mutex] isItemNotified: retrieved:item:item-8905ebc0-5019-4214-b55d-1cd167407ad7:payload-matches:true:localhost :: true |
retrieveUserSubscriptions | 0.048s |
2023-03-18 22:30:53 |
2023-03-18 22:30:53 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2023-03-18 22:30:53 | ------------------------------------ 2023-03-18 22:30:53 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload: { "jid": "admin@test-domain.com" } 2023-03-18 22:30:53 | from localhost for action retrieve-user-subscriptions got result code 200 and payload { "nodes": [ "test", "node-ba295f5f-e5ee-4143-85f5-632bb20b7f9c", "node-6f26e9b3-8e40-4850-95d2-5dd22a3af867" ] } |
retrieveUserSubscriptionsWithRegex | 0.051s |
2023-03-18 22:30:53 |
2023-03-18 22:30:53 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2023-03-18 22:30:53 | ------------------------------------ 2023-03-18 22:30:53 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload: { "jid": "admin@test-domain.com", "node-pattern": "(?!node-6f26e9b3-8e40-4850-95d2-5dd22a3af867)" } 2023-03-18 22:30:53 | from localhost for action retrieve-user-subscriptions got result code 200 and payload { "nodes": [ ] } |
subscribeNodes | 1.010s |
2023-03-18 22:30:52 |
2023-03-18 22:30:52 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2023-03-18 22:30:52 | ------------------------------------ 2023-03-18 22:30:52 | on localhost executing action subscribe-node with content type application/json and payload: { "node": "node-6f26e9b3-8e40-4850-95d2-5dd22a3af867", "jids": [ "admin@test-domain.com" ] } 2023-03-18 22:30:52 | from localhost for action subscribe-node got result code 200 and payload { "Note": "Operation successful" } |
unsubscribeNodes | 1.063s |
2023-03-18 22:30:53 |
2023-03-18 22:30:53 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2023-03-18 22:30:53 | ------------------------------------ 2023-03-18 22:30:53 | on localhost executing action unsubscribe-node with content type application/json and payload: { "node": "node-6f26e9b3-8e40-4850-95d2-5dd22a3af867", "jids": [ "admin@test-domain.com" ] } 2023-03-18 22:30:53 | from localhost for action unsubscribe-node got result code 200 and payload { "Note": "Operation successful" } |