diff --git a/mso/resource_mso_schema_template_contract_filter.go b/mso/resource_mso_schema_template_contract_filter.go index 27076b42..ef363de4 100644 --- a/mso/resource_mso_schema_template_contract_filter.go +++ b/mso/resource_mso_schema_template_contract_filter.go @@ -13,6 +13,11 @@ import ( "github.com/hashicorp/terraform-plugin-sdk/helper/validation" ) +// This resource could be deprecated because a contract must always be associated with at least one filter. +// Since mso_schema_template_contract cannot be created without a filter_relationship, this resource cannot be used +// independently without conflicting with the inline filter_relationship attribute of mso_schema_template_contract. +// Currently keeping the resource because there is a warning in the resource documentation + func resourceMSOTemplateContractFilter() *schema.Resource { return &schema.Resource{ Create: resourceMSOTemplateContractFilterCreate, diff --git a/mso/resource_mso_schema_template_contract_filter_test.go b/mso/resource_mso_schema_template_contract_filter_test.go index 3af5f2d8..c8d7694a 100644 --- a/mso/resource_mso_schema_template_contract_filter_test.go +++ b/mso/resource_mso_schema_template_contract_filter_test.go @@ -11,6 +11,8 @@ import ( "github.com/hashicorp/terraform-plugin-sdk/terraform" ) +// Skipped updating tests, see resource comments + func TestAccMSOSchemaTemplateContractFilter_Basic(t *testing.T) { var tc TemplateContractFilter resource.Test(t, resource.TestCase{