Skip to content

Add check in pipeline transformation to make sure there is atleast one pipeline with a valid external source#6397

Open
kkondaka wants to merge 2 commits into
opensearch-project:mainfrom
kkondaka:pipeline-transform-check
Open

Add check in pipeline transformation to make sure there is atleast one pipeline with a valid external source#6397
kkondaka wants to merge 2 commits into
opensearch-project:mainfrom
kkondaka:pipeline-transform-check

Conversation

@kkondaka

@kkondaka kkondaka commented Jan 8, 2026

Copy link
Copy Markdown
Collaborator

Description

Add check in pipeline transformation to make sure there is atleast one pipeline with a valid external source. Currently, we allow pipeline config with all headless pipelines or and pipeline connectors as source. This change validates the config to make sure there is at least one pipeline with external source

Issues Resolved

Resolves #[Issue number to be closed when this PR is merged]

Check List

  • [X ] New functionality includes testing.
  • New functionality has a documentation issue. Please link to it in this PR.
    • New functionality has javadoc added
  • [ X] Commits are signed with a real name per the DCO

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
For more information on following Developer Certificate of Origin and signing off your commits, please check here.

}

@Test
void testPipelineConfigWithOnlyHeadlessPipelines() {

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do we have an existing test for a valid config with a headless pipeline?

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@dlvenable we have data-prepper-core/src/integrationTest/java/org/opensearch/dataprepper/integration/DLQHeadlessPipelinesIT.java and data-prepper-core/src/integrationTest/java/org/opensearch/dataprepper/integration/ForwardingHeadlessPipelinesIT.java

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@kkondaka , We should have a unit test in this code that ensures that a valid config with a headless pipeline still passes. Pushing this validation to the integration tests is not as ideal since those have more possible failure cases.

…e pipeline with a valid external source

Signed-off-by: Krishna Kondaka <krishkdk@amazon.com>
@kkondaka kkondaka force-pushed the pipeline-transform-check branch from ce64091 to cdeaf17 Compare January 15, 2026 16:56
graytaylor0
graytaylor0 previously approved these changes Jan 16, 2026
}

@Test
void testPipelineConfigWithOnlyHeadlessPipelines() {

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@kkondaka , We should have a unit test in this code that ensures that a valid config with a headless pipeline still passes. Pushing this validation to the integration tests is not as ideal since those have more possible failure cases.

Signed-off-by: Krishna Kondaka <krishkdk@amazon.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants