We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see ourdocumentation.
There was an error while loading.Please reload this page.
1 parent7cf79d8 commitbb16d1eCopy full SHA for bb16d1e
provider/parameter_test.go
@@ -806,6 +806,7 @@ func TestParameterValidation(t *testing.T) {
806
Option:opts("red","blue","green"),
807
FormType:provider.ParameterFormTypeMultiSelect,
808
},
809
+Value:`["red", "yellow", "black"]`,
810
ExpectError:regexp.MustCompile("is not a valid option, values\"yellow, black\" are missing from the options"),
811
812
{
@@ -835,7 +836,8 @@ func TestParameterValidation(t *testing.T) {
835
836
tc:=tc
837
t.Run(tc.Name,func(t*testing.T) {
838
t.Parallel()
-diags:=tc.Parameter.Valid(&tc.Value)
839
+value:=&tc.Value
840
+diags:=tc.Parameter.Valid(value)
841
iftc.ExpectError!=nil {
842
require.True(t,diags.HasError())
843
errMsg:=fmt.Sprintf("%+v",diags[0])// close enough