From 365141d530be9bad7bfcb8d1a8e65cca1902f448 Mon Sep 17 00:00:00 2001 From: Marcela Campo Date: Fri, 15 Mar 2024 10:27:11 -0300 Subject: [PATCH] test: expect opentofu as default registry [#187199910](https://www.pivotaltracker.com/story/show/187199910) --- internal/brokerpak/manifest/parser_test.go | 6 +++--- internal/brokerpak/reader/reader_test.go | 4 ++-- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/internal/brokerpak/manifest/parser_test.go b/internal/brokerpak/manifest/parser_test.go index 444f9bd52..5db35376b 100644 --- a/internal/brokerpak/manifest/parser_test.go +++ b/internal/brokerpak/manifest/parser_test.go @@ -320,9 +320,9 @@ var _ = Describe("Parser", func() { Expect(err).NotTo(HaveOccurred()) Expect(m.TerraformProviders[1].Provider.String()).To(Equal(expected)) }, - Entry("empty 'provider' field", "", "registry.terraform.io/hashicorp/foo"), - Entry("just type", "lala", "registry.terraform.io/hashicorp/lala"), - Entry("type and namespace", "mycorp/lala", "registry.terraform.io/mycorp/lala"), + Entry("empty 'provider' field", "", "registry.opentofu.org/hashicorp/foo"), + Entry("just type", "lala", "registry.opentofu.org/hashicorp/lala"), + Entry("type and namespace", "mycorp/lala", "registry.opentofu.org/mycorp/lala"), Entry("fully qualified", "mything.io/mycorp/lala", "mything.io/mycorp/lala"), ) diff --git a/internal/brokerpak/reader/reader_test.go b/internal/brokerpak/reader/reader_test.go index 2beb1982d..4a1d10ef7 100644 --- a/internal/brokerpak/reader/reader_test.go +++ b/internal/brokerpak/reader/reader_test.go @@ -63,10 +63,10 @@ var _ = Describe("reader", func() { Expect(pakReader.ExtractPlatformBins(binOutput)).NotTo(HaveOccurred()) plat := fmt.Sprintf("%s_%s", runtime.GOOS, runtime.GOARCH) - hashicorpBinOutput := filepath.Join(binOutput, "registry.terraform.io", "hashicorp") + hashicorpBinOutput := filepath.Join(binOutput, "registry.opentofu.org", "hashicorp") Expect(filepath.Join(hashicorpBinOutput, "google-beta", "1.19.0", plat, "terraform-provider-google-beta_v1.19.0_x4")).To(BeAnExistingFile()) - otherNamespaceBinOutput := filepath.Join(binOutput, "registry.terraform.io", "other-namespace") + otherNamespaceBinOutput := filepath.Join(binOutput, "registry.opentofu.org", "other-namespace") Expect(filepath.Join(otherNamespaceBinOutput, "google", "1.19.0", plat, "terraform-provider-google_v1.19.0_x5")).To(BeAnExistingFile()) })