Closed mawasile closed 3 days ago
Attention: Patch coverage is 67.53247%
with 25 lines
in your changes missing coverage. Please review.
Project coverage is 73.35%. Comparing base (
1f1b233
) to head (8952d67
).
:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.
This pull request includes several updates and improvements to the Data Loss Prevention Policy functionality, primarily focusing on schema enhancements and validation logic. The most important changes include adding additional validation for
default_action_rule_behavior
andaction_rules
, updating the Go module version, and refining the schema attributes by removing redundant descriptions.Validation Enhancements:
default_action_rule_behavior
andaction_rules
are correctly configured when both are empty. (internal/services/dlp_policy/resource_dlp_policy.go
)Schema Attribute Refinements:
Description
fields from schema attributes inDataLossPreventionPolicyDataSource
andDataLossPreventionPolicyResource
. (internal/services/dlp_policy/datasource_dlp_policy.go
) [1] [2] [3] [4] [5]MarkdownDescription
to provide more detailed information and links to relevant documentation. (internal/services/dlp_policy/datasource_dlp_policy.go
,internal/services/dlp_policy/resource_dlp_policy.go
) [1] [2]Module and Dependency Updates:
1.22.9
ingo.mod
file. (go.mod
)New Helper Functions:
getConnectorGroup
function to handle conversion of connector attributes. (internal/services/dlp_policy/helpers.go
)Configuration Validation:
ValidateConfig
method inDataLossPreventionPolicyResource
to ensure proper configuration of connectors. (internal/services/dlp_policy/resource_dlp_policy.go
)