REST: Node and item manipulation using REST API - XML - #4229, #4728

Test duration: 10.222s

Passed Tests
tigase.tests.pubsub.TestRestApiUsingXML
configureNodes 1.098s
2020-06-01 23:03:18 |

2020-06-01 23:03:18 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingXML]

2020-06-01 23:03:18 | ------------------------------------

2020-06-01 23:03:18 | [Mutex] waiting for: [configured:node:node-c75f6913-5f65-424f-a0cd-9e4033f819bb:node-5f04b452-a1d7-42bb-8d48-ae08b78f12ca]

2020-06-01 23:03:18 | [Mutex] received everything.

2020-06-01 23:03:18 | [Mutex] isItemNotified: configured:node:node-c75f6913-5f65-424f-a0cd-9e4033f819bb:node-5f04b452-a1d7-42bb-8d48-ae08b78f12ca :: true

2020-06-01 23:03:19 | [Mutex] waiting for: [received:nodes:2e50e83e-f80e-411a-adb9-3cc65aed6dcc:localhost]

2020-06-01 23:03:19 | [Mutex] received everything.

2020-06-01 23:03:19 | [Mutex] isItemNotified: received:node:2e50e83e-f80e-411a-adb9-3cc65aed6dcc:localhost:node-c75f6913-5f65-424f-a0cd-9e4033f819bb:Node c75f6913-5f65-424f-a0cd-9e4033f819bb :: true

2020-06-01 23:03:19 | [Mutex] waiting for: [received:nodes:e507bba7-7cea-4f35-9cf1-fd40c362596c:localhost]

2020-06-01 23:03:19 | [Mutex] received everything.

2020-06-01 23:03:19 | [Mutex] isItemNotified: received:node:e507bba7-7cea-4f35-9cf1-fd40c362596c:localhost:node-c75f6913-5f65-424f-a0cd-9e4033f819bb:Node c75f6913-5f65-424f-a0cd-9e4033f819bb :: false

createNodes 1.559s
2020-06-01 23:03:15 |

2020-06-01 23:03:15 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingXML]

2020-06-01 23:03:15 | ------------------------------------

2020-06-01 23:03:15 | on localhost executing action create-node with content type application/xml and payload:
<data><node>node-c75f6913-5f65-424f-a0cd-9e4033f819bb</node><owner>admin@localhost</owner><pubsub prefix="true"><node_type>leaf</node_type><title>Node c75f6913-5f65-424f-a0cd-9e4033f819bb</title></pubsub></data>

2020-06-01 23:03:16 | from localhost for action create-node got result code 200 and payload
<result><Note type="fixed"><value>Operation successful</value></Note></result>

2020-06-01 23:03:17 | [Mutex] waiting for: [received:nodes:b2f3155e-3000-4c5e-b98b-20c544602953:localhost]

2020-06-01 23:03:17 | [Mutex] received everything.

2020-06-01 23:03:17 | [Mutex] isItemNotified: received:node:b2f3155e-3000-4c5e-b98b-20c544602953:localhost:node-c75f6913-5f65-424f-a0cd-9e4033f819bb:Node c75f6913-5f65-424f-a0cd-9e4033f819bb :: true

createSubnodes 1.042s
2020-06-01 23:03:17 |

2020-06-01 23:03:17 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingXML]

2020-06-01 23:03:17 | ------------------------------------

2020-06-01 23:03:17 | on localhost executing action create-node with content type application/xml and payload:
<data><node>node-5f04b452-a1d7-42bb-8d48-ae08b78f12ca</node><owner>admin@localhost</owner><pubsub prefix="true"><node_type>collection</node_type><title>Node 5f04b452-a1d7-42bb-8d48-ae08b78f12ca</title></pubsub></data>

2020-06-01 23:03:17 | from localhost for action create-node got result code 200 and payload
<result><Note type="fixed"><value>Operation successful</value></Note></result>

2020-06-01 23:03:18 | [Mutex] waiting for: [received:nodes:fcb5eab5-4786-42be-a9ab-9728bb8537bd:localhost]

2020-06-01 23:03:18 | [Mutex] received everything.

2020-06-01 23:03:18 | [Mutex] isItemNotified: received:node:fcb5eab5-4786-42be-a9ab-9728bb8537bd:localhost:node-5f04b452-a1d7-42bb-8d48-ae08b78f12ca:Node 5f04b452-a1d7-42bb-8d48-ae08b78f12ca :: true

deleteNodes 1.023s
2020-06-01 23:03:23 |

2020-06-01 23:03:23 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingXML]

2020-06-01 23:03:23 | ------------------------------------

2020-06-01 23:03:23 | on localhost executing action delete-node with content type application/xml and payload:
<data><node>node-5f04b452-a1d7-42bb-8d48-ae08b78f12ca</node></data>

2020-06-01 23:03:23 | from localhost for action delete-node got result code 200 and payload
<result><Note type="fixed"><value>Operation successful</value></Note></result>

2020-06-01 23:03:24 | [Mutex] waiting for: [received:nodes:b252b9ea-705e-4c5d-9d2e-9c071a3b542c:localhost]

2020-06-01 23:03:24 | [Mutex] received everything.

2020-06-01 23:03:24 | [Mutex] isItemNotified: received:node:b252b9ea-705e-4c5d-9d2e-9c071a3b542c:localhost:node-5f04b452-a1d7-42bb-8d48-ae08b78f12ca:Node 5f04b452-a1d7-42bb-8d48-ae08b78f12ca :: false

deleteSubnodes 1.176s
2020-06-01 23:03:22 |

2020-06-01 23:03:22 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingXML]

2020-06-01 23:03:22 | ------------------------------------

2020-06-01 23:03:22 | on localhost executing action delete-node with content type application/xml and payload:
<data><node>node-c75f6913-5f65-424f-a0cd-9e4033f819bb</node></data>

2020-06-01 23:03:22 | from localhost for action delete-node got result code 200 and payload
<result><Note type="fixed"><value>Operation successful</value></Note></result>

2020-06-01 23:03:23 | [Mutex] waiting for: [received:nodes:0a4bcdb8-7f87-48c2-8da8-1e6d796b5b1c:localhost]

2020-06-01 23:03:23 | [Mutex] received everything.

2020-06-01 23:03:23 | [Mutex] isItemNotified: received:node:0a4bcdb8-7f87-48c2-8da8-1e6d796b5b1c:localhost:node-c75f6913-5f65-424f-a0cd-9e4033f819bb:Node c75f6913-5f65-424f-a0cd-9e4033f819bb :: false

2020-06-01 23:03:23 | [Mutex] waiting for: [received:nodes:16507911-aced-416c-81ca-3bfafb1b9040:localhost]

2020-06-01 23:03:23 | [Mutex] received everything.

2020-06-01 23:03:23 | [Mutex] isItemNotified: received:node:16507911-aced-416c-81ca-3bfafb1b9040:localhost:node-c75f6913-5f65-424f-a0cd-9e4033f819bb:Node c75f6913-5f65-424f-a0cd-9e4033f819bb :: false

publishItemsToNodes 0.223s
2020-06-01 23:03:20 |

2020-06-01 23:03:20 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingXML]

2020-06-01 23:03:20 | ------------------------------------

2020-06-01 23:03:20 | on localhost executing action publish-item with content type application/xml and payload:
<data><node>node-c75f6913-5f65-424f-a0cd-9e4033f819bb</node><item-id>item-61b3c041-4a9a-4e95-b838-c4402b8d5b3b</item-id><entry><test>item-61b3c041-4a9a-4e95-b838-c4402b8d5b3b</test></entry></data>

2020-06-01 23:03:20 | from localhost for action publish-item got result code 200 and payload
<result><Note type="fixed"><value>Operation successful</value></Note><item-id label="Item ID" type="fixed"><value>item-61b3c041-4a9a-4e95-b838-c4402b8d5b3b</value></item-id></result>

2020-06-01 23:03:20 | [Mutex] received everything.

2020-06-01 23:03:20 | [Mutex] isItemNotified: published:item:notifieditem-61b3c041-4a9a-4e95-b838-c4402b8d5b3b:admin@localhost :: true

retractItemsFromNodes 0.247s
2020-06-01 23:03:21 |

2020-06-01 23:03:21 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingXML]

2020-06-01 23:03:21 | ------------------------------------

2020-06-01 23:03:21 | on localhost executing action delete-item with content type application/xml and payload:
<data><node>node-c75f6913-5f65-424f-a0cd-9e4033f819bb</node><item-id>item-61b3c041-4a9a-4e95-b838-c4402b8d5b3b</item-id></data>

2020-06-01 23:03:21 | from localhost for action delete-item got result code 200 and payload
<result><Note type="fixed"><value>Operation successful</value></Note><item-id label="Item ID" type="fixed"><value>item-61b3c041-4a9a-4e95-b838-c4402b8d5b3b</value></item-id></result>

2020-06-01 23:03:21 | [Mutex] received everything.

2020-06-01 23:03:21 | [Mutex] isItemNotified: retracted:item:notifieditem-61b3c041-4a9a-4e95-b838-c4402b8d5b3b:admin@localhost :: true

retrieveItemsFromNodes 0.159s
2020-06-01 23:03:20 |

2020-06-01 23:03:20 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingXML]

2020-06-01 23:03:20 | ------------------------------------

2020-06-01 23:03:20 | on localhost executing action retrieve-item with content type application/xml and payload:
<data><node>node-c75f6913-5f65-424f-a0cd-9e4033f819bb</node><item-id>item-61b3c041-4a9a-4e95-b838-c4402b8d5b3b</item-id></data>

2020-06-01 23:03:21 | from localhost for action retrieve-item got result code 200 and payload
<result><title>Retrive PubSub node item</title><node label="Node" type="text-single"><value>node-c75f6913-5f65-424f-a0cd-9e4033f819bb</value></node><item-id label="Item ID" type="text-single"><value>item-61b3c041-4a9a-4e95-b838-c4402b8d5b3b</value></item-id><item label="Item" type="text-multi"><value><item id="item-61b3c041-4a9a-4e95-b838-c4402b8d5b3b"><test>item-61b3c041-4a9a-4e95-b838-c4402b8d5b3b</test></item></value></item></result>

2020-06-01 23:03:21 | [Mutex] notify: [retrieved:item:item-61b3c041-4a9a-4e95-b838-c4402b8d5b3b:payload-matches:true:localhost]

2020-06-01 23:03:21 | [Mutex] received everything.

2020-06-01 23:03:21 | [Mutex] isItemNotified: retrieved:item:item-61b3c041-4a9a-4e95-b838-c4402b8d5b3b:payload-matches:true:localhost :: true

retrieveUserSubscriptions 0.252s
2020-06-01 23:03:21 |

2020-06-01 23:03:21 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingXML]

2020-06-01 23:03:21 | ------------------------------------

2020-06-01 23:03:21 | on localhost executing action retrieve-user-subscriptions with content type application/xml and payload:
<data><jid>admin@localhost</jid></data>

2020-06-01 23:03:21 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
<result><nodes label="Nodes" type="text-multi"><value>node-5f04b452-a1d7-42bb-8d48-ae08b78f12ca</value><value>node-c75f6913-5f65-424f-a0cd-9e4033f819bb</value></nodes></result>

retrieveUserSubscriptionsWithRegex 0.054s
2020-06-01 23:03:21 |

2020-06-01 23:03:21 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingXML]

2020-06-01 23:03:21 | ------------------------------------

2020-06-01 23:03:21 | on localhost executing action retrieve-user-subscriptions with content type application/xml and payload:
<data><jid>admin@localhost</jid><node-pattern>(?!node-c75f6913-5f65-424f-a0cd-9e4033f819bb)</node-pattern></data>

2020-06-01 23:03:21 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
<result><nodes label="Nodes" type="text-multi"/></result>

subscribeNodes 1.141s
2020-06-01 23:03:19 |

2020-06-01 23:03:19 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingXML]

2020-06-01 23:03:19 | ------------------------------------

2020-06-01 23:03:19 | on localhost executing action subscribe-node with content type application/xml and payload:
<data><node>node-c75f6913-5f65-424f-a0cd-9e4033f819bb</node><jids><value>admin@localhost</value></jids></data>

2020-06-01 23:03:19 | from localhost for action subscribe-node got result code 200 and payload
<result><Note type="fixed"><value>Operation successful</value></Note></result>

unsubscribeNodes 1.144s
2020-06-01 23:03:21 |

2020-06-01 23:03:21 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingXML]

2020-06-01 23:03:21 | ------------------------------------

2020-06-01 23:03:21 | on localhost executing action unsubscribe-node with content type application/xml and payload:
<data><node>node-c75f6913-5f65-424f-a0cd-9e4033f819bb</node><jids><value>admin@localhost</value></jids></data>

2020-06-01 23:03:21 | from localhost for action unsubscribe-node got result code 200 and payload
<result><Note type="fixed"><value>Operation successful</value></Note></result>