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

Test duration: 10.054s

Passed Tests
tigase.tests.pubsub.TestRestApiUsingXML
configureNodes 1.127s
2020-07-10 15:21:49 |
2020-07-10 15:21:49 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingXML]
2020-07-10 15:21:49 | ------------------------------------
2020-07-10 15:21:49 | [Mutex] waiting for: [configured:node:node-a7c0981a-5ff9-453f-9ee4-fb819ce085be:node-d0333acc-9845-4435-9d7e-ec5f0e98ee51]
2020-07-10 15:21:49 | [Mutex] received everything.
2020-07-10 15:21:49 | [Mutex] isItemNotified: configured:node:node-a7c0981a-5ff9-453f-9ee4-fb819ce085be:node-d0333acc-9845-4435-9d7e-ec5f0e98ee51 :: true
2020-07-10 15:21:50 | [Mutex] waiting for: [received:nodes:d4fa3625-34d0-4ec9-a66b-1a87f4207e62:localhost]
2020-07-10 15:21:50 | [Mutex] received everything.
2020-07-10 15:21:50 | [Mutex] isItemNotified: received:node:d4fa3625-34d0-4ec9-a66b-1a87f4207e62:localhost:node-a7c0981a-5ff9-453f-9ee4-fb819ce085be:Node a7c0981a-5ff9-453f-9ee4-fb819ce085be :: true
2020-07-10 15:21:50 | [Mutex] waiting for: [received:nodes:1ae89f3e-739e-4a8c-ba17-738c132b0735:localhost]
2020-07-10 15:21:50 | [Mutex] received everything.
2020-07-10 15:21:50 | [Mutex] isItemNotified: received:node:1ae89f3e-739e-4a8c-ba17-738c132b0735:localhost:node-a7c0981a-5ff9-453f-9ee4-fb819ce085be:Node a7c0981a-5ff9-453f-9ee4-fb819ce085be :: false
createNodes 1.594s
2020-07-10 15:21:46 |
2020-07-10 15:21:46 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingXML]
2020-07-10 15:21:46 | ------------------------------------
2020-07-10 15:21:46 | on localhost executing action create-node with content type application/xml and payload:
<data><node>node-a7c0981a-5ff9-453f-9ee4-fb819ce085be</node><owner>admin@localhost</owner><pubsub prefix="true"><node_type>leaf</node_type><title>Node a7c0981a-5ff9-453f-9ee4-fb819ce085be</title></pubsub></data>
2020-07-10 15:21:47 | from localhost for action create-node got result code 200 and payload
<result><Note type="fixed"><value>Operation successful</value></Note></result>
2020-07-10 15:21:47 | created pubsub node = PubSubNode[jid=pubsub.localhost,node=Node a7c0981a-5ff9-453f-9ee4-fb819ce085be]
2020-07-10 15:21:48 | [Mutex] waiting for: [received:nodes:166b49ad-e34f-4b00-a682-50581a74f1c3:localhost]
2020-07-10 15:21:48 | [Mutex] received everything.
2020-07-10 15:21:48 | [Mutex] isItemNotified: received:node:166b49ad-e34f-4b00-a682-50581a74f1c3:localhost:node-a7c0981a-5ff9-453f-9ee4-fb819ce085be:Node a7c0981a-5ff9-453f-9ee4-fb819ce085be :: true
createSubnodes 1.027s
2020-07-10 15:21:48 |
2020-07-10 15:21:48 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingXML]
2020-07-10 15:21:48 | ------------------------------------
2020-07-10 15:21:48 | on localhost executing action create-node with content type application/xml and payload:
<data><node>node-d0333acc-9845-4435-9d7e-ec5f0e98ee51</node><owner>admin@localhost</owner><pubsub prefix="true"><node_type>collection</node_type><title>Node d0333acc-9845-4435-9d7e-ec5f0e98ee51</title></pubsub></data>
2020-07-10 15:21:48 | from localhost for action create-node got result code 200 and payload
<result><Note type="fixed"><value>Operation successful</value></Note></result>
2020-07-10 15:21:48 | created pubsub node = PubSubNode[jid=pubsub.localhost,node=Node d0333acc-9845-4435-9d7e-ec5f0e98ee51]
2020-07-10 15:21:49 | [Mutex] waiting for: [received:nodes:5208edc5-9e46-4070-9131-1fb82eb0fb3d:localhost]
2020-07-10 15:21:49 | [Mutex] received everything.
2020-07-10 15:21:49 | [Mutex] isItemNotified: received:node:5208edc5-9e46-4070-9131-1fb82eb0fb3d:localhost:node-d0333acc-9845-4435-9d7e-ec5f0e98ee51:Node d0333acc-9845-4435-9d7e-ec5f0e98ee51 :: true
deleteNodes 1.019s
2020-07-10 15:21:54 |
2020-07-10 15:21:54 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingXML]
2020-07-10 15:21:54 | ------------------------------------
2020-07-10 15:21:54 | on localhost executing action delete-node with content type application/xml and payload:
<data><node>node-d0333acc-9845-4435-9d7e-ec5f0e98ee51</node></data>
2020-07-10 15:21:54 | from localhost for action delete-node got result code 200 and payload
<result><Note type="fixed"><value>Operation successful</value></Note></result>
2020-07-10 15:21:54 | deleted pubsub node = PubSubNode[jid=pubsub.localhost,node=Node d0333acc-9845-4435-9d7e-ec5f0e98ee51]
2020-07-10 15:21:55 | [Mutex] waiting for: [received:nodes:c8152482-db26-45a7-b0f9-637bd035ef54:localhost]
2020-07-10 15:21:55 | [Mutex] waiting for: [received:nodes:c8152482-db26-45a7-b0f9-637bd035ef54:localhost]
2020-07-10 15:21:55 | [Mutex] received everything.
2020-07-10 15:21:55 | [Mutex] isItemNotified: received:node:c8152482-db26-45a7-b0f9-637bd035ef54:localhost:node-d0333acc-9845-4435-9d7e-ec5f0e98ee51:Node d0333acc-9845-4435-9d7e-ec5f0e98ee51 :: false
deleteSubnodes 1.109s
2020-07-10 15:21:53 |
2020-07-10 15:21:53 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingXML]
2020-07-10 15:21:53 | ------------------------------------
2020-07-10 15:21:53 | on localhost executing action delete-node with content type application/xml and payload:
<data><node>node-a7c0981a-5ff9-453f-9ee4-fb819ce085be</node></data>
2020-07-10 15:21:53 | from localhost for action delete-node got result code 200 and payload
<result><Note type="fixed"><value>Operation successful</value></Note></result>
2020-07-10 15:21:53 | deleted pubsub node = PubSubNode[jid=pubsub.localhost,node=Node a7c0981a-5ff9-453f-9ee4-fb819ce085be]
2020-07-10 15:21:54 | [Mutex] waiting for: [received:nodes:87691547-2319-4e97-b804-4fc887f1dc65:localhost]
2020-07-10 15:21:54 | [Mutex] received everything.
2020-07-10 15:21:54 | [Mutex] isItemNotified: received:node:87691547-2319-4e97-b804-4fc887f1dc65:localhost:node-a7c0981a-5ff9-453f-9ee4-fb819ce085be:Node a7c0981a-5ff9-453f-9ee4-fb819ce085be :: false
2020-07-10 15:21:54 | [Mutex] waiting for: [received:nodes:5894eebd-b52a-49a3-a005-073ffb123224:localhost]
2020-07-10 15:21:54 | [Mutex] received everything.
2020-07-10 15:21:54 | [Mutex] isItemNotified: received:node:5894eebd-b52a-49a3-a005-073ffb123224:localhost:node-a7c0981a-5ff9-453f-9ee4-fb819ce085be:Node a7c0981a-5ff9-453f-9ee4-fb819ce085be :: false
publishItemsToNodes 0.303s
2020-07-10 15:21:51 |
2020-07-10 15:21:51 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingXML]
2020-07-10 15:21:51 | ------------------------------------
2020-07-10 15:21:51 | on localhost executing action publish-item with content type application/xml and payload:
<data><node>node-a7c0981a-5ff9-453f-9ee4-fb819ce085be</node><item-id>item-f290dcc1-9e8d-488e-999f-7afd7ca31f10</item-id><entry><test>item-f290dcc1-9e8d-488e-999f-7afd7ca31f10</test></entry></data>
2020-07-10 15:21:51 | 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-f290dcc1-9e8d-488e-999f-7afd7ca31f10</value></item-id></result>
2020-07-10 15:21:51 | [Mutex] waiting for: [published:item:notifieditem-f290dcc1-9e8d-488e-999f-7afd7ca31f10:admin@localhost]
2020-07-10 15:21:51 | [Mutex] received everything.
2020-07-10 15:21:51 | [Mutex] isItemNotified: published:item:notifieditem-f290dcc1-9e8d-488e-999f-7afd7ca31f10:admin@localhost :: true
retractItemsFromNodes 0.215s
2020-07-10 15:21:52 |
2020-07-10 15:21:52 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingXML]
2020-07-10 15:21:52 | ------------------------------------
2020-07-10 15:21:52 | on localhost executing action delete-item with content type application/xml and payload:
<data><node>node-a7c0981a-5ff9-453f-9ee4-fb819ce085be</node><item-id>item-f290dcc1-9e8d-488e-999f-7afd7ca31f10</item-id></data>
2020-07-10 15:21:52 | 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-f290dcc1-9e8d-488e-999f-7afd7ca31f10</value></item-id></result>
2020-07-10 15:21:52 | [Mutex] received everything.
2020-07-10 15:21:52 | [Mutex] isItemNotified: retracted:item:notifieditem-f290dcc1-9e8d-488e-999f-7afd7ca31f10:admin@localhost :: true
retrieveItemsFromNodes 0.185s
2020-07-10 15:21:51 |
2020-07-10 15:21:51 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingXML]
2020-07-10 15:21:51 | ------------------------------------
2020-07-10 15:21:51 | on localhost executing action retrieve-item with content type application/xml and payload:
<data><node>node-a7c0981a-5ff9-453f-9ee4-fb819ce085be</node><item-id>item-f290dcc1-9e8d-488e-999f-7afd7ca31f10</item-id></data>
2020-07-10 15:21:51 | 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-a7c0981a-5ff9-453f-9ee4-fb819ce085be</value></node><item-id type="text-single" label="Item ID"><value>item-f290dcc1-9e8d-488e-999f-7afd7ca31f10</value></item-id><item type="text-multi" label="Item"><value><item id="item-f290dcc1-9e8d-488e-999f-7afd7ca31f10"><test>item-f290dcc1-9e8d-488e-999f-7afd7ca31f10</test></item></value></item></result>
2020-07-10 15:21:51 | [Mutex] notify: [retrieved:item:item-f290dcc1-9e8d-488e-999f-7afd7ca31f10:payload-matches:true:localhost]
2020-07-10 15:21:51 | [Mutex] received everything.
2020-07-10 15:21:51 | [Mutex] isItemNotified: retrieved:item:item-f290dcc1-9e8d-488e-999f-7afd7ca31f10:payload-matches:true:localhost :: true
retrieveUserSubscriptions 0.172s
2020-07-10 15:21:51 |
2020-07-10 15:21:51 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingXML]
2020-07-10 15:21:51 | ------------------------------------
2020-07-10 15:21:51 | on localhost executing action retrieve-user-subscriptions with content type application/xml and payload:
<data><jid>admin@localhost</jid></data>
2020-07-10 15:21:52 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
<result><nodes type="text-multi" label="Nodes"><value>test</value><value>node-d0333acc-9845-4435-9d7e-ec5f0e98ee51</value><value>node-a7c0981a-5ff9-453f-9ee4-fb819ce085be</value></nodes></result>
retrieveUserSubscriptionsWithRegex 0.062s
2020-07-10 15:21:52 |
2020-07-10 15:21:52 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingXML]
2020-07-10 15:21:52 | ------------------------------------
2020-07-10 15:21:52 | on localhost executing action retrieve-user-subscriptions with content type application/xml and payload:
<data><jid>admin@localhost</jid><node-pattern>(?!node-a7c0981a-5ff9-453f-9ee4-fb819ce085be)</node-pattern></data>
2020-07-10 15:21:52 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
<result><nodes type="text-multi" label="Nodes"/></result>
subscribeNodes 1.097s
2020-07-10 15:21:50 |
2020-07-10 15:21:50 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingXML]
2020-07-10 15:21:50 | ------------------------------------
2020-07-10 15:21:50 | on localhost executing action subscribe-node with content type application/xml and payload:
<data><node>node-a7c0981a-5ff9-453f-9ee4-fb819ce085be</node><jids><value>admin@localhost</value></jids></data>
2020-07-10 15:21:50 | from localhost for action subscribe-node got result code 200 and payload
<result><Note type="fixed"><value>Operation successful</value></Note></result>
unsubscribeNodes 1.292s
2020-07-10 15:21:52 |
2020-07-10 15:21:52 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingXML]
2020-07-10 15:21:52 | ------------------------------------
2020-07-10 15:21:52 | on localhost executing action unsubscribe-node with content type application/xml and payload:
<data><node>node-a7c0981a-5ff9-453f-9ee4-fb819ce085be</node><jids><value>admin@localhost</value></jids></data>
2020-07-10 15:21:52 | from localhost for action unsubscribe-node got result code 200 and payload
<result><Note type="fixed"><value>Operation successful</value></Note></result>