v2_test: Add a test-distro-1 repository

This also adds an actual repository json file for the test-disro.
Without this the repo.ListDistros() function doesn't return any actual
distros.

Related: RHEL-60125
This commit is contained in:
Brian C. Lane 2024-08-27 17:01:06 -07:00 committed by Brian C. Lane
parent 02d0b8ec01
commit f377c5e3eb
2 changed files with 27 additions and 0 deletions

View file

@ -80,6 +80,7 @@ func newV2Server(t *testing.T, dir string, depsolveChannels []string, enableJWT
repos, err := reporegistry.New([]string{"../../../test/data"})
require.Nil(t, err)
require.NotNil(t, repos)
require.Greater(t, len(repos.ListDistros()), 0)
config := v2.ServerConfig{
JWTEnabled: enableJWT,