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

Test duration: 10.046s

Passed Tests
tigase.tests.pubsub.TestRestApiUsingXML
configureNodes 1.119s
2020-06-30 00:31:47 |

2020-06-30 00:31:47 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingXML]

2020-06-30 00:31:47 | ------------------------------------

2020-06-30 00:31:47 | [Mutex] waiting for: [configured:node:node-3d445333-75bb-411f-ad52-5bad54c459ea:node-8dcc35d7-8789-4511-8dfc-85c5c5c32976]

2020-06-30 00:31:47 | [Mutex] received everything.

2020-06-30 00:31:47 | [Mutex] isItemNotified: configured:node:node-3d445333-75bb-411f-ad52-5bad54c459ea:node-8dcc35d7-8789-4511-8dfc-85c5c5c32976 :: true

2020-06-30 00:31:48 | [Mutex] waiting for: [received:nodes:3803a8e2-0d3b-4902-ada7-b38273b73e00:localhost]

2020-06-30 00:31:48 | [Mutex] received everything.

2020-06-30 00:31:48 | [Mutex] isItemNotified: received:node:3803a8e2-0d3b-4902-ada7-b38273b73e00:localhost:node-3d445333-75bb-411f-ad52-5bad54c459ea:Node 3d445333-75bb-411f-ad52-5bad54c459ea :: true

2020-06-30 00:31:48 | [Mutex] waiting for: [received:nodes:226e5d83-8be7-44bb-bb8c-469a0cbbc194:localhost]

2020-06-30 00:31:48 | [Mutex] waiting for: [received:nodes:226e5d83-8be7-44bb-bb8c-469a0cbbc194:localhost]

2020-06-30 00:31:48 | [Mutex] received everything.

2020-06-30 00:31:48 | [Mutex] isItemNotified: received:node:226e5d83-8be7-44bb-bb8c-469a0cbbc194:localhost:node-3d445333-75bb-411f-ad52-5bad54c459ea:Node 3d445333-75bb-411f-ad52-5bad54c459ea :: false

createNodes 1.570s
2020-06-30 00:31:45 |

2020-06-30 00:31:45 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingXML]

2020-06-30 00:31:45 | ------------------------------------

2020-06-30 00:31:45 | on localhost executing action create-node with content type application/xml and payload:
<data><node>node-3d445333-75bb-411f-ad52-5bad54c459ea</node><owner>admin@localhost</owner><pubsub prefix="true"><node_type>leaf</node_type><title>Node 3d445333-75bb-411f-ad52-5bad54c459ea</title></pubsub></data>

2020-06-30 00:31:45 | from localhost for action create-node got result code 200 and payload
<result><Note type="fixed"><value>Operation successful</value></Note></result>

2020-06-30 00:31:46 | [Mutex] waiting for: [received:nodes:f074d2a5-3383-44ee-8371-0bc59d30f801:localhost]

2020-06-30 00:31:46 | [Mutex] received everything.

2020-06-30 00:31:46 | [Mutex] isItemNotified: received:node:f074d2a5-3383-44ee-8371-0bc59d30f801:localhost:node-3d445333-75bb-411f-ad52-5bad54c459ea:Node 3d445333-75bb-411f-ad52-5bad54c459ea :: true

createSubnodes 1.021s
2020-06-30 00:31:46 |

2020-06-30 00:31:46 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingXML]

2020-06-30 00:31:46 | ------------------------------------

2020-06-30 00:31:46 | on localhost executing action create-node with content type application/xml and payload:
<data><node>node-8dcc35d7-8789-4511-8dfc-85c5c5c32976</node><owner>admin@localhost</owner><pubsub prefix="true"><node_type>collection</node_type><title>Node 8dcc35d7-8789-4511-8dfc-85c5c5c32976</title></pubsub></data>

2020-06-30 00:31:46 | from localhost for action create-node got result code 200 and payload
<result><Note type="fixed"><value>Operation successful</value></Note></result>

2020-06-30 00:31:47 | [Mutex] waiting for: [received:nodes:e696d00d-84dd-4493-ac8b-6ba151c040e6:localhost]

2020-06-30 00:31:47 | [Mutex] received everything.

2020-06-30 00:31:47 | [Mutex] isItemNotified: received:node:e696d00d-84dd-4493-ac8b-6ba151c040e6:localhost:node-8dcc35d7-8789-4511-8dfc-85c5c5c32976:Node 8dcc35d7-8789-4511-8dfc-85c5c5c32976 :: true

deleteNodes 1.030s
2020-06-30 00:31:53 |

2020-06-30 00:31:53 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingXML]

2020-06-30 00:31:53 | ------------------------------------

2020-06-30 00:31:53 | on localhost executing action delete-node with content type application/xml and payload:
<data><node>node-8dcc35d7-8789-4511-8dfc-85c5c5c32976</node></data>

2020-06-30 00:31:53 | from localhost for action delete-node got result code 200 and payload
<result><Note type="fixed"><value>Operation successful</value></Note></result>

2020-06-30 00:31:54 | [Mutex] waiting for: [received:nodes:7cb31715-376c-4784-99b4-b6e067cb5924:localhost]

2020-06-30 00:31:54 | [Mutex] received everything.

2020-06-30 00:31:54 | [Mutex] isItemNotified: received:node:7cb31715-376c-4784-99b4-b6e067cb5924:localhost:node-8dcc35d7-8789-4511-8dfc-85c5c5c32976:Node 8dcc35d7-8789-4511-8dfc-85c5c5c32976 :: false

deleteSubnodes 1.155s
2020-06-30 00:31:52 |

2020-06-30 00:31:52 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingXML]

2020-06-30 00:31:52 | ------------------------------------

2020-06-30 00:31:52 | on localhost executing action delete-node with content type application/xml and payload:
<data><node>node-3d445333-75bb-411f-ad52-5bad54c459ea</node></data>

2020-06-30 00:31:52 | from localhost for action delete-node got result code 200 and payload
<result><Note type="fixed"><value>Operation successful</value></Note></result>

2020-06-30 00:31:53 | [Mutex] waiting for: [received:nodes:fa8a10d6-b368-401f-9ed7-4752280b6e5c:localhost]

2020-06-30 00:31:53 | [Mutex] received everything.

2020-06-30 00:31:53 | [Mutex] isItemNotified: received:node:fa8a10d6-b368-401f-9ed7-4752280b6e5c:localhost:node-3d445333-75bb-411f-ad52-5bad54c459ea:Node 3d445333-75bb-411f-ad52-5bad54c459ea :: false

2020-06-30 00:31:53 | [Mutex] waiting for: [received:nodes:e1166c40-6501-4057-9b16-f114b87218ed:localhost]

2020-06-30 00:31:53 | [Mutex] received everything.

2020-06-30 00:31:53 | [Mutex] isItemNotified: received:node:e1166c40-6501-4057-9b16-f114b87218ed:localhost:node-3d445333-75bb-411f-ad52-5bad54c459ea:Node 3d445333-75bb-411f-ad52-5bad54c459ea :: false

publishItemsToNodes 0.219s
2020-06-30 00:31:50 |

2020-06-30 00:31:50 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingXML]

2020-06-30 00:31:50 | ------------------------------------

2020-06-30 00:31:50 | on localhost executing action publish-item with content type application/xml and payload:
<data><node>node-3d445333-75bb-411f-ad52-5bad54c459ea</node><item-id>item-26b1624c-fa61-4ae2-a457-30795690cf99</item-id><entry><test>item-26b1624c-fa61-4ae2-a457-30795690cf99</test></entry></data>

2020-06-30 00:31:50 | 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-26b1624c-fa61-4ae2-a457-30795690cf99</value></item-id></result>

2020-06-30 00:31:50 | [Mutex] received everything.

2020-06-30 00:31:50 | [Mutex] isItemNotified: published:item:notifieditem-26b1624c-fa61-4ae2-a457-30795690cf99:admin@localhost :: true

retractItemsFromNodes 0.268s
2020-06-30 00:31:50 |

2020-06-30 00:31:50 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingXML]

2020-06-30 00:31:50 | ------------------------------------

2020-06-30 00:31:50 | on localhost executing action delete-item with content type application/xml and payload:
<data><node>node-3d445333-75bb-411f-ad52-5bad54c459ea</node><item-id>item-26b1624c-fa61-4ae2-a457-30795690cf99</item-id></data>

2020-06-30 00:31:50 | 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-26b1624c-fa61-4ae2-a457-30795690cf99</value></item-id></result>

2020-06-30 00:31:50 | [Mutex] received everything.

2020-06-30 00:31:50 | [Mutex] isItemNotified: retracted:item:notifieditem-26b1624c-fa61-4ae2-a457-30795690cf99:admin@localhost :: true

retrieveItemsFromNodes 0.188s
2020-06-30 00:31:50 |

2020-06-30 00:31:50 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingXML]

2020-06-30 00:31:50 | ------------------------------------

2020-06-30 00:31:50 | on localhost executing action retrieve-item with content type application/xml and payload:
<data><node>node-3d445333-75bb-411f-ad52-5bad54c459ea</node><item-id>item-26b1624c-fa61-4ae2-a457-30795690cf99</item-id></data>

2020-06-30 00:31:50 | 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-3d445333-75bb-411f-ad52-5bad54c459ea</value></node><item-id label="Item ID" type="text-single"><value>item-26b1624c-fa61-4ae2-a457-30795690cf99</value></item-id><item label="Item" type="text-multi"><value><item id="item-26b1624c-fa61-4ae2-a457-30795690cf99"><test>item-26b1624c-fa61-4ae2-a457-30795690cf99</test></item></value></item></result>

2020-06-30 00:31:50 | [Mutex] notify: [retrieved:item:item-26b1624c-fa61-4ae2-a457-30795690cf99:payload-matches:true:localhost]

2020-06-30 00:31:50 | [Mutex] received everything.

2020-06-30 00:31:50 | [Mutex] isItemNotified: retrieved:item:item-26b1624c-fa61-4ae2-a457-30795690cf99:payload-matches:true:localhost :: true

retrieveUserSubscriptions 0.140s
2020-06-30 00:31:50 |

2020-06-30 00:31:50 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingXML]

2020-06-30 00:31:50 | ------------------------------------

2020-06-30 00:31:50 | on localhost executing action retrieve-user-subscriptions with content type application/xml and payload:
<data><jid>admin@localhost</jid></data>

2020-06-30 00:31:50 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
<result><nodes label="Nodes" type="text-multi"><value>node-3d445333-75bb-411f-ad52-5bad54c459ea</value><value>test</value><value>node-8dcc35d7-8789-4511-8dfc-85c5c5c32976</value></nodes></result>

retrieveUserSubscriptionsWithRegex 0.054s
2020-06-30 00:31:50 |

2020-06-30 00:31:50 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingXML]

2020-06-30 00:31:50 | ------------------------------------

2020-06-30 00:31:50 | on localhost executing action retrieve-user-subscriptions with content type application/xml and payload:
<data><jid>admin@localhost</jid><node-pattern>(?!node-3d445333-75bb-411f-ad52-5bad54c459ea)</node-pattern></data>

2020-06-30 00:31:50 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
<result><nodes label="Nodes" type="text-multi"/></result>

subscribeNodes 1.180s
2020-06-30 00:31:48 |

2020-06-30 00:31:48 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingXML]

2020-06-30 00:31:48 | ------------------------------------

2020-06-30 00:31:48 | on localhost executing action subscribe-node with content type application/xml and payload:
<data><node>node-3d445333-75bb-411f-ad52-5bad54c459ea</node><jids><value>admin@localhost</value></jids></data>

2020-06-30 00:31: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.300s
2020-06-30 00:31:50 |

2020-06-30 00:31:50 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingXML]

2020-06-30 00:31:50 | ------------------------------------

2020-06-30 00:31:50 | on localhost executing action unsubscribe-node with content type application/xml and payload:
<data><node>node-3d445333-75bb-411f-ad52-5bad54c459ea</node><jids><value>admin@localhost</value></jids></data>

2020-06-30 00:31:51 | from localhost for action unsubscribe-node got result code 200 and payload
<result><Note type="fixed"><value>Operation successful</value></Note></result>