We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6cdb775 commit 50eec53Copy full SHA for 50eec53
provider/parameter_test.go
@@ -149,6 +149,19 @@ func TestParameter(t *testing.T) {
149
}
150
`,
151
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"),
165
}, {
166
Name: "OptionNotBool",
167
Config: `
0 commit comments