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

Test duration: 9.872s

Passed Tests
tigase.tests.pubsub.TestRestApiUsingXML
configureNodes 1.084s
2020-06-30 01:11:09 |

2020-06-30 01:11:09 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingXML]

2020-06-30 01:11:09 | ------------------------------------

2020-06-30 01:11:09 | [Mutex] waiting for: [configured:node:node-4c7601a7-5556-4d45-b2c9-48fc01b35125:node-5fc575ea-ab8a-47de-af52-a97b0b2cb44c]

2020-06-30 01:11:09 | [Mutex] received everything.

2020-06-30 01:11:09 | [Mutex] isItemNotified: configured:node:node-4c7601a7-5556-4d45-b2c9-48fc01b35125:node-5fc575ea-ab8a-47de-af52-a97b0b2cb44c :: true

2020-06-30 01:11:10 | [Mutex] waiting for: [received:nodes:4129c49d-7c44-45cd-b6aa-b82d7aa4d0bb:localhost]

2020-06-30 01:11:10 | [Mutex] received everything.

2020-06-30 01:11:10 | [Mutex] isItemNotified: received:node:4129c49d-7c44-45cd-b6aa-b82d7aa4d0bb:localhost:node-4c7601a7-5556-4d45-b2c9-48fc01b35125:Node 4c7601a7-5556-4d45-b2c9-48fc01b35125 :: true

2020-06-30 01:11:10 | [Mutex] waiting for: [received:nodes:b8203d25-36c2-4b31-8832-a03b42668796:localhost]

2020-06-30 01:11:10 | [Mutex] received everything.

2020-06-30 01:11:10 | [Mutex] isItemNotified: received:node:b8203d25-36c2-4b31-8832-a03b42668796:localhost:node-4c7601a7-5556-4d45-b2c9-48fc01b35125:Node 4c7601a7-5556-4d45-b2c9-48fc01b35125 :: false

createNodes 1.488s
2020-06-30 01:11:06 |

2020-06-30 01:11:06 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingXML]

2020-06-30 01:11:06 | ------------------------------------

2020-06-30 01:11:06 | on localhost executing action create-node with content type application/xml and payload:
<data><node>node-4c7601a7-5556-4d45-b2c9-48fc01b35125</node><owner>admin@localhost</owner><pubsub prefix="true"><node_type>leaf</node_type><title>Node 4c7601a7-5556-4d45-b2c9-48fc01b35125</title></pubsub></data>

2020-06-30 01:11:07 | 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 01:11:08 | [Mutex] waiting for: [received:nodes:3366e6f2-9b92-4a92-a93a-9982d00482e9:localhost]

2020-06-30 01:11:08 | [Mutex] received everything.

2020-06-30 01:11:08 | [Mutex] isItemNotified: received:node:3366e6f2-9b92-4a92-a93a-9982d00482e9:localhost:node-4c7601a7-5556-4d45-b2c9-48fc01b35125:Node 4c7601a7-5556-4d45-b2c9-48fc01b35125 :: true

createSubnodes 1.019s
2020-06-30 01:11:08 |

2020-06-30 01:11:08 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingXML]

2020-06-30 01:11:08 | ------------------------------------

2020-06-30 01:11:08 | on localhost executing action create-node with content type application/xml and payload:
<data><node>node-5fc575ea-ab8a-47de-af52-a97b0b2cb44c</node><owner>admin@localhost</owner><pubsub prefix="true"><node_type>collection</node_type><title>Node 5fc575ea-ab8a-47de-af52-a97b0b2cb44c</title></pubsub></data>

2020-06-30 01:11:08 | 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 01:11:09 | [Mutex] waiting for: [received:nodes:0053d7e1-d8a8-42d5-a8d0-4444b657fcb3:localhost]

2020-06-30 01:11:09 | [Mutex] received everything.

2020-06-30 01:11:09 | [Mutex] isItemNotified: received:node:0053d7e1-d8a8-42d5-a8d0-4444b657fcb3:localhost:node-5fc575ea-ab8a-47de-af52-a97b0b2cb44c:Node 5fc575ea-ab8a-47de-af52-a97b0b2cb44c :: true

deleteNodes 1.017s
2020-06-30 01:11:14 |

2020-06-30 01:11:14 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingXML]

2020-06-30 01:11:14 | ------------------------------------

2020-06-30 01:11:14 | on localhost executing action delete-node with content type application/xml and payload:
<data><node>node-5fc575ea-ab8a-47de-af52-a97b0b2cb44c</node></data>

2020-06-30 01:11:14 | 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 01:11:15 | [Mutex] waiting for: [received:nodes:3d425605-bdda-4dd6-8505-1c1d4a211e7e:localhost]

2020-06-30 01:11:15 | [Mutex] received everything.

2020-06-30 01:11:15 | [Mutex] isItemNotified: received:node:3d425605-bdda-4dd6-8505-1c1d4a211e7e:localhost:node-5fc575ea-ab8a-47de-af52-a97b0b2cb44c:Node 5fc575ea-ab8a-47de-af52-a97b0b2cb44c :: false

deleteSubnodes 1.139s
2020-06-30 01:11:13 |

2020-06-30 01:11:13 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingXML]

2020-06-30 01:11:13 | ------------------------------------

2020-06-30 01:11:13 | on localhost executing action delete-node with content type application/xml and payload:
<data><node>node-4c7601a7-5556-4d45-b2c9-48fc01b35125</node></data>

2020-06-30 01:11:13 | 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 01:11:14 | [Mutex] waiting for: [received:nodes:aa14d0fe-ee63-4b01-a99a-3fe4a04a3c97:localhost]

2020-06-30 01:11:14 | [Mutex] received everything.

2020-06-30 01:11:14 | [Mutex] isItemNotified: received:node:aa14d0fe-ee63-4b01-a99a-3fe4a04a3c97:localhost:node-4c7601a7-5556-4d45-b2c9-48fc01b35125:Node 4c7601a7-5556-4d45-b2c9-48fc01b35125 :: false

2020-06-30 01:11:14 | [Mutex] waiting for: [received:nodes:c5a83aa1-d02a-45ec-a41c-7deaf434a24b:localhost]

2020-06-30 01:11:14 | [Mutex] received everything.

2020-06-30 01:11:14 | [Mutex] isItemNotified: received:node:c5a83aa1-d02a-45ec-a41c-7deaf434a24b:localhost:node-4c7601a7-5556-4d45-b2c9-48fc01b35125:Node 4c7601a7-5556-4d45-b2c9-48fc01b35125 :: false

publishItemsToNodes 0.240s
2020-06-30 01:11:11 |

2020-06-30 01:11:11 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingXML]

2020-06-30 01:11:11 | ------------------------------------

2020-06-30 01:11:11 | on localhost executing action publish-item with content type application/xml and payload:
<data><node>node-4c7601a7-5556-4d45-b2c9-48fc01b35125</node><item-id>item-87b5e0cf-5f59-4ff4-85ae-d7c089008c1a</item-id><entry><test>item-87b5e0cf-5f59-4ff4-85ae-d7c089008c1a</test></entry></data>

2020-06-30 01:11:11 | 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-87b5e0cf-5f59-4ff4-85ae-d7c089008c1a</value></item-id></result>

2020-06-30 01:11:11 | [Mutex] received everything.

2020-06-30 01:11:11 | [Mutex] isItemNotified: published:item:notifieditem-87b5e0cf-5f59-4ff4-85ae-d7c089008c1a:admin@localhost :: true

retractItemsFromNodes 0.168s
2020-06-30 01:11:12 |

2020-06-30 01:11:12 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingXML]

2020-06-30 01:11:12 | ------------------------------------

2020-06-30 01:11:12 | on localhost executing action delete-item with content type application/xml and payload:
<data><node>node-4c7601a7-5556-4d45-b2c9-48fc01b35125</node><item-id>item-87b5e0cf-5f59-4ff4-85ae-d7c089008c1a</item-id></data>

2020-06-30 01:11:12 | 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-87b5e0cf-5f59-4ff4-85ae-d7c089008c1a</value></item-id></result>

2020-06-30 01:11:12 | [Mutex] received everything.

2020-06-30 01:11:12 | [Mutex] isItemNotified: retracted:item:notifieditem-87b5e0cf-5f59-4ff4-85ae-d7c089008c1a:admin@localhost :: true

retrieveItemsFromNodes 0.166s
2020-06-30 01:11:11 |

2020-06-30 01:11:11 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingXML]

2020-06-30 01:11:11 | ------------------------------------

2020-06-30 01:11:11 | on localhost executing action retrieve-item with content type application/xml and payload:
<data><node>node-4c7601a7-5556-4d45-b2c9-48fc01b35125</node><item-id>item-87b5e0cf-5f59-4ff4-85ae-d7c089008c1a</item-id></data>

2020-06-30 01:11:11 | 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-4c7601a7-5556-4d45-b2c9-48fc01b35125</value></node><item-id type="text-single" label="Item ID"><value>item-87b5e0cf-5f59-4ff4-85ae-d7c089008c1a</value></item-id><item type="text-multi" label="Item"><value><item id="item-87b5e0cf-5f59-4ff4-85ae-d7c089008c1a"><test>item-87b5e0cf-5f59-4ff4-85ae-d7c089008c1a</test></item></value></item></result>

2020-06-30 01:11:11 | [Mutex] notify: [retrieved:item:item-87b5e0cf-5f59-4ff4-85ae-d7c089008c1a:payload-matches:true:localhost]

2020-06-30 01:11:11 | [Mutex] received everything.

2020-06-30 01:11:11 | [Mutex] isItemNotified: retrieved:item:item-87b5e0cf-5f59-4ff4-85ae-d7c089008c1a:payload-matches:true:localhost :: true

retrieveUserSubscriptions 0.171s
2020-06-30 01:11:11 |

2020-06-30 01:11:11 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingXML]

2020-06-30 01:11:11 | ------------------------------------

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

2020-06-30 01:11:11 | 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-4c7601a7-5556-4d45-b2c9-48fc01b35125</value><value>node-5fc575ea-ab8a-47de-af52-a97b0b2cb44c</value></nodes></result>

retrieveUserSubscriptionsWithRegex 0.054s
2020-06-30 01:11:11 |

2020-06-30 01:11:11 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingXML]

2020-06-30 01:11:11 | ------------------------------------

2020-06-30 01:11:11 | on localhost executing action retrieve-user-subscriptions with content type application/xml and payload:
<data><jid>admin@localhost</jid><node-pattern>(?!node-4c7601a7-5556-4d45-b2c9-48fc01b35125)</node-pattern></data>

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

subscribeNodes 1.137s
2020-06-30 01:11:10 |

2020-06-30 01:11:10 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingXML]

2020-06-30 01:11:10 | ------------------------------------

2020-06-30 01:11:10 | on localhost executing action subscribe-node with content type application/xml and payload:
<data><node>node-4c7601a7-5556-4d45-b2c9-48fc01b35125</node><jids><value>admin@localhost</value></jids></data>

2020-06-30 01:11: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.339s
2020-06-30 01:11:12 |

2020-06-30 01:11:12 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingXML]

2020-06-30 01:11:12 | ------------------------------------

2020-06-30 01:11:12 | on localhost executing action unsubscribe-node with content type application/xml and payload:
<data><node>node-4c7601a7-5556-4d45-b2c9-48fc01b35125</node><jids><value>admin@localhost</value></jids></data>

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