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

Test duration: 9.931s

Passed Tests
tigase.tests.pubsub.TestRestApiUsingXML
configureNodes 1.102s
2020-06-24 23:22:10 |

2020-06-24 23:22:10 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingXML]

2020-06-24 23:22:10 | ------------------------------------

2020-06-24 23:22:10 | [Mutex] waiting for: [configured:node:node-05625dfd-b865-4208-8a58-eb0fd10889df:node-1412da5b-b7c8-437c-be2e-aa35ee7c8836]

2020-06-24 23:22:10 | [Mutex] received everything.

2020-06-24 23:22:10 | [Mutex] isItemNotified: configured:node:node-05625dfd-b865-4208-8a58-eb0fd10889df:node-1412da5b-b7c8-437c-be2e-aa35ee7c8836 :: true

2020-06-24 23:22:11 | [Mutex] waiting for: [received:nodes:0b30c27b-5161-4b34-980e-7da4d9fa0b8d:localhost]

2020-06-24 23:22:11 | [Mutex] received everything.

2020-06-24 23:22:11 | [Mutex] isItemNotified: received:node:0b30c27b-5161-4b34-980e-7da4d9fa0b8d:localhost:node-05625dfd-b865-4208-8a58-eb0fd10889df:Node 05625dfd-b865-4208-8a58-eb0fd10889df :: true

2020-06-24 23:22:11 | [Mutex] waiting for: [received:nodes:ff999eeb-1724-4d03-9302-5c68c7a9dfaa:localhost]

2020-06-24 23:22:11 | [Mutex] received everything.

2020-06-24 23:22:11 | [Mutex] isItemNotified: received:node:ff999eeb-1724-4d03-9302-5c68c7a9dfaa:localhost:node-05625dfd-b865-4208-8a58-eb0fd10889df:Node 05625dfd-b865-4208-8a58-eb0fd10889df :: false

createNodes 1.522s
2020-06-24 23:22:07 |

2020-06-24 23:22:07 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingXML]

2020-06-24 23:22:07 | ------------------------------------

2020-06-24 23:22:07 | on localhost executing action create-node with content type application/xml and payload:
<data><node>node-05625dfd-b865-4208-8a58-eb0fd10889df</node><owner>admin@localhost</owner><pubsub prefix="true"><node_type>leaf</node_type><title>Node 05625dfd-b865-4208-8a58-eb0fd10889df</title></pubsub></data>

2020-06-24 23:22:08 | from localhost for action create-node got result code 200 and payload
<result><Note type="fixed"><value>Operation successful</value></Note></result>

2020-06-24 23:22:09 | [Mutex] waiting for: [received:nodes:6764448d-f565-47f1-957c-bd07d48a5791:localhost]

2020-06-24 23:22:09 | [Mutex] waiting for: [received:nodes:6764448d-f565-47f1-957c-bd07d48a5791:localhost]

2020-06-24 23:22:09 | [Mutex] received everything.

2020-06-24 23:22:09 | [Mutex] isItemNotified: received:node:6764448d-f565-47f1-957c-bd07d48a5791:localhost:node-05625dfd-b865-4208-8a58-eb0fd10889df:Node 05625dfd-b865-4208-8a58-eb0fd10889df :: true

createSubnodes 1.027s
2020-06-24 23:22:09 |

2020-06-24 23:22:09 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingXML]

2020-06-24 23:22:09 | ------------------------------------

2020-06-24 23:22:09 | on localhost executing action create-node with content type application/xml and payload:
<data><node>node-1412da5b-b7c8-437c-be2e-aa35ee7c8836</node><owner>admin@localhost</owner><pubsub prefix="true"><node_type>collection</node_type><title>Node 1412da5b-b7c8-437c-be2e-aa35ee7c8836</title></pubsub></data>

2020-06-24 23:22:09 | from localhost for action create-node got result code 200 and payload
<result><Note type="fixed"><value>Operation successful</value></Note></result>

2020-06-24 23:22:10 | [Mutex] waiting for: [received:nodes:8840d881-97d7-4de2-ab69-90382075bd8d:localhost]

2020-06-24 23:22:10 | [Mutex] waiting for: [received:nodes:8840d881-97d7-4de2-ab69-90382075bd8d:localhost]

2020-06-24 23:22:10 | [Mutex] waiting for: [received:nodes:8840d881-97d7-4de2-ab69-90382075bd8d:localhost]

2020-06-24 23:22:10 | [Mutex] waiting for: [received:nodes:8840d881-97d7-4de2-ab69-90382075bd8d:localhost]

2020-06-24 23:22:10 | [Mutex] waiting for: [received:nodes:8840d881-97d7-4de2-ab69-90382075bd8d:localhost]

2020-06-24 23:22:10 | [Mutex] received everything.

2020-06-24 23:22:10 | [Mutex] isItemNotified: received:node:8840d881-97d7-4de2-ab69-90382075bd8d:localhost:node-1412da5b-b7c8-437c-be2e-aa35ee7c8836:Node 1412da5b-b7c8-437c-be2e-aa35ee7c8836 :: true

deleteNodes 1.020s
2020-06-24 23:22:15 |

2020-06-24 23:22:15 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingXML]

2020-06-24 23:22:15 | ------------------------------------

2020-06-24 23:22:15 | on localhost executing action delete-node with content type application/xml and payload:
<data><node>node-1412da5b-b7c8-437c-be2e-aa35ee7c8836</node></data>

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

2020-06-24 23:22:16 | [Mutex] waiting for: [received:nodes:66c903d8-15f4-4b8a-b272-5eab24a44400:localhost]

2020-06-24 23:22:16 | [Mutex] received everything.

2020-06-24 23:22:16 | [Mutex] isItemNotified: received:node:66c903d8-15f4-4b8a-b272-5eab24a44400:localhost:node-1412da5b-b7c8-437c-be2e-aa35ee7c8836:Node 1412da5b-b7c8-437c-be2e-aa35ee7c8836 :: false

deleteSubnodes 1.139s
2020-06-24 23:22:14 |

2020-06-24 23:22:14 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingXML]

2020-06-24 23:22:14 | ------------------------------------

2020-06-24 23:22:14 | on localhost executing action delete-node with content type application/xml and payload:
<data><node>node-05625dfd-b865-4208-8a58-eb0fd10889df</node></data>

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

2020-06-24 23:22:15 | [Mutex] waiting for: [received:nodes:fcf0bf1a-3f4f-4d73-a735-de1bb4faee56:localhost]

2020-06-24 23:22:15 | [Mutex] received everything.

2020-06-24 23:22:15 | [Mutex] isItemNotified: received:node:fcf0bf1a-3f4f-4d73-a735-de1bb4faee56:localhost:node-05625dfd-b865-4208-8a58-eb0fd10889df:Node 05625dfd-b865-4208-8a58-eb0fd10889df :: false

2020-06-24 23:22:15 | [Mutex] waiting for: [received:nodes:6edfb8a2-67ce-4836-b618-d2b17818890a:localhost]

2020-06-24 23:22:15 | [Mutex] received everything.

2020-06-24 23:22:15 | [Mutex] isItemNotified: received:node:6edfb8a2-67ce-4836-b618-d2b17818890a:localhost:node-05625dfd-b865-4208-8a58-eb0fd10889df:Node 05625dfd-b865-4208-8a58-eb0fd10889df :: false

publishItemsToNodes 0.188s
2020-06-24 23:22:12 |

2020-06-24 23:22:12 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingXML]

2020-06-24 23:22:12 | ------------------------------------

2020-06-24 23:22:12 | on localhost executing action publish-item with content type application/xml and payload:
<data><node>node-05625dfd-b865-4208-8a58-eb0fd10889df</node><item-id>item-1f5f7616-9197-400c-9eba-ee3da35200bf</item-id><entry><test>item-1f5f7616-9197-400c-9eba-ee3da35200bf</test></entry></data>

2020-06-24 23:22:12 | 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-1f5f7616-9197-400c-9eba-ee3da35200bf</value></item-id></result>

2020-06-24 23:22:12 | [Mutex] waiting for: [published:item:notifieditem-1f5f7616-9197-400c-9eba-ee3da35200bf:admin@localhost]

2020-06-24 23:22:12 | [Mutex] received everything.

2020-06-24 23:22:12 | [Mutex] isItemNotified: published:item:notifieditem-1f5f7616-9197-400c-9eba-ee3da35200bf:admin@localhost :: true

retractItemsFromNodes 0.259s
2020-06-24 23:22:13 |

2020-06-24 23:22:13 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingXML]

2020-06-24 23:22:13 | ------------------------------------

2020-06-24 23:22:13 | on localhost executing action delete-item with content type application/xml and payload:
<data><node>node-05625dfd-b865-4208-8a58-eb0fd10889df</node><item-id>item-1f5f7616-9197-400c-9eba-ee3da35200bf</item-id></data>

2020-06-24 23:22:13 | 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-1f5f7616-9197-400c-9eba-ee3da35200bf</value></item-id></result>

2020-06-24 23:22:13 | [Mutex] received everything.

2020-06-24 23:22:13 | [Mutex] isItemNotified: retracted:item:notifieditem-1f5f7616-9197-400c-9eba-ee3da35200bf:admin@localhost :: true

retrieveItemsFromNodes 0.226s
2020-06-24 23:22:12 |

2020-06-24 23:22:12 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingXML]

2020-06-24 23:22:12 | ------------------------------------

2020-06-24 23:22:12 | on localhost executing action retrieve-item with content type application/xml and payload:
<data><node>node-05625dfd-b865-4208-8a58-eb0fd10889df</node><item-id>item-1f5f7616-9197-400c-9eba-ee3da35200bf</item-id></data>

2020-06-24 23:22:12 | 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-05625dfd-b865-4208-8a58-eb0fd10889df</value></node><item-id type="text-single" label="Item ID"><value>item-1f5f7616-9197-400c-9eba-ee3da35200bf</value></item-id><item type="text-multi" label="Item"><value><item id="item-1f5f7616-9197-400c-9eba-ee3da35200bf"><test>item-1f5f7616-9197-400c-9eba-ee3da35200bf</test></item></value></item></result>

2020-06-24 23:22:12 | [Mutex] notify: [retrieved:item:item-1f5f7616-9197-400c-9eba-ee3da35200bf:payload-matches:true:localhost]

2020-06-24 23:22:12 | [Mutex] received everything.

2020-06-24 23:22:12 | [Mutex] isItemNotified: retrieved:item:item-1f5f7616-9197-400c-9eba-ee3da35200bf:payload-matches:true:localhost :: true

retrieveUserSubscriptions 0.208s
2020-06-24 23:22:12 |

2020-06-24 23:22:12 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingXML]

2020-06-24 23:22:12 | ------------------------------------

2020-06-24 23:22:12 | on localhost executing action retrieve-user-subscriptions with content type application/xml and payload:
<data><jid>admin@localhost</jid></data>

2020-06-24 23:22:12 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
<result><nodes type="text-multi" label="Nodes"><value>node-1412da5b-b7c8-437c-be2e-aa35ee7c8836</value><value>test</value><value>node-05625dfd-b865-4208-8a58-eb0fd10889df</value></nodes></result>

retrieveUserSubscriptionsWithRegex 0.058s
2020-06-24 23:22:12 |

2020-06-24 23:22:12 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingXML]

2020-06-24 23:22:12 | ------------------------------------

2020-06-24 23:22:12 | on localhost executing action retrieve-user-subscriptions with content type application/xml and payload:
<data><jid>admin@localhost</jid><node-pattern>(?!node-05625dfd-b865-4208-8a58-eb0fd10889df)</node-pattern></data>

2020-06-24 23:22:13 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
<result><nodes type="text-multi" label="Nodes"/></result>

subscribeNodes 1.090s
2020-06-24 23:22:11 |

2020-06-24 23:22:11 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingXML]

2020-06-24 23:22:11 | ------------------------------------

2020-06-24 23:22:11 | on localhost executing action subscribe-node with content type application/xml and payload:
<data><node>node-05625dfd-b865-4208-8a58-eb0fd10889df</node><jids><value>admin@localhost</value></jids></data>

2020-06-24 23:22:11 | from localhost for action subscribe-node got result code 200 and payload
<result><Note type="fixed"><value>Operation successful</value></Note></result>

unsubscribeNodes 1.224s
2020-06-24 23:22:13 |

2020-06-24 23:22:13 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingXML]

2020-06-24 23:22:13 | ------------------------------------

2020-06-24 23:22:13 | on localhost executing action unsubscribe-node with content type application/xml and payload:
<data><node>node-05625dfd-b865-4208-8a58-eb0fd10889df</node><jids><value>admin@localhost</value></jids></data>

2020-06-24 23:22:13 | from localhost for action unsubscribe-node got result code 200 and payload
<result><Note type="fixed"><value>Operation successful</value></Note></result>