@@ -42,6 +42,7 @@ func TestApp(t *testing.T) {
42
42
}
43
43
order = 4
44
44
hidden = false
45
+ open_in = "slim-window"
45
46
}
46
47
` ,
47
48
Check : func (state * terraform.State ) error {
@@ -64,6 +65,7 @@ func TestApp(t *testing.T) {
64
65
"healthcheck.0.threshold" ,
65
66
"order" ,
66
67
"hidden" ,
68
+ "open_in" ,
67
69
} {
68
70
value := resource .Primary .Attributes [key ]
69
71
t .Logf ("%q = %q" , key , value )
@@ -98,6 +100,7 @@ func TestApp(t *testing.T) {
98
100
display_name = "Testing"
99
101
url = "https://google.com"
100
102
external = true
103
+ open_in = "slim-window"
101
104
}
102
105
` ,
103
106
external : true ,
@@ -116,6 +119,7 @@ func TestApp(t *testing.T) {
116
119
url = "https://google.com"
117
120
external = true
118
121
subdomain = true
122
+ open_in = "slim-window"
119
123
}
120
124
` ,
121
125
expectError : regexp .MustCompile ("conflicts with subdomain" ),
@@ -209,6 +213,7 @@ func TestApp(t *testing.T) {
209
213
interval = 5
210
214
threshold = 6
211
215
}
216
+ open_in = "slim-window"
212
217
}
213
218
` , sharingLine )
214
219
@@ -248,6 +253,7 @@ func TestApp(t *testing.T) {
248
253
name string
249
254
config string
250
255
hidden bool
256
+ openIn string
251
257
}{{
252
258
name : "Is Hidden" ,
253
259
config : `
@@ -263,9 +269,11 @@ func TestApp(t *testing.T) {
263
269
url = "https://google.com"
264
270
external = true
265
271
hidden = true
272
+ open_in = "slim-window"
266
273
}
267
274
` ,
268
275
hidden : true ,
276
+ openIn : "slim-window" ,
269
277
}, {
270
278
name : "Is Not Hidden" ,
271
279
config : `
@@ -281,9 +289,11 @@ func TestApp(t *testing.T) {
281
289
url = "https://google.com"
282
290
external = true
283
291
hidden = false
292
+ open_in = "window"
284
293
}
285
294
` ,
286
295
hidden : false ,
296
+ openIn : "window" ,
287
297
}}
288
298
for _ , tc := range cases {
289
299
tc := tc
@@ -300,6 +310,7 @@ func TestApp(t *testing.T) {
300
310
resource := state .Modules [0 ].Resources ["coder_app.test" ]
301
311
require .NotNil (t , resource )
302
312
require .Equal (t , strconv .FormatBool (tc .hidden ), resource .Primary .Attributes ["hidden" ])
313
+ require .Equal (t , tc .openIn , resource .Primary .Attributes ["open_in" ])
303
314
return nil
304
315
},
305
316
ExpectError : nil ,
0 commit comments