Project

General

Profile

Task #4728

PubSub REST API - create tests

Added by Wojciech Kapcia TigaseTeam about 2 years ago. Updated almost 2 years ago.

Status:
Closed
Priority:
Normal
Target version:
-
Start date:
2016-11-16
Due date:
2016-12-02
% Done:

100%

Estimated time:

Description

Create tests for JSON

Associated revisions

Revision 71c516d6 (diff)
Added by Andrzej Wójcik IoT 1 CloudTigaseTeam about 2 years ago

Task #4728 - fix minor issue with element equals() method

Revision d6f8635c (diff)
Added by Andrzej Wójcik IoT 1 CloudTigaseTeam about 2 years ago

Task #4728 - minor fixes in PubSub REST API found during creation of tests in TTS-NG

Revision 043b02e3 (diff)
Added by Andrzej Wójcik IoT 1 CloudTigaseTeam about 2 years ago

Task #4728 - added test cases for PubSub REST API with use of JSON payload

Revision 55020d40 (diff)
Added by Andrzej Wójcik IoT 1 CloudTigaseTeam about 2 years ago

Task #4728 - added logging of HTTP requests done for REST API

History

#1 Updated by Andrzej Wójcik IoT 1 CloudTigaseTeam about 2 years ago

  • Status changed from New to In QA
  • Assignee changed from Andrzej Wójcik to Wojciech Kapcia
  • % Done changed from 0 to 100

I've added test cases for JSON and added missing test for XML. Now I think PubSub REST API is properly covered with test cases.

#2 Updated by Wojciech Kapcia TigaseTeam about 2 years ago

  • Due date set to 2016-12-02
  • Status changed from In QA to Feedback
  • Assignee changed from Wojciech Kapcia to Andrzej Wójcik

Directly executed tests, i.e.: mvn -Dtest=tigase.tests.pubsub.TestRestApiUsingJSON test and mvn -Dtest=tigase.tests.pubsub.TestRestApiUsingXML test yield success

Tests run: 12, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 8.832 sec - in tigase.tests.pubsub.TestRestApiUsingJSON
createNodes(tigase.tests.pubsub.TestRestApiUsingJSON)  Time elapsed: 1.365 sec
createSubnodes(tigase.tests.pubsub.TestRestApiUsingJSON)  Time elapsed: 2.236 sec
configureNodes(tigase.tests.pubsub.TestRestApiUsingJSON)  Time elapsed: 0.001 sec
subscribeNodes(tigase.tests.pubsub.TestRestApiUsingJSON)  Time elapsed: 0.849 sec
publishItemsToNodes(tigase.tests.pubsub.TestRestApiUsingJSON)  Time elapsed: 0.027 sec
retrieveItemsFromNodes(tigase.tests.pubsub.TestRestApiUsingJSON)  Time elapsed: 0 sec
retrieveUserSubscriptions(tigase.tests.pubsub.TestRestApiUsingJSON)  Time elapsed: 0 sec
retrieveUserSubscriptionsWithRegex(tigase.tests.pubsub.TestRestApiUsingJSON)  Time elapsed: 0 sec
retractItemsFromNodes(tigase.tests.pubsub.TestRestApiUsingJSON)  Time elapsed: 0.001 sec
unsubscribeNodes(tigase.tests.pubsub.TestRestApiUsingJSON)  Time elapsed: 0.953 sec
deleteSubnodes(tigase.tests.pubsub.TestRestApiUsingJSON)  Time elapsed: 1.032 sec
deleteNodes(tigase.tests.pubsub.TestRestApiUsingJSON)  Time elapsed: 1.297 sec
…
createNodes(tigase.tests.pubsub.TestRestApiUsingXML)  Time elapsed: 1.087 sec
createSubnodes(tigase.tests.pubsub.TestRestApiUsingXML)  Time elapsed: 1.019 sec
configureNodes(tigase.tests.pubsub.TestRestApiUsingXML)  Time elapsed: 1.049 sec
subscribeNodes(tigase.tests.pubsub.TestRestApiUsingXML)  Time elapsed: 1.005 sec
publishItemsToNodes(tigase.tests.pubsub.TestRestApiUsingXML)  Time elapsed: 0.032 sec
retrieveItemsFromNodes(tigase.tests.pubsub.TestRestApiUsingXML)  Time elapsed: 0.012 sec
retrieveUserSubscriptions(tigase.tests.pubsub.TestRestApiUsingXML)  Time elapsed: 0.011 sec
retrieveUserSubscriptionsWithRegex(tigase.tests.pubsub.TestRestApiUsingXML)  Time elapsed: 0.006 sec
retractItemsFromNodes(tigase.tests.pubsub.TestRestApiUsingXML)  Time elapsed: 0.031 sec
unsubscribeNodes(tigase.tests.pubsub.TestRestApiUsingXML)  Time elapsed: 0.994 sec
deleteSubnodes(tigase.tests.pubsub.TestRestApiUsingXML)  Time elapsed: 1.031 sec
deleteNodes(tigase.tests.pubsub.TestRestApiUsingXML)  Time elapsed: 1.023 sec

However, could you please include debug/logs from the particular REST parts? Right now only debug from ensureNodeItemExists() (because of logger setup for JaXMPP) exists which is a bit confusing at first while looking at the test log.

#3 Updated by Andrzej Wójcik IoT 1 CloudTigaseTeam about 2 years ago

  • Status changed from Feedback to In QA
  • Assignee changed from Andrzej Wójcik to Wojciech Kapcia

I added logging for REST API calls.

#4 Updated by Wojciech Kapcia TigaseTeam about 2 years ago

  • Status changed from In QA to Closed

#5 Avatar?id=6023&size=24x24 Updated by Artur Hefczyc TigaseTeam almost 2 years ago

  • Target version deleted (tigase-server-8.0.0)

Also available in: Atom PDF