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
Summary
The complex multi-file package layout test cases inside
TestValidateIntegrationPolicyTemplates_DataStreamStreamsincode/go/internal/validator/semantic/validate_integration_policy_template_path_test.goshould be migrated to fixture-based validator tests undertest/packages/, exercised viacode/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 intest/packages/tested viavalidator_test.go. Simple unit scenarios (single file or small structure) are appropriate fort.TempDir()unit tests.The cases that build multi-file layouts (root manifest,
agent/input,data_stream/*/manifest.yml,agent/streamtemplates) should be extracted into new package fixtures undertest/packages/with corresponding entries invalidator_test.goasserting the same expected errors/results.Context
Acceptance Criteria
TestValidateIntegrationPolicyTemplates_DataStreamStreamsinto newtest/packages/fixturesvalidator_test.go