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. |
||
|---|---|---|
| .. | ||
| osbuild-composer | ||
| osbuild-dnf-json-tests | ||
| osbuild-image-tests | ||
| osbuild-pipeline | ||
| osbuild-tests | ||
| osbuild-upload-aws | ||
| osbuild-upload-azure | ||
| osbuild-worker | ||