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

Test duration: 10.002s

Passed Tests
tigase.tests.pubsub.TestRestApiUsingXML
configureNodes 1.134s
2020-08-03 05:51:44 |

2020-08-03 05:51:44 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingXML]

2020-08-03 05:51:44 | ------------------------------------

2020-08-03 05:51:44 | [Mutex] waiting for: [configured:node:node-480ae3c7-0d1b-46f0-8a22-d5c729a527ab:node-8f3710b8-6927-404a-ac02-934c9e39b625]

2020-08-03 05:51:44 | [Mutex] received everything.

2020-08-03 05:51:44 | [Mutex] isItemNotified: configured:node:node-480ae3c7-0d1b-46f0-8a22-d5c729a527ab:node-8f3710b8-6927-404a-ac02-934c9e39b625 :: true

2020-08-03 05:51:45 | [Mutex] waiting for: [received:nodes:88ebd41d-feef-41f3-bf39-6d2e71f664e2:localhost]

2020-08-03 05:51:45 | [Mutex] received everything.

2020-08-03 05:51:45 | [Mutex] isItemNotified: received:node:88ebd41d-feef-41f3-bf39-6d2e71f664e2:localhost:node-480ae3c7-0d1b-46f0-8a22-d5c729a527ab:Node 480ae3c7-0d1b-46f0-8a22-d5c729a527ab :: true

2020-08-03 05:51:45 | [Mutex] waiting for: [received:nodes:011a8445-1ece-4add-8350-07798fa86fa7:localhost]

2020-08-03 05:51:45 | [Mutex] received everything.

2020-08-03 05:51:45 | [Mutex] isItemNotified: received:node:011a8445-1ece-4add-8350-07798fa86fa7:localhost:node-480ae3c7-0d1b-46f0-8a22-d5c729a527ab:Node 480ae3c7-0d1b-46f0-8a22-d5c729a527ab :: false

createNodes 1.438s
2020-08-03 05:51:41 |

2020-08-03 05:51:41 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingXML]

2020-08-03 05:51:41 | ------------------------------------

2020-08-03 05:51:41 | on localhost executing action create-node with content type application/xml and payload:
<data><node>node-480ae3c7-0d1b-46f0-8a22-d5c729a527ab</node><owner>admin@test-domain.com</owner><pubsub prefix="true"><node_type>leaf</node_type><title>Node 480ae3c7-0d1b-46f0-8a22-d5c729a527ab</title></pubsub></data>

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

2020-08-03 05:51:43 | [Mutex] waiting for: [received:nodes:facba156-24ee-4b0b-9f10-73cbcdae8e22:localhost]

2020-08-03 05:51:43 | [Mutex] received everything.

2020-08-03 05:51:43 | [Mutex] isItemNotified: received:node:facba156-24ee-4b0b-9f10-73cbcdae8e22:localhost:node-480ae3c7-0d1b-46f0-8a22-d5c729a527ab:Node 480ae3c7-0d1b-46f0-8a22-d5c729a527ab :: true

createSubnodes 1.028s
2020-08-03 05:51:43 |

2020-08-03 05:51:43 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingXML]

2020-08-03 05:51:43 | ------------------------------------

2020-08-03 05:51:43 | on localhost executing action create-node with content type application/xml and payload:
<data><node>node-8f3710b8-6927-404a-ac02-934c9e39b625</node><owner>admin@test-domain.com</owner><pubsub prefix="true"><node_type>collection</node_type><title>Node 8f3710b8-6927-404a-ac02-934c9e39b625</title></pubsub></data>

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

2020-08-03 05:51:44 | [Mutex] waiting for: [received:nodes:06d73c1e-2beb-487f-9b67-e97a8f63a783:localhost]

2020-08-03 05:51:44 | [Mutex] received everything.

2020-08-03 05:51:44 | [Mutex] isItemNotified: received:node:06d73c1e-2beb-487f-9b67-e97a8f63a783:localhost:node-8f3710b8-6927-404a-ac02-934c9e39b625:Node 8f3710b8-6927-404a-ac02-934c9e39b625 :: true

deleteNodes 1.018s
2020-08-03 05:51:49 |

2020-08-03 05:51:49 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingXML]

2020-08-03 05:51:49 | ------------------------------------

2020-08-03 05:51:49 | on localhost executing action delete-node with content type application/xml and payload:
<data><node>node-8f3710b8-6927-404a-ac02-934c9e39b625</node></data>

2020-08-03 05:51:49 | from localhost for action delete-node got result code 200 and payload
<result><Note type="fixed"><value>Operation successful</value></Note></result>

2020-08-03 05:51:50 | [Mutex] waiting for: [received:nodes:b273a94f-9b5b-43d8-b16a-50b0af0ded65:localhost]

2020-08-03 05:51:50 | [Mutex] received everything.

2020-08-03 05:51:50 | [Mutex] isItemNotified: received:node:b273a94f-9b5b-43d8-b16a-50b0af0ded65:localhost:node-8f3710b8-6927-404a-ac02-934c9e39b625:Node 8f3710b8-6927-404a-ac02-934c9e39b625 :: false

deleteSubnodes 1.149s
2020-08-03 05:51:48 |

2020-08-03 05:51:48 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingXML]

2020-08-03 05:51:48 | ------------------------------------

2020-08-03 05:51:48 | on localhost executing action delete-node with content type application/xml and payload:
<data><node>node-480ae3c7-0d1b-46f0-8a22-d5c729a527ab</node></data>

2020-08-03 05:51:48 | from localhost for action delete-node got result code 200 and payload
<result><Note type="fixed"><value>Operation successful</value></Note></result>

2020-08-03 05:51:49 | [Mutex] waiting for: [received:nodes:9490d23d-8738-4aab-a6c8-aa9832006029:localhost]

2020-08-03 05:51:49 | [Mutex] received everything.

2020-08-03 05:51:49 | [Mutex] isItemNotified: received:node:9490d23d-8738-4aab-a6c8-aa9832006029:localhost:node-480ae3c7-0d1b-46f0-8a22-d5c729a527ab:Node 480ae3c7-0d1b-46f0-8a22-d5c729a527ab :: false

2020-08-03 05:51:49 | [Mutex] waiting for: [received:nodes:da8dc56c-caa2-405f-b6da-d39c08401f97:localhost]

2020-08-03 05:51:49 | [Mutex] received everything.

2020-08-03 05:51:49 | [Mutex] isItemNotified: received:node:da8dc56c-caa2-405f-b6da-d39c08401f97:localhost:node-480ae3c7-0d1b-46f0-8a22-d5c729a527ab:Node 480ae3c7-0d1b-46f0-8a22-d5c729a527ab :: false

publishItemsToNodes 0.183s
2020-08-03 05:51:46 |

2020-08-03 05:51:46 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingXML]

2020-08-03 05:51:46 | ------------------------------------

2020-08-03 05:51:46 | on localhost executing action publish-item with content type application/xml and payload:
<data><node>node-480ae3c7-0d1b-46f0-8a22-d5c729a527ab</node><item-id>item-209dea92-9bf6-429f-8850-354cae955461</item-id><entry><test>item-209dea92-9bf6-429f-8850-354cae955461</test></entry></data>

2020-08-03 05:51:46 | 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-209dea92-9bf6-429f-8850-354cae955461</value></item-id></result>

2020-08-03 05:51:46 | [Mutex] waiting for: [published:item:notifieditem-209dea92-9bf6-429f-8850-354cae955461:admin@test-domain.com]

2020-08-03 05:51:46 | [Mutex] received everything.

2020-08-03 05:51:46 | [Mutex] isItemNotified: published:item:notifieditem-209dea92-9bf6-429f-8850-354cae955461:admin@test-domain.com :: true

retractItemsFromNodes 0.210s
2020-08-03 05:51:47 |

2020-08-03 05:51:47 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingXML]

2020-08-03 05:51:47 | ------------------------------------

2020-08-03 05:51:47 | on localhost executing action delete-item with content type application/xml and payload:
<data><node>node-480ae3c7-0d1b-46f0-8a22-d5c729a527ab</node><item-id>item-209dea92-9bf6-429f-8850-354cae955461</item-id></data>

2020-08-03 05:51:47 | 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-209dea92-9bf6-429f-8850-354cae955461</value></item-id></result>

2020-08-03 05:51:47 | [Mutex] received everything.

2020-08-03 05:51:47 | [Mutex] isItemNotified: retracted:item:notifieditem-209dea92-9bf6-429f-8850-354cae955461:admin@test-domain.com :: true

retrieveItemsFromNodes 0.231s
2020-08-03 05:51:46 |

2020-08-03 05:51:46 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingXML]

2020-08-03 05:51:46 | ------------------------------------

2020-08-03 05:51:46 | on localhost executing action retrieve-item with content type application/xml and payload:
<data><node>node-480ae3c7-0d1b-46f0-8a22-d5c729a527ab</node><item-id>item-209dea92-9bf6-429f-8850-354cae955461</item-id></data>

2020-08-03 05:51:46 | 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-480ae3c7-0d1b-46f0-8a22-d5c729a527ab</value></node><item-id label="Item ID" type="text-single"><value>item-209dea92-9bf6-429f-8850-354cae955461</value></item-id><item label="Item" type="text-multi"><value><item id="item-209dea92-9bf6-429f-8850-354cae955461"><test>item-209dea92-9bf6-429f-8850-354cae955461</test></item></value></item></result>

2020-08-03 05:51:46 | [Mutex] notify: [retrieved:item:item-209dea92-9bf6-429f-8850-354cae955461:payload-matches:true:localhost]

2020-08-03 05:51:46 | [Mutex] received everything.

2020-08-03 05:51:46 | [Mutex] isItemNotified: retrieved:item:item-209dea92-9bf6-429f-8850-354cae955461:payload-matches:true:localhost :: true

retrieveUserSubscriptions 0.228s
2020-08-03 05:51:46 |

2020-08-03 05:51:46 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingXML]

2020-08-03 05:51:46 | ------------------------------------

2020-08-03 05:51:46 | on localhost executing action retrieve-user-subscriptions with content type application/xml and payload:
<data><jid>admin@test-domain.com</jid></data>

2020-08-03 05:51:47 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
<result><nodes label="Nodes" type="text-multi"><value>node-8f3710b8-6927-404a-ac02-934c9e39b625</value><value>test</value><value>node-480ae3c7-0d1b-46f0-8a22-d5c729a527ab</value></nodes></result>

retrieveUserSubscriptionsWithRegex 0.054s
2020-08-03 05:51:47 |

2020-08-03 05:51:47 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingXML]

2020-08-03 05:51:47 | ------------------------------------

2020-08-03 05:51:47 | on localhost executing action retrieve-user-subscriptions with content type application/xml and payload:
<data><jid>admin@test-domain.com</jid><node-pattern>(?!node-480ae3c7-0d1b-46f0-8a22-d5c729a527ab)</node-pattern></data>

2020-08-03 05:51:47 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
<result><nodes label="Nodes" type="text-multi"/></result>

subscribeNodes 1.150s
2020-08-03 05:51:45 |

2020-08-03 05:51:45 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingXML]

2020-08-03 05:51:45 | ------------------------------------

2020-08-03 05:51:45 | on localhost executing action subscribe-node with content type application/xml and payload:
<data><node>node-480ae3c7-0d1b-46f0-8a22-d5c729a527ab</node><jids><value>admin@test-domain.com</value></jids></data>

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

unsubscribeNodes 1.237s
2020-08-03 05:51:47 |

2020-08-03 05:51:47 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingXML]

2020-08-03 05:51:47 | ------------------------------------

2020-08-03 05:51:47 | on localhost executing action unsubscribe-node with content type application/xml and payload:
<data><node>node-480ae3c7-0d1b-46f0-8a22-d5c729a527ab</node><jids><value>admin@test-domain.com</value></jids></data>

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