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

Test duration: 10.564s

Passed Tests
tigase.tests.pubsub.TestRestApiUsingXML
configureNodes 1.098s
2019-11-27 19:18:50 |

2019-11-27 19:18:50 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingXML]

2019-11-27 19:18:50 | ------------------------------------

2019-11-27 19:18:50 | [Mutex] waiting for: [configured:node:node-fcded6a9-4a12-430f-9d16-7d8a3eceeec0:node-e8ad7861-6b71-4f91-ba85-ddb39825eb59]

2019-11-27 19:18:50 | [Mutex] received everything.

2019-11-27 19:18:50 | [Mutex] isItemNotified: configured:node:node-fcded6a9-4a12-430f-9d16-7d8a3eceeec0:node-e8ad7861-6b71-4f91-ba85-ddb39825eb59 :: true

2019-11-27 19:18:51 | [Mutex] waiting for: [received:nodes:9440724a-ada2-4072-86bd-644511f49424:localhost]

2019-11-27 19:18:51 | [Mutex] received everything.

2019-11-27 19:18:51 | [Mutex] isItemNotified: received:node:9440724a-ada2-4072-86bd-644511f49424:localhost:node-fcded6a9-4a12-430f-9d16-7d8a3eceeec0:Node fcded6a9-4a12-430f-9d16-7d8a3eceeec0 :: true

2019-11-27 19:18:51 | [Mutex] waiting for: [received:nodes:aded5bee-afec-47dd-b8b1-15bf2b4a385b:localhost]

2019-11-27 19:18:51 | [Mutex] received everything.

2019-11-27 19:18:51 | [Mutex] isItemNotified: received:node:aded5bee-afec-47dd-b8b1-15bf2b4a385b:localhost:node-fcded6a9-4a12-430f-9d16-7d8a3eceeec0:Node fcded6a9-4a12-430f-9d16-7d8a3eceeec0 :: false

createNodes 1.559s
2019-11-27 19:18:47 |

2019-11-27 19:18:47 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingXML]

2019-11-27 19:18:47 | ------------------------------------

2019-11-27 19:18:47 | on localhost executing action create-node with content type application/xml and payload:
<data><node>node-fcded6a9-4a12-430f-9d16-7d8a3eceeec0</node><owner>admin@localhost</owner><pubsub prefix="true"><node_type>leaf</node_type><title>Node fcded6a9-4a12-430f-9d16-7d8a3eceeec0</title></pubsub></data>

2019-11-27 19:18:48 | from localhost for action create-node got result code 200 and payload
<result><Note type="fixed"><value>Operation successful</value></Note></result>

2019-11-27 19:18:49 | [Mutex] waiting for: [received:nodes:c0201a41-d8e2-4033-8596-8ef66c5af9e9:localhost]

2019-11-27 19:18:49 | [Mutex] received everything.

2019-11-27 19:18:49 | [Mutex] isItemNotified: received:node:c0201a41-d8e2-4033-8596-8ef66c5af9e9:localhost:node-fcded6a9-4a12-430f-9d16-7d8a3eceeec0:Node fcded6a9-4a12-430f-9d16-7d8a3eceeec0 :: true

createSubnodes 1.025s
2019-11-27 19:18:49 |

2019-11-27 19:18:49 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingXML]

2019-11-27 19:18:49 | ------------------------------------

2019-11-27 19:18:49 | on localhost executing action create-node with content type application/xml and payload:
<data><node>node-e8ad7861-6b71-4f91-ba85-ddb39825eb59</node><owner>admin@localhost</owner><pubsub prefix="true"><node_type>collection</node_type><title>Node e8ad7861-6b71-4f91-ba85-ddb39825eb59</title></pubsub></data>

2019-11-27 19:18:49 | from localhost for action create-node got result code 200 and payload
<result><Note type="fixed"><value>Operation successful</value></Note></result>

2019-11-27 19:18:50 | [Mutex] waiting for: [received:nodes:eade3084-3e8c-4481-adaf-05c5e4b4eec1:localhost]

2019-11-27 19:18:50 | [Mutex] received everything.

2019-11-27 19:18:50 | [Mutex] isItemNotified: received:node:eade3084-3e8c-4481-adaf-05c5e4b4eec1:localhost:node-e8ad7861-6b71-4f91-ba85-ddb39825eb59:Node e8ad7861-6b71-4f91-ba85-ddb39825eb59 :: true

deleteNodes 1.019s
2019-11-27 19:18:56 |

2019-11-27 19:18:56 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingXML]

2019-11-27 19:18:56 | ------------------------------------

2019-11-27 19:18:56 | on localhost executing action delete-node with content type application/xml and payload:
<data><node>node-e8ad7861-6b71-4f91-ba85-ddb39825eb59</node></data>

2019-11-27 19:18:56 | from localhost for action delete-node got result code 200 and payload
<result><Note type="fixed"><value>Operation successful</value></Note></result>

2019-11-27 19:18:57 | [Mutex] waiting for: [received:nodes:5d016032-6b0a-4828-93c8-247c7c710b54:localhost]

2019-11-27 19:18:57 | [Mutex] received everything.

2019-11-27 19:18:57 | [Mutex] isItemNotified: received:node:5d016032-6b0a-4828-93c8-247c7c710b54:localhost:node-e8ad7861-6b71-4f91-ba85-ddb39825eb59:Node e8ad7861-6b71-4f91-ba85-ddb39825eb59 :: false

deleteSubnodes 1.254s
2019-11-27 19:18:55 |

2019-11-27 19:18:55 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingXML]

2019-11-27 19:18:55 | ------------------------------------

2019-11-27 19:18:55 | on localhost executing action delete-node with content type application/xml and payload:
<data><node>node-fcded6a9-4a12-430f-9d16-7d8a3eceeec0</node></data>

2019-11-27 19:18:55 | from localhost for action delete-node got result code 200 and payload
<result><Note type="fixed"><value>Operation successful</value></Note></result>

2019-11-27 19:18:56 | [Mutex] waiting for: [received:nodes:816d2eba-3706-4526-ba13-aac6e4890d6a:localhost]

2019-11-27 19:18:56 | [Mutex] received everything.

2019-11-27 19:18:56 | [Mutex] isItemNotified: received:node:816d2eba-3706-4526-ba13-aac6e4890d6a:localhost:node-fcded6a9-4a12-430f-9d16-7d8a3eceeec0:Node fcded6a9-4a12-430f-9d16-7d8a3eceeec0 :: false

2019-11-27 19:18:56 | [Mutex] waiting for: [received:nodes:dcc83c03-1186-47c0-9340-69d62ed89471:localhost]

2019-11-27 19:18:56 | [Mutex] received everything.

2019-11-27 19:18:56 | [Mutex] isItemNotified: received:node:dcc83c03-1186-47c0-9340-69d62ed89471:localhost:node-fcded6a9-4a12-430f-9d16-7d8a3eceeec0:Node fcded6a9-4a12-430f-9d16-7d8a3eceeec0 :: false

publishItemsToNodes 0.305s
2019-11-27 19:18:52 |

2019-11-27 19:18:52 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingXML]

2019-11-27 19:18:52 | ------------------------------------

2019-11-27 19:18:52 | on localhost executing action publish-item with content type application/xml and payload:
<data><node>node-fcded6a9-4a12-430f-9d16-7d8a3eceeec0</node><item-id>item-8f478c78-015d-4dda-bef7-12e6f65298c7</item-id><entry><test>item-8f478c78-015d-4dda-bef7-12e6f65298c7</test></entry></data>

2019-11-27 19:18:52 | from localhost for action publish-item got result code 200 and payload
<result><Note type="fixed"><value>Operation successful</value></Note><item-id type="fixed" label="Item ID"><value>item-8f478c78-015d-4dda-bef7-12e6f65298c7</value></item-id></result>

2019-11-27 19:18:52 | [Mutex] waiting for: [published:item:notifieditem-8f478c78-015d-4dda-bef7-12e6f65298c7:admin@localhost]

2019-11-27 19:18:52 | [Mutex] received everything.

2019-11-27 19:18:52 | [Mutex] isItemNotified: published:item:notifieditem-8f478c78-015d-4dda-bef7-12e6f65298c7:admin@localhost :: true

retractItemsFromNodes 0.280s
2019-11-27 19:18:53 |

2019-11-27 19:18:53 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingXML]

2019-11-27 19:18:53 | ------------------------------------

2019-11-27 19:18:53 | on localhost executing action delete-item with content type application/xml and payload:
<data><node>node-fcded6a9-4a12-430f-9d16-7d8a3eceeec0</node><item-id>item-8f478c78-015d-4dda-bef7-12e6f65298c7</item-id></data>

2019-11-27 19:18:53 | from localhost for action delete-item got result code 200 and payload
<result><Note type="fixed"><value>Operation successful</value></Note><item-id type="fixed" label="Item ID"><value>item-8f478c78-015d-4dda-bef7-12e6f65298c7</value></item-id></result>

2019-11-27 19:18:53 | [Mutex] waiting for: [retracted:item:notifieditem-8f478c78-015d-4dda-bef7-12e6f65298c7:admin@localhost]

2019-11-27 19:18:53 | [Mutex] received everything.

2019-11-27 19:18:53 | [Mutex] isItemNotified: retracted:item:notifieditem-8f478c78-015d-4dda-bef7-12e6f65298c7:admin@localhost :: true

retrieveItemsFromNodes 0.264s
2019-11-27 19:18:52 |

2019-11-27 19:18:52 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingXML]

2019-11-27 19:18:52 | ------------------------------------

2019-11-27 19:18:52 | on localhost executing action retrieve-item with content type application/xml and payload:
<data><node>node-fcded6a9-4a12-430f-9d16-7d8a3eceeec0</node><item-id>item-8f478c78-015d-4dda-bef7-12e6f65298c7</item-id></data>

2019-11-27 19:18:53 | from localhost for action retrieve-item got result code 200 and payload
<result><title>Retrive PubSub node item</title><node type="text-single" label="Node"><value>node-fcded6a9-4a12-430f-9d16-7d8a3eceeec0</value></node><item-id type="text-single" label="Item ID"><value>item-8f478c78-015d-4dda-bef7-12e6f65298c7</value></item-id><item type="text-multi" label="Item"><value><item id="item-8f478c78-015d-4dda-bef7-12e6f65298c7"><test>item-8f478c78-015d-4dda-bef7-12e6f65298c7</test></item></value></item></result>

2019-11-27 19:18:53 | [Mutex] notify: [retrieved:item:item-8f478c78-015d-4dda-bef7-12e6f65298c7:payload-matches:true:localhost]

2019-11-27 19:18:53 | [Mutex] received everything.

2019-11-27 19:18:53 | [Mutex] isItemNotified: retrieved:item:item-8f478c78-015d-4dda-bef7-12e6f65298c7:payload-matches:true:localhost :: true

retrieveUserSubscriptions 0.236s
2019-11-27 19:18:53 |

2019-11-27 19:18:53 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingXML]

2019-11-27 19:18:53 | ------------------------------------

2019-11-27 19:18:53 | on localhost executing action retrieve-user-subscriptions with content type application/xml and payload:
<data><jid>admin@localhost</jid></data>

2019-11-27 19:18:53 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
<result><nodes type="text-multi" label="Nodes"><value>node-e8ad7861-6b71-4f91-ba85-ddb39825eb59</value><value>node-fcded6a9-4a12-430f-9d16-7d8a3eceeec0</value></nodes></result>

retrieveUserSubscriptionsWithRegex 0.062s
2019-11-27 19:18:53 |

2019-11-27 19:18:53 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingXML]

2019-11-27 19:18:53 | ------------------------------------

2019-11-27 19:18:53 | on localhost executing action retrieve-user-subscriptions with content type application/xml and payload:
<data><jid>admin@localhost</jid><node-pattern>(?!node-fcded6a9-4a12-430f-9d16-7d8a3eceeec0)</node-pattern></data>

2019-11-27 19:18:53 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
<result><nodes type="text-multi" label="Nodes"/></result>

subscribeNodes 1.190s
2019-11-27 19:18:51 |

2019-11-27 19:18:51 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingXML]

2019-11-27 19:18:51 | ------------------------------------

2019-11-27 19:18:51 | on localhost executing action subscribe-node with content type application/xml and payload:
<data><node>node-fcded6a9-4a12-430f-9d16-7d8a3eceeec0</node><jids><value>admin@localhost</value></jids></data>

2019-11-27 19:18:51 | from localhost for action subscribe-node got result code 200 and payload
<result><Note type="fixed"><value>Operation successful</value></Note></result>

unsubscribeNodes 1.397s
2019-11-27 19:18:53 |

2019-11-27 19:18:53 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingXML]

2019-11-27 19:18:53 | ------------------------------------

2019-11-27 19:18:53 | on localhost executing action unsubscribe-node with content type application/xml and payload:
<data><node>node-fcded6a9-4a12-430f-9d16-7d8a3eceeec0</node><jids><value>admin@localhost</value></jids></data>

2019-11-27 19:18:54 | from localhost for action unsubscribe-node got result code 200 and payload
<result><Note type="fixed"><value>Operation successful</value></Note></result>