Skip to content

Commit 867795c

Browse files
committed
Update terraform testdata
1 parent 5d0212a commit 867795c

File tree

4 files changed

+49
-33
lines changed

4 files changed

+49
-33
lines changed

provisioner/terraform/resources_test.go

Lines changed: 27 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -105,32 +105,35 @@ func TestConvertResources(t *testing.T) {
105105
Name: "dev",
106106
Type: "null_resource",
107107
Agents: []*proto.Agent{{
108-
Name: "dev1",
109-
OperatingSystem: "linux",
110-
Architecture: "amd64",
111-
Auth: &proto.Agent_Token{},
112-
ConnectionTimeoutSeconds: 120,
113-
LoginBeforeReady: true,
114-
StartupScriptTimeoutSeconds: 300,
108+
Name: "dev1",
109+
OperatingSystem: "linux",
110+
Architecture: "amd64",
111+
Auth: &proto.Agent_Token{},
112+
ConnectionTimeoutSeconds: 120,
113+
LoginBeforeReady: true,
114+
StartupScriptTimeoutSeconds: 300,
115+
ShutdownScriptTimeoutSeconds: 300,
115116
}, {
116-
Name: "dev2",
117-
OperatingSystem: "darwin",
118-
Architecture: "amd64",
119-
Auth: &proto.Agent_Token{},
120-
ConnectionTimeoutSeconds: 1,
121-
MotdFile: "/etc/motd",
122-
LoginBeforeReady: true,
123-
StartupScriptTimeoutSeconds: 30,
124-
ShutdownScript: "echo bye bye",
117+
Name: "dev2",
118+
OperatingSystem: "darwin",
119+
Architecture: "amd64",
120+
Auth: &proto.Agent_Token{},
121+
ConnectionTimeoutSeconds: 1,
122+
MotdFile: "/etc/motd",
123+
LoginBeforeReady: true,
124+
StartupScriptTimeoutSeconds: 30,
125+
ShutdownScript: "echo bye bye",
126+
ShutdownScriptTimeoutSeconds: 30,
125127
}, {
126-
Name: "dev3",
127-
OperatingSystem: "windows",
128-
Architecture: "arm64",
129-
Auth: &proto.Agent_Token{},
130-
ConnectionTimeoutSeconds: 120,
131-
TroubleshootingUrl: "https://coder.com/troubleshoot",
132-
LoginBeforeReady: false,
133-
StartupScriptTimeoutSeconds: 300,
128+
Name: "dev3",
129+
OperatingSystem: "windows",
130+
Architecture: "arm64",
131+
Auth: &proto.Agent_Token{},
132+
ConnectionTimeoutSeconds: 120,
133+
TroubleshootingUrl: "https://coder.com/troubleshoot",
134+
LoginBeforeReady: false,
135+
StartupScriptTimeoutSeconds: 300,
136+
ShutdownScriptTimeoutSeconds: 300,
134137
}},
135138
}},
136139
},

provisioner/terraform/testdata/multiple-agents/multiple-agents.tf

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ terraform {
22
required_providers {
33
coder = {
44
source = "coder/coder"
5-
version = "0.6.10"
5+
version = "0.6.12"
66
}
77
}
88
}
@@ -13,13 +13,14 @@ resource "coder_agent" "dev1" {
1313
}
1414

1515
resource "coder_agent" "dev2" {
16-
os = "darwin"
17-
arch = "amd64"
18-
connection_timeout = 1
19-
motd_file = "/etc/motd"
20-
startup_script_timeout = 30
21-
login_before_ready = true
22-
shutdown_script = "echo bye bye"
16+
os = "darwin"
17+
arch = "amd64"
18+
connection_timeout = 1
19+
motd_file = "/etc/motd"
20+
startup_script_timeout = 30
21+
login_before_ready = true
22+
shutdown_script = "echo bye bye"
23+
shutdown_script_timeout = 30
2324
}
2425

2526
resource "coder_agent" "dev3" {

provisioner/terraform/testdata/multiple-agents/multiple-agents.tfplan.json

Lines changed: 10 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

provisioner/terraform/testdata/multiple-agents/multiple-agents.tfstate.json

Lines changed: 3 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)