mirror of
https://github.com/opentffoundation/opentf.git
synced 2025-12-25 01:00:16 -05:00
Use registry.opentofu.org as the default registry (#379)
Signed-off-by: RLRabinowitz <rlrabinowitz2@gmail.com>
This commit is contained in:
@@ -20,67 +20,67 @@ func TestParseAbsProviderConfig(t *testing.T) {
|
||||
WantDiag string
|
||||
}{
|
||||
{
|
||||
`provider["registry.terraform.io/hashicorp/aws"]`,
|
||||
`provider["registry.opentofu.org/hashicorp/aws"]`,
|
||||
AbsProviderConfig{
|
||||
Module: RootModule,
|
||||
Provider: Provider{
|
||||
Type: "aws",
|
||||
Namespace: "hashicorp",
|
||||
Hostname: "registry.terraform.io",
|
||||
Hostname: "registry.opentofu.org",
|
||||
},
|
||||
},
|
||||
``,
|
||||
},
|
||||
{
|
||||
`provider["registry.terraform.io/hashicorp/aws"].foo`,
|
||||
`provider["registry.opentofu.org/hashicorp/aws"].foo`,
|
||||
AbsProviderConfig{
|
||||
Module: RootModule,
|
||||
Provider: Provider{
|
||||
Type: "aws",
|
||||
Namespace: "hashicorp",
|
||||
Hostname: "registry.terraform.io",
|
||||
Hostname: "registry.opentofu.org",
|
||||
},
|
||||
Alias: "foo",
|
||||
},
|
||||
``,
|
||||
},
|
||||
{
|
||||
`module.baz.provider["registry.terraform.io/hashicorp/aws"]`,
|
||||
`module.baz.provider["registry.opentofu.org/hashicorp/aws"]`,
|
||||
AbsProviderConfig{
|
||||
Module: Module{"baz"},
|
||||
Provider: Provider{
|
||||
Type: "aws",
|
||||
Namespace: "hashicorp",
|
||||
Hostname: "registry.terraform.io",
|
||||
Hostname: "registry.opentofu.org",
|
||||
},
|
||||
},
|
||||
``,
|
||||
},
|
||||
{
|
||||
`module.baz.provider["registry.terraform.io/hashicorp/aws"].foo`,
|
||||
`module.baz.provider["registry.opentofu.org/hashicorp/aws"].foo`,
|
||||
AbsProviderConfig{
|
||||
Module: Module{"baz"},
|
||||
Provider: Provider{
|
||||
Type: "aws",
|
||||
Namespace: "hashicorp",
|
||||
Hostname: "registry.terraform.io",
|
||||
Hostname: "registry.opentofu.org",
|
||||
},
|
||||
Alias: "foo",
|
||||
},
|
||||
``,
|
||||
},
|
||||
{
|
||||
`module.baz["foo"].provider["registry.terraform.io/hashicorp/aws"]`,
|
||||
`module.baz["foo"].provider["registry.opentofu.org/hashicorp/aws"]`,
|
||||
AbsProviderConfig{},
|
||||
`Provider address cannot contain module indexes`,
|
||||
},
|
||||
{
|
||||
`module.baz[1].provider["registry.terraform.io/hashicorp/aws"]`,
|
||||
`module.baz[1].provider["registry.opentofu.org/hashicorp/aws"]`,
|
||||
AbsProviderConfig{},
|
||||
`Provider address cannot contain module indexes`,
|
||||
},
|
||||
{
|
||||
`module.baz[1].module.bar.provider["registry.terraform.io/hashicorp/aws"]`,
|
||||
`module.baz[1].module.bar.provider["registry.opentofu.org/hashicorp/aws"]`,
|
||||
AbsProviderConfig{},
|
||||
`Provider address cannot contain module indexes`,
|
||||
},
|
||||
@@ -166,14 +166,14 @@ func TestAbsProviderConfigString(t *testing.T) {
|
||||
Module: RootModule,
|
||||
Provider: NewLegacyProvider("foo"),
|
||||
},
|
||||
`provider["registry.terraform.io/-/foo"]`,
|
||||
`provider["registry.opentofu.org/-/foo"]`,
|
||||
},
|
||||
{
|
||||
AbsProviderConfig{
|
||||
Module: RootModule.Child("child_module"),
|
||||
Provider: NewDefaultProvider("foo"),
|
||||
},
|
||||
`module.child_module.provider["registry.terraform.io/hashicorp/foo"]`,
|
||||
`module.child_module.provider["registry.opentofu.org/hashicorp/foo"]`,
|
||||
},
|
||||
{
|
||||
AbsProviderConfig{
|
||||
@@ -181,7 +181,7 @@ func TestAbsProviderConfigString(t *testing.T) {
|
||||
Alias: "bar",
|
||||
Provider: NewDefaultProvider("foo"),
|
||||
},
|
||||
`provider["registry.terraform.io/hashicorp/foo"].bar`,
|
||||
`provider["registry.opentofu.org/hashicorp/foo"].bar`,
|
||||
},
|
||||
{
|
||||
AbsProviderConfig{
|
||||
@@ -189,7 +189,7 @@ func TestAbsProviderConfigString(t *testing.T) {
|
||||
Alias: "bar",
|
||||
Provider: NewDefaultProvider("foo"),
|
||||
},
|
||||
`module.child_module.provider["registry.terraform.io/hashicorp/foo"].bar`,
|
||||
`module.child_module.provider["registry.opentofu.org/hashicorp/foo"].bar`,
|
||||
},
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user