debian-forge-composer/test/cases
Thomas Lavocat cfc91a3eb6 CloudAPI: Invalid package set returns 400
Previously a bad error code was returned, fixes #1477.

Testing:

I have two test cases to test the solution. The first is a request that
makes depsolve crash by changing the dnf-json script by an almost empty
one that only throws an exception. The second one fails because it
requests a non existing package. The former ends with a 500 error and
the later with a 400.

----8<-----

HTTP/1.1 500 Internal Server Error

Failed to depsolve base packages for ami/x86_64/centos-8: ailed to
depsolve base packages for ami/x86_64/centos-8: unexpected end of JSON
input

----8<-----

HTTP/1.1 400 Bad Request

Content-Length: 226Failed to depsolve base packages for
ami/x86_64/centos-8: DNF error occured: MarkingErrors: Error occurred
when marking packages for installation: Problems in request:
missing packages: jesuisunpaquetquinexistepas_idonotexist
2021-07-21 16:21:15 +02:00
..
api.sh CloudAPI: Invalid package set returns 400 2021-07-21 16:21:15 +02:00
aws.sh tests: fix journalctl killing once again 2021-06-10 07:40:36 +02:00
azure.sh tests: fix wrong default value in azure.sh test 2021-07-16 10:59:15 +02:00
azure_hyperv_gen2.sh Test Azure images on HyperV Gen1 and Gen2 2021-06-22 13:44:19 +03:00
base_tests.sh base_tests.sh: make the test self-contained 2020-11-10 10:44:13 +00:00
image_tests.sh tests: modify image_tests for Gitlab CI 2021-06-28 13:49:57 +03:00
installers.sh test/cases: fix installers test 2021-07-02 17:57:22 +02:00
koji.sh tests: move some integration tests to gitlab CI 2021-05-12 15:38:30 +03:00
libvirt.sh test/libvirt: don't test vhd images 2021-05-17 14:55:50 +02:00
ostree-ng.sh test/cases/ostree: save build logs and manifests 2021-07-21 11:21:42 +02:00
ostree.sh test/cases/ostree: save build logs and manifests 2021-07-21 11:21:42 +02:00
regression-include-excluded-packages.sh test/cases: Introduce common "regression" test for all distros 2021-05-20 13:07:07 +03:00
regression.sh test/cases: Introduce common "regression" test for all distros 2021-05-20 13:07:07 +03:00
vmware.sh tests: fix journalctl killing once again 2021-06-10 07:40:36 +02:00