Skip to content

Commit 9995bf5

Browse files
committed
fix tests
1 parent b6d2345 commit 9995bf5

File tree

1 file changed

+0
-32
lines changed

1 file changed

+0
-32
lines changed

provider/agent_test.go

-32
Original file line numberDiff line numberDiff line change
@@ -34,11 +34,9 @@ func TestAgent(t *testing.T) {
3434
hi = "test"
3535
}
3636
startup_script = "echo test"
37-
startup_script_timeout = 120
3837
troubleshooting_url = "https://example.com/troubleshoot"
3938
motd_file = "/etc/motd"
4039
shutdown_script = "echo bye bye"
41-
shutdown_script_timeout = 120
4240
order = 4
4341
}
4442
`,
@@ -55,12 +53,10 @@ func TestAgent(t *testing.T) {
5553
"dir",
5654
"env.hi",
5755
"startup_script",
58-
"startup_script_timeout",
5956
"connection_timeout",
6057
"troubleshooting_url",
6158
"motd_file",
6259
"shutdown_script",
63-
"shutdown_script_timeout",
6460
"order",
6561
} {
6662
value := resource.Primary.Attributes[key]
@@ -109,34 +105,6 @@ func TestAgent_StartupScriptBehavior(t *testing.T) {
109105
require.Equal(t, "non-blocking", state.Primary.Attributes["startup_script_behavior"])
110106
},
111107
},
112-
{
113-
Name: "login_before_ready (deprecated)",
114-
Config: `
115-
resource "coder_agent" "new" {
116-
os = "linux"
117-
arch = "amd64"
118-
login_before_ready = false
119-
}
120-
`,
121-
Check: func(state *terraform.ResourceState) {
122-
require.Equal(t, "false", state.Primary.Attributes["login_before_ready"])
123-
// startup_script_behavior must be empty, this indicates that
124-
// login_before_ready should be used instead.
125-
require.Equal(t, "", state.Primary.Attributes["startup_script_behavior"])
126-
},
127-
},
128-
{
129-
Name: "no login_before_ready with startup_script_behavior",
130-
Config: `
131-
resource "coder_agent" "new" {
132-
os = "linux"
133-
arch = "amd64"
134-
login_before_ready = false
135-
startup_script_behavior = "blocking"
136-
}
137-
`,
138-
ExpectError: regexp.MustCompile("conflicts with"),
139-
},
140108
} {
141109
tc := tc
142110
t.Run(tc.Name, func(t *testing.T) {

0 commit comments

Comments
 (0)