Skip to content

Commit

Permalink
test: expect opentofu as default registry
Browse files Browse the repository at this point in the history
  • Loading branch information
pivotal-marcela-campo committed Mar 15, 2024
1 parent a857c38 commit 365141d
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions internal/brokerpak/manifest/parser_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"),
)

Expand Down
4 changes: 2 additions & 2 deletions internal/brokerpak/reader/reader_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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())
})

Expand Down

0 comments on commit 365141d

Please sign in to comment.