From e751b989e0107e9bbac5d7452ced30bbd7d5db2b Mon Sep 17 00:00:00 2001 From: Daniele Rondina Date: Sat, 4 Jan 2020 15:53:22 +0100 Subject: [PATCH] Fix installer_tests --- pkg/installer/installer_test.go | 8 ++++---- pkg/installer/repository_test.go | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/pkg/installer/installer_test.go b/pkg/installer/installer_test.go index dd388867..b1da475d 100644 --- a/pkg/installer/installer_test.go +++ b/pkg/installer/installer_test.go @@ -87,7 +87,7 @@ var _ = Describe("Installer", func() { Expect(repo.GetName()).To(Equal("test")) Expect(helpers.Exists(spec.Rel("repository.yaml"))).ToNot(BeTrue()) Expect(helpers.Exists(spec.Rel("tree.tar"))).ToNot(BeTrue()) - err = repo.Write(tmpdir) + err = repo.Write(tmpdir, false) Expect(err).ToNot(HaveOccurred()) Expect(helpers.Exists(spec.Rel("repository.yaml"))).To(BeTrue()) @@ -200,7 +200,7 @@ urls: Expect(repo.GetName()).To(Equal("test")) Expect(helpers.Exists(spec.Rel("repository.yaml"))).ToNot(BeTrue()) Expect(helpers.Exists(spec.Rel("tree.tar"))).ToNot(BeTrue()) - err = repo.Write(tmpdir) + err = repo.Write(tmpdir, false) Expect(err).ToNot(HaveOccurred()) Expect(helpers.Exists(spec.Rel("repository.yaml"))).To(BeTrue()) @@ -308,7 +308,7 @@ urls: Expect(repo.GetName()).To(Equal("test")) Expect(helpers.Exists(spec.Rel("repository.yaml"))).ToNot(BeTrue()) Expect(helpers.Exists(spec.Rel("tree.tar"))).ToNot(BeTrue()) - err = repo.Write(tmpdir) + err = repo.Write(tmpdir, false) Expect(err).ToNot(HaveOccurred()) Expect(helpers.Exists(spec.Rel("repository.yaml"))).To(BeTrue()) @@ -421,7 +421,7 @@ urls: Expect(repo.GetName()).To(Equal("test")) Expect(helpers.Exists(spec.Rel("repository.yaml"))).ToNot(BeTrue()) Expect(helpers.Exists(spec.Rel("tree.tar"))).ToNot(BeTrue()) - err = repo.Write(tmpdir) + err = repo.Write(tmpdir, false) Expect(err).ToNot(HaveOccurred()) Expect(helpers.Exists(spec.Rel("b-test-1.1.package.tar.gz"))).To(BeTrue()) Expect(helpers.Exists(spec.Rel("b-test-1.1.package.tar"))).ToNot(BeTrue()) diff --git a/pkg/installer/repository_test.go b/pkg/installer/repository_test.go index 8b282add..a4e7bc1a 100644 --- a/pkg/installer/repository_test.go +++ b/pkg/installer/repository_test.go @@ -87,7 +87,7 @@ var _ = Describe("Repository", func() { Expect(repo.GetName()).To(Equal("test")) Expect(helpers.Exists(spec.Rel("repository.yaml"))).ToNot(BeTrue()) Expect(helpers.Exists(spec.Rel("tree.tar"))).ToNot(BeTrue()) - err = repo.Write(tmpdir) + err = repo.Write(tmpdir, false) Expect(err).ToNot(HaveOccurred()) Expect(helpers.Exists(spec.Rel("repository.yaml"))).To(BeTrue())