Add GDPR compliance tests and enhance existing functionality#20
Merged
Conversation
- Introduced new tests for GDPR rules and evidence evaluation in `hardcoded_test.go`. - Added tests for GDPR breach and data flow evaluations in `hardcoded_test.go`. - Enhanced inspection sign-off functionality in `inspection.go`. - Updated scoring tests to ensure accurate score calculations in `scoring_test.go`. - Refactored ScanResult and ScoreSummary structures in `types.go` for better clarity. - Improved YAML rule handling in `yaml_rule.go`. - Seeded compliance scenarios with more detailed data in `compliance_scenario.go`. - Added comprehensive tests for compliance data flow CRUD operations in `compliance_dataflow_test.go`. - Implemented tests for compliance inspections and findings in `compliance_inspection_test.go`. - Created a new test file for rule metadata validation in `rule_metadata_test.go`. - Enhanced server tests to cover compliance data flow and inspection endpoints.
… read Strict shadow added in this branch flagged 40+ idiomatic err := reuses; revert to default govet checks. The yaml_loader read walks an operator- configured rules dir, so annotate the os.ReadFile with nolint:gosec.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
hardcoded_test.go.hardcoded_test.go.inspection.go.scoring_test.go.types.gofor better clarity.yaml_rule.go.compliance_scenario.go.compliance_dataflow_test.go.compliance_inspection_test.go.rule_metadata_test.go.