Test duration : 8.707s
Passed Tests | ||
---|---|---|
tigase.tests.pubsub.TestRestApiUsingJSON | ||
configureNodes | 1.115s |
2022-05-15 22:37:18 |
2022-05-15 22:37:18 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-05-15 22:37:18 | ------------------------------------ 2022-05-15 22:37:18 | [Mutex] waiting for: [configured:node:node-9b28c388-979d-4ab2-95ee-f9f0b0239518:node-caff666a-34a0-4557-b68d-3d70af2ba2df] 2022-05-15 22:37:18 | [Mutex] received everything. 2022-05-15 22:37:18 | [Mutex] isItemNotified: configured:node:node-9b28c388-979d-4ab2-95ee-f9f0b0239518:node-caff666a-34a0-4557-b68d-3d70af2ba2df :: true 2022-05-15 22:37:19 | [Mutex] waiting for: [received:nodes:3fdaea54-214f-4c70-80d5-d66801b998ed:localhost] 2022-05-15 22:37:19 | [Mutex] received everything. 2022-05-15 22:37:19 | [Mutex] isItemNotified: received:node:3fdaea54-214f-4c70-80d5-d66801b998ed:localhost:node-9b28c388-979d-4ab2-95ee-f9f0b0239518:Node 9b28c388-979d-4ab2-95ee-f9f0b0239518 :: true 2022-05-15 22:37:19 | [Mutex] waiting for: [received:nodes:7f6810a8-e4ff-41c0-9e7d-1d0b9c9f0e8c:localhost] 2022-05-15 22:37:19 | [Mutex] received everything. 2022-05-15 22:37:19 | [Mutex] isItemNotified: received:node:7f6810a8-e4ff-41c0-9e7d-1d0b9c9f0e8c:localhost:node-9b28c388-979d-4ab2-95ee-f9f0b0239518:Node 9b28c388-979d-4ab2-95ee-f9f0b0239518 :: false |
createNodes | 1.574s |
2022-05-15 22:37:15 |
2022-05-15 22:37:15 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-05-15 22:37:15 | ------------------------------------ 2022-05-15 22:37:16 | on localhost executing action create-node with content type application/json and payload: { "owner": "admin@test-domain.com", "pubsub#node_type": "leaf", "node": "node-9b28c388-979d-4ab2-95ee-f9f0b0239518", "pubsub#title": "Node 9b28c388-979d-4ab2-95ee-f9f0b0239518" } 2022-05-15 22:37:16 | from localhost for action create-node got result code 200 and payload { "Note": "Operation successful" } 2022-05-15 22:37:17 | [Mutex] waiting for: [received:nodes:04ae2b8c-1b57-4d7f-81a2-15f580d66e50:localhost] 2022-05-15 22:37:17 | [Mutex] waiting for: [received:nodes:04ae2b8c-1b57-4d7f-81a2-15f580d66e50:localhost] 2022-05-15 22:37:17 | [Mutex] received everything. 2022-05-15 22:37:17 | [Mutex] isItemNotified: received:node:04ae2b8c-1b57-4d7f-81a2-15f580d66e50:localhost:node-9b28c388-979d-4ab2-95ee-f9f0b0239518:Node 9b28c388-979d-4ab2-95ee-f9f0b0239518 :: true |
createSubnodes | 1.024s |
2022-05-15 22:37:17 |
2022-05-15 22:37:17 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-05-15 22:37:17 | ------------------------------------ 2022-05-15 22:37:17 | on localhost executing action create-node with content type application/json and payload: { "owner": "admin@test-domain.com", "pubsub#node_type": "collection", "node": "node-caff666a-34a0-4557-b68d-3d70af2ba2df", "pubsub#title": "Node caff666a-34a0-4557-b68d-3d70af2ba2df" } 2022-05-15 22:37:17 | from localhost for action create-node got result code 200 and payload { "Note": "Operation successful" } 2022-05-15 22:37:18 | [Mutex] waiting for: [received:nodes:bbfe1e94-b898-4455-80ed-786b3fbc1232:localhost] 2022-05-15 22:37:18 | [Mutex] received everything. 2022-05-15 22:37:18 | [Mutex] isItemNotified: received:node:bbfe1e94-b898-4455-80ed-786b3fbc1232:localhost:node-caff666a-34a0-4557-b68d-3d70af2ba2df:Node caff666a-34a0-4557-b68d-3d70af2ba2df :: true |
deleteNodes | 1.021s |
2022-05-15 22:37:22 |
2022-05-15 22:37:22 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-05-15 22:37:22 | ------------------------------------ 2022-05-15 22:37:22 | on localhost executing action delete-node with content type application/json and payload: { "node": "node-caff666a-34a0-4557-b68d-3d70af2ba2df" } 2022-05-15 22:37:22 | from localhost for action delete-node got result code 200 and payload { "Note": "Operation successful" } 2022-05-15 22:37:23 | [Mutex] waiting for: [received:nodes:dcc423b5-afde-4da4-ba26-90ccaf9fb5f7:localhost] 2022-05-15 22:37:23 | [Mutex] waiting for: [received:nodes:dcc423b5-afde-4da4-ba26-90ccaf9fb5f7:localhost] 2022-05-15 22:37:23 | [Mutex] waiting for: [received:nodes:dcc423b5-afde-4da4-ba26-90ccaf9fb5f7:localhost] 2022-05-15 22:37:23 | [Mutex] waiting for: [received:nodes:dcc423b5-afde-4da4-ba26-90ccaf9fb5f7:localhost] 2022-05-15 22:37:23 | [Mutex] received everything. 2022-05-15 22:37:23 | [Mutex] isItemNotified: received:node:dcc423b5-afde-4da4-ba26-90ccaf9fb5f7:localhost:node-caff666a-34a0-4557-b68d-3d70af2ba2df:Node caff666a-34a0-4557-b68d-3d70af2ba2df :: false |
deleteSubnodes | 1.027s |
2022-05-15 22:37:21 |
2022-05-15 22:37:21 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-05-15 22:37:21 | ------------------------------------ 2022-05-15 22:37:21 | on localhost executing action delete-node with content type application/json and payload: { "node": "node-9b28c388-979d-4ab2-95ee-f9f0b0239518" } 2022-05-15 22:37:21 | from localhost for action delete-node got result code 200 and payload { "Note": "Operation successful" } 2022-05-15 22:37:22 | [Mutex] waiting for: [received:nodes:9cc0642b-1a51-423e-b83f-b72d05333073:localhost] 2022-05-15 22:37:22 | [Mutex] waiting for: [received:nodes:9cc0642b-1a51-423e-b83f-b72d05333073:localhost] 2022-05-15 22:37:22 | [Mutex] received everything. 2022-05-15 22:37:22 | [Mutex] isItemNotified: received:node:9cc0642b-1a51-423e-b83f-b72d05333073:localhost:node-9b28c388-979d-4ab2-95ee-f9f0b0239518:Node 9b28c388-979d-4ab2-95ee-f9f0b0239518 :: false 2022-05-15 22:37:22 | [Mutex] waiting for: [received:nodes:95b3f44f-7eee-4bc6-9220-9191aabec877:localhost] 2022-05-15 22:37:22 | [Mutex] received everything. 2022-05-15 22:37:22 | [Mutex] isItemNotified: received:node:95b3f44f-7eee-4bc6-9220-9191aabec877:localhost:node-9b28c388-979d-4ab2-95ee-f9f0b0239518:Node 9b28c388-979d-4ab2-95ee-f9f0b0239518 :: false |
publishItemsToNodes | 0.043s |
2022-05-15 22:37:20 |
2022-05-15 22:37:20 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-05-15 22:37:20 | ------------------------------------ 2022-05-15 22:37:20 | on localhost executing action publish-item with content type application/json and payload: { "node": "node-9b28c388-979d-4ab2-95ee-f9f0b0239518", "entry": "<test>item-b7b8e253-93c2-4378-bbec-f5545c39d3df</test>", "item-id": "item-b7b8e253-93c2-4378-bbec-f5545c39d3df" } 2022-05-15 22:37:20 | from localhost for action publish-item got result code 200 and payload { "Note": "Operation successful", "item-id": "item-b7b8e253-93c2-4378-bbec-f5545c39d3df" } 2022-05-15 22:37:20 | [Mutex] waiting for: [published:item:notifieditem-b7b8e253-93c2-4378-bbec-f5545c39d3df:admin@test-domain.com] 2022-05-15 22:37:20 | [Mutex] received everything. 2022-05-15 22:37:20 | [Mutex] isItemNotified: published:item:notifieditem-b7b8e253-93c2-4378-bbec-f5545c39d3df:admin@test-domain.com :: true |
retractItemsFromNodes | 0.055s |
2022-05-15 22:37:20 |
2022-05-15 22:37:20 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-05-15 22:37:20 | ------------------------------------ 2022-05-15 22:37:20 | on localhost executing action delete-item with content type application/json and payload: { "node": "node-9b28c388-979d-4ab2-95ee-f9f0b0239518", "item-id": "item-b7b8e253-93c2-4378-bbec-f5545c39d3df" } 2022-05-15 22:37:20 | from localhost for action delete-item got result code 200 and payload { "Note": "Operation successful", "item-id": "item-b7b8e253-93c2-4378-bbec-f5545c39d3df" } 2022-05-15 22:37:20 | [Mutex] received everything. 2022-05-15 22:37:20 | [Mutex] isItemNotified: retracted:item:notifieditem-b7b8e253-93c2-4378-bbec-f5545c39d3df:admin@test-domain.com :: true |
retrieveItemsFromNodes | 0.064s |
2022-05-15 22:37:20 |
2022-05-15 22:37:20 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-05-15 22:37:20 | ------------------------------------ 2022-05-15 22:37:20 | on localhost executing action retrieve-item with content type application/json and payload: { "node": "node-9b28c388-979d-4ab2-95ee-f9f0b0239518", "item-id": "item-b7b8e253-93c2-4378-bbec-f5545c39d3df" } 2022-05-15 22:37:20 | from localhost for action retrieve-item got result code 200 and payload { "title": "Retrive PubSub node item", "node": "node-9b28c388-979d-4ab2-95ee-f9f0b0239518", "item-id": "item-b7b8e253-93c2-4378-bbec-f5545c39d3df", "item": [ "<item id=\"item-b7b8e253-93c2-4378-bbec-f5545c39d3df\"><test>item-b7b8e253-93c2-4378-bbec-f5545c39d3df</test></item>" ] } 2022-05-15 22:37:20 | [Mutex] notify: [retrieved:item:item-b7b8e253-93c2-4378-bbec-f5545c39d3df:payload-matches:true:localhost] 2022-05-15 22:37:20 | [Mutex] received everything. 2022-05-15 22:37:20 | [Mutex] isItemNotified: retrieved:item:item-b7b8e253-93c2-4378-bbec-f5545c39d3df:payload-matches:true:localhost :: true |
retrieveUserSubscriptions | 0.047s |
2022-05-15 22:37:20 |
2022-05-15 22:37:20 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-05-15 22:37:20 | ------------------------------------ 2022-05-15 22:37:20 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload: { "jid": "admin@test-domain.com" } 2022-05-15 22:37:20 | from localhost for action retrieve-user-subscriptions got result code 200 and payload { "nodes": [ "node-9b28c388-979d-4ab2-95ee-f9f0b0239518", "node-caff666a-34a0-4557-b68d-3d70af2ba2df", "test" ] } |
retrieveUserSubscriptionsWithRegex | 0.048s |
2022-05-15 22:37:20 |
2022-05-15 22:37:20 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-05-15 22:37:20 | ------------------------------------ 2022-05-15 22:37:20 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload: { "jid": "admin@test-domain.com", "node-pattern": "(?!node-9b28c388-979d-4ab2-95ee-f9f0b0239518)" } 2022-05-15 22:37:20 | from localhost for action retrieve-user-subscriptions got result code 200 and payload { "nodes": [ ] } |
subscribeNodes | 1.020s |
2022-05-15 22:37:19 |
2022-05-15 22:37:19 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-05-15 22:37:19 | ------------------------------------ 2022-05-15 22:37:19 | on localhost executing action subscribe-node with content type application/json and payload: { "node": "node-9b28c388-979d-4ab2-95ee-f9f0b0239518", "jids": [ "admin@test-domain.com" ] } 2022-05-15 22:37:19 | from localhost for action subscribe-node got result code 200 and payload { "Note": "Operation successful" } |
unsubscribeNodes | 1.055s |
2022-05-15 22:37:20 |
2022-05-15 22:37:20 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-05-15 22:37:20 | ------------------------------------ 2022-05-15 22:37:20 | on localhost executing action unsubscribe-node with content type application/json and payload: { "node": "node-9b28c388-979d-4ab2-95ee-f9f0b0239518", "jids": [ "admin@test-domain.com" ] } 2022-05-15 22:37:20 | from localhost for action unsubscribe-node got result code 200 and payload { "Note": "Operation successful" } |