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

Test duration: 9,856s

Passed Tests
tigase.tests.pubsub.TestRestApiUsingXML
configureNodes 1,154s
2020-07-23 11:58:13 |

2020-07-23 11:58:13 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingXML]

2020-07-23 11:58:13 | ------------------------------------

2020-07-23 11:58:13 | [Mutex] waiting for: [configured:node:node-7cb1584a-5752-4c8f-8295-36417406c42f:node-301c18c3-6c7f-48cf-aea9-3a2db2998117]

2020-07-23 11:58:13 | [Mutex] received everything.

2020-07-23 11:58:13 | [Mutex] isItemNotified: configured:node:node-7cb1584a-5752-4c8f-8295-36417406c42f:node-301c18c3-6c7f-48cf-aea9-3a2db2998117 :: true

2020-07-23 11:58:14 | [Mutex] waiting for: [received:nodes:9832f8d2-0517-4b90-8c92-83682449369a:localhost]

2020-07-23 11:58:14 | [Mutex] received everything.

2020-07-23 11:58:14 | [Mutex] isItemNotified: received:node:9832f8d2-0517-4b90-8c92-83682449369a:localhost:node-7cb1584a-5752-4c8f-8295-36417406c42f:Node 7cb1584a-5752-4c8f-8295-36417406c42f :: true

2020-07-23 11:58:14 | [Mutex] waiting for: [received:nodes:885d39c6-d62f-435a-a97e-74a656179cd6:localhost]

2020-07-23 11:58:14 | [Mutex] received everything.

2020-07-23 11:58:14 | [Mutex] isItemNotified: received:node:885d39c6-d62f-435a-a97e-74a656179cd6:localhost:node-7cb1584a-5752-4c8f-8295-36417406c42f:Node 7cb1584a-5752-4c8f-8295-36417406c42f :: false

createNodes 1,619s
2020-07-23 11:58:10 |

2020-07-23 11:58:10 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingXML]

2020-07-23 11:58:10 | ------------------------------------

2020-07-23 11:58:10 | on localhost executing action create-node with content type application/xml and payload:
<data><node>node-7cb1584a-5752-4c8f-8295-36417406c42f</node><owner>admin@test-domain.com</owner><pubsub prefix="true"><node_type>leaf</node_type><title>Node 7cb1584a-5752-4c8f-8295-36417406c42f</title></pubsub></data>

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

2020-07-23 11:58:12 | [Mutex] waiting for: [received:nodes:f5192b69-c4b6-4328-aeba-02dfdd4f300d:localhost]

2020-07-23 11:58:12 | [Mutex] received everything.

2020-07-23 11:58:12 | [Mutex] isItemNotified: received:node:f5192b69-c4b6-4328-aeba-02dfdd4f300d:localhost:node-7cb1584a-5752-4c8f-8295-36417406c42f:Node 7cb1584a-5752-4c8f-8295-36417406c42f :: true

createSubnodes 1,043s
2020-07-23 11:58:12 |

2020-07-23 11:58:12 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingXML]

2020-07-23 11:58:12 | ------------------------------------

2020-07-23 11:58:12 | on localhost executing action create-node with content type application/xml and payload:
<data><node>node-301c18c3-6c7f-48cf-aea9-3a2db2998117</node><owner>admin@test-domain.com</owner><pubsub prefix="true"><node_type>collection</node_type><title>Node 301c18c3-6c7f-48cf-aea9-3a2db2998117</title></pubsub></data>

2020-07-23 11:58:12 | from localhost for action create-node got result code 200 and payload
<result><Note type="fixed"><value>Operation successful</value></Note></result>

2020-07-23 11:58:13 | [Mutex] waiting for: [received:nodes:eb42f4c0-af79-454a-bbcc-ff687428cb89:localhost]

2020-07-23 11:58:13 | [Mutex] received everything.

2020-07-23 11:58:13 | [Mutex] isItemNotified: received:node:eb42f4c0-af79-454a-bbcc-ff687428cb89:localhost:node-301c18c3-6c7f-48cf-aea9-3a2db2998117:Node 301c18c3-6c7f-48cf-aea9-3a2db2998117 :: true

deleteNodes 1,030s
2020-07-23 11:58:18 |

2020-07-23 11:58:18 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingXML]

2020-07-23 11:58:18 | ------------------------------------

2020-07-23 11:58:18 | on localhost executing action delete-node with content type application/xml and payload:
<data><node>node-301c18c3-6c7f-48cf-aea9-3a2db2998117</node></data>

2020-07-23 11:58:18 | from localhost for action delete-node got result code 200 and payload
<result><Note type="fixed"><value>Operation successful</value></Note></result>

2020-07-23 11:58:19 | [Mutex] waiting for: [received:nodes:dd62e62b-6694-449a-af78-8ab3cf839a27:localhost]

2020-07-23 11:58:19 | [Mutex] waiting for: [received:nodes:dd62e62b-6694-449a-af78-8ab3cf839a27:localhost]

2020-07-23 11:58:19 | [Mutex] waiting for: [received:nodes:dd62e62b-6694-449a-af78-8ab3cf839a27:localhost]

2020-07-23 11:58:19 | [Mutex] received everything.

2020-07-23 11:58:19 | [Mutex] isItemNotified: received:node:dd62e62b-6694-449a-af78-8ab3cf839a27:localhost:node-301c18c3-6c7f-48cf-aea9-3a2db2998117:Node 301c18c3-6c7f-48cf-aea9-3a2db2998117 :: false

deleteSubnodes 1,131s
2020-07-23 11:58:17 |

2020-07-23 11:58:17 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingXML]

2020-07-23 11:58:17 | ------------------------------------

2020-07-23 11:58:17 | on localhost executing action delete-node with content type application/xml and payload:
<data><node>node-7cb1584a-5752-4c8f-8295-36417406c42f</node></data>

2020-07-23 11:58:17 | from localhost for action delete-node got result code 200 and payload
<result><Note type="fixed"><value>Operation successful</value></Note></result>

2020-07-23 11:58:18 | [Mutex] waiting for: [received:nodes:96220d74-9c33-460d-aaf7-3cf8a50af96c:localhost]

2020-07-23 11:58:18 | [Mutex] received everything.

2020-07-23 11:58:18 | [Mutex] isItemNotified: received:node:96220d74-9c33-460d-aaf7-3cf8a50af96c:localhost:node-7cb1584a-5752-4c8f-8295-36417406c42f:Node 7cb1584a-5752-4c8f-8295-36417406c42f :: false

2020-07-23 11:58:18 | [Mutex] waiting for: [received:nodes:7958686c-4329-43c7-b7bd-fe8bbbe708c8:localhost]

2020-07-23 11:58:18 | [Mutex] received everything.

2020-07-23 11:58:18 | [Mutex] isItemNotified: received:node:7958686c-4329-43c7-b7bd-fe8bbbe708c8:localhost:node-7cb1584a-5752-4c8f-8295-36417406c42f:Node 7cb1584a-5752-4c8f-8295-36417406c42f :: false

publishItemsToNodes 0,340s
2020-07-23 11:58:15 |

2020-07-23 11:58:15 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingXML]

2020-07-23 11:58:15 | ------------------------------------

2020-07-23 11:58:15 | on localhost executing action publish-item with content type application/xml and payload:
<data><node>node-7cb1584a-5752-4c8f-8295-36417406c42f</node><item-id>item-57bdab2c-13d3-49e5-a8a7-d4a2f23fa417</item-id><entry><test>item-57bdab2c-13d3-49e5-a8a7-d4a2f23fa417</test></entry></data>

2020-07-23 11:58:15 | 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-57bdab2c-13d3-49e5-a8a7-d4a2f23fa417</value></item-id></result>

2020-07-23 11:58:15 | [Mutex] waiting for: [published:item:notifieditem-57bdab2c-13d3-49e5-a8a7-d4a2f23fa417:admin@test-domain.com]

2020-07-23 11:58:15 | [Mutex] received everything.

2020-07-23 11:58:15 | [Mutex] isItemNotified: published:item:notifieditem-57bdab2c-13d3-49e5-a8a7-d4a2f23fa417:admin@test-domain.com :: true

retractItemsFromNodes 0,201s
2020-07-23 11:58:16 |

2020-07-23 11:58:16 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingXML]

2020-07-23 11:58:16 | ------------------------------------

2020-07-23 11:58:16 | on localhost executing action delete-item with content type application/xml and payload:
<data><node>node-7cb1584a-5752-4c8f-8295-36417406c42f</node><item-id>item-57bdab2c-13d3-49e5-a8a7-d4a2f23fa417</item-id></data>

2020-07-23 11:58:16 | 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-57bdab2c-13d3-49e5-a8a7-d4a2f23fa417</value></item-id></result>

2020-07-23 11:58:16 | [Mutex] waiting for: [retracted:item:notifieditem-57bdab2c-13d3-49e5-a8a7-d4a2f23fa417:admin@test-domain.com]

2020-07-23 11:58:16 | [Mutex] received everything.

2020-07-23 11:58:16 | [Mutex] isItemNotified: retracted:item:notifieditem-57bdab2c-13d3-49e5-a8a7-d4a2f23fa417:admin@test-domain.com :: true

retrieveItemsFromNodes 0,137s
2020-07-23 11:58:15 |

2020-07-23 11:58:15 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingXML]

2020-07-23 11:58:15 | ------------------------------------

2020-07-23 11:58:15 | on localhost executing action retrieve-item with content type application/xml and payload:
<data><node>node-7cb1584a-5752-4c8f-8295-36417406c42f</node><item-id>item-57bdab2c-13d3-49e5-a8a7-d4a2f23fa417</item-id></data>

2020-07-23 11:58:15 | 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-7cb1584a-5752-4c8f-8295-36417406c42f</value></node><item-id type="text-single" label="Item ID"><value>item-57bdab2c-13d3-49e5-a8a7-d4a2f23fa417</value></item-id><item type="text-multi" label="Item"><value><item id="item-57bdab2c-13d3-49e5-a8a7-d4a2f23fa417"><test>item-57bdab2c-13d3-49e5-a8a7-d4a2f23fa417</test></item></value></item></result>

2020-07-23 11:58:15 | [Mutex] notify: [retrieved:item:item-57bdab2c-13d3-49e5-a8a7-d4a2f23fa417:payload-matches:true:localhost]

2020-07-23 11:58:15 | [Mutex] received everything.

2020-07-23 11:58:15 | [Mutex] isItemNotified: retrieved:item:item-57bdab2c-13d3-49e5-a8a7-d4a2f23fa417:payload-matches:true:localhost :: true

retrieveUserSubscriptions 0,124s
2020-07-23 11:58:15 |

2020-07-23 11:58:15 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingXML]

2020-07-23 11:58:15 | ------------------------------------

2020-07-23 11:58:15 | on localhost executing action retrieve-user-subscriptions with content type application/xml and payload:
<data><jid>admin@test-domain.com</jid></data>

2020-07-23 11:58:16 | 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-301c18c3-6c7f-48cf-aea9-3a2db2998117</value><value>node-7cb1584a-5752-4c8f-8295-36417406c42f</value></nodes></result>

retrieveUserSubscriptionsWithRegex 0,015s
2020-07-23 11:58:16 |

2020-07-23 11:58:16 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingXML]

2020-07-23 11:58:16 | ------------------------------------

2020-07-23 11:58:16 | on localhost executing action retrieve-user-subscriptions with content type application/xml and payload:
<data><jid>admin@test-domain.com</jid><node-pattern>(?!node-7cb1584a-5752-4c8f-8295-36417406c42f)</node-pattern></data>

2020-07-23 11:58:16 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
<result><nodes type="text-multi" label="Nodes"/></result>

subscribeNodes 1,208s
2020-07-23 11:58:14 |

2020-07-23 11:58:14 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingXML]

2020-07-23 11:58:14 | ------------------------------------

2020-07-23 11:58:14 | on localhost executing action subscribe-node with content type application/xml and payload:
<data><node>node-7cb1584a-5752-4c8f-8295-36417406c42f</node><jids><value>admin@test-domain.com</value></jids></data>

2020-07-23 11:58:14 | from localhost for action subscribe-node got result code 200 and payload
<result><Note type="fixed"><value>Operation successful</value></Note></result>

unsubscribeNodes 1,158s
2020-07-23 11:58:16 |

2020-07-23 11:58:16 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingXML]

2020-07-23 11:58:16 | ------------------------------------

2020-07-23 11:58:16 | on localhost executing action unsubscribe-node with content type application/xml and payload:
<data><node>node-7cb1584a-5752-4c8f-8295-36417406c42f</node><jids><value>admin@test-domain.com</value></jids></data>

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