Skip to content

Migrate TestValidateIntegrationPolicyTemplates_DataStreamStreams complex cases to test/packages/ fixtures #1128

@coderabbitai

Description

@coderabbitai

Summary

The complex multi-file package layout test cases inside TestValidateIntegrationPolicyTemplates_DataStreamStreams in code/go/internal/validator/semantic/validate_integration_policy_template_path_test.go should be migrated to fixture-based validator tests under test/packages/, exercised via code/go/pkg/validator/validator_test.go.

Background

Per the repository's semantic-validator testing contract (see AGENTS.md): for complex scenarios with multiple files and directories, use test packages in test/packages/ tested via validator_test.go. Simple unit scenarios (single file or small structure) are appropriate for t.TempDir() unit tests.

The cases that build multi-file layouts (root manifest, agent/input, data_stream/*/manifest.yml, agent/stream templates) should be extracted into new package fixtures under test/packages/ with corresponding entries in validator_test.go asserting the same expected errors/results.

Context

Acceptance Criteria

  • Extract integration-level cases from TestValidateIntegrationPolicyTemplates_DataStreamStreams into new test/packages/ fixtures
  • Add corresponding test assertions in validator_test.go
  • Keep only simple/single-file unit scenarios in the semantic package test file

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions