Commit Graph

10 Commits (892a8fa2e5a60f2390c74d6bf0599e942a80983c)

Author SHA1 Message Date
Javier Sánchez Parra c2c6ce93b1 #915 Add large HTTP response test
This commit adds a test for HTTP responses that are too large to fit in
ogServer response buffer.

It also moves the basic sql data used for the other tests to its own
file, easing its reuse in several files.
2021-04-19 19:05:15 +02:00
Javier Sánchez Parra 0b5c0813fa #915 Stop ogServer service in run-test.py
Python test script launches its own ogServer to run tests. If there is
another ogServer running at the same time, it interferes with tests.

Installing ogServer in a machine results in an enabled ogServer service.

Stop ogServer service before tests just in case the user installed
ogServer in the machine.
2021-04-19 15:38:47 +02:00
Javier Sánchez Parra f798e03e18 #915 Add Valgrind to python tests
ogServer has some memory bugs we want to solve and avoid in the future.
Run ogServer with Valgrind to help us find those errors.
2021-02-23 10:53:00 +01:00
Roberto Hueso Gómez 4a06c7a391 #915 Update run-tests.py to the latest changes
This handles changes in:
- The host of the DB.
- New json config file.
2020-10-07 14:05:56 +02:00
Roberto Hueso Gómez 5b1efd0b53 #915 Add default SQL schema for tests
This schema is now adapted to work on this repository instead of the
"OpenGnsys" general repository.
2020-10-07 14:05:02 +02:00
OpenGnSys Support Team 333abbe160 #986 rename to ogserver 2020-06-19 11:19:55 +02:00
Javier Sánchez Parra 882fec820e #915 check ogAdmServer binary existence when running pythong tests
Currently, if you try to run the python test without the ogAdmServer
binary, it will throw an exception.

This patch adds a check to ensure the existence of the ogAdmServer binary
at the beginning of the script.

 # python3 run-tests.py
 You need to build the ogAdmServer binary to run these tests :-)
2019-08-28 17:54:57 +02:00
Javier Sánchez Parra 880cc90c14 #915 Improve test output using unittest discover
* Call the tests with python module unittest. In particular, the
  discover function.

* Rename tests files to meet the default requirements of discover
  function.
2019-07-05 17:41:26 +02:00
Javier Sánchez Parra e45455ec82 #915 Remove unnecessary return in ogAdmServer/tests/run-tests.py
No need to explicit return call, remove it.
2019-06-12 11:02:47 +02:00
Javier Sánchez Parra 727a109f7d #915 add unit test infrastructure for REST API
This python script creates a database and starts ogAdmServer to run the
tests.  This requires root to be launched:

	# ./run-tests.py

From the 'tests' folder.
2019-05-31 11:35:42 +02:00