diff --git a/internal/provider/resource_access_jaas_model.go b/internal/provider/resource_access_jaas_model.go index de371380..bab5f725 100644 --- a/internal/provider/resource_access_jaas_model.go +++ b/internal/provider/resource_access_jaas_model.go @@ -19,6 +19,7 @@ import ( // Ensure provider defined types fully satisfy framework interfaces. var _ resource.Resource = &jaasAccessModelResource{} var _ resource.ResourceWithConfigure = &jaasAccessModelResource{} +var _ resource.ResourceWithConfigValidators = &jaasAccessModelResource{} // NewJAASAccessModelResource returns a new resource for JAAS model access. func NewJAASAccessModelResource() resource.Resource { diff --git a/internal/provider/resource_access_model.go b/internal/provider/resource_access_model.go index 8979b2c1..7f78aef5 100644 --- a/internal/provider/resource_access_model.go +++ b/internal/provider/resource_access_model.go @@ -27,6 +27,7 @@ import ( var _ resource.Resource = &accessModelResource{} var _ resource.ResourceWithConfigure = &accessModelResource{} var _ resource.ResourceWithImportState = &accessModelResource{} +var _ resource.ResourceWithConfigValidators = &accessModelResource{} func NewAccessModelResource() resource.Resource { return &accessModelResource{} diff --git a/internal/provider/resource_user.go b/internal/provider/resource_user.go index 6ba355f2..95b2dc2a 100644 --- a/internal/provider/resource_user.go +++ b/internal/provider/resource_user.go @@ -24,6 +24,7 @@ import ( var _ resource.Resource = &userResource{} var _ resource.ResourceWithConfigure = &userResource{} var _ resource.ResourceWithImportState = &userResource{} +var _ resource.ResourceWithConfigValidators = &userResource{} func NewUserResource() resource.Resource { return &userResource{} diff --git a/internal/provider/validator_require_jaas.go b/internal/provider/validator_require_jaas.go index ed18b43e..27b4b6e6 100644 --- a/internal/provider/validator_require_jaas.go +++ b/internal/provider/validator_require_jaas.go @@ -21,6 +21,8 @@ type RequiresJAASValidator struct { client *juju.Client } +// NewRequiresJAASValidator returns a new validator that enforces a resource can +// only be created against JAAS. func NewRequiresJAASValidator(client *juju.Client) RequiresJAASValidator { return RequiresJAASValidator{ client: client,