many: update for new reporegistry.New() api (c.f. pr#1179)
This commit updates osbuild-composer for the new API in images for the `reporegistry.New()`. The main incompatible change is that the `/repositories` part is not longer automatically added inside the library so we need to add it on the call-site. This needs https://github.com/osbuild/images/pull/1179
This commit is contained in:
parent
13329ebb2e
commit
35167ce83f
5 changed files with 8 additions and 10 deletions
|
|
@ -254,7 +254,7 @@ func newV2Server(t *testing.T, dir string, enableJWT bool, fail bool) (*v2.Serve
|
|||
distros := distrofactory.NewTestDefault()
|
||||
require.NotNil(t, distros)
|
||||
|
||||
repos, err := reporegistry.New([]string{"../../../test/data"})
|
||||
repos, err := reporegistry.New([]string{"../../../test/data/repositories"}, nil)
|
||||
require.Nil(t, err)
|
||||
require.NotNil(t, repos)
|
||||
require.Greater(t, len(repos.ListDistros()), 0)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue