Test duration : 8.576s
Passed Tests | ||
---|---|---|
tigase.tests.pubsub.TestRestApiUsingJSON | ||
configureNodes | 1.093s |
2022-10-13 22:43:02 |
2022-10-13 22:43:02 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-10-13 22:43:02 | ------------------------------------ 2022-10-13 22:43:02 | [Mutex] waiting for: [configured:node:node-33fcded5-d13c-47b0-b87e-f928b618afd7:node-362276a5-b507-4d54-9ee9-6ac365f5c3a7] 2022-10-13 22:43:02 | [Mutex] received everything. 2022-10-13 22:43:02 | [Mutex] isItemNotified: configured:node:node-33fcded5-d13c-47b0-b87e-f928b618afd7:node-362276a5-b507-4d54-9ee9-6ac365f5c3a7 :: true 2022-10-13 22:43:03 | [Mutex] waiting for: [received:nodes:fbcee761-3458-4f1a-bec2-c48ce36050a6:localhost] 2022-10-13 22:43:03 | [Mutex] received everything. 2022-10-13 22:43:03 | [Mutex] isItemNotified: received:node:fbcee761-3458-4f1a-bec2-c48ce36050a6:localhost:node-33fcded5-d13c-47b0-b87e-f928b618afd7:Node 33fcded5-d13c-47b0-b87e-f928b618afd7 :: true 2022-10-13 22:43:03 | [Mutex] waiting for: [received:nodes:8f2f1c13-fedf-4814-bcbc-889fcb5e920d:localhost] 2022-10-13 22:43:03 | [Mutex] waiting for: [received:nodes:8f2f1c13-fedf-4814-bcbc-889fcb5e920d:localhost] 2022-10-13 22:43:03 | [Mutex] received everything. 2022-10-13 22:43:03 | [Mutex] isItemNotified: received:node:8f2f1c13-fedf-4814-bcbc-889fcb5e920d:localhost:node-33fcded5-d13c-47b0-b87e-f928b618afd7:Node 33fcded5-d13c-47b0-b87e-f928b618afd7 :: false |
createNodes | 1.508s |
2022-10-13 22:42:59 |
2022-10-13 22:42:59 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-10-13 22:42:59 | ------------------------------------ 2022-10-13 22:42:59 | on localhost executing action create-node with content type application/json and payload: { "owner": "admin@test-domain.com", "pubsub#node_type": "leaf", "node": "node-33fcded5-d13c-47b0-b87e-f928b618afd7", "pubsub#title": "Node 33fcded5-d13c-47b0-b87e-f928b618afd7" } 2022-10-13 22:42:59 | from localhost for action create-node got result code 200 and payload { "Note": "Operation successful" } 2022-10-13 22:43:01 | [Mutex] waiting for: [received:nodes:d8d3a4e8-caae-4395-abda-59ad897174d6:localhost] 2022-10-13 22:43:01 | [Mutex] waiting for: [received:nodes:d8d3a4e8-caae-4395-abda-59ad897174d6:localhost] 2022-10-13 22:43:01 | [Mutex] received everything. 2022-10-13 22:43:01 | [Mutex] isItemNotified: received:node:d8d3a4e8-caae-4395-abda-59ad897174d6:localhost:node-33fcded5-d13c-47b0-b87e-f928b618afd7:Node 33fcded5-d13c-47b0-b87e-f928b618afd7 :: true |
createSubnodes | 1.020s |
2022-10-13 22:43:01 |
2022-10-13 22:43:01 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-10-13 22:43:01 | ------------------------------------ 2022-10-13 22:43:01 | on localhost executing action create-node with content type application/json and payload: { "owner": "admin@test-domain.com", "pubsub#node_type": "collection", "node": "node-362276a5-b507-4d54-9ee9-6ac365f5c3a7", "pubsub#title": "Node 362276a5-b507-4d54-9ee9-6ac365f5c3a7" } 2022-10-13 22:43:01 | from localhost for action create-node got result code 200 and payload { "Note": "Operation successful" } 2022-10-13 22:43:02 | [Mutex] waiting for: [received:nodes:41d8db81-f012-458f-b68b-2181ae05e0ac:localhost] 2022-10-13 22:43:02 | [Mutex] received everything. 2022-10-13 22:43:02 | [Mutex] isItemNotified: received:node:41d8db81-f012-458f-b68b-2181ae05e0ac:localhost:node-362276a5-b507-4d54-9ee9-6ac365f5c3a7:Node 362276a5-b507-4d54-9ee9-6ac365f5c3a7 :: true |
deleteNodes | 1.020s |
2022-10-13 22:43:06 |
2022-10-13 22:43:06 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-10-13 22:43:06 | ------------------------------------ 2022-10-13 22:43:06 | on localhost executing action delete-node with content type application/json and payload: { "node": "node-362276a5-b507-4d54-9ee9-6ac365f5c3a7" } 2022-10-13 22:43:06 | from localhost for action delete-node got result code 200 and payload { "Note": "Operation successful" } 2022-10-13 22:43:07 | [Mutex] waiting for: [received:nodes:2107f1fe-50cb-45fc-97e3-ce816f9f05aa:localhost] 2022-10-13 22:43:07 | [Mutex] received everything. 2022-10-13 22:43:07 | [Mutex] isItemNotified: received:node:2107f1fe-50cb-45fc-97e3-ce816f9f05aa:localhost:node-362276a5-b507-4d54-9ee9-6ac365f5c3a7:Node 362276a5-b507-4d54-9ee9-6ac365f5c3a7 :: false |
deleteSubnodes | 1.021s |
2022-10-13 22:43:05 |
2022-10-13 22:43:05 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-10-13 22:43:05 | ------------------------------------ 2022-10-13 22:43:05 | on localhost executing action delete-node with content type application/json and payload: { "node": "node-33fcded5-d13c-47b0-b87e-f928b618afd7" } 2022-10-13 22:43:05 | from localhost for action delete-node got result code 200 and payload { "Note": "Operation successful" } 2022-10-13 22:43:06 | [Mutex] waiting for: [received:nodes:4647ea3a-ed37-4a66-bcee-3b2331e4d23e:localhost] 2022-10-13 22:43:06 | [Mutex] received everything. 2022-10-13 22:43:06 | [Mutex] isItemNotified: received:node:4647ea3a-ed37-4a66-bcee-3b2331e4d23e:localhost:node-33fcded5-d13c-47b0-b87e-f928b618afd7:Node 33fcded5-d13c-47b0-b87e-f928b618afd7 :: false 2022-10-13 22:43:06 | [Mutex] waiting for: [received:nodes:4580266a-b4b0-4c30-b572-671b1bf8aee9:localhost] 2022-10-13 22:43:06 | [Mutex] received everything. 2022-10-13 22:43:06 | [Mutex] isItemNotified: received:node:4580266a-b4b0-4c30-b572-671b1bf8aee9:localhost:node-33fcded5-d13c-47b0-b87e-f928b618afd7:Node 33fcded5-d13c-47b0-b87e-f928b618afd7 :: false |
publishItemsToNodes | 0.044s |
2022-10-13 22:43:04 |
2022-10-13 22:43:04 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-10-13 22:43:04 | ------------------------------------ 2022-10-13 22:43:04 | on localhost executing action publish-item with content type application/json and payload: { "node": "node-33fcded5-d13c-47b0-b87e-f928b618afd7", "entry": "<test>item-4dfafa1f-31f9-4e36-8d59-6489123786a6</test>", "item-id": "item-4dfafa1f-31f9-4e36-8d59-6489123786a6" } 2022-10-13 22:43:04 | from localhost for action publish-item got result code 200 and payload { "Note": "Operation successful", "item-id": "item-4dfafa1f-31f9-4e36-8d59-6489123786a6" } 2022-10-13 22:43:04 | [Mutex] waiting for: [published:item:notifieditem-4dfafa1f-31f9-4e36-8d59-6489123786a6:admin@test-domain.com] 2022-10-13 22:43:04 | [Mutex] received everything. 2022-10-13 22:43:04 | [Mutex] isItemNotified: published:item:notifieditem-4dfafa1f-31f9-4e36-8d59-6489123786a6:admin@test-domain.com :: true |
retractItemsFromNodes | 0.051s |
2022-10-13 22:43:04 |
2022-10-13 22:43:04 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-10-13 22:43:04 | ------------------------------------ 2022-10-13 22:43:04 | on localhost executing action delete-item with content type application/json and payload: { "node": "node-33fcded5-d13c-47b0-b87e-f928b618afd7", "item-id": "item-4dfafa1f-31f9-4e36-8d59-6489123786a6" } 2022-10-13 22:43:04 | from localhost for action delete-item got result code 200 and payload { "Note": "Operation successful", "item-id": "item-4dfafa1f-31f9-4e36-8d59-6489123786a6" } 2022-10-13 22:43:04 | [Mutex] received everything. 2022-10-13 22:43:04 | [Mutex] isItemNotified: retracted:item:notifieditem-4dfafa1f-31f9-4e36-8d59-6489123786a6:admin@test-domain.com :: true |
retrieveItemsFromNodes | 0.071s |
2022-10-13 22:43:04 |
2022-10-13 22:43:04 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-10-13 22:43:04 | ------------------------------------ 2022-10-13 22:43:04 | on localhost executing action retrieve-item with content type application/json and payload: { "node": "node-33fcded5-d13c-47b0-b87e-f928b618afd7", "item-id": "item-4dfafa1f-31f9-4e36-8d59-6489123786a6" } 2022-10-13 22:43:04 | from localhost for action retrieve-item got result code 200 and payload { "title": "Retrive PubSub node item", "node": "node-33fcded5-d13c-47b0-b87e-f928b618afd7", "item-id": "item-4dfafa1f-31f9-4e36-8d59-6489123786a6", "item": [ "<item id=\"item-4dfafa1f-31f9-4e36-8d59-6489123786a6\"><test>item-4dfafa1f-31f9-4e36-8d59-6489123786a6</test></item>" ] } 2022-10-13 22:43:04 | [Mutex] notify: [retrieved:item:item-4dfafa1f-31f9-4e36-8d59-6489123786a6:payload-matches:true:localhost] 2022-10-13 22:43:04 | [Mutex] received everything. 2022-10-13 22:43:04 | [Mutex] isItemNotified: retrieved:item:item-4dfafa1f-31f9-4e36-8d59-6489123786a6:payload-matches:true:localhost :: true |
retrieveUserSubscriptions | 0.051s |
2022-10-13 22:43:04 |
2022-10-13 22:43:04 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-10-13 22:43:04 | ------------------------------------ 2022-10-13 22:43:04 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload: { "jid": "admin@test-domain.com" } 2022-10-13 22:43:04 | from localhost for action retrieve-user-subscriptions got result code 200 and payload { "nodes": [ "test", "node-362276a5-b507-4d54-9ee9-6ac365f5c3a7", "node-33fcded5-d13c-47b0-b87e-f928b618afd7" ] } |
retrieveUserSubscriptionsWithRegex | 0.047s |
2022-10-13 22:43:04 |
2022-10-13 22:43:04 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-10-13 22:43:04 | ------------------------------------ 2022-10-13 22:43:04 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload: { "jid": "admin@test-domain.com", "node-pattern": "(?!node-33fcded5-d13c-47b0-b87e-f928b618afd7)" } 2022-10-13 22:43:04 | from localhost for action retrieve-user-subscriptions got result code 200 and payload { "nodes": [ ] } |
subscribeNodes | 1.016s |
2022-10-13 22:43:03 |
2022-10-13 22:43:03 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-10-13 22:43:03 | ------------------------------------ 2022-10-13 22:43:03 | on localhost executing action subscribe-node with content type application/json and payload: { "node": "node-33fcded5-d13c-47b0-b87e-f928b618afd7", "jids": [ "admin@test-domain.com" ] } 2022-10-13 22:43:03 | from localhost for action subscribe-node got result code 200 and payload { "Note": "Operation successful" } |
unsubscribeNodes | 1.065s |
2022-10-13 22:43:04 |
2022-10-13 22:43:04 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-10-13 22:43:04 | ------------------------------------ 2022-10-13 22:43:04 | on localhost executing action unsubscribe-node with content type application/json and payload: { "node": "node-33fcded5-d13c-47b0-b87e-f928b618afd7", "jids": [ "admin@test-domain.com" ] } 2022-10-13 22:43:04 | from localhost for action unsubscribe-node got result code 200 and payload { "Note": "Operation successful" } |