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

Test duration: 10.194s

Passed Tests
tigase.tests.pubsub.TestRestApiUsingXML
configureNodes 1.114s
2020-06-25 00:17:12 |

2020-06-25 00:17:12 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingXML]

2020-06-25 00:17:12 | ------------------------------------

2020-06-25 00:17:12 | [Mutex] waiting for: [configured:node:node-0133151d-2eac-47b7-a30f-cf629e41a265:node-cb31ded8-85cc-4774-9e4a-0a6701b2e89a]

2020-06-25 00:17:13 | [Mutex] received everything.

2020-06-25 00:17:13 | [Mutex] isItemNotified: configured:node:node-0133151d-2eac-47b7-a30f-cf629e41a265:node-cb31ded8-85cc-4774-9e4a-0a6701b2e89a :: true

2020-06-25 00:17:14 | [Mutex] waiting for: [received:nodes:044485e4-6db9-4502-aa7f-f386b744cae0:localhost]

2020-06-25 00:17:14 | [Mutex] received everything.

2020-06-25 00:17:14 | [Mutex] isItemNotified: received:node:044485e4-6db9-4502-aa7f-f386b744cae0:localhost:node-0133151d-2eac-47b7-a30f-cf629e41a265:Node 0133151d-2eac-47b7-a30f-cf629e41a265 :: true

2020-06-25 00:17:14 | [Mutex] waiting for: [received:nodes:ec8bc1c4-c3ef-47e9-8c9d-2e70771cc140:localhost]

2020-06-25 00:17:14 | [Mutex] received everything.

2020-06-25 00:17:14 | [Mutex] isItemNotified: received:node:ec8bc1c4-c3ef-47e9-8c9d-2e70771cc140:localhost:node-0133151d-2eac-47b7-a30f-cf629e41a265:Node 0133151d-2eac-47b7-a30f-cf629e41a265 :: false

createNodes 1.565s
2020-06-25 00:17:10 |

2020-06-25 00:17:10 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingXML]

2020-06-25 00:17:10 | ------------------------------------

2020-06-25 00:17:10 | on localhost executing action create-node with content type application/xml and payload:
<data><node>node-0133151d-2eac-47b7-a30f-cf629e41a265</node><owner>admin@localhost</owner><pubsub prefix="true"><node_type>leaf</node_type><title>Node 0133151d-2eac-47b7-a30f-cf629e41a265</title></pubsub></data>

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

2020-06-25 00:17:11 | [Mutex] waiting for: [received:nodes:cc08df41-4255-42f3-9917-2d4d30e21730:localhost]

2020-06-25 00:17:11 | [Mutex] received everything.

2020-06-25 00:17:11 | [Mutex] isItemNotified: received:node:cc08df41-4255-42f3-9917-2d4d30e21730:localhost:node-0133151d-2eac-47b7-a30f-cf629e41a265:Node 0133151d-2eac-47b7-a30f-cf629e41a265 :: true

createSubnodes 1.034s
2020-06-25 00:17:11 |

2020-06-25 00:17:11 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingXML]

2020-06-25 00:17:11 | ------------------------------------

2020-06-25 00:17:11 | on localhost executing action create-node with content type application/xml and payload:
<data><node>node-cb31ded8-85cc-4774-9e4a-0a6701b2e89a</node><owner>admin@localhost</owner><pubsub prefix="true"><node_type>collection</node_type><title>Node cb31ded8-85cc-4774-9e4a-0a6701b2e89a</title></pubsub></data>

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

2020-06-25 00:17:12 | [Mutex] waiting for: [received:nodes:b23edc6e-a934-42c0-8107-7352b60d3b83:localhost]

2020-06-25 00:17:12 | [Mutex] waiting for: [received:nodes:b23edc6e-a934-42c0-8107-7352b60d3b83:localhost]

2020-06-25 00:17:12 | [Mutex] received everything.

2020-06-25 00:17:12 | [Mutex] isItemNotified: received:node:b23edc6e-a934-42c0-8107-7352b60d3b83:localhost:node-cb31ded8-85cc-4774-9e4a-0a6701b2e89a:Node cb31ded8-85cc-4774-9e4a-0a6701b2e89a :: true

deleteNodes 1.015s
2020-06-25 00:17:18 |

2020-06-25 00:17:18 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingXML]

2020-06-25 00:17:18 | ------------------------------------

2020-06-25 00:17:18 | on localhost executing action delete-node with content type application/xml and payload:
<data><node>node-cb31ded8-85cc-4774-9e4a-0a6701b2e89a</node></data>

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

2020-06-25 00:17:19 | [Mutex] waiting for: [received:nodes:02e5beee-eeb9-43a1-b08e-3532a9076200:localhost]

2020-06-25 00:17:19 | [Mutex] received everything.

2020-06-25 00:17:19 | [Mutex] isItemNotified: received:node:02e5beee-eeb9-43a1-b08e-3532a9076200:localhost:node-cb31ded8-85cc-4774-9e4a-0a6701b2e89a:Node cb31ded8-85cc-4774-9e4a-0a6701b2e89a :: false

deleteSubnodes 1.142s
2020-06-25 00:17:17 |

2020-06-25 00:17:17 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingXML]

2020-06-25 00:17:17 | ------------------------------------

2020-06-25 00:17:17 | on localhost executing action delete-node with content type application/xml and payload:
<data><node>node-0133151d-2eac-47b7-a30f-cf629e41a265</node></data>

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

2020-06-25 00:17:18 | [Mutex] waiting for: [received:nodes:19665456-6c10-481e-b50e-63583a495c13:localhost]

2020-06-25 00:17:18 | [Mutex] received everything.

2020-06-25 00:17:18 | [Mutex] isItemNotified: received:node:19665456-6c10-481e-b50e-63583a495c13:localhost:node-0133151d-2eac-47b7-a30f-cf629e41a265:Node 0133151d-2eac-47b7-a30f-cf629e41a265 :: false

2020-06-25 00:17:18 | [Mutex] waiting for: [received:nodes:7d7310db-2321-4b9e-95c3-72e571515f8d:localhost]

2020-06-25 00:17:18 | [Mutex] received everything.

2020-06-25 00:17:18 | [Mutex] isItemNotified: received:node:7d7310db-2321-4b9e-95c3-72e571515f8d:localhost:node-0133151d-2eac-47b7-a30f-cf629e41a265:Node 0133151d-2eac-47b7-a30f-cf629e41a265 :: false

publishItemsToNodes 0.211s
2020-06-25 00:17:15 |

2020-06-25 00:17:15 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingXML]

2020-06-25 00:17:15 | ------------------------------------

2020-06-25 00:17:15 | on localhost executing action publish-item with content type application/xml and payload:
<data><node>node-0133151d-2eac-47b7-a30f-cf629e41a265</node><item-id>item-97896dc4-f615-46c5-b80c-cbac5c1ae4a4</item-id><entry><test>item-97896dc4-f615-46c5-b80c-cbac5c1ae4a4</test></entry></data>

2020-06-25 00:17:15 | 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-97896dc4-f615-46c5-b80c-cbac5c1ae4a4</value></item-id></result>

2020-06-25 00:17:15 | [Mutex] waiting for: [published:item:notifieditem-97896dc4-f615-46c5-b80c-cbac5c1ae4a4:admin@localhost]

2020-06-25 00:17:15 | [Mutex] received everything.

2020-06-25 00:17:15 | [Mutex] isItemNotified: published:item:notifieditem-97896dc4-f615-46c5-b80c-cbac5c1ae4a4:admin@localhost :: true

retractItemsFromNodes 0.246s
2020-06-25 00:17:15 |

2020-06-25 00:17:15 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingXML]

2020-06-25 00:17:15 | ------------------------------------

2020-06-25 00:17:15 | on localhost executing action delete-item with content type application/xml and payload:
<data><node>node-0133151d-2eac-47b7-a30f-cf629e41a265</node><item-id>item-97896dc4-f615-46c5-b80c-cbac5c1ae4a4</item-id></data>

2020-06-25 00:17:16 | 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-97896dc4-f615-46c5-b80c-cbac5c1ae4a4</value></item-id></result>

2020-06-25 00:17:16 | [Mutex] waiting for: [retracted:item:notifieditem-97896dc4-f615-46c5-b80c-cbac5c1ae4a4:admin@localhost]

2020-06-25 00:17:16 | [Mutex] received everything.

2020-06-25 00:17:16 | [Mutex] isItemNotified: retracted:item:notifieditem-97896dc4-f615-46c5-b80c-cbac5c1ae4a4:admin@localhost :: true

retrieveItemsFromNodes 0.221s
2020-06-25 00:17:15 |

2020-06-25 00:17:15 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingXML]

2020-06-25 00:17:15 | ------------------------------------

2020-06-25 00:17:15 | on localhost executing action retrieve-item with content type application/xml and payload:
<data><node>node-0133151d-2eac-47b7-a30f-cf629e41a265</node><item-id>item-97896dc4-f615-46c5-b80c-cbac5c1ae4a4</item-id></data>

2020-06-25 00:17:15 | 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-0133151d-2eac-47b7-a30f-cf629e41a265</value></node><item-id label="Item ID" type="text-single"><value>item-97896dc4-f615-46c5-b80c-cbac5c1ae4a4</value></item-id><item label="Item" type="text-multi"><value><item id="item-97896dc4-f615-46c5-b80c-cbac5c1ae4a4"><test>item-97896dc4-f615-46c5-b80c-cbac5c1ae4a4</test></item></value></item></result>

2020-06-25 00:17:15 | [Mutex] notify: [retrieved:item:item-97896dc4-f615-46c5-b80c-cbac5c1ae4a4:payload-matches:true:localhost]

2020-06-25 00:17:15 | [Mutex] received everything.

2020-06-25 00:17:15 | [Mutex] isItemNotified: retrieved:item:item-97896dc4-f615-46c5-b80c-cbac5c1ae4a4:payload-matches:true:localhost :: true

retrieveUserSubscriptions 0.196s
2020-06-25 00:17:15 |

2020-06-25 00:17:15 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingXML]

2020-06-25 00:17:15 | ------------------------------------

2020-06-25 00:17:15 | on localhost executing action retrieve-user-subscriptions with content type application/xml and payload:
<data><jid>admin@localhost</jid></data>

2020-06-25 00:17:15 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
<result><nodes label="Nodes" type="text-multi"><value>test</value><value>node-cb31ded8-85cc-4774-9e4a-0a6701b2e89a</value><value>node-0133151d-2eac-47b7-a30f-cf629e41a265</value></nodes></result>

retrieveUserSubscriptionsWithRegex 0.054s
2020-06-25 00:17:15 |

2020-06-25 00:17:15 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingXML]

2020-06-25 00:17:15 | ------------------------------------

2020-06-25 00:17:15 | on localhost executing action retrieve-user-subscriptions with content type application/xml and payload:
<data><jid>admin@localhost</jid><node-pattern>(?!node-0133151d-2eac-47b7-a30f-cf629e41a265)</node-pattern></data>

2020-06-25 00:17:15 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
<result><nodes label="Nodes" type="text-multi"/></result>

subscribeNodes 1.168s
2020-06-25 00:17:14 |

2020-06-25 00:17:14 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingXML]

2020-06-25 00:17:14 | ------------------------------------

2020-06-25 00:17:14 | on localhost executing action subscribe-node with content type application/xml and payload:
<data><node>node-0133151d-2eac-47b7-a30f-cf629e41a265</node><jids><value>admin@localhost</value></jids></data>

2020-06-25 00:17:14 | from localhost for action subscribe-node got result code 200 and payload
<result><Note type="fixed"><value>Operation successful</value></Note></result>

unsubscribeNodes 1.269s
2020-06-25 00:17:16 |

2020-06-25 00:17:16 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingXML]

2020-06-25 00:17:16 | ------------------------------------

2020-06-25 00:17:16 | on localhost executing action unsubscribe-node with content type application/xml and payload:
<data><node>node-0133151d-2eac-47b7-a30f-cf629e41a265</node><jids><value>admin@localhost</value></jids></data>

2020-06-25 00:17:16 | from localhost for action unsubscribe-node got result code 200 and payload
<result><Note type="fixed"><value>Operation successful</value></Note></result>