debian-forge-composer/cmd
Lars Karlitski 17ca73ab14 osbuild-pipeline: validate distro when fetching it
We were verifying two things: if the passed distroArg exists in the
distribution mapping in common/types.go and if the it is an actually
registered distro. Since you cannot have distros registered that don't
correspond to a type, the first test is unnecessary.

Merge the two tests by moving the (much better) error message down into
the second test. This makes DistributionExists redundant, because
Registry.GetDistro() checks this implicitly.

Also, move ListDistributions() to the Registry object, because we want
to show distributions that are actually registered.

Add a test which checks that Registry.List() works and that all included
distributions register correctly.
2020-03-03 16:21:13 +01:00
..
osbuild-composer distro: panic less often 2020-03-03 11:53:06 +01:00
osbuild-dnf-json-tests rpmmd: pass in cache directory explicitly 2020-03-02 20:58:39 +01:00
osbuild-image-tests tests: begin rewriting of ./test/run test suite to Go 2020-02-26 16:58:39 +01:00
osbuild-pipeline osbuild-pipeline: validate distro when fetching it 2020-03-03 16:21:13 +01:00
osbuild-tests lint: fix unhandled errors 2020-03-02 14:28:55 +01:00
osbuild-upload-aws Refactor Azure upload code to a separate package 2019-11-27 12:14:07 +01:00
osbuild-upload-azure Introduce Azure upload test 2019-11-29 12:19:40 +01:00
osbuild-worker lint: fix unhandled errors 2020-03-02 14:28:55 +01:00