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

Test duration: 10.010s

Passed Tests
tigase.tests.pubsub.TestRestApiUsingXML
configureNodes 1.106s
2020-01-02 19:20:37 |

2020-01-02 19:20:37 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingXML]

2020-01-02 19:20:37 | ------------------------------------

2020-01-02 19:20:37 | [Mutex] waiting for: [configured:node:node-46e4b510-4318-446c-b7f7-aacdf19cdfc5:node-dda58138-3ca2-4ccb-a216-557f10f08674]

2020-01-02 19:20:37 | [Mutex] received everything.

2020-01-02 19:20:37 | [Mutex] isItemNotified: configured:node:node-46e4b510-4318-446c-b7f7-aacdf19cdfc5:node-dda58138-3ca2-4ccb-a216-557f10f08674 :: true

2020-01-02 19:20:38 | [Mutex] waiting for: [received:nodes:20ba046f-c287-46dc-a44f-2aa8ece8e069:localhost]

2020-01-02 19:20:38 | [Mutex] received everything.

2020-01-02 19:20:38 | [Mutex] isItemNotified: received:node:20ba046f-c287-46dc-a44f-2aa8ece8e069:localhost:node-46e4b510-4318-446c-b7f7-aacdf19cdfc5:Node 46e4b510-4318-446c-b7f7-aacdf19cdfc5 :: true

2020-01-02 19:20:38 | [Mutex] waiting for: [received:nodes:6ed5537a-bd2f-4e09-8501-a286bb6adcff:localhost]

2020-01-02 19:20:38 | [Mutex] received everything.

2020-01-02 19:20:38 | [Mutex] isItemNotified: received:node:6ed5537a-bd2f-4e09-8501-a286bb6adcff:localhost:node-46e4b510-4318-446c-b7f7-aacdf19cdfc5:Node 46e4b510-4318-446c-b7f7-aacdf19cdfc5 :: false

createNodes 1.528s
2020-01-02 19:20:34 |

2020-01-02 19:20:34 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingXML]

2020-01-02 19:20:34 | ------------------------------------

2020-01-02 19:20:34 | on localhost executing action create-node with content type application/xml and payload:
<data><node>node-46e4b510-4318-446c-b7f7-aacdf19cdfc5</node><owner>admin@localhost</owner><pubsub prefix="true"><node_type>leaf</node_type><title>Node 46e4b510-4318-446c-b7f7-aacdf19cdfc5</title></pubsub></data>

2020-01-02 19:20:35 | from localhost for action create-node got result code 200 and payload
<result><Note type="fixed"><value>Operation successful</value></Note></result>

2020-01-02 19:20:36 | [Mutex] waiting for: [received:nodes:23675ad2-f78f-4006-a472-9087d19265dd:localhost]

2020-01-02 19:20:36 | [Mutex] received everything.

2020-01-02 19:20:36 | [Mutex] isItemNotified: received:node:23675ad2-f78f-4006-a472-9087d19265dd:localhost:node-46e4b510-4318-446c-b7f7-aacdf19cdfc5:Node 46e4b510-4318-446c-b7f7-aacdf19cdfc5 :: true

createSubnodes 1.022s
2020-01-02 19:20:36 |

2020-01-02 19:20:36 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingXML]

2020-01-02 19:20:36 | ------------------------------------

2020-01-02 19:20:36 | on localhost executing action create-node with content type application/xml and payload:
<data><node>node-dda58138-3ca2-4ccb-a216-557f10f08674</node><owner>admin@localhost</owner><pubsub prefix="true"><node_type>collection</node_type><title>Node dda58138-3ca2-4ccb-a216-557f10f08674</title></pubsub></data>

2020-01-02 19:20:36 | from localhost for action create-node got result code 200 and payload
<result><Note type="fixed"><value>Operation successful</value></Note></result>

2020-01-02 19:20:37 | [Mutex] waiting for: [received:nodes:2f477591-d913-4c86-99d5-d94cfa8b054d:localhost]

2020-01-02 19:20:37 | [Mutex] received everything.

2020-01-02 19:20:37 | [Mutex] isItemNotified: received:node:2f477591-d913-4c86-99d5-d94cfa8b054d:localhost:node-dda58138-3ca2-4ccb-a216-557f10f08674:Node dda58138-3ca2-4ccb-a216-557f10f08674 :: true

deleteNodes 1.025s
2020-01-02 19:20:42 |

2020-01-02 19:20:42 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingXML]

2020-01-02 19:20:42 | ------------------------------------

2020-01-02 19:20:42 | on localhost executing action delete-node with content type application/xml and payload:
<data><node>node-dda58138-3ca2-4ccb-a216-557f10f08674</node></data>

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

2020-01-02 19:20:43 | [Mutex] waiting for: [received:nodes:fdbe3126-0d49-4a40-be6e-cbe82f9055c1:localhost]

2020-01-02 19:20:43 | [Mutex] received everything.

2020-01-02 19:20:43 | [Mutex] isItemNotified: received:node:fdbe3126-0d49-4a40-be6e-cbe82f9055c1:localhost:node-dda58138-3ca2-4ccb-a216-557f10f08674:Node dda58138-3ca2-4ccb-a216-557f10f08674 :: false

deleteSubnodes 1.199s
2020-01-02 19:20:41 |

2020-01-02 19:20:41 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingXML]

2020-01-02 19:20:41 | ------------------------------------

2020-01-02 19:20:41 | on localhost executing action delete-node with content type application/xml and payload:
<data><node>node-46e4b510-4318-446c-b7f7-aacdf19cdfc5</node></data>

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

2020-01-02 19:20:42 | [Mutex] waiting for: [received:nodes:e51e1181-a5dd-4361-9061-c723144774bc:localhost]

2020-01-02 19:20:42 | [Mutex] received everything.

2020-01-02 19:20:42 | [Mutex] isItemNotified: received:node:e51e1181-a5dd-4361-9061-c723144774bc:localhost:node-46e4b510-4318-446c-b7f7-aacdf19cdfc5:Node 46e4b510-4318-446c-b7f7-aacdf19cdfc5 :: false

2020-01-02 19:20:42 | [Mutex] waiting for: [received:nodes:fc96a165-bb97-4941-ba90-eb001b7fcd08:localhost]

2020-01-02 19:20:42 | [Mutex] received everything.

2020-01-02 19:20:42 | [Mutex] isItemNotified: received:node:fc96a165-bb97-4941-ba90-eb001b7fcd08:localhost:node-46e4b510-4318-446c-b7f7-aacdf19cdfc5:Node 46e4b510-4318-446c-b7f7-aacdf19cdfc5 :: false

publishItemsToNodes 0.235s
2020-01-02 19:20:39 |

2020-01-02 19:20:39 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingXML]

2020-01-02 19:20:39 | ------------------------------------

2020-01-02 19:20:39 | on localhost executing action publish-item with content type application/xml and payload:
<data><node>node-46e4b510-4318-446c-b7f7-aacdf19cdfc5</node><item-id>item-ed8e02c0-1612-4806-a960-453d2a418ecf</item-id><entry><test>item-ed8e02c0-1612-4806-a960-453d2a418ecf</test></entry></data>

2020-01-02 19:20:39 | 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-ed8e02c0-1612-4806-a960-453d2a418ecf</value></item-id></result>

2020-01-02 19:20:39 | [Mutex] waiting for: [published:item:notifieditem-ed8e02c0-1612-4806-a960-453d2a418ecf:admin@localhost]

2020-01-02 19:20:39 | [Mutex] received everything.

2020-01-02 19:20:39 | [Mutex] isItemNotified: published:item:notifieditem-ed8e02c0-1612-4806-a960-453d2a418ecf:admin@localhost :: true

retractItemsFromNodes 0.269s
2020-01-02 19:20:39 |

2020-01-02 19:20:39 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingXML]

2020-01-02 19:20:39 | ------------------------------------

2020-01-02 19:20:39 | on localhost executing action delete-item with content type application/xml and payload:
<data><node>node-46e4b510-4318-446c-b7f7-aacdf19cdfc5</node><item-id>item-ed8e02c0-1612-4806-a960-453d2a418ecf</item-id></data>

2020-01-02 19:20:40 | 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-ed8e02c0-1612-4806-a960-453d2a418ecf</value></item-id></result>

2020-01-02 19:20:40 | [Mutex] waiting for: [retracted:item:notifieditem-ed8e02c0-1612-4806-a960-453d2a418ecf:admin@localhost]

2020-01-02 19:20:40 | [Mutex] received everything.

2020-01-02 19:20:40 | [Mutex] isItemNotified: retracted:item:notifieditem-ed8e02c0-1612-4806-a960-453d2a418ecf:admin@localhost :: true

retrieveItemsFromNodes 0.114s
2020-01-02 19:20:39 |

2020-01-02 19:20:39 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingXML]

2020-01-02 19:20:39 | ------------------------------------

2020-01-02 19:20:39 | on localhost executing action retrieve-item with content type application/xml and payload:
<data><node>node-46e4b510-4318-446c-b7f7-aacdf19cdfc5</node><item-id>item-ed8e02c0-1612-4806-a960-453d2a418ecf</item-id></data>

2020-01-02 19:20:39 | 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-46e4b510-4318-446c-b7f7-aacdf19cdfc5</value></node><item-id label="Item ID" type="text-single"><value>item-ed8e02c0-1612-4806-a960-453d2a418ecf</value></item-id><item label="Item" type="text-multi"><value><item id="item-ed8e02c0-1612-4806-a960-453d2a418ecf"><test>item-ed8e02c0-1612-4806-a960-453d2a418ecf</test></item></value></item></result>

2020-01-02 19:20:39 | [Mutex] notify: [retrieved:item:item-ed8e02c0-1612-4806-a960-453d2a418ecf:payload-matches:true:localhost]

2020-01-02 19:20:39 | [Mutex] received everything.

2020-01-02 19:20:39 | [Mutex] isItemNotified: retrieved:item:item-ed8e02c0-1612-4806-a960-453d2a418ecf:payload-matches:true:localhost :: true

retrieveUserSubscriptions 0.224s
2020-01-02 19:20:39 |

2020-01-02 19:20:39 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingXML]

2020-01-02 19:20:39 | ------------------------------------

2020-01-02 19:20:39 | on localhost executing action retrieve-user-subscriptions with content type application/xml and payload:
<data><jid>admin@localhost</jid></data>

2020-01-02 19:20:39 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
<result><nodes label="Nodes" type="text-multi"><value>node-46e4b510-4318-446c-b7f7-aacdf19cdfc5</value><value>node-dda58138-3ca2-4ccb-a216-557f10f08674</value></nodes></result>

retrieveUserSubscriptionsWithRegex 0.058s
2020-01-02 19:20:39 |

2020-01-02 19:20:39 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingXML]

2020-01-02 19:20:39 | ------------------------------------

2020-01-02 19:20:39 | on localhost executing action retrieve-user-subscriptions with content type application/xml and payload:
<data><jid>admin@localhost</jid><node-pattern>(?!node-46e4b510-4318-446c-b7f7-aacdf19cdfc5)</node-pattern></data>

2020-01-02 19:20:39 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
<result><nodes label="Nodes" type="text-multi"/></result>

subscribeNodes 1.108s
2020-01-02 19:20:38 |

2020-01-02 19:20:38 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingXML]

2020-01-02 19:20:38 | ------------------------------------

2020-01-02 19:20:38 | on localhost executing action subscribe-node with content type application/xml and payload:
<data><node>node-46e4b510-4318-446c-b7f7-aacdf19cdfc5</node><jids><value>admin@localhost</value></jids></data>

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

unsubscribeNodes 1.273s
2020-01-02 19:20:40 |

2020-01-02 19:20:40 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingXML]

2020-01-02 19:20:40 | ------------------------------------

2020-01-02 19:20:40 | on localhost executing action unsubscribe-node with content type application/xml and payload:
<data><node>node-46e4b510-4318-446c-b7f7-aacdf19cdfc5</node><jids><value>admin@localhost</value></jids></data>

2020-01-02 19:20:40 | from localhost for action unsubscribe-node got result code 200 and payload
<result><Note type="fixed"><value>Operation successful</value></Note></result>