Test duration : 8.615s
Passed Tests | ||
---|---|---|
tigase.tests.pubsub.TestRestApiUsingJSON | ||
configureNodes | 1.102s |
2023-07-05 21:53:35 |
2023-07-05 21:53:35 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2023-07-05 21:53:35 | ------------------------------------ 2023-07-05 21:53:35 | [Mutex] waiting for: [configured:node:node-e74e7282-bc5a-4bd9-9040-d73cb14ab12e:node-c41cb62a-164c-4882-8947-d5ca3607b5d8] 2023-07-05 21:53:35 | [Mutex] received everything. 2023-07-05 21:53:35 | [Mutex] isItemNotified: configured:node:node-e74e7282-bc5a-4bd9-9040-d73cb14ab12e:node-c41cb62a-164c-4882-8947-d5ca3607b5d8 :: true 2023-07-05 21:53:36 | [Mutex] waiting for: [received:nodes:757d7ad1-bec4-44f8-a2c7-39fa2eb7bcb8:localhost] 2023-07-05 21:53:36 | [Mutex] received everything. 2023-07-05 21:53:36 | [Mutex] isItemNotified: received:node:757d7ad1-bec4-44f8-a2c7-39fa2eb7bcb8:localhost:node-e74e7282-bc5a-4bd9-9040-d73cb14ab12e:Node e74e7282-bc5a-4bd9-9040-d73cb14ab12e :: true 2023-07-05 21:53:36 | [Mutex] waiting for: [received:nodes:820673b3-05ea-4674-92da-a8533b4f48e8:localhost] 2023-07-05 21:53:36 | [Mutex] waiting for: [received:nodes:820673b3-05ea-4674-92da-a8533b4f48e8:localhost] 2023-07-05 21:53:36 | [Mutex] waiting for: [received:nodes:820673b3-05ea-4674-92da-a8533b4f48e8:localhost] 2023-07-05 21:53:36 | [Mutex] waiting for: [received:nodes:820673b3-05ea-4674-92da-a8533b4f48e8:localhost] 2023-07-05 21:53:36 | [Mutex] waiting for: [received:nodes:820673b3-05ea-4674-92da-a8533b4f48e8:localhost] 2023-07-05 21:53:36 | [Mutex] received everything. 2023-07-05 21:53:36 | [Mutex] isItemNotified: received:node:820673b3-05ea-4674-92da-a8533b4f48e8:localhost:node-e74e7282-bc5a-4bd9-9040-d73cb14ab12e:Node e74e7282-bc5a-4bd9-9040-d73cb14ab12e :: false |
createNodes | 1.631s |
2023-07-05 21:53:32 |
2023-07-05 21:53:32 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2023-07-05 21:53:32 | ------------------------------------ 2023-07-05 21:53:33 | on localhost executing action create-node with content type application/json and payload: { "owner": "admin@test-domain.com", "pubsub#node_type": "leaf", "node": "node-e74e7282-bc5a-4bd9-9040-d73cb14ab12e", "pubsub#title": "Node e74e7282-bc5a-4bd9-9040-d73cb14ab12e" } 2023-07-05 21:53:33 | from localhost for action create-node got result code 200 and payload { "Note": "Operation successful" } 2023-07-05 21:53:34 | [Mutex] waiting for: [received:nodes:aa8fb0b1-1dcf-4e4d-ba12-6963845e1503:localhost] 2023-07-05 21:53:34 | [Mutex] waiting for: [received:nodes:aa8fb0b1-1dcf-4e4d-ba12-6963845e1503:localhost] 2023-07-05 21:53:34 | [Mutex] received everything. 2023-07-05 21:53:34 | [Mutex] isItemNotified: received:node:aa8fb0b1-1dcf-4e4d-ba12-6963845e1503:localhost:node-e74e7282-bc5a-4bd9-9040-d73cb14ab12e:Node e74e7282-bc5a-4bd9-9040-d73cb14ab12e :: true |
createSubnodes | 1.023s |
2023-07-05 21:53:34 |
2023-07-05 21:53:34 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2023-07-05 21:53:34 | ------------------------------------ 2023-07-05 21:53:34 | on localhost executing action create-node with content type application/json and payload: { "owner": "admin@test-domain.com", "pubsub#node_type": "collection", "node": "node-c41cb62a-164c-4882-8947-d5ca3607b5d8", "pubsub#title": "Node c41cb62a-164c-4882-8947-d5ca3607b5d8" } 2023-07-05 21:53:34 | from localhost for action create-node got result code 200 and payload { "Note": "Operation successful" } 2023-07-05 21:53:35 | [Mutex] waiting for: [received:nodes:e2f683e7-3915-4b3e-b780-13838b849bea:localhost] 2023-07-05 21:53:35 | [Mutex] waiting for: [received:nodes:e2f683e7-3915-4b3e-b780-13838b849bea:localhost] 2023-07-05 21:53:35 | [Mutex] waiting for: [received:nodes:e2f683e7-3915-4b3e-b780-13838b849bea:localhost] 2023-07-05 21:53:35 | [Mutex] waiting for: [received:nodes:e2f683e7-3915-4b3e-b780-13838b849bea:localhost] 2023-07-05 21:53:35 | [Mutex] received everything. 2023-07-05 21:53:35 | [Mutex] isItemNotified: received:node:e2f683e7-3915-4b3e-b780-13838b849bea:localhost:node-c41cb62a-164c-4882-8947-d5ca3607b5d8:Node c41cb62a-164c-4882-8947-d5ca3607b5d8 :: true |
deleteNodes | 1.020s |
2023-07-05 21:53:39 |
2023-07-05 21:53:39 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2023-07-05 21:53:39 | ------------------------------------ 2023-07-05 21:53:39 | on localhost executing action delete-node with content type application/json and payload: { "node": "node-c41cb62a-164c-4882-8947-d5ca3607b5d8" } 2023-07-05 21:53:39 | from localhost for action delete-node got result code 200 and payload { "Note": "Operation successful" } 2023-07-05 21:53:40 | [Mutex] waiting for: [received:nodes:77bd33c1-8ade-4f36-b8d2-6f427e9f9ff4:localhost] 2023-07-05 21:53:40 | [Mutex] waiting for: [received:nodes:77bd33c1-8ade-4f36-b8d2-6f427e9f9ff4:localhost] 2023-07-05 21:53:40 | [Mutex] waiting for: [received:nodes:77bd33c1-8ade-4f36-b8d2-6f427e9f9ff4:localhost] 2023-07-05 21:53:40 | [Mutex] received everything. 2023-07-05 21:53:40 | [Mutex] isItemNotified: received:node:77bd33c1-8ade-4f36-b8d2-6f427e9f9ff4:localhost:node-c41cb62a-164c-4882-8947-d5ca3607b5d8:Node c41cb62a-164c-4882-8947-d5ca3607b5d8 :: false |
deleteSubnodes | 1.022s |
2023-07-05 21:53:38 |
2023-07-05 21:53:38 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2023-07-05 21:53:38 | ------------------------------------ 2023-07-05 21:53:38 | on localhost executing action delete-node with content type application/json and payload: { "node": "node-e74e7282-bc5a-4bd9-9040-d73cb14ab12e" } 2023-07-05 21:53:38 | from localhost for action delete-node got result code 200 and payload { "Note": "Operation successful" } 2023-07-05 21:53:39 | [Mutex] waiting for: [received:nodes:f6934de6-a8a2-4837-8a8b-31d4b5bf0a7a:localhost] 2023-07-05 21:53:39 | [Mutex] waiting for: [received:nodes:f6934de6-a8a2-4837-8a8b-31d4b5bf0a7a:localhost] 2023-07-05 21:53:39 | [Mutex] received everything. 2023-07-05 21:53:39 | [Mutex] isItemNotified: received:node:f6934de6-a8a2-4837-8a8b-31d4b5bf0a7a:localhost:node-e74e7282-bc5a-4bd9-9040-d73cb14ab12e:Node e74e7282-bc5a-4bd9-9040-d73cb14ab12e :: false 2023-07-05 21:53:39 | [Mutex] waiting for: [received:nodes:70ca9d34-ec41-4015-b49e-f22ba7131ab9:localhost] 2023-07-05 21:53:39 | [Mutex] received everything. 2023-07-05 21:53:39 | [Mutex] isItemNotified: received:node:70ca9d34-ec41-4015-b49e-f22ba7131ab9:localhost:node-e74e7282-bc5a-4bd9-9040-d73cb14ab12e:Node e74e7282-bc5a-4bd9-9040-d73cb14ab12e :: false |
publishItemsToNodes | 0.035s |
2023-07-05 21:53:37 |
2023-07-05 21:53:37 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2023-07-05 21:53:37 | ------------------------------------ 2023-07-05 21:53:37 | on localhost executing action publish-item with content type application/json and payload: { "node": "node-e74e7282-bc5a-4bd9-9040-d73cb14ab12e", "entry": "<test>item-8c06b912-ca53-4a09-953b-0dd5065996ad</test>", "item-id": "item-8c06b912-ca53-4a09-953b-0dd5065996ad" } 2023-07-05 21:53:37 | from localhost for action publish-item got result code 200 and payload { "Note": "Operation successful", "item-id": "item-8c06b912-ca53-4a09-953b-0dd5065996ad" } 2023-07-05 21:53:37 | [Mutex] received everything. 2023-07-05 21:53:37 | [Mutex] isItemNotified: published:item:notifieditem-8c06b912-ca53-4a09-953b-0dd5065996ad:admin@test-domain.com :: true |
retractItemsFromNodes | 0.055s |
2023-07-05 21:53:37 |
2023-07-05 21:53:37 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2023-07-05 21:53:37 | ------------------------------------ 2023-07-05 21:53:37 | on localhost executing action delete-item with content type application/json and payload: { "node": "node-e74e7282-bc5a-4bd9-9040-d73cb14ab12e", "item-id": "item-8c06b912-ca53-4a09-953b-0dd5065996ad" } 2023-07-05 21:53:37 | from localhost for action delete-item got result code 200 and payload { "Note": "Operation successful", "item-id": "item-8c06b912-ca53-4a09-953b-0dd5065996ad" } 2023-07-05 21:53:37 | [Mutex] received everything. 2023-07-05 21:53:37 | [Mutex] isItemNotified: retracted:item:notifieditem-8c06b912-ca53-4a09-953b-0dd5065996ad:admin@test-domain.com :: true |
retrieveItemsFromNodes | 0.129s |
2023-07-05 21:53:37 |
2023-07-05 21:53:37 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2023-07-05 21:53:37 | ------------------------------------ 2023-07-05 21:53:37 | on localhost executing action retrieve-item with content type application/json and payload: { "node": "node-e74e7282-bc5a-4bd9-9040-d73cb14ab12e", "item-id": "item-8c06b912-ca53-4a09-953b-0dd5065996ad" } 2023-07-05 21:53:37 | from localhost for action retrieve-item got result code 200 and payload { "title": "Retrive PubSub node item", "node": "node-e74e7282-bc5a-4bd9-9040-d73cb14ab12e", "item-id": "item-8c06b912-ca53-4a09-953b-0dd5065996ad", "item": [ "<item id=\"item-8c06b912-ca53-4a09-953b-0dd5065996ad\"><test>item-8c06b912-ca53-4a09-953b-0dd5065996ad</test></item>" ] } 2023-07-05 21:53:37 | [Mutex] notify: [retrieved:item:item-8c06b912-ca53-4a09-953b-0dd5065996ad:payload-matches:true:localhost] 2023-07-05 21:53:37 | [Mutex] received everything. 2023-07-05 21:53:37 | [Mutex] isItemNotified: retrieved:item:item-8c06b912-ca53-4a09-953b-0dd5065996ad:payload-matches:true:localhost :: true |
retrieveUserSubscriptions | 0.047s |
2023-07-05 21:53:37 |
2023-07-05 21:53:37 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2023-07-05 21:53:37 | ------------------------------------ 2023-07-05 21:53:37 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload: { "jid": "admin@test-domain.com" } 2023-07-05 21:53:37 | from localhost for action retrieve-user-subscriptions got result code 200 and payload { "nodes": [ "node-e74e7282-bc5a-4bd9-9040-d73cb14ab12e", "test", "node-c41cb62a-164c-4882-8947-d5ca3607b5d8" ] } |
retrieveUserSubscriptionsWithRegex | 0.046s |
2023-07-05 21:53:37 |
2023-07-05 21:53:37 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2023-07-05 21:53:37 | ------------------------------------ 2023-07-05 21:53:37 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload: { "jid": "admin@test-domain.com", "node-pattern": "(?!node-e74e7282-bc5a-4bd9-9040-d73cb14ab12e)" } 2023-07-05 21:53:37 | from localhost for action retrieve-user-subscriptions got result code 200 and payload { "nodes": [ ] } |
subscribeNodes | 1.014s |
2023-07-05 21:53:36 |
2023-07-05 21:53:36 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2023-07-05 21:53:36 | ------------------------------------ 2023-07-05 21:53:36 | on localhost executing action subscribe-node with content type application/json and payload: { "node": "node-e74e7282-bc5a-4bd9-9040-d73cb14ab12e", "jids": [ "admin@test-domain.com" ] } 2023-07-05 21:53:36 | from localhost for action subscribe-node got result code 200 and payload { "Note": "Operation successful" } |
unsubscribeNodes | 1.051s |
2023-07-05 21:53:37 |
2023-07-05 21:53:37 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2023-07-05 21:53:37 | ------------------------------------ 2023-07-05 21:53:37 | on localhost executing action unsubscribe-node with content type application/json and payload: { "node": "node-e74e7282-bc5a-4bd9-9040-d73cb14ab12e", "jids": [ "admin@test-domain.com" ] } 2023-07-05 21:53:37 | from localhost for action unsubscribe-node got result code 200 and payload { "Note": "Operation successful" } |