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:
parent
02d0b8ec01
commit
f377c5e3eb
2 changed files with 27 additions and 0 deletions
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue