Test duration : 8.971s
Passed Tests | ||
---|---|---|
tigase.tests.pubsub.TestRestApiUsingJSON | ||
configureNodes | 1.162s |
2021-05-13 22:44:50 |
2021-05-13 22:44:50 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-05-13 22:44:50 | ------------------------------------ 2021-05-13 22:44:50 | [Mutex] waiting for: [configured:node:node-7320238b-cb37-4382-9bc3-0c9b90c419c3:node-2088d6a2-2037-4260-90fc-54a731fc274e] 2021-05-13 22:44:50 | [Mutex] received everything. 2021-05-13 22:44:50 | [Mutex] isItemNotified: configured:node:node-7320238b-cb37-4382-9bc3-0c9b90c419c3:node-2088d6a2-2037-4260-90fc-54a731fc274e :: true 2021-05-13 22:44:51 | [Mutex] waiting for: [received:nodes:639e4cab-8fbf-4086-bc00-442de1654ace:localhost] 2021-05-13 22:44:51 | [Mutex] received everything. 2021-05-13 22:44:51 | [Mutex] isItemNotified: received:node:639e4cab-8fbf-4086-bc00-442de1654ace:localhost:node-7320238b-cb37-4382-9bc3-0c9b90c419c3:Node 7320238b-cb37-4382-9bc3-0c9b90c419c3 :: true 2021-05-13 22:44:51 | [Mutex] waiting for: [received:nodes:a3c5c6c2-7c5d-4bb5-83ff-b3cd62275b10:localhost] 2021-05-13 22:44:51 | [Mutex] received everything. 2021-05-13 22:44:51 | [Mutex] isItemNotified: received:node:a3c5c6c2-7c5d-4bb5-83ff-b3cd62275b10:localhost:node-7320238b-cb37-4382-9bc3-0c9b90c419c3:Node 7320238b-cb37-4382-9bc3-0c9b90c419c3 :: false |
createNodes | 1.619s |
2021-05-13 22:44:47 |
2021-05-13 22:44:47 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-05-13 22:44:47 | ------------------------------------ 2021-05-13 22:44:48 | on localhost executing action create-node with content type application/json and payload: { "owner": "admin@test-domain.com", "pubsub#node_type": "leaf", "node": "node-7320238b-cb37-4382-9bc3-0c9b90c419c3", "pubsub#title": "Node 7320238b-cb37-4382-9bc3-0c9b90c419c3" } 2021-05-13 22:44:48 | from localhost for action create-node got result code 200 and payload { "Note": "Operation successful" } 2021-05-13 22:44:49 | [Mutex] waiting for: [received:nodes:be6a6461-aee4-438b-9ec7-f7b7e8a080aa:localhost] 2021-05-13 22:44:49 | [Mutex] received everything. 2021-05-13 22:44:49 | [Mutex] isItemNotified: received:node:be6a6461-aee4-438b-9ec7-f7b7e8a080aa:localhost:node-7320238b-cb37-4382-9bc3-0c9b90c419c3:Node 7320238b-cb37-4382-9bc3-0c9b90c419c3 :: true |
createSubnodes | 1.038s |
2021-05-13 22:44:49 |
2021-05-13 22:44:49 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-05-13 22:44:49 | ------------------------------------ 2021-05-13 22:44:49 | on localhost executing action create-node with content type application/json and payload: { "owner": "admin@test-domain.com", "pubsub#node_type": "collection", "node": "node-2088d6a2-2037-4260-90fc-54a731fc274e", "pubsub#title": "Node 2088d6a2-2037-4260-90fc-54a731fc274e" } 2021-05-13 22:44:49 | from localhost for action create-node got result code 200 and payload { "Note": "Operation successful" } 2021-05-13 22:44:50 | [Mutex] waiting for: [received:nodes:282cdf3c-2e5d-435e-bac5-3e1e53c2f7b3:localhost] 2021-05-13 22:44:50 | [Mutex] received everything. 2021-05-13 22:44:50 | [Mutex] isItemNotified: received:node:282cdf3c-2e5d-435e-bac5-3e1e53c2f7b3:localhost:node-2088d6a2-2037-4260-90fc-54a731fc274e:Node 2088d6a2-2037-4260-90fc-54a731fc274e :: true |
deleteNodes | 1.022s |
2021-05-13 22:44:54 |
2021-05-13 22:44:54 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-05-13 22:44:54 | ------------------------------------ 2021-05-13 22:44:54 | on localhost executing action delete-node with content type application/json and payload: { "node": "node-2088d6a2-2037-4260-90fc-54a731fc274e" } 2021-05-13 22:44:54 | from localhost for action delete-node got result code 200 and payload { "Note": "Operation successful" } 2021-05-13 22:44:55 | [Mutex] waiting for: [received:nodes:0c4f1b57-a698-4ee4-9539-73fe29add8fa:localhost] 2021-05-13 22:44:55 | [Mutex] received everything. 2021-05-13 22:44:55 | [Mutex] isItemNotified: received:node:0c4f1b57-a698-4ee4-9539-73fe29add8fa:localhost:node-2088d6a2-2037-4260-90fc-54a731fc274e:Node 2088d6a2-2037-4260-90fc-54a731fc274e :: false |
deleteSubnodes | 1.026s |
2021-05-13 22:44:53 |
2021-05-13 22:44:53 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-05-13 22:44:53 | ------------------------------------ 2021-05-13 22:44:53 | on localhost executing action delete-node with content type application/json and payload: { "node": "node-7320238b-cb37-4382-9bc3-0c9b90c419c3" } 2021-05-13 22:44:53 | from localhost for action delete-node got result code 200 and payload { "Note": "Operation successful" } 2021-05-13 22:44:54 | [Mutex] waiting for: [received:nodes:c4a2218c-4c2a-46f8-bcfd-d9e38babbc7a:localhost] 2021-05-13 22:44:54 | [Mutex] received everything. 2021-05-13 22:44:54 | [Mutex] isItemNotified: received:node:c4a2218c-4c2a-46f8-bcfd-d9e38babbc7a:localhost:node-7320238b-cb37-4382-9bc3-0c9b90c419c3:Node 7320238b-cb37-4382-9bc3-0c9b90c419c3 :: false 2021-05-13 22:44:54 | [Mutex] waiting for: [received:nodes:bcd82af1-5c47-4905-bf92-9114368324ba:localhost] 2021-05-13 22:44:54 | [Mutex] received everything. 2021-05-13 22:44:54 | [Mutex] isItemNotified: received:node:bcd82af1-5c47-4905-bf92-9114368324ba:localhost:node-7320238b-cb37-4382-9bc3-0c9b90c419c3:Node 7320238b-cb37-4382-9bc3-0c9b90c419c3 :: false |
publishItemsToNodes | 0.046s |
2021-05-13 22:44:52 |
2021-05-13 22:44:52 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-05-13 22:44:52 | ------------------------------------ 2021-05-13 22:44:52 | on localhost executing action publish-item with content type application/json and payload: { "node": "node-7320238b-cb37-4382-9bc3-0c9b90c419c3", "entry": "<test>item-2a27dc7a-42aa-4433-82f2-b10c44be9b9e</test>", "item-id": "item-2a27dc7a-42aa-4433-82f2-b10c44be9b9e" } 2021-05-13 22:44:52 | from localhost for action publish-item got result code 200 and payload { "Note": "Operation successful", "item-id": "item-2a27dc7a-42aa-4433-82f2-b10c44be9b9e" } 2021-05-13 22:44:52 | [Mutex] waiting for: [published:item:notifieditem-2a27dc7a-42aa-4433-82f2-b10c44be9b9e:admin@test-domain.com] 2021-05-13 22:44:52 | [Mutex] received everything. 2021-05-13 22:44:52 | [Mutex] isItemNotified: published:item:notifieditem-2a27dc7a-42aa-4433-82f2-b10c44be9b9e:admin@test-domain.com :: true |
retractItemsFromNodes | 0.056s |
2021-05-13 22:44:52 |
2021-05-13 22:44:52 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-05-13 22:44:52 | ------------------------------------ 2021-05-13 22:44:52 | on localhost executing action delete-item with content type application/json and payload: { "node": "node-7320238b-cb37-4382-9bc3-0c9b90c419c3", "item-id": "item-2a27dc7a-42aa-4433-82f2-b10c44be9b9e" } 2021-05-13 22:44:52 | from localhost for action delete-item got result code 200 and payload { "Note": "Operation successful", "item-id": "item-2a27dc7a-42aa-4433-82f2-b10c44be9b9e" } 2021-05-13 22:44:52 | [Mutex] received everything. 2021-05-13 22:44:52 | [Mutex] isItemNotified: retracted:item:notifieditem-2a27dc7a-42aa-4433-82f2-b10c44be9b9e:admin@test-domain.com :: true |
retrieveItemsFromNodes | 0.079s |
2021-05-13 22:44:52 |
2021-05-13 22:44:52 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-05-13 22:44:52 | ------------------------------------ 2021-05-13 22:44:52 | on localhost executing action retrieve-item with content type application/json and payload: { "node": "node-7320238b-cb37-4382-9bc3-0c9b90c419c3", "item-id": "item-2a27dc7a-42aa-4433-82f2-b10c44be9b9e" } 2021-05-13 22:44:52 | from localhost for action retrieve-item got result code 200 and payload { "title": "Retrive PubSub node item", "node": "node-7320238b-cb37-4382-9bc3-0c9b90c419c3", "item-id": "item-2a27dc7a-42aa-4433-82f2-b10c44be9b9e", "item": [ "<item id=\"item-2a27dc7a-42aa-4433-82f2-b10c44be9b9e\"><test>item-2a27dc7a-42aa-4433-82f2-b10c44be9b9e</test></item>" ] } 2021-05-13 22:44:52 | [Mutex] notify: [retrieved:item:item-2a27dc7a-42aa-4433-82f2-b10c44be9b9e:payload-matches:true:localhost] 2021-05-13 22:44:52 | [Mutex] received everything. 2021-05-13 22:44:52 | [Mutex] isItemNotified: retrieved:item:item-2a27dc7a-42aa-4433-82f2-b10c44be9b9e:payload-matches:true:localhost :: true |
retrieveUserSubscriptions | 0.051s |
2021-05-13 22:44:52 |
2021-05-13 22:44:52 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-05-13 22:44:52 | ------------------------------------ 2021-05-13 22:44:52 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload: { "jid": "admin@test-domain.com" } 2021-05-13 22:44:52 | from localhost for action retrieve-user-subscriptions got result code 200 and payload { "nodes": [ "node-2088d6a2-2037-4260-90fc-54a731fc274e", "test", "node-7320238b-cb37-4382-9bc3-0c9b90c419c3" ] } |
retrieveUserSubscriptionsWithRegex | 0.048s |
2021-05-13 22:44:52 |
2021-05-13 22:44:52 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-05-13 22:44:52 | ------------------------------------ 2021-05-13 22:44:52 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload: { "jid": "admin@test-domain.com", "node-pattern": "(?!node-7320238b-cb37-4382-9bc3-0c9b90c419c3)" } 2021-05-13 22:44:52 | from localhost for action retrieve-user-subscriptions got result code 200 and payload { "nodes": [ ] } |
subscribeNodes | 1.014s |
2021-05-13 22:44:51 |
2021-05-13 22:44:51 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-05-13 22:44:51 | ------------------------------------ 2021-05-13 22:44:51 | on localhost executing action subscribe-node with content type application/json and payload: { "node": "node-7320238b-cb37-4382-9bc3-0c9b90c419c3", "jids": [ "admin@test-domain.com" ] } 2021-05-13 22:44:51 | from localhost for action subscribe-node got result code 200 and payload { "Note": "Operation successful" } |
unsubscribeNodes | 1.068s |
2021-05-13 22:44:52 |
2021-05-13 22:44:52 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-05-13 22:44:52 | ------------------------------------ 2021-05-13 22:44:52 | on localhost executing action unsubscribe-node with content type application/json and payload: { "node": "node-7320238b-cb37-4382-9bc3-0c9b90c419c3", "jids": [ "admin@test-domain.com" ] } 2021-05-13 22:44:52 | from localhost for action unsubscribe-node got result code 200 and payload { "Note": "Operation successful" } |