@@ -337,75 +337,6 @@ func TestConvertResources(t *testing.T) {
337
337
Type : "coder_env" ,
338
338
}},
339
339
},
340
- "multiple-agents-multiple-monitors" : {
341
- resources : []* proto.Resource {{
342
- Name : "dev" ,
343
- Type : "null_resource" ,
344
- Agents : []* proto.Agent {
345
- {
346
- Name : "dev1" ,
347
- OperatingSystem : "linux" ,
348
- Architecture : "amd64" ,
349
- Apps : []* proto.App {
350
- {
351
- Slug : "app1" ,
352
- DisplayName : "app1" ,
353
- // Subdomain defaults to false if unspecified.
354
- Subdomain : false ,
355
- OpenIn : proto .AppOpenIn_SLIM_WINDOW ,
356
- },
357
- {
358
- Slug : "app2" ,
359
- DisplayName : "app2" ,
360
- Subdomain : true ,
361
- Healthcheck : & proto.Healthcheck {
362
- Url : "http://localhost:13337/healthz" ,
363
- Interval : 5 ,
364
- Threshold : 6 ,
365
- },
366
- OpenIn : proto .AppOpenIn_SLIM_WINDOW ,
367
- },
368
- },
369
- Auth : & proto.Agent_Token {},
370
- ConnectionTimeoutSeconds : 120 ,
371
- DisplayApps : & displayApps ,
372
- ResourcesMonitoring : & proto.ResourcesMonitoring {
373
- Memory : & proto.MemoryResourceMonitor {
374
- Enabled : true ,
375
- Threshold : 80 ,
376
- },
377
- },
378
- },
379
- {
380
- Name : "dev2" ,
381
- OperatingSystem : "linux" ,
382
- Architecture : "amd64" ,
383
- Apps : []* proto.App {},
384
- Auth : & proto.Agent_Token {},
385
- ConnectionTimeoutSeconds : 120 ,
386
- DisplayApps : & displayApps ,
387
- ResourcesMonitoring : & proto.ResourcesMonitoring {
388
- Memory : & proto.MemoryResourceMonitor {
389
- Enabled : true ,
390
- Threshold : 99 ,
391
- },
392
- Volumes : []* proto.VolumeResourceMonitor {
393
- {
394
- Path : "/volume2" ,
395
- Enabled : false ,
396
- Threshold : 50 ,
397
- },
398
- {
399
- Path : "/volume1" ,
400
- Enabled : true ,
401
- Threshold : 80 ,
402
- },
403
- },
404
- },
405
- },
406
- },
407
- }},
408
- },
409
340
"multiple-agents-multiple-scripts" : {
410
341
resources : []* proto.Resource {{
411
342
Name : "dev1" ,
0 commit comments