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

Test duration: 10.535s

Passed Tests
tigase.tests.pubsub.TestRestApiUsingXML
configureNodes 1.131s
2019-11-21 05:57:00 |

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

2019-11-21 05:57:00 | ------------------------------------

2019-11-21 05:57:00 | [Mutex] waiting for: [configured:node:node-6231fde3-b989-4e64-b27b-bfe5405a6b41:node-28e37d89-c4df-478c-b7a4-0c8399442a91]

2019-11-21 05:57:00 | [Mutex] received everything.

2019-11-21 05:57:00 | [Mutex] isItemNotified: configured:node:node-6231fde3-b989-4e64-b27b-bfe5405a6b41:node-28e37d89-c4df-478c-b7a4-0c8399442a91 :: true

2019-11-21 05:57:01 | [Mutex] waiting for: [received:nodes:793c4d39-480f-4fa5-adf4-e33d75e65a1b:localhost]

2019-11-21 05:57:01 | [Mutex] received everything.

2019-11-21 05:57:01 | [Mutex] isItemNotified: received:node:793c4d39-480f-4fa5-adf4-e33d75e65a1b:localhost:node-6231fde3-b989-4e64-b27b-bfe5405a6b41:Node 6231fde3-b989-4e64-b27b-bfe5405a6b41 :: true

2019-11-21 05:57:01 | [Mutex] waiting for: [received:nodes:30954bca-75b8-4c02-9bed-f7bc8a475770:localhost]

2019-11-21 05:57:01 | [Mutex] received everything.

2019-11-21 05:57:01 | [Mutex] isItemNotified: received:node:30954bca-75b8-4c02-9bed-f7bc8a475770:localhost:node-6231fde3-b989-4e64-b27b-bfe5405a6b41:Node 6231fde3-b989-4e64-b27b-bfe5405a6b41 :: false

createNodes 1.613s
2019-11-21 05:56:57 |

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

2019-11-21 05:56:57 | ------------------------------------

2019-11-21 05:56:57 | on localhost executing action create-node with content type application/xml and payload:
<data><node>node-6231fde3-b989-4e64-b27b-bfe5405a6b41</node><owner>admin@localhost</owner><pubsub prefix="true"><node_type>leaf</node_type><title>Node 6231fde3-b989-4e64-b27b-bfe5405a6b41</title></pubsub></data>

2019-11-21 05:56:58 | 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 05:56:59 | [Mutex] waiting for: [received:nodes:0723ee45-82cb-4e81-9089-57ecad1136b0:localhost]

2019-11-21 05:56:59 | [Mutex] received everything.

2019-11-21 05:56:59 | [Mutex] isItemNotified: received:node:0723ee45-82cb-4e81-9089-57ecad1136b0:localhost:node-6231fde3-b989-4e64-b27b-bfe5405a6b41:Node 6231fde3-b989-4e64-b27b-bfe5405a6b41 :: true

createSubnodes 1.024s
2019-11-21 05:56:59 |

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

2019-11-21 05:56:59 | ------------------------------------

2019-11-21 05:56:59 | on localhost executing action create-node with content type application/xml and payload:
<data><node>node-28e37d89-c4df-478c-b7a4-0c8399442a91</node><owner>admin@localhost</owner><pubsub prefix="true"><node_type>collection</node_type><title>Node 28e37d89-c4df-478c-b7a4-0c8399442a91</title></pubsub></data>

2019-11-21 05:56:59 | 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 05:57:00 | [Mutex] waiting for: [received:nodes:1f0e6775-fc71-47ce-a04d-4654a73f5109:localhost]

2019-11-21 05:57:00 | [Mutex] received everything.

2019-11-21 05:57:00 | [Mutex] isItemNotified: received:node:1f0e6775-fc71-47ce-a04d-4654a73f5109:localhost:node-28e37d89-c4df-478c-b7a4-0c8399442a91:Node 28e37d89-c4df-478c-b7a4-0c8399442a91 :: true

deleteNodes 1.024s
2019-11-21 05:57:06 |

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

2019-11-21 05:57:06 | ------------------------------------

2019-11-21 05:57:06 | on localhost executing action delete-node with content type application/xml and payload:
<data><node>node-28e37d89-c4df-478c-b7a4-0c8399442a91</node></data>

2019-11-21 05:57:06 | 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 05:57:07 | [Mutex] waiting for: [received:nodes:96b35cda-01f7-4fee-8dba-d88a127ca87b:localhost]

2019-11-21 05:57:07 | [Mutex] received everything.

2019-11-21 05:57:07 | [Mutex] isItemNotified: received:node:96b35cda-01f7-4fee-8dba-d88a127ca87b:localhost:node-28e37d89-c4df-478c-b7a4-0c8399442a91:Node 28e37d89-c4df-478c-b7a4-0c8399442a91 :: false

deleteSubnodes 1.198s
2019-11-21 05:57:05 |

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

2019-11-21 05:57:05 | ------------------------------------

2019-11-21 05:57:05 | on localhost executing action delete-node with content type application/xml and payload:
<data><node>node-6231fde3-b989-4e64-b27b-bfe5405a6b41</node></data>

2019-11-21 05:57:05 | 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 05:57:06 | [Mutex] waiting for: [received:nodes:c4876636-fa37-498f-ac36-d7155a79ef70:localhost]

2019-11-21 05:57:06 | [Mutex] received everything.

2019-11-21 05:57:06 | [Mutex] isItemNotified: received:node:c4876636-fa37-498f-ac36-d7155a79ef70:localhost:node-6231fde3-b989-4e64-b27b-bfe5405a6b41:Node 6231fde3-b989-4e64-b27b-bfe5405a6b41 :: false

2019-11-21 05:57:06 | [Mutex] waiting for: [received:nodes:0599cba1-67d2-4a1c-bcd3-4623075edd5d:localhost]

2019-11-21 05:57:06 | [Mutex] received everything.

2019-11-21 05:57:06 | [Mutex] isItemNotified: received:node:0599cba1-67d2-4a1c-bcd3-4623075edd5d:localhost:node-6231fde3-b989-4e64-b27b-bfe5405a6b41:Node 6231fde3-b989-4e64-b27b-bfe5405a6b41 :: false

publishItemsToNodes 0.276s
2019-11-21 05:57:02 |

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

2019-11-21 05:57:02 | ------------------------------------

2019-11-21 05:57:02 | on localhost executing action publish-item with content type application/xml and payload:
<data><node>node-6231fde3-b989-4e64-b27b-bfe5405a6b41</node><item-id>item-bddb5053-fe95-4013-8b59-05f7014e4259</item-id><entry><test>item-bddb5053-fe95-4013-8b59-05f7014e4259</test></entry></data>

2019-11-21 05:57:03 | 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-bddb5053-fe95-4013-8b59-05f7014e4259</value></item-id></result>

2019-11-21 05:57:03 | [Mutex] received everything.

2019-11-21 05:57:03 | [Mutex] isItemNotified: published:item:notifieditem-bddb5053-fe95-4013-8b59-05f7014e4259:admin@localhost :: true

retractItemsFromNodes 0.347s
2019-11-21 05:57:03 |

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

2019-11-21 05:57:03 | ------------------------------------

2019-11-21 05:57:03 | on localhost executing action delete-item with content type application/xml and payload:
<data><node>node-6231fde3-b989-4e64-b27b-bfe5405a6b41</node><item-id>item-bddb5053-fe95-4013-8b59-05f7014e4259</item-id></data>

2019-11-21 05:57: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-bddb5053-fe95-4013-8b59-05f7014e4259</value></item-id></result>

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

2019-11-21 05:57:04 | [Mutex] isItemNotified: retracted:item:notifieditem-bddb5053-fe95-4013-8b59-05f7014e4259:admin@localhost :: true

retrieveItemsFromNodes 0.207s
2019-11-21 05:57:03 |

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

2019-11-21 05:57:03 | ------------------------------------

2019-11-21 05:57:03 | on localhost executing action retrieve-item with content type application/xml and payload:
<data><node>node-6231fde3-b989-4e64-b27b-bfe5405a6b41</node><item-id>item-bddb5053-fe95-4013-8b59-05f7014e4259</item-id></data>

2019-11-21 05:57:03 | 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-6231fde3-b989-4e64-b27b-bfe5405a6b41</value></node><item-id label="Item ID" type="text-single"><value>item-bddb5053-fe95-4013-8b59-05f7014e4259</value></item-id><item label="Item" type="text-multi"><value><item id="item-bddb5053-fe95-4013-8b59-05f7014e4259"><test>item-bddb5053-fe95-4013-8b59-05f7014e4259</test></item></value></item></result>

2019-11-21 05:57:03 | [Mutex] notify: [retrieved:item:item-bddb5053-fe95-4013-8b59-05f7014e4259:payload-matches:true:localhost]

2019-11-21 05:57:03 | [Mutex] received everything.

2019-11-21 05:57:03 | [Mutex] isItemNotified: retrieved:item:item-bddb5053-fe95-4013-8b59-05f7014e4259:payload-matches:true:localhost :: true

retrieveUserSubscriptions 0.284s
2019-11-21 05:57:03 |

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

2019-11-21 05:57:03 | ------------------------------------

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

2019-11-21 05:57:03 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
<result><nodes label="Nodes" type="text-multi"><value>node-6231fde3-b989-4e64-b27b-bfe5405a6b41</value><value>node-28e37d89-c4df-478c-b7a4-0c8399442a91</value></nodes></result>

retrieveUserSubscriptionsWithRegex 0.074s
2019-11-21 05:57:03 |

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

2019-11-21 05:57:03 | ------------------------------------

2019-11-21 05:57:03 | on localhost executing action retrieve-user-subscriptions with content type application/xml and payload:
<data><jid>admin@localhost</jid><node-pattern>(?!node-6231fde3-b989-4e64-b27b-bfe5405a6b41)</node-pattern></data>

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

subscribeNodes 1.238s
2019-11-21 05:57:01 |

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

2019-11-21 05:57:01 | ------------------------------------

2019-11-21 05:57:01 | on localhost executing action subscribe-node with content type application/xml and payload:
<data><node>node-6231fde3-b989-4e64-b27b-bfe5405a6b41</node><jids><value>admin@localhost</value></jids></data>

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

unsubscribeNodes 1.271s
2019-11-21 05:57:04 |

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

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

2019-11-21 05:57:04 | on localhost executing action unsubscribe-node with content type application/xml and payload:
<data><node>node-6231fde3-b989-4e64-b27b-bfe5405a6b41</node><jids><value>admin@localhost</value></jids></data>

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