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

Test duration: 9.660s

Passed Tests
tigase.tests.pubsub.TestRestApiUsingXML
configureNodes 1.125s
2020-05-26 22:46:09 |

2020-05-26 22:46:09 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingXML]

2020-05-26 22:46:09 | ------------------------------------

2020-05-26 22:46:09 | [Mutex] waiting for: [configured:node:node-aaca05be-7fc1-42db-9849-acd17eaff933:node-639d0f87-25ba-40c3-9031-cb6484f842c9]

2020-05-26 22:46:09 | [Mutex] received everything.

2020-05-26 22:46:09 | [Mutex] isItemNotified: configured:node:node-aaca05be-7fc1-42db-9849-acd17eaff933:node-639d0f87-25ba-40c3-9031-cb6484f842c9 :: true

2020-05-26 22:46:10 | [Mutex] waiting for: [received:nodes:5028fb69-23d8-4682-95e1-7c8ec91443f9:localhost]

2020-05-26 22:46:10 | [Mutex] received everything.

2020-05-26 22:46:10 | [Mutex] isItemNotified: received:node:5028fb69-23d8-4682-95e1-7c8ec91443f9:localhost:node-aaca05be-7fc1-42db-9849-acd17eaff933:Node aaca05be-7fc1-42db-9849-acd17eaff933 :: true

2020-05-26 22:46:10 | [Mutex] waiting for: [received:nodes:db50871a-8f46-480c-a38e-bc21c1e4f835:localhost]

2020-05-26 22:46:10 | [Mutex] received everything.

2020-05-26 22:46:10 | [Mutex] isItemNotified: received:node:db50871a-8f46-480c-a38e-bc21c1e4f835:localhost:node-aaca05be-7fc1-42db-9849-acd17eaff933:Node aaca05be-7fc1-42db-9849-acd17eaff933 :: false

createNodes 1.392s
2020-05-26 22:46:07 |

2020-05-26 22:46:07 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingXML]

2020-05-26 22:46:07 | ------------------------------------

2020-05-26 22:46:07 | on localhost executing action create-node with content type application/xml and payload:
<data><node>node-aaca05be-7fc1-42db-9849-acd17eaff933</node><owner>admin@localhost</owner><pubsub prefix="true"><node_type>leaf</node_type><title>Node aaca05be-7fc1-42db-9849-acd17eaff933</title></pubsub></data>

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

2020-05-26 22:46:08 | [Mutex] waiting for: [received:nodes:44ae0f50-600d-4048-a5b3-004239773472:localhost]

2020-05-26 22:46:08 | [Mutex] received everything.

2020-05-26 22:46:08 | [Mutex] isItemNotified: received:node:44ae0f50-600d-4048-a5b3-004239773472:localhost:node-aaca05be-7fc1-42db-9849-acd17eaff933:Node aaca05be-7fc1-42db-9849-acd17eaff933 :: true

createSubnodes 1.021s
2020-05-26 22:46:08 |

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

2020-05-26 22:46:08 | ------------------------------------

2020-05-26 22:46:08 | on localhost executing action create-node with content type application/xml and payload:
<data><node>node-639d0f87-25ba-40c3-9031-cb6484f842c9</node><owner>admin@localhost</owner><pubsub prefix="true"><node_type>collection</node_type><title>Node 639d0f87-25ba-40c3-9031-cb6484f842c9</title></pubsub></data>

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

2020-05-26 22:46:09 | [Mutex] waiting for: [received:nodes:a5b10cb9-ad27-4b33-9a57-90af4e47dcda:localhost]

2020-05-26 22:46:09 | [Mutex] received everything.

2020-05-26 22:46:09 | [Mutex] isItemNotified: received:node:a5b10cb9-ad27-4b33-9a57-90af4e47dcda:localhost:node-639d0f87-25ba-40c3-9031-cb6484f842c9:Node 639d0f87-25ba-40c3-9031-cb6484f842c9 :: true

deleteNodes 1.019s
2020-05-26 22:46:15 |

2020-05-26 22:46:15 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingXML]

2020-05-26 22:46:15 | ------------------------------------

2020-05-26 22:46:15 | on localhost executing action delete-node with content type application/xml and payload:
<data><node>node-639d0f87-25ba-40c3-9031-cb6484f842c9</node></data>

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

2020-05-26 22:46:16 | [Mutex] waiting for: [received:nodes:2c3e9069-257c-41a3-95fb-788cb5e527db:localhost]

2020-05-26 22:46:16 | [Mutex] received everything.

2020-05-26 22:46:16 | [Mutex] isItemNotified: received:node:2c3e9069-257c-41a3-95fb-788cb5e527db:localhost:node-639d0f87-25ba-40c3-9031-cb6484f842c9:Node 639d0f87-25ba-40c3-9031-cb6484f842c9 :: false

deleteSubnodes 1.117s
2020-05-26 22:46:14 |

2020-05-26 22:46:14 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingXML]

2020-05-26 22:46:14 | ------------------------------------

2020-05-26 22:46:14 | on localhost executing action delete-node with content type application/xml and payload:
<data><node>node-aaca05be-7fc1-42db-9849-acd17eaff933</node></data>

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

2020-05-26 22:46:15 | [Mutex] waiting for: [received:nodes:11b7bd69-1356-4a2b-9516-e7da8a62535c:localhost]

2020-05-26 22:46:15 | [Mutex] waiting for: [received:nodes:11b7bd69-1356-4a2b-9516-e7da8a62535c:localhost]

2020-05-26 22:46:15 | [Mutex] received everything.

2020-05-26 22:46:15 | [Mutex] isItemNotified: received:node:11b7bd69-1356-4a2b-9516-e7da8a62535c:localhost:node-aaca05be-7fc1-42db-9849-acd17eaff933:Node aaca05be-7fc1-42db-9849-acd17eaff933 :: false

2020-05-26 22:46:15 | [Mutex] waiting for: [received:nodes:9bedfbb7-4aeb-47e2-b2b4-fe62a5c2982d:localhost]

2020-05-26 22:46:15 | [Mutex] received everything.

2020-05-26 22:46:15 | [Mutex] isItemNotified: received:node:9bedfbb7-4aeb-47e2-b2b4-fe62a5c2982d:localhost:node-aaca05be-7fc1-42db-9849-acd17eaff933:Node aaca05be-7fc1-42db-9849-acd17eaff933 :: false

publishItemsToNodes 0.190s
2020-05-26 22:46:11 |

2020-05-26 22:46:11 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingXML]

2020-05-26 22:46:11 | ------------------------------------

2020-05-26 22:46:11 | on localhost executing action publish-item with content type application/xml and payload:
<data><node>node-aaca05be-7fc1-42db-9849-acd17eaff933</node><item-id>item-ad965e4a-05b1-4ac6-a10c-786d16a21ebb</item-id><entry><test>item-ad965e4a-05b1-4ac6-a10c-786d16a21ebb</test></entry></data>

2020-05-26 22:46:12 | 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-ad965e4a-05b1-4ac6-a10c-786d16a21ebb</value></item-id></result>

2020-05-26 22:46:12 | [Mutex] waiting for: [published:item:notifieditem-ad965e4a-05b1-4ac6-a10c-786d16a21ebb:admin@localhost]

2020-05-26 22:46:12 | [Mutex] received everything.

2020-05-26 22:46:12 | [Mutex] isItemNotified: published:item:notifieditem-ad965e4a-05b1-4ac6-a10c-786d16a21ebb:admin@localhost :: true

retractItemsFromNodes 0.234s
2020-05-26 22:46:12 |

2020-05-26 22:46:12 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingXML]

2020-05-26 22:46:12 | ------------------------------------

2020-05-26 22:46:12 | on localhost executing action delete-item with content type application/xml and payload:
<data><node>node-aaca05be-7fc1-42db-9849-acd17eaff933</node><item-id>item-ad965e4a-05b1-4ac6-a10c-786d16a21ebb</item-id></data>

2020-05-26 22:46:12 | 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-ad965e4a-05b1-4ac6-a10c-786d16a21ebb</value></item-id></result>

2020-05-26 22:46:12 | [Mutex] waiting for: [retracted:item:notifieditem-ad965e4a-05b1-4ac6-a10c-786d16a21ebb:admin@localhost]

2020-05-26 22:46:12 | [Mutex] received everything.

2020-05-26 22:46:12 | [Mutex] isItemNotified: retracted:item:notifieditem-ad965e4a-05b1-4ac6-a10c-786d16a21ebb:admin@localhost :: true

retrieveItemsFromNodes 0.212s
2020-05-26 22:46:12 |

2020-05-26 22:46:12 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingXML]

2020-05-26 22:46:12 | ------------------------------------

2020-05-26 22:46:12 | on localhost executing action retrieve-item with content type application/xml and payload:
<data><node>node-aaca05be-7fc1-42db-9849-acd17eaff933</node><item-id>item-ad965e4a-05b1-4ac6-a10c-786d16a21ebb</item-id></data>

2020-05-26 22:46:12 | 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-aaca05be-7fc1-42db-9849-acd17eaff933</value></node><item-id label="Item ID" type="text-single"><value>item-ad965e4a-05b1-4ac6-a10c-786d16a21ebb</value></item-id><item label="Item" type="text-multi"><value><item id="item-ad965e4a-05b1-4ac6-a10c-786d16a21ebb"><test>item-ad965e4a-05b1-4ac6-a10c-786d16a21ebb</test></item></value></item></result>

2020-05-26 22:46:12 | [Mutex] notify: [retrieved:item:item-ad965e4a-05b1-4ac6-a10c-786d16a21ebb:payload-matches:true:localhost]

2020-05-26 22:46:12 | [Mutex] received everything.

2020-05-26 22:46:12 | [Mutex] isItemNotified: retrieved:item:item-ad965e4a-05b1-4ac6-a10c-786d16a21ebb:payload-matches:true:localhost :: true

retrieveUserSubscriptions 0.248s
2020-05-26 22:46:12 |

2020-05-26 22:46:12 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingXML]

2020-05-26 22:46:12 | ------------------------------------

2020-05-26 22:46:12 | on localhost executing action retrieve-user-subscriptions with content type application/xml and payload:
<data><jid>admin@localhost</jid></data>

2020-05-26 22:46:12 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
<result><nodes label="Nodes" type="text-multi"><value>node-aaca05be-7fc1-42db-9849-acd17eaff933</value><value>node-639d0f87-25ba-40c3-9031-cb6484f842c9</value></nodes></result>

retrieveUserSubscriptionsWithRegex 0.059s
2020-05-26 22:46:12 |

2020-05-26 22:46:12 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingXML]

2020-05-26 22:46:12 | ------------------------------------

2020-05-26 22:46:12 | on localhost executing action retrieve-user-subscriptions with content type application/xml and payload:
<data><jid>admin@localhost</jid><node-pattern>(?!node-aaca05be-7fc1-42db-9849-acd17eaff933)</node-pattern></data>

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

subscribeNodes 1.135s
2020-05-26 22:46:10 |

2020-05-26 22:46:10 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingXML]

2020-05-26 22:46:10 | ------------------------------------

2020-05-26 22:46:10 | on localhost executing action subscribe-node with content type application/xml and payload:
<data><node>node-aaca05be-7fc1-42db-9849-acd17eaff933</node><jids><value>admin@localhost</value></jids></data>

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

unsubscribeNodes 1.170s
2020-05-26 22:46:12 |

2020-05-26 22:46:12 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingXML]

2020-05-26 22:46:12 | ------------------------------------

2020-05-26 22:46:12 | on localhost executing action unsubscribe-node with content type application/xml and payload:
<data><node>node-aaca05be-7fc1-42db-9849-acd17eaff933</node><jids><value>admin@localhost</value></jids></data>

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