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:
@@ -66,7 +66,7 @@ func TestLocal_applyBasic(t *testing.T) {
|
||||
checkState(t, b.StateOutPath, `
|
||||
test_instance.foo:
|
||||
ID = yes
|
||||
provider = provider["registry.terraform.io/hashicorp/test"]
|
||||
provider = provider["registry.opentofu.org/hashicorp/test"]
|
||||
ami = bar
|
||||
`)
|
||||
|
||||
@@ -241,7 +241,7 @@ func TestLocal_applyError(t *testing.T) {
|
||||
checkState(t, b.StateOutPath, `
|
||||
test_instance.foo:
|
||||
ID = foo
|
||||
provider = provider["registry.terraform.io/hashicorp/test"]
|
||||
provider = provider["registry.opentofu.org/hashicorp/test"]
|
||||
ami = bar
|
||||
`)
|
||||
|
||||
@@ -308,7 +308,7 @@ func TestLocal_applyBackendFail(t *testing.T) {
|
||||
checkState(t, "errored.tfstate", `
|
||||
test_instance.foo: (tainted)
|
||||
ID = yes
|
||||
provider = provider["registry.terraform.io/hashicorp/test"]
|
||||
provider = provider["registry.opentofu.org/hashicorp/test"]
|
||||
ami = bar
|
||||
`)
|
||||
|
||||
@@ -372,7 +372,7 @@ func testOperationApply(t *testing.T, configDir string) (*backend.Operation, fun
|
||||
// Many of our tests use an overridden "test" provider that's just in-memory
|
||||
// inside the test process, not a separate plugin on disk.
|
||||
depLocks := depsfile.NewLocks()
|
||||
depLocks.SetProviderOverridden(addrs.MustParseProviderSourceString("registry.terraform.io/hashicorp/test"))
|
||||
depLocks.SetProviderOverridden(addrs.MustParseProviderSourceString("registry.opentofu.org/hashicorp/test"))
|
||||
|
||||
return &backend.Operation{
|
||||
Type: backend.OperationTypeApply,
|
||||
|
||||
@@ -725,7 +725,7 @@ func testOperationPlan(t *testing.T, configDir string) (*backend.Operation, func
|
||||
// Many of our tests use an overridden "test" provider that's just in-memory
|
||||
// inside the test process, not a separate plugin on disk.
|
||||
depLocks := depsfile.NewLocks()
|
||||
depLocks.SetProviderOverridden(addrs.MustParseProviderSourceString("registry.terraform.io/hashicorp/test"))
|
||||
depLocks.SetProviderOverridden(addrs.MustParseProviderSourceString("registry.opentofu.org/hashicorp/test"))
|
||||
|
||||
return &backend.Operation{
|
||||
Type: backend.OperationTypePlan,
|
||||
|
||||
@@ -53,7 +53,7 @@ func TestLocal_refresh(t *testing.T) {
|
||||
checkState(t, b.StateOutPath, `
|
||||
test_instance.foo:
|
||||
ID = yes
|
||||
provider = provider["registry.terraform.io/hashicorp/test"]
|
||||
provider = provider["registry.opentofu.org/hashicorp/test"]
|
||||
`)
|
||||
|
||||
// the backend should be unlocked after a run
|
||||
@@ -122,7 +122,7 @@ func TestLocal_refreshInput(t *testing.T) {
|
||||
checkState(t, b.StateOutPath, `
|
||||
test_instance.foo:
|
||||
ID = yes
|
||||
provider = provider["registry.terraform.io/hashicorp/test"]
|
||||
provider = provider["registry.opentofu.org/hashicorp/test"]
|
||||
`)
|
||||
}
|
||||
|
||||
@@ -151,7 +151,7 @@ func TestLocal_refreshValidate(t *testing.T) {
|
||||
checkState(t, b.StateOutPath, `
|
||||
test_instance.foo:
|
||||
ID = yes
|
||||
provider = provider["registry.terraform.io/hashicorp/test"]
|
||||
provider = provider["registry.opentofu.org/hashicorp/test"]
|
||||
`)
|
||||
}
|
||||
|
||||
@@ -205,7 +205,7 @@ func TestLocal_refreshValidateProviderConfigured(t *testing.T) {
|
||||
checkState(t, b.StateOutPath, `
|
||||
test_instance.foo:
|
||||
ID = yes
|
||||
provider = provider["registry.terraform.io/hashicorp/test"]
|
||||
provider = provider["registry.opentofu.org/hashicorp/test"]
|
||||
`)
|
||||
}
|
||||
|
||||
@@ -275,7 +275,7 @@ func testOperationRefresh(t *testing.T, configDir string) (*backend.Operation, f
|
||||
// Many of our tests use an overridden "test" provider that's just in-memory
|
||||
// inside the test process, not a separate plugin on disk.
|
||||
depLocks := depsfile.NewLocks()
|
||||
depLocks.SetProviderOverridden(addrs.MustParseProviderSourceString("registry.terraform.io/hashicorp/test"))
|
||||
depLocks.SetProviderOverridden(addrs.MustParseProviderSourceString("registry.opentofu.org/hashicorp/test"))
|
||||
|
||||
return &backend.Operation{
|
||||
Type: backend.OperationTypeRefresh,
|
||||
@@ -297,7 +297,7 @@ func testRefreshState() *states.State {
|
||||
Status: states.ObjectReady,
|
||||
AttrsJSON: []byte(`{"id":"bar"}`),
|
||||
},
|
||||
mustProviderConfig(`provider["registry.terraform.io/hashicorp/test"]`),
|
||||
mustProviderConfig(`provider["registry.opentofu.org/hashicorp/test"]`),
|
||||
)
|
||||
return state
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user