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

Test duration: 10.121s

Passed Tests
tigase.tests.pubsub.TestRestApiUsingXML
configureNodes 1.088s
2020-05-26 00:59:01 |

2020-05-26 00:59:01 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingXML]

2020-05-26 00:59:01 | ------------------------------------

2020-05-26 00:59:01 | [Mutex] waiting for: [configured:node:node-b3884b2f-0616-46e1-ac99-e451bdf837df:node-5f3660fa-3721-49a0-8c94-d89aaa861b24]

2020-05-26 00:59:01 | [Mutex] received everything.

2020-05-26 00:59:01 | [Mutex] isItemNotified: configured:node:node-b3884b2f-0616-46e1-ac99-e451bdf837df:node-5f3660fa-3721-49a0-8c94-d89aaa861b24 :: true

2020-05-26 00:59:02 | [Mutex] waiting for: [received:nodes:bf6a0237-1c17-456d-bc34-a3bb89b90b5d:localhost]

2020-05-26 00:59:02 | [Mutex] received everything.

2020-05-26 00:59:02 | [Mutex] isItemNotified: received:node:bf6a0237-1c17-456d-bc34-a3bb89b90b5d:localhost:node-b3884b2f-0616-46e1-ac99-e451bdf837df:Node b3884b2f-0616-46e1-ac99-e451bdf837df :: true

2020-05-26 00:59:02 | [Mutex] waiting for: [received:nodes:741ca983-2b67-48d5-a115-e344bbfb0227:localhost]

2020-05-26 00:59:02 | [Mutex] received everything.

2020-05-26 00:59:02 | [Mutex] isItemNotified: received:node:741ca983-2b67-48d5-a115-e344bbfb0227:localhost:node-b3884b2f-0616-46e1-ac99-e451bdf837df:Node b3884b2f-0616-46e1-ac99-e451bdf837df :: false

createNodes 1.773s
2020-05-26 00:58:59 |

2020-05-26 00:58:59 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingXML]

2020-05-26 00:58:59 | ------------------------------------

2020-05-26 00:58:59 | on localhost executing action create-node with content type application/xml and payload:
<data><node>node-b3884b2f-0616-46e1-ac99-e451bdf837df</node><owner>admin@localhost</owner><pubsub prefix="true"><node_type>leaf</node_type><title>Node b3884b2f-0616-46e1-ac99-e451bdf837df</title></pubsub></data>

2020-05-26 00:58:59 | from localhost for action create-node got result code 200 and payload
<result><Note type="fixed"><value>Operation successful</value></Note></result>

2020-05-26 00:59:00 | [Mutex] waiting for: [received:nodes:a48270de-abb3-4bcc-8f02-607f70e73a57:localhost]

2020-05-26 00:59:00 | [Mutex] received everything.

2020-05-26 00:59:00 | [Mutex] isItemNotified: received:node:a48270de-abb3-4bcc-8f02-607f70e73a57:localhost:node-b3884b2f-0616-46e1-ac99-e451bdf837df:Node b3884b2f-0616-46e1-ac99-e451bdf837df :: true

createSubnodes 1.024s
2020-05-26 00:59:00 |

2020-05-26 00:59:00 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingXML]

2020-05-26 00:59:00 | ------------------------------------

2020-05-26 00:59:00 | on localhost executing action create-node with content type application/xml and payload:
<data><node>node-5f3660fa-3721-49a0-8c94-d89aaa861b24</node><owner>admin@localhost</owner><pubsub prefix="true"><node_type>collection</node_type><title>Node 5f3660fa-3721-49a0-8c94-d89aaa861b24</title></pubsub></data>

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

2020-05-26 00:59:01 | [Mutex] waiting for: [received:nodes:7b17f9bc-6752-49f6-a3af-d172a31c51b9:localhost]

2020-05-26 00:59:01 | [Mutex] received everything.

2020-05-26 00:59:01 | [Mutex] isItemNotified: received:node:7b17f9bc-6752-49f6-a3af-d172a31c51b9:localhost:node-5f3660fa-3721-49a0-8c94-d89aaa861b24:Node 5f3660fa-3721-49a0-8c94-d89aaa861b24 :: true

deleteNodes 1.018s
2020-05-26 00:59:07 |

2020-05-26 00:59:07 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingXML]

2020-05-26 00:59:07 | ------------------------------------

2020-05-26 00:59:07 | on localhost executing action delete-node with content type application/xml and payload:
<data><node>node-5f3660fa-3721-49a0-8c94-d89aaa861b24</node></data>

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

2020-05-26 00:59:08 | [Mutex] waiting for: [received:nodes:019f3a1f-e045-45c3-be39-0a5579b72d02:localhost]

2020-05-26 00:59:08 | [Mutex] received everything.

2020-05-26 00:59:08 | [Mutex] isItemNotified: received:node:019f3a1f-e045-45c3-be39-0a5579b72d02:localhost:node-5f3660fa-3721-49a0-8c94-d89aaa861b24:Node 5f3660fa-3721-49a0-8c94-d89aaa861b24 :: false

deleteSubnodes 1.131s
2020-05-26 00:59:06 |

2020-05-26 00:59:06 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingXML]

2020-05-26 00:59:06 | ------------------------------------

2020-05-26 00:59:06 | on localhost executing action delete-node with content type application/xml and payload:
<data><node>node-b3884b2f-0616-46e1-ac99-e451bdf837df</node></data>

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

2020-05-26 00:59:07 | [Mutex] waiting for: [received:nodes:e5474e09-4f9f-48b3-a2fe-f2d69e7ba963:localhost]

2020-05-26 00:59:07 | [Mutex] received everything.

2020-05-26 00:59:07 | [Mutex] isItemNotified: received:node:e5474e09-4f9f-48b3-a2fe-f2d69e7ba963:localhost:node-b3884b2f-0616-46e1-ac99-e451bdf837df:Node b3884b2f-0616-46e1-ac99-e451bdf837df :: false

2020-05-26 00:59:07 | [Mutex] waiting for: [received:nodes:42c398c2-7466-4ffc-8741-39ca4a8e3fa1:localhost]

2020-05-26 00:59:07 | [Mutex] received everything.

2020-05-26 00:59:07 | [Mutex] isItemNotified: received:node:42c398c2-7466-4ffc-8741-39ca4a8e3fa1:localhost:node-b3884b2f-0616-46e1-ac99-e451bdf837df:Node b3884b2f-0616-46e1-ac99-e451bdf837df :: false

publishItemsToNodes 0.246s
2020-05-26 00:59:04 |

2020-05-26 00:59:04 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingXML]

2020-05-26 00:59:04 | ------------------------------------

2020-05-26 00:59:04 | on localhost executing action publish-item with content type application/xml and payload:
<data><node>node-b3884b2f-0616-46e1-ac99-e451bdf837df</node><item-id>item-8a12e748-3faf-4ccc-9e4e-1b29a935f6d5</item-id><entry><test>item-8a12e748-3faf-4ccc-9e4e-1b29a935f6d5</test></entry></data>

2020-05-26 00:59:04 | 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-8a12e748-3faf-4ccc-9e4e-1b29a935f6d5</value></item-id></result>

2020-05-26 00:59:04 | [Mutex] waiting for: [published:item:notifieditem-8a12e748-3faf-4ccc-9e4e-1b29a935f6d5:admin@localhost]

2020-05-26 00:59:04 | [Mutex] received everything.

2020-05-26 00:59:04 | [Mutex] isItemNotified: published:item:notifieditem-8a12e748-3faf-4ccc-9e4e-1b29a935f6d5:admin@localhost :: true

retractItemsFromNodes 0.231s
2020-05-26 00:59:04 |

2020-05-26 00:59:04 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingXML]

2020-05-26 00:59:04 | ------------------------------------

2020-05-26 00:59:04 | on localhost executing action delete-item with content type application/xml and payload:
<data><node>node-b3884b2f-0616-46e1-ac99-e451bdf837df</node><item-id>item-8a12e748-3faf-4ccc-9e4e-1b29a935f6d5</item-id></data>

2020-05-26 00:59:04 | 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-8a12e748-3faf-4ccc-9e4e-1b29a935f6d5</value></item-id></result>

2020-05-26 00:59:04 | [Mutex] received everything.

2020-05-26 00:59:04 | [Mutex] isItemNotified: retracted:item:notifieditem-8a12e748-3faf-4ccc-9e4e-1b29a935f6d5:admin@localhost :: true

retrieveItemsFromNodes 0.217s
2020-05-26 00:59:04 |

2020-05-26 00:59:04 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingXML]

2020-05-26 00:59:04 | ------------------------------------

2020-05-26 00:59:04 | on localhost executing action retrieve-item with content type application/xml and payload:
<data><node>node-b3884b2f-0616-46e1-ac99-e451bdf837df</node><item-id>item-8a12e748-3faf-4ccc-9e4e-1b29a935f6d5</item-id></data>

2020-05-26 00:59:04 | 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-b3884b2f-0616-46e1-ac99-e451bdf837df</value></node><item-id label="Item ID" type="text-single"><value>item-8a12e748-3faf-4ccc-9e4e-1b29a935f6d5</value></item-id><item label="Item" type="text-multi"><value><item id="item-8a12e748-3faf-4ccc-9e4e-1b29a935f6d5"><test>item-8a12e748-3faf-4ccc-9e4e-1b29a935f6d5</test></item></value></item></result>

2020-05-26 00:59:04 | [Mutex] notify: [retrieved:item:item-8a12e748-3faf-4ccc-9e4e-1b29a935f6d5:payload-matches:true:localhost]

2020-05-26 00:59:04 | [Mutex] received everything.

2020-05-26 00:59:04 | [Mutex] isItemNotified: retrieved:item:item-8a12e748-3faf-4ccc-9e4e-1b29a935f6d5:payload-matches:true:localhost :: true

retrieveUserSubscriptions 0.224s
2020-05-26 00:59:04 |

2020-05-26 00:59:04 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingXML]

2020-05-26 00:59:04 | ------------------------------------

2020-05-26 00:59:04 | on localhost executing action retrieve-user-subscriptions with content type application/xml and payload:
<data><jid>admin@localhost</jid></data>

2020-05-26 00:59:04 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
<result><nodes label="Nodes" type="text-multi"><value>node-b3884b2f-0616-46e1-ac99-e451bdf837df</value><value>node-5f3660fa-3721-49a0-8c94-d89aaa861b24</value></nodes></result>

retrieveUserSubscriptionsWithRegex 0.058s
2020-05-26 00:59:04 |

2020-05-26 00:59:04 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingXML]

2020-05-26 00:59:04 | ------------------------------------

2020-05-26 00:59:04 | on localhost executing action retrieve-user-subscriptions with content type application/xml and payload:
<data><jid>admin@localhost</jid><node-pattern>(?!node-b3884b2f-0616-46e1-ac99-e451bdf837df)</node-pattern></data>

2020-05-26 00:59:04 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
<result><nodes label="Nodes" type="text-multi"/></result>

subscribeNodes 1.103s
2020-05-26 00:59:02 |

2020-05-26 00:59:02 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingXML]

2020-05-26 00:59:02 | ------------------------------------

2020-05-26 00:59:02 | on localhost executing action subscribe-node with content type application/xml and payload:
<data><node>node-b3884b2f-0616-46e1-ac99-e451bdf837df</node><jids><value>admin@localhost</value></jids></data>

2020-05-26 00:59:03 | from localhost for action subscribe-node got result code 200 and payload
<result><Note type="fixed"><value>Operation successful</value></Note></result>

unsubscribeNodes 1.212s
2020-05-26 00:59:04 |

2020-05-26 00:59:04 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingXML]

2020-05-26 00:59:04 | ------------------------------------

2020-05-26 00:59:04 | on localhost executing action unsubscribe-node with content type application/xml and payload:
<data><node>node-b3884b2f-0616-46e1-ac99-e451bdf837df</node><jids><value>admin@localhost</value></jids></data>

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