summaryrefslogtreecommitdiffstats
path: root/tests/units/test_0006_post_session.py
Commit message (Collapse)AuthorAgeFilesLines
* #915 add GET /session testDiego Crespo Quinta2020-11-171-4/+0
|
* #915 Fix expected returned codes in GET /session and GET /software testsDiego Crespo Quinta2020-10-221-1/+1
| | | | Fix incorrect status code.
* #915 Fix several test errorsDiego Crespo Quinta2020-10-221-1/+1
| | | | | | | | | | Test 0006: add json to GET /session and update expected return code. Test 0012: add json to GET /software and update expected return code (200), in this case json fields are integer, not string. Test 0020: remove it, /image/create/incremental does not exist anymore. Test 0021: same as before for /image/restore/basic Test 0022: same as before for /image/restore/incremental Test 0023: rename to test_0020.
* #915 Test malformed payload for POST commandsRoberto Hueso Gómez2019-11-141-0/+9
| | | | | | | | | | | | | | | | | | | | | | | | This patch includes tests for the remaining REST API commands: POST /shell/output POST /session POST /poweroff POST /reboot POST /stop POST /refresh POST /hardware POST /software POST /image/create POST /image/restore POST /setup POST /image/create/basic POST /image/create/incremental POST /image/restore/basic POST /image/restore/incremental POST /run/schedule This test covers requests that are missing one of the parameters in its payload.
* #915 Extend REST API POST no payload tests to all remaining tests.Roberto Hueso Gómez2019-11-131-0/+4
| | | | | | | | | | | | | | | | | This patch extends tests for requests without any payload in the following REST API POST functions: - /clients - /wol - /shell/run - /shell/output - /session - /poweroff - /reboot - /stop - /refresh - /hardware - /software
* #915: Fix incorrect method and code in invalid GET requestsRoberto Hueso Gómez2019-09-181-2/+2
| | | | | Some tests should perform GET requests however they incorrectly use POST. Return codes for these tests have also been fixed.
* #915 tests correct command, /sessionJavier Sánchez Parra2019-07-151-1/+1
| | | | This should test /shell/run instead of /session
* #915 Improve test output using unittest discoverJavier Sánchez Parra2019-07-051-0/+21
* Call the tests with python module unittest. In particular, the discover function. * Rename tests files to meet the default requirements of discover function.