Use well defined structure for serializing, fixups to make test green

This commit is contained in:
Ettore Di Giacinto
2019-11-23 15:42:05 +01:00
parent a879411c54
commit e9c01b46a7
7 changed files with 57 additions and 14 deletions

View File

@@ -104,8 +104,8 @@ var _ = Describe("Installer", func() {
repo2, err := NewLuetRepositoryFromYaml([]byte(`
name: "test"
type: "local"
uri: "` + tmpdir + `"
`))
uri: "`+tmpdir+`"
`), pkg.NewInMemoryDatabase(false))
Expect(err).ToNot(HaveOccurred())
inst.Repositories(Repositories{repo2})