Use registry.opentofu.org as the default registry (#379)

Signed-off-by: RLRabinowitz <rlrabinowitz2@gmail.com>
This commit is contained in:
RLRabinowitz
2023-10-03 10:49:38 +03:00
committed by GitHub
parent ffaec585ef
commit e0ecd2ebb3
344 changed files with 1750 additions and 1812 deletions

View File

@@ -101,15 +101,15 @@ func TestPlanGraphBuilder_dynamicBlock(t *testing.T) {
// the graph builders changes.
got := strings.TrimSpace(g.String())
want := strings.TrimSpace(`
provider["registry.terraform.io/hashicorp/test"]
provider["registry.terraform.io/hashicorp/test"] (close)
provider["registry.opentofu.org/hashicorp/test"]
provider["registry.opentofu.org/hashicorp/test"] (close)
test_thing.c (expand)
root
provider["registry.terraform.io/hashicorp/test"] (close)
provider["registry.opentofu.org/hashicorp/test"] (close)
test_thing.a (expand)
provider["registry.terraform.io/hashicorp/test"]
provider["registry.opentofu.org/hashicorp/test"]
test_thing.b (expand)
provider["registry.terraform.io/hashicorp/test"]
provider["registry.opentofu.org/hashicorp/test"]
test_thing.c (expand)
test_thing.a (expand)
test_thing.b (expand)
@@ -157,13 +157,13 @@ func TestPlanGraphBuilder_attrAsBlocks(t *testing.T) {
// type "nested" along with an attribute named "nested".
got := strings.TrimSpace(g.String())
want := strings.TrimSpace(`
provider["registry.terraform.io/hashicorp/test"]
provider["registry.terraform.io/hashicorp/test"] (close)
provider["registry.opentofu.org/hashicorp/test"]
provider["registry.opentofu.org/hashicorp/test"] (close)
test_thing.b (expand)
root
provider["registry.terraform.io/hashicorp/test"] (close)
provider["registry.opentofu.org/hashicorp/test"] (close)
test_thing.a (expand)
provider["registry.terraform.io/hashicorp/test"]
provider["registry.opentofu.org/hashicorp/test"]
test_thing.b (expand)
test_thing.a (expand)
`)
@@ -189,7 +189,7 @@ func TestPlanGraphBuilder_targetModule(t *testing.T) {
t.Logf("Graph: %s", g.String())
testGraphNotContains(t, g, `module.child1.provider["registry.terraform.io/hashicorp/test"]`)
testGraphNotContains(t, g, `module.child1.provider["registry.opentofu.org/hashicorp/test"]`)
testGraphNotContains(t, g, "module.child1.test_object.foo")
}
@@ -231,46 +231,46 @@ aws_instance.web (expand)
aws_load_balancer.weblb (expand)
aws_instance.web (expand)
aws_security_group.firewall (expand)
provider["registry.terraform.io/hashicorp/aws"]
provider["registry.opentofu.org/hashicorp/aws"]
local.instance_id (expand)
aws_instance.web (expand)
openstack_floating_ip.random (expand)
provider["registry.terraform.io/hashicorp/openstack"]
provider["registry.opentofu.org/hashicorp/openstack"]
output.instance_id (expand)
local.instance_id (expand)
provider["registry.terraform.io/hashicorp/aws"]
provider["registry.opentofu.org/hashicorp/aws"]
openstack_floating_ip.random (expand)
provider["registry.terraform.io/hashicorp/aws"] (close)
provider["registry.opentofu.org/hashicorp/aws"] (close)
aws_load_balancer.weblb (expand)
provider["registry.terraform.io/hashicorp/openstack"]
provider["registry.terraform.io/hashicorp/openstack"] (close)
provider["registry.opentofu.org/hashicorp/openstack"]
provider["registry.opentofu.org/hashicorp/openstack"] (close)
openstack_floating_ip.random (expand)
root
output.instance_id (expand)
provider["registry.terraform.io/hashicorp/aws"] (close)
provider["registry.terraform.io/hashicorp/openstack"] (close)
provider["registry.opentofu.org/hashicorp/aws"] (close)
provider["registry.opentofu.org/hashicorp/openstack"] (close)
var.foo
`
const testPlanGraphBuilderForEachStr = `
aws_instance.bar (expand)
provider["registry.terraform.io/hashicorp/aws"]
provider["registry.opentofu.org/hashicorp/aws"]
aws_instance.bar2 (expand)
provider["registry.terraform.io/hashicorp/aws"]
provider["registry.opentofu.org/hashicorp/aws"]
aws_instance.bat (expand)
aws_instance.boo (expand)
aws_instance.baz (expand)
provider["registry.terraform.io/hashicorp/aws"]
provider["registry.opentofu.org/hashicorp/aws"]
aws_instance.boo (expand)
provider["registry.terraform.io/hashicorp/aws"]
provider["registry.opentofu.org/hashicorp/aws"]
aws_instance.foo (expand)
provider["registry.terraform.io/hashicorp/aws"]
provider["registry.terraform.io/hashicorp/aws"]
provider["registry.terraform.io/hashicorp/aws"] (close)
provider["registry.opentofu.org/hashicorp/aws"]
provider["registry.opentofu.org/hashicorp/aws"]
provider["registry.opentofu.org/hashicorp/aws"] (close)
aws_instance.bar (expand)
aws_instance.bar2 (expand)
aws_instance.bat (expand)
aws_instance.baz (expand)
aws_instance.foo (expand)
root
provider["registry.terraform.io/hashicorp/aws"] (close)
provider["registry.opentofu.org/hashicorp/aws"] (close)
`