You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
returnnil, fmt.Errorf("Provider requires explicit configuration. Add a provider block to the root module and configure the provider's required arguments as described in the provider documentation.")
540
+
formsg:=rangelogs {
541
+
ifmsg.Err!=nil {
542
+
returnnil, fmt.Errorf("retrieving next message: %w", msg.Err)
// diags = append(diags, fmt.Errorf("error checking value for attribute at path: %s for resource %s, err: %s", e.attributePath.String(), e.resourceName, err))
diags=append(diags, fmt.Errorf("error checking value for attribute at path: %s for resource %s, err: %s", e.attributePath.String(), e.resourceName, err))
42
+
}
60
43
61
-
iferr:=e.knownValue.CheckValue(val); err!=nil {
62
-
diags=append(diags, fmt.Errorf("error checking value for attribute at path: %s for resource %s, err: %s", e.attributePath.String(), e.resourceName, err))
63
-
}
64
-
}
44
+
ifdiags==nil {
45
+
return
65
46
}
66
47
}
67
48
@@ -78,6 +59,11 @@ func (e expectKnownValue) CheckQuery(_ context.Context, req CheckQueryRequest, r
78
59
resp.Error=fmt.Errorf("%s - the resource %s was not found", e.listResourceAddress, e.resourceName)
79
60
}
80
61
62
+
// ExpectKnownValue returns a query check that asserts the specified attribute values are present for a given resource object
63
+
// returned by a list query. The resource object can only be identified by providing the list resource address as well as the
64
+
// resource name (display name).
65
+
//
66
+
// This query check can only be used with managed resources that support resource identity and query. Query is only supported in Terraform v1.14+
0 commit comments