Skip to content

Commit fbd1a27

Browse files
authored
fix: Fix dangling references in provisioner/terraform/testdata (#3193)
1 parent 8115a11 commit fbd1a27

25 files changed

+165
-165
lines changed

provisioner/terraform/resources_test.go

+5-5
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ func TestConvertResources(t *testing.T) {
3131
Name: "b",
3232
Type: "null_resource",
3333
Agents: []*proto.Agent{{
34-
Name: "dev",
34+
Name: "main",
3535
OperatingSystem: "linux",
3636
Architecture: "amd64",
3737
Auth: &proto.Agent_Token{},
@@ -44,7 +44,7 @@ func TestConvertResources(t *testing.T) {
4444
Name: "first",
4545
Type: "null_resource",
4646
Agents: []*proto.Agent{{
47-
Name: "dev",
47+
Name: "main",
4848
OperatingSystem: "linux",
4949
Architecture: "amd64",
5050
Auth: &proto.Agent_Token{},
@@ -55,10 +55,10 @@ func TestConvertResources(t *testing.T) {
5555
}},
5656
// Ensures the instance ID authentication type surfaces.
5757
"instance-id": {{
58-
Name: "dev",
58+
Name: "main",
5959
Type: "null_resource",
6060
Agents: []*proto.Agent{{
61-
Name: "dev",
61+
Name: "main",
6262
OperatingSystem: "linux",
6363
Architecture: "amd64",
6464
Auth: &proto.Agent_InstanceId{},
@@ -70,7 +70,7 @@ func TestConvertResources(t *testing.T) {
7070
Name: "example",
7171
Type: "null_resource",
7272
Agents: []*proto.Agent{{
73-
Name: "dev",
73+
Name: "main",
7474
OperatingSystem: "linux",
7575
Architecture: "amd64",
7676
Auth: &proto.Agent_Token{},

provisioner/terraform/testdata/calling-module/calling-module.tf

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,5 +14,5 @@ resource "coder_agent" "main" {
1414

1515
module "module" {
1616
source = "./module"
17-
script = coder_agent.dev.init_script
17+
script = coder_agent.main.init_script
1818
}

provisioner/terraform/testdata/calling-module/calling-module.tfplan.dot

+4-4
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

provisioner/terraform/testdata/calling-module/calling-module.tfplan.json

+10-10
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

provisioner/terraform/testdata/calling-module/calling-module.tfstate.dot

+4-4
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

provisioner/terraform/testdata/calling-module/calling-module.tfstate.json

+8-8
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

provisioner/terraform/testdata/chaining-resources/chaining-resources.tf

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ resource "coder_agent" "main" {
1414

1515
resource "null_resource" "b" {
1616
depends_on = [
17-
coder_agent.dev
17+
coder_agent.main
1818
]
1919
}
2020

provisioner/terraform/testdata/chaining-resources/chaining-resources.tfplan.dot

+4-4
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

provisioner/terraform/testdata/chaining-resources/chaining-resources.tfplan.json

+8-8
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

provisioner/terraform/testdata/chaining-resources/chaining-resources.tfstate.dot

+4-4
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

provisioner/terraform/testdata/chaining-resources/chaining-resources.tfstate.json

+9-9
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

provisioner/terraform/testdata/conflicting-resources/conflicting-resources.tf

+2-2
Original file line numberDiff line numberDiff line change
@@ -14,12 +14,12 @@ resource "coder_agent" "main" {
1414

1515
resource "null_resource" "first" {
1616
depends_on = [
17-
coder_agent.dev
17+
coder_agent.main
1818
]
1919
}
2020

2121
resource "null_resource" "second" {
2222
depends_on = [
23-
coder_agent.dev
23+
coder_agent.main
2424
]
2525
}

0 commit comments

Comments
 (0)