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

Test duration: 10.154s

Passed Tests
tigase.tests.pubsub.TestRestApiUsingXML
configureNodes 1.101s
2020-06-02 14:13:40 |

2020-06-02 14:13:40 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingXML]

2020-06-02 14:13:40 | ------------------------------------

2020-06-02 14:13:40 | [Mutex] waiting for: [configured:node:node-6ad51bb2-5fef-415c-8489-2ff6e1bec105:node-996042df-9f2e-406e-b7eb-ff583ac31a12]

2020-06-02 14:13:40 | [Mutex] received everything.

2020-06-02 14:13:40 | [Mutex] isItemNotified: configured:node:node-6ad51bb2-5fef-415c-8489-2ff6e1bec105:node-996042df-9f2e-406e-b7eb-ff583ac31a12 :: true

2020-06-02 14:13:41 | [Mutex] waiting for: [received:nodes:77acad5a-c71a-48e4-810c-af6a6fd044ec:localhost]

2020-06-02 14:13:41 | [Mutex] received everything.

2020-06-02 14:13:41 | [Mutex] isItemNotified: received:node:77acad5a-c71a-48e4-810c-af6a6fd044ec:localhost:node-6ad51bb2-5fef-415c-8489-2ff6e1bec105:Node 6ad51bb2-5fef-415c-8489-2ff6e1bec105 :: true

2020-06-02 14:13:41 | [Mutex] waiting for: [received:nodes:e473497a-bedb-4c50-8c09-285e72d19166:localhost]

2020-06-02 14:13:41 | [Mutex] received everything.

2020-06-02 14:13:41 | [Mutex] isItemNotified: received:node:e473497a-bedb-4c50-8c09-285e72d19166:localhost:node-6ad51bb2-5fef-415c-8489-2ff6e1bec105:Node 6ad51bb2-5fef-415c-8489-2ff6e1bec105 :: false

createNodes 1.551s
2020-06-02 14:13:38 |

2020-06-02 14:13:38 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingXML]

2020-06-02 14:13:38 | ------------------------------------

2020-06-02 14:13:38 | on localhost executing action create-node with content type application/xml and payload:
<data><node>node-6ad51bb2-5fef-415c-8489-2ff6e1bec105</node><owner>admin@localhost</owner><pubsub prefix="true"><node_type>leaf</node_type><title>Node 6ad51bb2-5fef-415c-8489-2ff6e1bec105</title></pubsub></data>

2020-06-02 14:13:38 | from localhost for action create-node got result code 200 and payload
<result><Note type="fixed"><value>Operation successful</value></Note></result>

2020-06-02 14:13:39 | [Mutex] waiting for: [received:nodes:bc8c1904-08b3-45eb-93e0-f21375e29e59:localhost]

2020-06-02 14:13:39 | [Mutex] received everything.

2020-06-02 14:13:39 | [Mutex] isItemNotified: received:node:bc8c1904-08b3-45eb-93e0-f21375e29e59:localhost:node-6ad51bb2-5fef-415c-8489-2ff6e1bec105:Node 6ad51bb2-5fef-415c-8489-2ff6e1bec105 :: true

createSubnodes 1.033s
2020-06-02 14:13:39 |

2020-06-02 14:13:39 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingXML]

2020-06-02 14:13:39 | ------------------------------------

2020-06-02 14:13:39 | on localhost executing action create-node with content type application/xml and payload:
<data><node>node-996042df-9f2e-406e-b7eb-ff583ac31a12</node><owner>admin@localhost</owner><pubsub prefix="true"><node_type>collection</node_type><title>Node 996042df-9f2e-406e-b7eb-ff583ac31a12</title></pubsub></data>

2020-06-02 14:13:39 | from localhost for action create-node got result code 200 and payload
<result><Note type="fixed"><value>Operation successful</value></Note></result>

2020-06-02 14:13:40 | [Mutex] waiting for: [received:nodes:8f40003c-6934-4fea-a030-a6a16b4f75d0:localhost]

2020-06-02 14:13:40 | [Mutex] waiting for: [received:nodes:8f40003c-6934-4fea-a030-a6a16b4f75d0:localhost]

2020-06-02 14:13:40 | [Mutex] received everything.

2020-06-02 14:13:40 | [Mutex] isItemNotified: received:node:8f40003c-6934-4fea-a030-a6a16b4f75d0:localhost:node-996042df-9f2e-406e-b7eb-ff583ac31a12:Node 996042df-9f2e-406e-b7eb-ff583ac31a12 :: true

deleteNodes 1.017s
2020-06-02 14:13:46 |

2020-06-02 14:13:46 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingXML]

2020-06-02 14:13:46 | ------------------------------------

2020-06-02 14:13:46 | on localhost executing action delete-node with content type application/xml and payload:
<data><node>node-996042df-9f2e-406e-b7eb-ff583ac31a12</node></data>

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

2020-06-02 14:13:47 | [Mutex] waiting for: [received:nodes:458fbf46-bee9-4c0a-98f6-242d238a1064:localhost]

2020-06-02 14:13:47 | [Mutex] waiting for: [received:nodes:458fbf46-bee9-4c0a-98f6-242d238a1064:localhost]

2020-06-02 14:13:47 | [Mutex] received everything.

2020-06-02 14:13:47 | [Mutex] isItemNotified: received:node:458fbf46-bee9-4c0a-98f6-242d238a1064:localhost:node-996042df-9f2e-406e-b7eb-ff583ac31a12:Node 996042df-9f2e-406e-b7eb-ff583ac31a12 :: false

deleteSubnodes 1.162s
2020-06-02 14:13:45 |

2020-06-02 14:13:45 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingXML]

2020-06-02 14:13:45 | ------------------------------------

2020-06-02 14:13:45 | on localhost executing action delete-node with content type application/xml and payload:
<data><node>node-6ad51bb2-5fef-415c-8489-2ff6e1bec105</node></data>

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

2020-06-02 14:13:46 | [Mutex] waiting for: [received:nodes:9e1bbb6c-cfab-4c93-bf19-28969fabf0c2:localhost]

2020-06-02 14:13:46 | [Mutex] waiting for: [received:nodes:9e1bbb6c-cfab-4c93-bf19-28969fabf0c2:localhost]

2020-06-02 14:13:46 | [Mutex] received everything.

2020-06-02 14:13:46 | [Mutex] isItemNotified: received:node:9e1bbb6c-cfab-4c93-bf19-28969fabf0c2:localhost:node-6ad51bb2-5fef-415c-8489-2ff6e1bec105:Node 6ad51bb2-5fef-415c-8489-2ff6e1bec105 :: false

2020-06-02 14:13:46 | [Mutex] waiting for: [received:nodes:72f26593-50b2-460d-93a5-f16ffb969480:localhost]

2020-06-02 14:13:46 | [Mutex] received everything.

2020-06-02 14:13:46 | [Mutex] isItemNotified: received:node:72f26593-50b2-460d-93a5-f16ffb969480:localhost:node-6ad51bb2-5fef-415c-8489-2ff6e1bec105:Node 6ad51bb2-5fef-415c-8489-2ff6e1bec105 :: false

publishItemsToNodes 0.230s
2020-06-02 14:13:42 |

2020-06-02 14:13:42 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingXML]

2020-06-02 14:13:42 | ------------------------------------

2020-06-02 14:13:42 | on localhost executing action publish-item with content type application/xml and payload:
<data><node>node-6ad51bb2-5fef-415c-8489-2ff6e1bec105</node><item-id>item-5ba1d7a6-c161-42f7-b749-11aebacc4f12</item-id><entry><test>item-5ba1d7a6-c161-42f7-b749-11aebacc4f12</test></entry></data>

2020-06-02 14:13:43 | 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-5ba1d7a6-c161-42f7-b749-11aebacc4f12</value></item-id></result>

2020-06-02 14:13:43 | [Mutex] waiting for: [published:item:notifieditem-5ba1d7a6-c161-42f7-b749-11aebacc4f12:admin@localhost]

2020-06-02 14:13:43 | [Mutex] received everything.

2020-06-02 14:13:43 | [Mutex] isItemNotified: published:item:notifieditem-5ba1d7a6-c161-42f7-b749-11aebacc4f12:admin@localhost :: true

retractItemsFromNodes 0.244s
2020-06-02 14:13:43 |

2020-06-02 14:13:43 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingXML]

2020-06-02 14:13:43 | ------------------------------------

2020-06-02 14:13:43 | on localhost executing action delete-item with content type application/xml and payload:
<data><node>node-6ad51bb2-5fef-415c-8489-2ff6e1bec105</node><item-id>item-5ba1d7a6-c161-42f7-b749-11aebacc4f12</item-id></data>

2020-06-02 14:13:43 | 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-5ba1d7a6-c161-42f7-b749-11aebacc4f12</value></item-id></result>

2020-06-02 14:13:43 | [Mutex] received everything.

2020-06-02 14:13:43 | [Mutex] isItemNotified: retracted:item:notifieditem-5ba1d7a6-c161-42f7-b749-11aebacc4f12:admin@localhost :: true

retrieveItemsFromNodes 0.219s
2020-06-02 14:13:43 |

2020-06-02 14:13:43 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingXML]

2020-06-02 14:13:43 | ------------------------------------

2020-06-02 14:13:43 | on localhost executing action retrieve-item with content type application/xml and payload:
<data><node>node-6ad51bb2-5fef-415c-8489-2ff6e1bec105</node><item-id>item-5ba1d7a6-c161-42f7-b749-11aebacc4f12</item-id></data>

2020-06-02 14:13:43 | 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-6ad51bb2-5fef-415c-8489-2ff6e1bec105</value></node><item-id label="Item ID" type="text-single"><value>item-5ba1d7a6-c161-42f7-b749-11aebacc4f12</value></item-id><item label="Item" type="text-multi"><value><item id="item-5ba1d7a6-c161-42f7-b749-11aebacc4f12"><test>item-5ba1d7a6-c161-42f7-b749-11aebacc4f12</test></item></value></item></result>

2020-06-02 14:13:43 | [Mutex] notify: [retrieved:item:item-5ba1d7a6-c161-42f7-b749-11aebacc4f12:payload-matches:true:localhost]

2020-06-02 14:13:43 | [Mutex] received everything.

2020-06-02 14:13:43 | [Mutex] isItemNotified: retrieved:item:item-5ba1d7a6-c161-42f7-b749-11aebacc4f12:payload-matches:true:localhost :: true

retrieveUserSubscriptions 0.196s
2020-06-02 14:13:43 |

2020-06-02 14:13:43 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingXML]

2020-06-02 14:13:43 | ------------------------------------

2020-06-02 14:13:43 | on localhost executing action retrieve-user-subscriptions with content type application/xml and payload:
<data><jid>admin@localhost</jid></data>

2020-06-02 14:13:43 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
<result><nodes label="Nodes" type="text-multi"><value>node-6ad51bb2-5fef-415c-8489-2ff6e1bec105</value><value>node-996042df-9f2e-406e-b7eb-ff583ac31a12</value></nodes></result>

retrieveUserSubscriptionsWithRegex 0.058s
2020-06-02 14:13:43 |

2020-06-02 14:13:43 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingXML]

2020-06-02 14:13:43 | ------------------------------------

2020-06-02 14:13:43 | on localhost executing action retrieve-user-subscriptions with content type application/xml and payload:
<data><jid>admin@localhost</jid><node-pattern>(?!node-6ad51bb2-5fef-415c-8489-2ff6e1bec105)</node-pattern></data>

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

subscribeNodes 1.145s
2020-06-02 14:13:41 |

2020-06-02 14:13:41 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingXML]

2020-06-02 14:13:41 | ------------------------------------

2020-06-02 14:13:41 | on localhost executing action subscribe-node with content type application/xml and payload:
<data><node>node-6ad51bb2-5fef-415c-8489-2ff6e1bec105</node><jids><value>admin@localhost</value></jids></data>

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

unsubscribeNodes 1.172s
2020-06-02 14:13:43 |

2020-06-02 14:13:43 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingXML]

2020-06-02 14:13:43 | ------------------------------------

2020-06-02 14:13:43 | on localhost executing action unsubscribe-node with content type application/xml and payload:
<data><node>node-6ad51bb2-5fef-415c-8489-2ff6e1bec105</node><jids><value>admin@localhost</value></jids></data>

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