Skip to content

Commit 2ac1a38

Browse files
committed
Update terraform testdata
1 parent a1222d0 commit 2ac1a38

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
@@ -104,32 +104,35 @@ func TestConvertResources(t *testing.T) {
104104
Name: "dev",
105105
Type: "null_resource",
106106
Agents: []*proto.Agent{{
107-
Name: "dev1",
108-
OperatingSystem: "linux",
109-
Architecture: "amd64",
110-
Auth: &proto.Agent_Token{},
111-
ConnectionTimeoutSeconds: 120,
112-
LoginBeforeReady: true,
113-
StartupScriptTimeoutSeconds: 300,
107+
Name: "dev1",
108+
OperatingSystem: "linux",
109+
Architecture: "amd64",
110+
Auth: &proto.Agent_Token{},
111+
ConnectionTimeoutSeconds: 120,
112+
LoginBeforeReady: true,
113+
StartupScriptTimeoutSeconds: 300,
114+
ShutdownScriptTimeoutSeconds: 300,
114115
}, {
115-
Name: "dev2",
116-
OperatingSystem: "darwin",
117-
Architecture: "amd64",
118-
Auth: &proto.Agent_Token{},
119-
ConnectionTimeoutSeconds: 1,
120-
MotdFile: "/etc/motd",
121-
LoginBeforeReady: true,
122-
StartupScriptTimeoutSeconds: 30,
123-
ShutdownScript: "echo bye bye",
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",
125+
ShutdownScriptTimeoutSeconds: 30,
124126
}, {
125-
Name: "dev3",
126-
OperatingSystem: "windows",
127-
Architecture: "arm64",
128-
Auth: &proto.Agent_Token{},
129-
ConnectionTimeoutSeconds: 120,
130-
TroubleshootingUrl: "https://coder.com/troubleshoot",
131-
LoginBeforeReady: false,
132-
StartupScriptTimeoutSeconds: 300,
127+
Name: "dev3",
128+
OperatingSystem: "windows",
129+
Architecture: "arm64",
130+
Auth: &proto.Agent_Token{},
131+
ConnectionTimeoutSeconds: 120,
132+
TroubleshootingUrl: "https://coder.com/troubleshoot",
133+
LoginBeforeReady: false,
134+
StartupScriptTimeoutSeconds: 300,
135+
ShutdownScriptTimeoutSeconds: 300,
133136
}},
134137
}},
135138
},

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)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy