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

Test duration: 10.418s

Passed Tests
tigase.tests.pubsub.TestRestApiUsingXML
configureNodes 1.127s
2019-11-22 18:43:47 |

2019-11-22 18:43:47 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingXML]

2019-11-22 18:43:47 | ------------------------------------

2019-11-22 18:43:47 | [Mutex] waiting for: [configured:node:node-7698bb52-8418-4af8-b12e-f6631ad18ca0:node-636bb1ca-d154-4a3c-814e-bd1ff663e54e]

2019-11-22 18:43:47 | [Mutex] received everything.

2019-11-22 18:43:47 | [Mutex] isItemNotified: configured:node:node-7698bb52-8418-4af8-b12e-f6631ad18ca0:node-636bb1ca-d154-4a3c-814e-bd1ff663e54e :: true

2019-11-22 18:43:48 | [Mutex] waiting for: [received:nodes:0404b33a-e23d-41b0-8777-fced9e54712c:localhost]

2019-11-22 18:43:48 | [Mutex] received everything.

2019-11-22 18:43:48 | [Mutex] isItemNotified: received:node:0404b33a-e23d-41b0-8777-fced9e54712c:localhost:node-7698bb52-8418-4af8-b12e-f6631ad18ca0:Node 7698bb52-8418-4af8-b12e-f6631ad18ca0 :: true

2019-11-22 18:43:48 | [Mutex] waiting for: [received:nodes:e45f6fa0-9fc2-4a00-a56a-6c76695c3794:localhost]

2019-11-22 18:43:48 | [Mutex] received everything.

2019-11-22 18:43:48 | [Mutex] isItemNotified: received:node:e45f6fa0-9fc2-4a00-a56a-6c76695c3794:localhost:node-7698bb52-8418-4af8-b12e-f6631ad18ca0:Node 7698bb52-8418-4af8-b12e-f6631ad18ca0 :: false

createNodes 1.661s
2019-11-22 18:43:45 |

2019-11-22 18:43:45 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingXML]

2019-11-22 18:43:45 | ------------------------------------

2019-11-22 18:43:45 | on localhost executing action create-node with content type application/xml and payload:
<data><node>node-7698bb52-8418-4af8-b12e-f6631ad18ca0</node><owner>admin@localhost</owner><pubsub prefix="true"><node_type>leaf</node_type><title>Node 7698bb52-8418-4af8-b12e-f6631ad18ca0</title></pubsub></data>

2019-11-22 18:43:45 | from localhost for action create-node got result code 200 and payload
<result><Note type="fixed"><value>Operation successful</value></Note></result>

2019-11-22 18:43:46 | [Mutex] waiting for: [received:nodes:e0d953c1-166e-4147-bdb2-34ed51500845:localhost]

2019-11-22 18:43:46 | [Mutex] received everything.

2019-11-22 18:43:46 | [Mutex] isItemNotified: received:node:e0d953c1-166e-4147-bdb2-34ed51500845:localhost:node-7698bb52-8418-4af8-b12e-f6631ad18ca0:Node 7698bb52-8418-4af8-b12e-f6631ad18ca0 :: true

createSubnodes 1.022s
2019-11-22 18:43:46 |

2019-11-22 18:43:46 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingXML]

2019-11-22 18:43:46 | ------------------------------------

2019-11-22 18:43:46 | on localhost executing action create-node with content type application/xml and payload:
<data><node>node-636bb1ca-d154-4a3c-814e-bd1ff663e54e</node><owner>admin@localhost</owner><pubsub prefix="true"><node_type>collection</node_type><title>Node 636bb1ca-d154-4a3c-814e-bd1ff663e54e</title></pubsub></data>

2019-11-22 18:43:46 | from localhost for action create-node got result code 200 and payload
<result><Note type="fixed"><value>Operation successful</value></Note></result>

2019-11-22 18:43:47 | [Mutex] waiting for: [received:nodes:b418e18b-5bcd-4cf1-84d4-30e40e42bb09:localhost]

2019-11-22 18:43:47 | [Mutex] received everything.

2019-11-22 18:43:47 | [Mutex] isItemNotified: received:node:b418e18b-5bcd-4cf1-84d4-30e40e42bb09:localhost:node-636bb1ca-d154-4a3c-814e-bd1ff663e54e:Node 636bb1ca-d154-4a3c-814e-bd1ff663e54e :: true

deleteNodes 1.028s
2019-11-22 18:43:53 |

2019-11-22 18:43:53 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingXML]

2019-11-22 18:43:53 | ------------------------------------

2019-11-22 18:43:53 | on localhost executing action delete-node with content type application/xml and payload:
<data><node>node-636bb1ca-d154-4a3c-814e-bd1ff663e54e</node></data>

2019-11-22 18:43:53 | from localhost for action delete-node got result code 200 and payload
<result><Note type="fixed"><value>Operation successful</value></Note></result>

2019-11-22 18:43:54 | [Mutex] waiting for: [received:nodes:96f6bead-6c9b-4d16-9d5d-82d6bf1ae603:localhost]

2019-11-22 18:43:54 | [Mutex] received everything.

2019-11-22 18:43:54 | [Mutex] isItemNotified: received:node:96f6bead-6c9b-4d16-9d5d-82d6bf1ae603:localhost:node-636bb1ca-d154-4a3c-814e-bd1ff663e54e:Node 636bb1ca-d154-4a3c-814e-bd1ff663e54e :: false

deleteSubnodes 1.213s
2019-11-22 18:43:52 |

2019-11-22 18:43:52 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingXML]

2019-11-22 18:43:52 | ------------------------------------

2019-11-22 18:43:52 | on localhost executing action delete-node with content type application/xml and payload:
<data><node>node-7698bb52-8418-4af8-b12e-f6631ad18ca0</node></data>

2019-11-22 18:43:52 | from localhost for action delete-node got result code 200 and payload
<result><Note type="fixed"><value>Operation successful</value></Note></result>

2019-11-22 18:43:53 | [Mutex] waiting for: [received:nodes:65f14db4-0148-46db-9f44-9f7d4f8c5585:localhost]

2019-11-22 18:43:53 | [Mutex] received everything.

2019-11-22 18:43:53 | [Mutex] isItemNotified: received:node:65f14db4-0148-46db-9f44-9f7d4f8c5585:localhost:node-7698bb52-8418-4af8-b12e-f6631ad18ca0:Node 7698bb52-8418-4af8-b12e-f6631ad18ca0 :: false

2019-11-22 18:43:53 | [Mutex] waiting for: [received:nodes:ef05e03a-28c0-4dde-a4fe-1abf2b225035:localhost]

2019-11-22 18:43:53 | [Mutex] received everything.

2019-11-22 18:43:53 | [Mutex] isItemNotified: received:node:ef05e03a-28c0-4dde-a4fe-1abf2b225035:localhost:node-7698bb52-8418-4af8-b12e-f6631ad18ca0:Node 7698bb52-8418-4af8-b12e-f6631ad18ca0 :: false

publishItemsToNodes 0.323s
2019-11-22 18:43:50 |

2019-11-22 18:43:50 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingXML]

2019-11-22 18:43:50 | ------------------------------------

2019-11-22 18:43:50 | on localhost executing action publish-item with content type application/xml and payload:
<data><node>node-7698bb52-8418-4af8-b12e-f6631ad18ca0</node><item-id>item-792acde9-9ba7-4d23-be42-2c8a04108ee3</item-id><entry><test>item-792acde9-9ba7-4d23-be42-2c8a04108ee3</test></entry></data>

2019-11-22 18:43:50 | 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-792acde9-9ba7-4d23-be42-2c8a04108ee3</value></item-id></result>

2019-11-22 18:43:50 | [Mutex] waiting for: [published:item:notifieditem-792acde9-9ba7-4d23-be42-2c8a04108ee3:admin@localhost]

2019-11-22 18:43:50 | [Mutex] received everything.

2019-11-22 18:43:50 | [Mutex] isItemNotified: published:item:notifieditem-792acde9-9ba7-4d23-be42-2c8a04108ee3:admin@localhost :: true

retractItemsFromNodes 0.271s
2019-11-22 18:43:50 |

2019-11-22 18:43:50 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingXML]

2019-11-22 18:43:50 | ------------------------------------

2019-11-22 18:43:50 | on localhost executing action delete-item with content type application/xml and payload:
<data><node>node-7698bb52-8418-4af8-b12e-f6631ad18ca0</node><item-id>item-792acde9-9ba7-4d23-be42-2c8a04108ee3</item-id></data>

2019-11-22 18:43:51 | 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-792acde9-9ba7-4d23-be42-2c8a04108ee3</value></item-id></result>

2019-11-22 18:43:51 | [Mutex] received everything.

2019-11-22 18:43:51 | [Mutex] isItemNotified: retracted:item:notifieditem-792acde9-9ba7-4d23-be42-2c8a04108ee3:admin@localhost :: true

retrieveItemsFromNodes 0.208s
2019-11-22 18:43:50 |

2019-11-22 18:43:50 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingXML]

2019-11-22 18:43:50 | ------------------------------------

2019-11-22 18:43:50 | on localhost executing action retrieve-item with content type application/xml and payload:
<data><node>node-7698bb52-8418-4af8-b12e-f6631ad18ca0</node><item-id>item-792acde9-9ba7-4d23-be42-2c8a04108ee3</item-id></data>

2019-11-22 18:43:50 | 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-7698bb52-8418-4af8-b12e-f6631ad18ca0</value></node><item-id type="text-single" label="Item ID"><value>item-792acde9-9ba7-4d23-be42-2c8a04108ee3</value></item-id><item type="text-multi" label="Item"><value><item id="item-792acde9-9ba7-4d23-be42-2c8a04108ee3"><test>item-792acde9-9ba7-4d23-be42-2c8a04108ee3</test></item></value></item></result>

2019-11-22 18:43:50 | [Mutex] notify: [retrieved:item:item-792acde9-9ba7-4d23-be42-2c8a04108ee3:payload-matches:true:localhost]

2019-11-22 18:43:50 | [Mutex] received everything.

2019-11-22 18:43:50 | [Mutex] isItemNotified: retrieved:item:item-792acde9-9ba7-4d23-be42-2c8a04108ee3:payload-matches:true:localhost :: true

retrieveUserSubscriptions 0.237s
2019-11-22 18:43:50 |

2019-11-22 18:43:50 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingXML]

2019-11-22 18:43:50 | ------------------------------------

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

2019-11-22 18:43:50 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
<result><nodes type="text-multi" label="Nodes"><value>node-636bb1ca-d154-4a3c-814e-bd1ff663e54e</value><value>node-7698bb52-8418-4af8-b12e-f6631ad18ca0</value></nodes></result>

retrieveUserSubscriptionsWithRegex 0.057s
2019-11-22 18:43:50 |

2019-11-22 18:43:50 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingXML]

2019-11-22 18:43:50 | ------------------------------------

2019-11-22 18:43:50 | on localhost executing action retrieve-user-subscriptions with content type application/xml and payload:
<data><jid>admin@localhost</jid><node-pattern>(?!node-7698bb52-8418-4af8-b12e-f6631ad18ca0)</node-pattern></data>

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

subscribeNodes 1.178s
2019-11-22 18:43:48 |

2019-11-22 18:43:48 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingXML]

2019-11-22 18:43:48 | ------------------------------------

2019-11-22 18:43:48 | on localhost executing action subscribe-node with content type application/xml and payload:
<data><node>node-7698bb52-8418-4af8-b12e-f6631ad18ca0</node><jids><value>admin@localhost</value></jids></data>

2019-11-22 18:43:49 | from localhost for action subscribe-node got result code 200 and payload
<result><Note type="fixed"><value>Operation successful</value></Note></result>

unsubscribeNodes 1.255s
2019-11-22 18:43:51 |

2019-11-22 18:43:51 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingXML]

2019-11-22 18:43:51 | ------------------------------------

2019-11-22 18:43:51 | on localhost executing action unsubscribe-node with content type application/xml and payload:
<data><node>node-7698bb52-8418-4af8-b12e-f6631ad18ca0</node><jids><value>admin@localhost</value></jids></data>

2019-11-22 18:43:51 | from localhost for action unsubscribe-node got result code 200 and payload
<result><Note type="fixed"><value>Operation successful</value></Note></result>