Skip to content

Commit 50eec53

Browse files
committed
must be region
1 parent 6cdb775 commit 50eec53

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

provider/parameter_test.go

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -149,6 +149,19 @@ func TestParameter(t *testing.T) {
149149
}
150150
`,
151151
ExpectError: regexp.MustCompile("is not a bool"),
152+
}, {
153+
Name: "Bool_CustomError",
154+
Config: `
155+
data "coder_parameter" "region" {
156+
name = "region"
157+
type = "bool"
158+
default = true
159+
validation {
160+
error = "foobar"
161+
}
162+
}
163+
`,
164+
ExpectError: regexp.MustCompile("is not a bool"),
152165
}, {
153166
Name: "OptionNotBool",
154167
Config: `

0 commit comments

Comments
 (0)