Test duration : 8.701s
Passed Tests | ||
---|---|---|
tigase.tests.pubsub.TestRestApiUsingJSON | ||
configureNodes | 1.095s |
2022-12-18 21:30:37 |
2022-12-18 21:30:37 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-12-18 21:30:37 | ------------------------------------ 2022-12-18 21:30:37 | [Mutex] waiting for: [configured:node:node-f528697f-de56-4c03-859f-d34414cea74c:node-cd1b4da5-5f40-442e-a4a2-69d429731b01] 2022-12-18 21:30:37 | [Mutex] received everything. 2022-12-18 21:30:37 | [Mutex] isItemNotified: configured:node:node-f528697f-de56-4c03-859f-d34414cea74c:node-cd1b4da5-5f40-442e-a4a2-69d429731b01 :: true 2022-12-18 21:30:38 | [Mutex] waiting for: [received:nodes:573daa86-5cdb-4417-8541-431e9603dc61:localhost] 2022-12-18 21:30:38 | [Mutex] received everything. 2022-12-18 21:30:38 | [Mutex] isItemNotified: received:node:573daa86-5cdb-4417-8541-431e9603dc61:localhost:node-f528697f-de56-4c03-859f-d34414cea74c:Node f528697f-de56-4c03-859f-d34414cea74c :: true 2022-12-18 21:30:38 | [Mutex] waiting for: [received:nodes:cf657857-d8c0-4353-afd6-eb2a6a21080f:localhost] 2022-12-18 21:30:38 | [Mutex] waiting for: [received:nodes:cf657857-d8c0-4353-afd6-eb2a6a21080f:localhost] 2022-12-18 21:30:38 | [Mutex] waiting for: [received:nodes:cf657857-d8c0-4353-afd6-eb2a6a21080f:localhost] 2022-12-18 21:30:38 | [Mutex] received everything. 2022-12-18 21:30:38 | [Mutex] isItemNotified: received:node:cf657857-d8c0-4353-afd6-eb2a6a21080f:localhost:node-f528697f-de56-4c03-859f-d34414cea74c:Node f528697f-de56-4c03-859f-d34414cea74c :: false |
createNodes | 1.677s |
2022-12-18 21:30:35 |
2022-12-18 21:30:35 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-12-18 21:30:35 | ------------------------------------ 2022-12-18 21:30:35 | on localhost executing action create-node with content type application/json and payload: { "owner": "admin@test-domain.com", "pubsub#node_type": "leaf", "node": "node-f528697f-de56-4c03-859f-d34414cea74c", "pubsub#title": "Node f528697f-de56-4c03-859f-d34414cea74c" } 2022-12-18 21:30:35 | from localhost for action create-node got result code 200 and payload { "Note": "Operation successful" } 2022-12-18 21:30:36 | [Mutex] waiting for: [received:nodes:47aa8cae-685e-4d70-afb6-0e49ba7befa7:localhost] 2022-12-18 21:30:36 | [Mutex] waiting for: [received:nodes:47aa8cae-685e-4d70-afb6-0e49ba7befa7:localhost] 2022-12-18 21:30:36 | [Mutex] waiting for: [received:nodes:47aa8cae-685e-4d70-afb6-0e49ba7befa7:localhost] 2022-12-18 21:30:36 | [Mutex] waiting for: [received:nodes:47aa8cae-685e-4d70-afb6-0e49ba7befa7:localhost] 2022-12-18 21:30:36 | [Mutex] received everything. 2022-12-18 21:30:36 | [Mutex] isItemNotified: received:node:47aa8cae-685e-4d70-afb6-0e49ba7befa7:localhost:node-f528697f-de56-4c03-859f-d34414cea74c:Node f528697f-de56-4c03-859f-d34414cea74c :: true |
createSubnodes | 1.024s |
2022-12-18 21:30:36 |
2022-12-18 21:30:36 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-12-18 21:30:36 | ------------------------------------ 2022-12-18 21:30:36 | on localhost executing action create-node with content type application/json and payload: { "owner": "admin@test-domain.com", "pubsub#node_type": "collection", "node": "node-cd1b4da5-5f40-442e-a4a2-69d429731b01", "pubsub#title": "Node cd1b4da5-5f40-442e-a4a2-69d429731b01" } 2022-12-18 21:30:36 | from localhost for action create-node got result code 200 and payload { "Note": "Operation successful" } 2022-12-18 21:30:37 | [Mutex] waiting for: [received:nodes:6adf18a3-a0c6-4f2f-9115-0ae7c23a9169:localhost] 2022-12-18 21:30:37 | [Mutex] waiting for: [received:nodes:6adf18a3-a0c6-4f2f-9115-0ae7c23a9169:localhost] 2022-12-18 21:30:37 | [Mutex] waiting for: [received:nodes:6adf18a3-a0c6-4f2f-9115-0ae7c23a9169:localhost] 2022-12-18 21:30:37 | [Mutex] waiting for: [received:nodes:6adf18a3-a0c6-4f2f-9115-0ae7c23a9169:localhost] 2022-12-18 21:30:37 | [Mutex] received everything. 2022-12-18 21:30:37 | [Mutex] isItemNotified: received:node:6adf18a3-a0c6-4f2f-9115-0ae7c23a9169:localhost:node-cd1b4da5-5f40-442e-a4a2-69d429731b01:Node cd1b4da5-5f40-442e-a4a2-69d429731b01 :: true |
deleteNodes | 1.025s |
2022-12-18 21:30:42 |
2022-12-18 21:30:42 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-12-18 21:30:42 | ------------------------------------ 2022-12-18 21:30:42 | on localhost executing action delete-node with content type application/json and payload: { "node": "node-cd1b4da5-5f40-442e-a4a2-69d429731b01" } 2022-12-18 21:30:42 | from localhost for action delete-node got result code 200 and payload { "Note": "Operation successful" } 2022-12-18 21:30:43 | [Mutex] waiting for: [received:nodes:032ad1b8-acf7-416e-9d7e-ac484397015b:localhost] 2022-12-18 21:30:43 | [Mutex] waiting for: [received:nodes:032ad1b8-acf7-416e-9d7e-ac484397015b:localhost] 2022-12-18 21:30:43 | [Mutex] waiting for: [received:nodes:032ad1b8-acf7-416e-9d7e-ac484397015b:localhost] 2022-12-18 21:30:43 | [Mutex] received everything. 2022-12-18 21:30:43 | [Mutex] isItemNotified: received:node:032ad1b8-acf7-416e-9d7e-ac484397015b:localhost:node-cd1b4da5-5f40-442e-a4a2-69d429731b01:Node cd1b4da5-5f40-442e-a4a2-69d429731b01 :: false |
deleteSubnodes | 1.024s |
2022-12-18 21:30:41 |
2022-12-18 21:30:41 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-12-18 21:30:41 | ------------------------------------ 2022-12-18 21:30:41 | on localhost executing action delete-node with content type application/json and payload: { "node": "node-f528697f-de56-4c03-859f-d34414cea74c" } 2022-12-18 21:30:41 | from localhost for action delete-node got result code 200 and payload { "Note": "Operation successful" } 2022-12-18 21:30:42 | [Mutex] waiting for: [received:nodes:d7bcc275-0c46-40ab-befd-a97f2f8508db:localhost] 2022-12-18 21:30:42 | [Mutex] waiting for: [received:nodes:d7bcc275-0c46-40ab-befd-a97f2f8508db:localhost] 2022-12-18 21:30:42 | [Mutex] waiting for: [received:nodes:d7bcc275-0c46-40ab-befd-a97f2f8508db:localhost] 2022-12-18 21:30:42 | [Mutex] received everything. 2022-12-18 21:30:42 | [Mutex] isItemNotified: received:node:d7bcc275-0c46-40ab-befd-a97f2f8508db:localhost:node-f528697f-de56-4c03-859f-d34414cea74c:Node f528697f-de56-4c03-859f-d34414cea74c :: false 2022-12-18 21:30:42 | [Mutex] waiting for: [received:nodes:2240c60c-5034-4e33-ba96-31a454fd13a1:localhost] 2022-12-18 21:30:42 | [Mutex] received everything. 2022-12-18 21:30:42 | [Mutex] isItemNotified: received:node:2240c60c-5034-4e33-ba96-31a454fd13a1:localhost:node-f528697f-de56-4c03-859f-d34414cea74c:Node f528697f-de56-4c03-859f-d34414cea74c :: false |
publishItemsToNodes | 0.033s |
2022-12-18 21:30:39 |
2022-12-18 21:30:39 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-12-18 21:30:39 | ------------------------------------ 2022-12-18 21:30:39 | on localhost executing action publish-item with content type application/json and payload: { "node": "node-f528697f-de56-4c03-859f-d34414cea74c", "entry": "<test>item-f93175bf-d70c-428a-b203-7c6d55c46936</test>", "item-id": "item-f93175bf-d70c-428a-b203-7c6d55c46936" } 2022-12-18 21:30:39 | from localhost for action publish-item got result code 200 and payload { "Note": "Operation successful", "item-id": "item-f93175bf-d70c-428a-b203-7c6d55c46936" } 2022-12-18 21:30:39 | [Mutex] waiting for: [published:item:notifieditem-f93175bf-d70c-428a-b203-7c6d55c46936:admin@test-domain.com] 2022-12-18 21:30:39 | [Mutex] received everything. 2022-12-18 21:30:39 | [Mutex] isItemNotified: published:item:notifieditem-f93175bf-d70c-428a-b203-7c6d55c46936:admin@test-domain.com :: true |
retractItemsFromNodes | 0.080s |
2022-12-18 21:30:40 |
2022-12-18 21:30:40 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-12-18 21:30:40 | ------------------------------------ 2022-12-18 21:30:40 | on localhost executing action delete-item with content type application/json and payload: { "node": "node-f528697f-de56-4c03-859f-d34414cea74c", "item-id": "item-f93175bf-d70c-428a-b203-7c6d55c46936" } 2022-12-18 21:30:40 | from localhost for action delete-item got result code 200 and payload { "Note": "Operation successful", "item-id": "item-f93175bf-d70c-428a-b203-7c6d55c46936" } 2022-12-18 21:30:40 | [Mutex] waiting for: [retracted:item:notifieditem-f93175bf-d70c-428a-b203-7c6d55c46936:admin@test-domain.com] 2022-12-18 21:30:40 | [Mutex] received everything. 2022-12-18 21:30:40 | [Mutex] isItemNotified: retracted:item:notifieditem-f93175bf-d70c-428a-b203-7c6d55c46936:admin@test-domain.com :: true |
retrieveItemsFromNodes | 0.057s |
2022-12-18 21:30:39 |
2022-12-18 21:30:39 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-12-18 21:30:39 | ------------------------------------ 2022-12-18 21:30:39 | on localhost executing action retrieve-item with content type application/json and payload: { "node": "node-f528697f-de56-4c03-859f-d34414cea74c", "item-id": "item-f93175bf-d70c-428a-b203-7c6d55c46936" } 2022-12-18 21:30:39 | from localhost for action retrieve-item got result code 200 and payload { "title": "Retrive PubSub node item", "node": "node-f528697f-de56-4c03-859f-d34414cea74c", "item-id": "item-f93175bf-d70c-428a-b203-7c6d55c46936", "item": [ "<item id=\"item-f93175bf-d70c-428a-b203-7c6d55c46936\"><test>item-f93175bf-d70c-428a-b203-7c6d55c46936</test></item>" ] } 2022-12-18 21:30:39 | [Mutex] notify: [retrieved:item:item-f93175bf-d70c-428a-b203-7c6d55c46936:payload-matches:true:localhost] 2022-12-18 21:30:39 | [Mutex] received everything. 2022-12-18 21:30:39 | [Mutex] isItemNotified: retrieved:item:item-f93175bf-d70c-428a-b203-7c6d55c46936:payload-matches:true:localhost :: true |
retrieveUserSubscriptions | 0.046s |
2022-12-18 21:30:39 |
2022-12-18 21:30:39 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-12-18 21:30:39 | ------------------------------------ 2022-12-18 21:30:39 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload: { "jid": "admin@test-domain.com" } 2022-12-18 21:30:39 | from localhost for action retrieve-user-subscriptions got result code 200 and payload { "nodes": [ "node-cd1b4da5-5f40-442e-a4a2-69d429731b01", "test", "node-f528697f-de56-4c03-859f-d34414cea74c" ] } |
retrieveUserSubscriptionsWithRegex | 0.047s |
2022-12-18 21:30:39 |
2022-12-18 21:30:39 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-12-18 21:30:39 | ------------------------------------ 2022-12-18 21:30:39 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload: { "jid": "admin@test-domain.com", "node-pattern": "(?!node-f528697f-de56-4c03-859f-d34414cea74c)" } 2022-12-18 21:30:40 | from localhost for action retrieve-user-subscriptions got result code 200 and payload { "nodes": [ ] } |
subscribeNodes | 1.008s |
2022-12-18 21:30:38 |
2022-12-18 21:30:38 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-12-18 21:30:38 | ------------------------------------ 2022-12-18 21:30:38 | on localhost executing action subscribe-node with content type application/json and payload: { "node": "node-f528697f-de56-4c03-859f-d34414cea74c", "jids": [ "admin@test-domain.com" ] } 2022-12-18 21:30:38 | from localhost for action subscribe-node got result code 200 and payload { "Note": "Operation successful" } |
unsubscribeNodes | 1.091s |
2022-12-18 21:30:40 |
2022-12-18 21:30:40 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-12-18 21:30:40 | ------------------------------------ 2022-12-18 21:30:40 | on localhost executing action unsubscribe-node with content type application/json and payload: { "node": "node-f528697f-de56-4c03-859f-d34414cea74c", "jids": [ "admin@test-domain.com" ] } 2022-12-18 21:30:40 | from localhost for action unsubscribe-node got result code 200 and payload { "Note": "Operation successful" } |