@@ -34,11 +34,9 @@ func TestAgent(t *testing.T) {
34
34
hi = "test"
35
35
}
36
36
startup_script = "echo test"
37
- startup_script_timeout = 120
38
37
troubleshooting_url = "https://example.com/troubleshoot"
39
38
motd_file = "/etc/motd"
40
39
shutdown_script = "echo bye bye"
41
- shutdown_script_timeout = 120
42
40
order = 4
43
41
}
44
42
` ,
@@ -55,12 +53,10 @@ func TestAgent(t *testing.T) {
55
53
"dir" ,
56
54
"env.hi" ,
57
55
"startup_script" ,
58
- "startup_script_timeout" ,
59
56
"connection_timeout" ,
60
57
"troubleshooting_url" ,
61
58
"motd_file" ,
62
59
"shutdown_script" ,
63
- "shutdown_script_timeout" ,
64
60
"order" ,
65
61
} {
66
62
value := resource .Primary .Attributes [key ]
@@ -109,34 +105,6 @@ func TestAgent_StartupScriptBehavior(t *testing.T) {
109
105
require .Equal (t , "non-blocking" , state .Primary .Attributes ["startup_script_behavior" ])
110
106
},
111
107
},
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
- },
140
108
} {
141
109
tc := tc
142
110
t .Run (tc .Name , func (t * testing.T ) {
0 commit comments