We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d8844b8 commit 3cf7229Copy full SHA for 3cf7229
provider/agent_test.go
@@ -380,6 +380,30 @@ func TestAgent_ResourcesMonitoring(t *testing.T) {
380
}},
381
})
382
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
407
}
408
409
func TestAgent_MetadataDuplicateKeys(t *testing.T) {
0 commit comments