debian-forge-composer/internal
Brian C. Lane f298fed16d Add weldrcheck package to hold the integration tests
These tests build on the client functions to run integration tests on a
running API server.

It uses the reflect module to examine the methods attached to the
checkBlueprintsV0 struct and run the ones with names that start with
'Check', also checking the type signature of the functions and failing
the test if any of them don't match.

This will make it easier to add more checks without needing to add
boilerplate call/registration of the functions in the top level runner.
Just add the new function with the right name and signature and it will
be run when checkBlueprintsV0.Run() is called.

Checks for other API routes should be added to their own modules. There
will be some duplication of the Run function in each, but I think that
it will help keep things more manageable by separating them instead of
putting them all into a single giant Run() call.
2020-03-03 12:21:40 +01:00
..
blueprint lint: fix unhandled errors 2020-03-02 14:28:55 +01:00
client Add exported response structures for API results 2020-03-03 12:21:40 +01:00
common lint: fix unhandled errors 2020-03-02 14:28:55 +01:00
compose tree-wide: format code with gofmt 2020-02-17 16:09:17 +01:00
crypt crypt: make it possible to compile and test on macOS 2020-01-30 14:42:25 +01:00
distro distro: panic less often 2020-03-03 11:53:06 +01:00
jobqueue distro: panic less often 2020-03-03 11:53:06 +01:00
mocks distro: panic less often 2020-03-03 11:53:06 +01:00
osbuild lint: fix gosimple/S1004 errors 2020-03-02 14:28:55 +01:00
rcm distro: panic less often 2020-03-03 11:53:06 +01:00
rpmmd rpmmd: pass in cache directory explicitly 2020-03-02 20:58:39 +01:00
store lint: fix unhandled errors 2020-03-02 14:28:55 +01:00
target targets/local: drop Location field 2020-02-14 11:53:38 +01:00
test api: implement /compose/log 2019-12-20 11:43:39 +01:00
upload lint: fix unhandled errors 2020-03-02 14:28:55 +01:00
weldr lint: fix unhandled errors 2020-03-02 14:28:55 +01:00
weldrcheck Add weldrcheck package to hold the integration tests 2020-03-03 12:21:40 +01:00