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

Test duration: 10.356s

Passed Tests
tigase.tests.pubsub.TestRestApiUsingXML
configureNodes 1.116s
2019-11-21 04:05:40 |

2019-11-21 04:05:40 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingXML]

2019-11-21 04:05:40 | ------------------------------------

2019-11-21 04:05:40 | [Mutex] waiting for: [configured:node:node-6a145603-850f-4cab-b66c-744e9c2aaf3a:node-5cdee882-f9bf-4c4b-9a28-4ec0723481bb]

2019-11-21 04:05:40 | [Mutex] received everything.

2019-11-21 04:05:40 | [Mutex] isItemNotified: configured:node:node-6a145603-850f-4cab-b66c-744e9c2aaf3a:node-5cdee882-f9bf-4c4b-9a28-4ec0723481bb :: true

2019-11-21 04:05:41 | [Mutex] waiting for: [received:nodes:b63bbc1e-d800-46d4-8c8a-c6a7572c8bbe:localhost]

2019-11-21 04:05:41 | [Mutex] received everything.

2019-11-21 04:05:41 | [Mutex] isItemNotified: received:node:b63bbc1e-d800-46d4-8c8a-c6a7572c8bbe:localhost:node-6a145603-850f-4cab-b66c-744e9c2aaf3a:Node 6a145603-850f-4cab-b66c-744e9c2aaf3a :: true

2019-11-21 04:05:41 | [Mutex] waiting for: [received:nodes:1a13b9ab-ecd1-4b82-82e2-db5cc4ae7dae:localhost]

2019-11-21 04:05:41 | [Mutex] received everything.

2019-11-21 04:05:41 | [Mutex] isItemNotified: received:node:1a13b9ab-ecd1-4b82-82e2-db5cc4ae7dae:localhost:node-6a145603-850f-4cab-b66c-744e9c2aaf3a:Node 6a145603-850f-4cab-b66c-744e9c2aaf3a :: false

createNodes 1.521s
2019-11-21 04:05:38 |

2019-11-21 04:05:38 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingXML]

2019-11-21 04:05:38 | ------------------------------------

2019-11-21 04:05:38 | on localhost executing action create-node with content type application/xml and payload:
<data><node>node-6a145603-850f-4cab-b66c-744e9c2aaf3a</node><owner>admin@localhost</owner><pubsub prefix="true"><node_type>leaf</node_type><title>Node 6a145603-850f-4cab-b66c-744e9c2aaf3a</title></pubsub></data>

2019-11-21 04:05:38 | from localhost for action create-node got result code 200 and payload
<result><Note type="fixed"><value>Operation successful</value></Note></result>

2019-11-21 04:05:39 | [Mutex] waiting for: [received:nodes:da1a97ad-d693-4cea-8b74-f8310cd3ebaa:localhost]

2019-11-21 04:05:39 | [Mutex] received everything.

2019-11-21 04:05:39 | [Mutex] isItemNotified: received:node:da1a97ad-d693-4cea-8b74-f8310cd3ebaa:localhost:node-6a145603-850f-4cab-b66c-744e9c2aaf3a:Node 6a145603-850f-4cab-b66c-744e9c2aaf3a :: true

createSubnodes 1.028s
2019-11-21 04:05:39 |

2019-11-21 04:05:39 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingXML]

2019-11-21 04:05:39 | ------------------------------------

2019-11-21 04:05:39 | on localhost executing action create-node with content type application/xml and payload:
<data><node>node-5cdee882-f9bf-4c4b-9a28-4ec0723481bb</node><owner>admin@localhost</owner><pubsub prefix="true"><node_type>collection</node_type><title>Node 5cdee882-f9bf-4c4b-9a28-4ec0723481bb</title></pubsub></data>

2019-11-21 04:05:39 | from localhost for action create-node got result code 200 and payload
<result><Note type="fixed"><value>Operation successful</value></Note></result>

2019-11-21 04:05:40 | [Mutex] waiting for: [received:nodes:d7a7c5d5-4253-4edd-8ec7-8f5ee938358d:localhost]

2019-11-21 04:05:40 | [Mutex] waiting for: [received:nodes:d7a7c5d5-4253-4edd-8ec7-8f5ee938358d:localhost]

2019-11-21 04:05:40 | [Mutex] received everything.

2019-11-21 04:05:40 | [Mutex] isItemNotified: received:node:d7a7c5d5-4253-4edd-8ec7-8f5ee938358d:localhost:node-5cdee882-f9bf-4c4b-9a28-4ec0723481bb:Node 5cdee882-f9bf-4c4b-9a28-4ec0723481bb :: true

deleteNodes 1.020s
2019-11-21 04:05:46 |

2019-11-21 04:05:46 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingXML]

2019-11-21 04:05:46 | ------------------------------------

2019-11-21 04:05:46 | on localhost executing action delete-node with content type application/xml and payload:
<data><node>node-5cdee882-f9bf-4c4b-9a28-4ec0723481bb</node></data>

2019-11-21 04:05:46 | from localhost for action delete-node got result code 200 and payload
<result><Note type="fixed"><value>Operation successful</value></Note></result>

2019-11-21 04:05:47 | [Mutex] waiting for: [received:nodes:25f4577a-0468-4314-b1a8-163492c4c246:localhost]

2019-11-21 04:05:47 | [Mutex] received everything.

2019-11-21 04:05:47 | [Mutex] isItemNotified: received:node:25f4577a-0468-4314-b1a8-163492c4c246:localhost:node-5cdee882-f9bf-4c4b-9a28-4ec0723481bb:Node 5cdee882-f9bf-4c4b-9a28-4ec0723481bb :: false

deleteSubnodes 1.133s
2019-11-21 04:05:45 |

2019-11-21 04:05:45 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingXML]

2019-11-21 04:05:45 | ------------------------------------

2019-11-21 04:05:45 | on localhost executing action delete-node with content type application/xml and payload:
<data><node>node-6a145603-850f-4cab-b66c-744e9c2aaf3a</node></data>

2019-11-21 04:05:45 | from localhost for action delete-node got result code 200 and payload
<result><Note type="fixed"><value>Operation successful</value></Note></result>

2019-11-21 04:05:46 | [Mutex] waiting for: [received:nodes:65b7a2af-452a-45af-8b02-e82929e581c8:localhost]

2019-11-21 04:05:46 | [Mutex] received everything.

2019-11-21 04:05:46 | [Mutex] isItemNotified: received:node:65b7a2af-452a-45af-8b02-e82929e581c8:localhost:node-6a145603-850f-4cab-b66c-744e9c2aaf3a:Node 6a145603-850f-4cab-b66c-744e9c2aaf3a :: false

2019-11-21 04:05:46 | [Mutex] waiting for: [received:nodes:c5d18639-a0c4-46ea-87bf-170de3ca9003:localhost]

2019-11-21 04:05:46 | [Mutex] received everything.

2019-11-21 04:05:46 | [Mutex] isItemNotified: received:node:c5d18639-a0c4-46ea-87bf-170de3ca9003:localhost:node-6a145603-850f-4cab-b66c-744e9c2aaf3a:Node 6a145603-850f-4cab-b66c-744e9c2aaf3a :: false

publishItemsToNodes 0.326s
2019-11-21 04:05:43 |

2019-11-21 04:05:43 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingXML]

2019-11-21 04:05:43 | ------------------------------------

2019-11-21 04:05:43 | on localhost executing action publish-item with content type application/xml and payload:
<data><node>node-6a145603-850f-4cab-b66c-744e9c2aaf3a</node><item-id>item-12ee1872-3fb4-4873-89bd-50187bac435c</item-id><entry><test>item-12ee1872-3fb4-4873-89bd-50187bac435c</test></entry></data>

2019-11-21 04:05:43 | 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-12ee1872-3fb4-4873-89bd-50187bac435c</value></item-id></result>

2019-11-21 04:05:43 | [Mutex] received everything.

2019-11-21 04:05:43 | [Mutex] isItemNotified: published:item:notifieditem-12ee1872-3fb4-4873-89bd-50187bac435c:admin@localhost :: true

retractItemsFromNodes 0.327s
2019-11-21 04:05:43 |

2019-11-21 04:05:43 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingXML]

2019-11-21 04:05:43 | ------------------------------------

2019-11-21 04:05:43 | on localhost executing action delete-item with content type application/xml and payload:
<data><node>node-6a145603-850f-4cab-b66c-744e9c2aaf3a</node><item-id>item-12ee1872-3fb4-4873-89bd-50187bac435c</item-id></data>

2019-11-21 04:05:44 | 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-12ee1872-3fb4-4873-89bd-50187bac435c</value></item-id></result>

2019-11-21 04:05:44 | [Mutex] received everything.

2019-11-21 04:05:44 | [Mutex] isItemNotified: retracted:item:notifieditem-12ee1872-3fb4-4873-89bd-50187bac435c:admin@localhost :: true

retrieveItemsFromNodes 0.205s
2019-11-21 04:05:43 |

2019-11-21 04:05:43 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingXML]

2019-11-21 04:05:43 | ------------------------------------

2019-11-21 04:05:43 | on localhost executing action retrieve-item with content type application/xml and payload:
<data><node>node-6a145603-850f-4cab-b66c-744e9c2aaf3a</node><item-id>item-12ee1872-3fb4-4873-89bd-50187bac435c</item-id></data>

2019-11-21 04:05:43 | 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-6a145603-850f-4cab-b66c-744e9c2aaf3a</value></node><item-id type="text-single" label="Item ID"><value>item-12ee1872-3fb4-4873-89bd-50187bac435c</value></item-id><item type="text-multi" label="Item"><value><item id="item-12ee1872-3fb4-4873-89bd-50187bac435c"><test>item-12ee1872-3fb4-4873-89bd-50187bac435c</test></item></value></item></result>

2019-11-21 04:05:43 | [Mutex] notify: [retrieved:item:item-12ee1872-3fb4-4873-89bd-50187bac435c:payload-matches:true:localhost]

2019-11-21 04:05:43 | [Mutex] received everything.

2019-11-21 04:05:43 | [Mutex] isItemNotified: retrieved:item:item-12ee1872-3fb4-4873-89bd-50187bac435c:payload-matches:true:localhost :: true

retrieveUserSubscriptions 0.269s
2019-11-21 04:05:43 |

2019-11-21 04:05:43 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingXML]

2019-11-21 04:05:43 | ------------------------------------

2019-11-21 04:05:43 | on localhost executing action retrieve-user-subscriptions with content type application/xml and payload:
<data><jid>admin@localhost</jid></data>

2019-11-21 04:05:43 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
<result><nodes type="text-multi" label="Nodes"><value>node-6a145603-850f-4cab-b66c-744e9c2aaf3a</value><value>node-5cdee882-f9bf-4c4b-9a28-4ec0723481bb</value></nodes></result>

retrieveUserSubscriptionsWithRegex 0.074s
2019-11-21 04:05:43 |

2019-11-21 04:05:43 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingXML]

2019-11-21 04:05:43 | ------------------------------------

2019-11-21 04:05:43 | on localhost executing action retrieve-user-subscriptions with content type application/xml and payload:
<data><jid>admin@localhost</jid><node-pattern>(?!node-6a145603-850f-4cab-b66c-744e9c2aaf3a)</node-pattern></data>

2019-11-21 04:05:43 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
<result><nodes type="text-multi" label="Nodes"/></result>

subscribeNodes 1.182s
2019-11-21 04:05:41 |

2019-11-21 04:05:41 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingXML]

2019-11-21 04:05:41 | ------------------------------------

2019-11-21 04:05:41 | on localhost executing action subscribe-node with content type application/xml and payload:
<data><node>node-6a145603-850f-4cab-b66c-744e9c2aaf3a</node><jids><value>admin@localhost</value></jids></data>

2019-11-21 04:05:42 | from localhost for action subscribe-node got result code 200 and payload
<result><Note type="fixed"><value>Operation successful</value></Note></result>

unsubscribeNodes 1.363s
2019-11-21 04:05:44 |

2019-11-21 04:05:44 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingXML]

2019-11-21 04:05:44 | ------------------------------------

2019-11-21 04:05:44 | on localhost executing action unsubscribe-node with content type application/xml and payload:
<data><node>node-6a145603-850f-4cab-b66c-744e9c2aaf3a</node><jids><value>admin@localhost</value></jids></data>

2019-11-21 04:05:44 | from localhost for action unsubscribe-node got result code 200 and payload
<result><Note type="fixed"><value>Operation successful</value></Note></result>