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

Test duration: 10.557s

Passed Tests
tigase.tests.pubsub.TestRestApiUsingXML
configureNodes 1.117s
2020-02-02 19:22:07 |

2020-02-02 19:22:07 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingXML]

2020-02-02 19:22:07 | ------------------------------------

2020-02-02 19:22:07 | [Mutex] waiting for: [configured:node:node-488cc98b-44c0-47f4-9f60-6d7fd7c487fb:node-bf434f52-1d37-4af0-879b-73a5a683bf44]

2020-02-02 19:22:07 | [Mutex] received everything.

2020-02-02 19:22:07 | [Mutex] isItemNotified: configured:node:node-488cc98b-44c0-47f4-9f60-6d7fd7c487fb:node-bf434f52-1d37-4af0-879b-73a5a683bf44 :: true

2020-02-02 19:22:08 | [Mutex] waiting for: [received:nodes:1d86f99c-428e-4c57-8af7-cda00e8189a9:localhost]

2020-02-02 19:22:08 | [Mutex] received everything.

2020-02-02 19:22:08 | [Mutex] isItemNotified: received:node:1d86f99c-428e-4c57-8af7-cda00e8189a9:localhost:node-488cc98b-44c0-47f4-9f60-6d7fd7c487fb:Node 488cc98b-44c0-47f4-9f60-6d7fd7c487fb :: true

2020-02-02 19:22:08 | [Mutex] waiting for: [received:nodes:8a937e4f-812a-4df7-a7b7-e0e0cdb12127:localhost]

2020-02-02 19:22:08 | [Mutex] received everything.

2020-02-02 19:22:08 | [Mutex] isItemNotified: received:node:8a937e4f-812a-4df7-a7b7-e0e0cdb12127:localhost:node-488cc98b-44c0-47f4-9f60-6d7fd7c487fb:Node 488cc98b-44c0-47f4-9f60-6d7fd7c487fb :: false

createNodes 1.657s
2020-02-02 19:22:04 |

2020-02-02 19:22:04 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingXML]

2020-02-02 19:22:04 | ------------------------------------

2020-02-02 19:22:04 | on localhost executing action create-node with content type application/xml and payload:
<data><node>node-488cc98b-44c0-47f4-9f60-6d7fd7c487fb</node><owner>admin@localhost</owner><pubsub prefix="true"><node_type>leaf</node_type><title>Node 488cc98b-44c0-47f4-9f60-6d7fd7c487fb</title></pubsub></data>

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

2020-02-02 19:22:06 | [Mutex] waiting for: [received:nodes:e16f36ba-fc11-4b48-a8ac-04610e35f871:localhost]

2020-02-02 19:22:06 | [Mutex] received everything.

2020-02-02 19:22:06 | [Mutex] isItemNotified: received:node:e16f36ba-fc11-4b48-a8ac-04610e35f871:localhost:node-488cc98b-44c0-47f4-9f60-6d7fd7c487fb:Node 488cc98b-44c0-47f4-9f60-6d7fd7c487fb :: true

createSubnodes 1.037s
2020-02-02 19:22:06 |

2020-02-02 19:22:06 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingXML]

2020-02-02 19:22:06 | ------------------------------------

2020-02-02 19:22:06 | on localhost executing action create-node with content type application/xml and payload:
<data><node>node-bf434f52-1d37-4af0-879b-73a5a683bf44</node><owner>admin@localhost</owner><pubsub prefix="true"><node_type>collection</node_type><title>Node bf434f52-1d37-4af0-879b-73a5a683bf44</title></pubsub></data>

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

2020-02-02 19:22:07 | [Mutex] waiting for: [received:nodes:2aa4cded-3c72-4c27-b03a-8ad18fab6377:localhost]

2020-02-02 19:22:07 | [Mutex] received everything.

2020-02-02 19:22:07 | [Mutex] isItemNotified: received:node:2aa4cded-3c72-4c27-b03a-8ad18fab6377:localhost:node-bf434f52-1d37-4af0-879b-73a5a683bf44:Node bf434f52-1d37-4af0-879b-73a5a683bf44 :: true

deleteNodes 1.030s
2020-02-02 19:22:13 |

2020-02-02 19:22:13 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingXML]

2020-02-02 19:22:13 | ------------------------------------

2020-02-02 19:22:13 | on localhost executing action delete-node with content type application/xml and payload:
<data><node>node-bf434f52-1d37-4af0-879b-73a5a683bf44</node></data>

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

2020-02-02 19:22:14 | [Mutex] waiting for: [received:nodes:5831219b-d841-4f52-8c90-5d011a60b678:localhost]

2020-02-02 19:22:14 | [Mutex] received everything.

2020-02-02 19:22:14 | [Mutex] isItemNotified: received:node:5831219b-d841-4f52-8c90-5d011a60b678:localhost:node-bf434f52-1d37-4af0-879b-73a5a683bf44:Node bf434f52-1d37-4af0-879b-73a5a683bf44 :: false

deleteSubnodes 1.170s
2020-02-02 19:22:12 |

2020-02-02 19:22:12 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingXML]

2020-02-02 19:22:12 | ------------------------------------

2020-02-02 19:22:12 | on localhost executing action delete-node with content type application/xml and payload:
<data><node>node-488cc98b-44c0-47f4-9f60-6d7fd7c487fb</node></data>

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

2020-02-02 19:22:13 | [Mutex] waiting for: [received:nodes:fd1e6f53-c760-46f0-a2b3-32bb0ac1b8fa:localhost]

2020-02-02 19:22:13 | [Mutex] received everything.

2020-02-02 19:22:13 | [Mutex] isItemNotified: received:node:fd1e6f53-c760-46f0-a2b3-32bb0ac1b8fa:localhost:node-488cc98b-44c0-47f4-9f60-6d7fd7c487fb:Node 488cc98b-44c0-47f4-9f60-6d7fd7c487fb :: false

2020-02-02 19:22:13 | [Mutex] waiting for: [received:nodes:f2cec4a7-c413-4bfd-8b2f-5969d59915e2:localhost]

2020-02-02 19:22:13 | [Mutex] received everything.

2020-02-02 19:22:13 | [Mutex] isItemNotified: received:node:f2cec4a7-c413-4bfd-8b2f-5969d59915e2:localhost:node-488cc98b-44c0-47f4-9f60-6d7fd7c487fb:Node 488cc98b-44c0-47f4-9f60-6d7fd7c487fb :: false

publishItemsToNodes 0.255s
2020-02-02 19:22:09 |

2020-02-02 19:22:09 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingXML]

2020-02-02 19:22:09 | ------------------------------------

2020-02-02 19:22:09 | on localhost executing action publish-item with content type application/xml and payload:
<data><node>node-488cc98b-44c0-47f4-9f60-6d7fd7c487fb</node><item-id>item-d08e4893-6585-45db-a260-2e17149283bc</item-id><entry><test>item-d08e4893-6585-45db-a260-2e17149283bc</test></entry></data>

2020-02-02 19:22:09 | 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-d08e4893-6585-45db-a260-2e17149283bc</value></item-id></result>

2020-02-02 19:22:09 | [Mutex] waiting for: [published:item:notifieditem-d08e4893-6585-45db-a260-2e17149283bc:admin@localhost]

2020-02-02 19:22:10 | [Mutex] received everything.

2020-02-02 19:22:10 | [Mutex] isItemNotified: published:item:notifieditem-d08e4893-6585-45db-a260-2e17149283bc:admin@localhost :: true

retractItemsFromNodes 0.359s
2020-02-02 19:22:10 |

2020-02-02 19:22:10 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingXML]

2020-02-02 19:22:10 | ------------------------------------

2020-02-02 19:22:10 | on localhost executing action delete-item with content type application/xml and payload:
<data><node>node-488cc98b-44c0-47f4-9f60-6d7fd7c487fb</node><item-id>item-d08e4893-6585-45db-a260-2e17149283bc</item-id></data>

2020-02-02 19:22:10 | 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-d08e4893-6585-45db-a260-2e17149283bc</value></item-id></result>

2020-02-02 19:22:10 | [Mutex] waiting for: [retracted:item:notifieditem-d08e4893-6585-45db-a260-2e17149283bc:admin@localhost]

2020-02-02 19:22:10 | [Mutex] received everything.

2020-02-02 19:22:10 | [Mutex] isItemNotified: retracted:item:notifieditem-d08e4893-6585-45db-a260-2e17149283bc:admin@localhost :: true

retrieveItemsFromNodes 0.254s
2020-02-02 19:22:10 |

2020-02-02 19:22:10 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingXML]

2020-02-02 19:22:10 | ------------------------------------

2020-02-02 19:22:10 | on localhost executing action retrieve-item with content type application/xml and payload:
<data><node>node-488cc98b-44c0-47f4-9f60-6d7fd7c487fb</node><item-id>item-d08e4893-6585-45db-a260-2e17149283bc</item-id></data>

2020-02-02 19:22:10 | 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-488cc98b-44c0-47f4-9f60-6d7fd7c487fb</value></node><item-id type="text-single" label="Item ID"><value>item-d08e4893-6585-45db-a260-2e17149283bc</value></item-id><item type="text-multi" label="Item"><value><item id="item-d08e4893-6585-45db-a260-2e17149283bc"><test>item-d08e4893-6585-45db-a260-2e17149283bc</test></item></value></item></result>

2020-02-02 19:22:10 | [Mutex] notify: [retrieved:item:item-d08e4893-6585-45db-a260-2e17149283bc:payload-matches:true:localhost]

2020-02-02 19:22:10 | [Mutex] received everything.

2020-02-02 19:22:10 | [Mutex] isItemNotified: retrieved:item:item-d08e4893-6585-45db-a260-2e17149283bc:payload-matches:true:localhost :: true

retrieveUserSubscriptions 0.247s
2020-02-02 19:22:10 |

2020-02-02 19:22:10 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingXML]

2020-02-02 19:22:10 | ------------------------------------

2020-02-02 19:22:10 | on localhost executing action retrieve-user-subscriptions with content type application/xml and payload:
<data><jid>admin@localhost</jid></data>

2020-02-02 19:22:10 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
<result><nodes type="text-multi" label="Nodes"><value>node-488cc98b-44c0-47f4-9f60-6d7fd7c487fb</value><value>node-bf434f52-1d37-4af0-879b-73a5a683bf44</value></nodes></result>

retrieveUserSubscriptionsWithRegex 0.066s
2020-02-02 19:22:10 |

2020-02-02 19:22:10 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingXML]

2020-02-02 19:22:10 | ------------------------------------

2020-02-02 19:22:10 | on localhost executing action retrieve-user-subscriptions with content type application/xml and payload:
<data><jid>admin@localhost</jid><node-pattern>(?!node-488cc98b-44c0-47f4-9f60-6d7fd7c487fb)</node-pattern></data>

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

subscribeNodes 1.106s
2020-02-02 19:22:08 |

2020-02-02 19:22:08 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingXML]

2020-02-02 19:22:08 | ------------------------------------

2020-02-02 19:22:08 | on localhost executing action subscribe-node with content type application/xml and payload:
<data><node>node-488cc98b-44c0-47f4-9f60-6d7fd7c487fb</node><jids><value>admin@localhost</value></jids></data>

2020-02-02 19:22:08 | 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
2020-02-02 19:22:10 |

2020-02-02 19:22:10 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingXML]

2020-02-02 19:22:10 | ------------------------------------

2020-02-02 19:22:10 | on localhost executing action unsubscribe-node with content type application/xml and payload:
<data><node>node-488cc98b-44c0-47f4-9f60-6d7fd7c487fb</node><jids><value>admin@localhost</value></jids></data>

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