File tree Expand file tree Collapse file tree 1 file changed +24
-0
lines changed Expand file tree Collapse file tree 1 file changed +24
-0
lines changed Original file line number Diff line number Diff line change @@ -380,6 +380,30 @@ func TestAgent_ResourcesMonitoring(t *testing.T) {
380380 }},
381381 })
382382 })
383+
384+ t .Run ("NoPath" , func (t * testing.T ) {
385+ resource .Test (t , resource.TestCase {
386+ ProviderFactories : coderFactory (),
387+ IsUnitTest : true ,
388+ Steps : []resource.TestStep {{
389+ Config : `
390+ provider "coder" {
391+ url = "https://example.com"
392+ }
393+ resource "coder_agent" "dev" {
394+ os = "linux"
395+ arch = "amd64"
396+ resources_monitoring {
397+ volume {
398+ enabled = true
399+ threshold = 80
400+ }
401+ }
402+ }` ,
403+ ExpectError : regexp .MustCompile (`The argument "path" is required, but no definition was found.` ),
404+ }},
405+ })
406+ })
383407}
384408
385409func TestAgent_MetadataDuplicateKeys (t * testing.T ) {
You can’t perform that action at this time.
0 commit comments